From e9ab702419c6f031118013179e28055cc483e53b Mon Sep 17 00:00:00 2001
From: Hamza HRAMCHI <hamza.hramchi@xelians.fr>
Date: Thu, 9 Feb 2023 14:46:04 +0100
Subject: [PATCH] FIX #00000 TIME 0 build prod

---
 dist/index.html                                                 | 2 +-
 ...f75b45f5b0e63f7e4.js => main-es2015.87c98818fdd38f866e0c.js} | 2 +-
 ...373f75b45f5b0e63f7e4.js => main-es5.87c98818fdd38f866e0c.js} | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename dist/{main-es2015.373f75b45f5b0e63f7e4.js => main-es2015.87c98818fdd38f866e0c.js} (99%)
 rename dist/{main-es5.373f75b45f5b0e63f7e4.js => main-es5.87c98818fdd38f866e0c.js} (99%)

diff --git a/dist/index.html b/dist/index.html
index 3e2c2426dd..8d14658e0a 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -13,5 +13,5 @@
 <link rel="stylesheet" href="styles.a8b3a6e00a5d0f6a008d.css"></head>
 <body>
     <app-root></app-root>
-<script src="runtime-es2015.0a0360633eabd2fc0bb6.js" type="module"></script><script src="runtime-es5.0a0360633eabd2fc0bb6.js" nomodule defer></script><script src="polyfills-es5.016de5c7b74a5782d968.js" nomodule defer></script><script src="polyfills-es2015.61606da6d5867aea9335.js" type="module"></script><script src="scripts.839aa34c61ed64fb6304.js" defer></script><script src="main-es2015.373f75b45f5b0e63f7e4.js" type="module"></script><script src="main-es5.373f75b45f5b0e63f7e4.js" nomodule defer></script></body>
+<script src="runtime-es2015.0a0360633eabd2fc0bb6.js" type="module"></script><script src="runtime-es5.0a0360633eabd2fc0bb6.js" nomodule defer></script><script src="polyfills-es5.016de5c7b74a5782d968.js" nomodule defer></script><script src="polyfills-es2015.61606da6d5867aea9335.js" type="module"></script><script src="scripts.839aa34c61ed64fb6304.js" defer></script><script src="main-es2015.87c98818fdd38f866e0c.js" type="module"></script><script src="main-es5.87c98818fdd38f866e0c.js" nomodule defer></script></body>
 </html>
diff --git a/dist/main-es2015.373f75b45f5b0e63f7e4.js b/dist/main-es2015.87c98818fdd38f866e0c.js
similarity index 99%
rename from dist/main-es2015.373f75b45f5b0e63f7e4.js
rename to dist/main-es2015.87c98818fdd38f866e0c.js
index b0bfc0c5fe..3489d79d9c 100644
--- a/dist/main-es2015.373f75b45f5b0e63f7e4.js
+++ b/dist/main-es2015.87c98818fdd38f866e0c.js
@@ -1 +1 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return a}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return r}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return c}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return v}),n.d(t,"n",function(){return y}),n.d(t,"o",function(){return f}),n.d(t,"p",function(){return m}),n.d(t,"q",function(){return l});const i=(e,t)=>{e.componentOnReady?e.componentOnReady().then(e=>t(e)):l(()=>t(e))},r=(e,t=[])=>{const n={};return t.forEach(t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},s=(e,t,n,i)=>{if("undefined"!=typeof window){const r=window,s=r&&r.Ionic&&r.Ionic.config;if(s){const r=s.get("_ael");if(r)return r(e,t,n,i);if(s._ael)return s._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},o=(e,t,n,i)=>{if("undefined"!=typeof window){const r=window,s=r&&r.Ionic&&r.Ionic.config;if(s){const r=s.get("_rel");if(r)return r(e,t,n,i);if(s._rel)return s._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},a=(e,t=e)=>e.shadowRoot||t,l=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),c=e=>!!e.shadowRoot&&!!e.attachShadow,u=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=(e,t)=>{let n;const i=e.getAttribute("aria-labelledby"),r=e.id;let s=null!==i&&""!==i.trim()?i:t+"-lbl",o=null!==i&&""!==i.trim()?document.getElementById(i):u(e);return o?(null===i&&(o.id=s),n=o.textContent,o.setAttribute("aria-hidden","true")):""!==r.trim()&&(o=document.querySelector(`label[for="${r}"]`),o&&(""!==o.id?s=o.id:o.id=s=r+"-lbl",n=o.textContent)),{label:o,labelId:s,labelText:n}},h=(e,t,n,i,r)=>{if(e||c(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=r,e.name=n,e.value=i||""}},p=(e,t,n)=>Math.max(e,Math.min(t,n)),g=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},f=e=>e.timeStamp||Date.now(),m=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},v=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},b=(e,t)=>{const n=e._original||e;return{_original:e,emit:y(n.emit.bind(n),t)}},y=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>{try{if(e instanceof class{constructor(e){this.value=e}})return e.value;if(!o()||"string"!=typeof e||""===e)return e;const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(e=>{const n=t.querySelectorAll(e);for(let i=n.length-1;i>=0;i--){const e=n[i];e.parentNode?e.parentNode.removeChild(e):t.removeChild(e);const o=s(e);for(let t=0;t<o.length;t++)r(o[t])}});const i=s(t);for(let e=0;e<i.length;e++)r(i[e]);const a=document.createElement("div");a.appendChild(t);const c=a.querySelector("div");return null!==c?c.innerHTML:a.innerHTML}catch(t){return console.error(t),""}},r=e=>{if(e.nodeType&&1!==e.nodeType)return;for(let n=e.attributes.length-1;n>=0;n--){const t=e.attributes.item(n),i=t.name;if(!a.includes(i.toLowerCase())){e.removeAttribute(i);continue}const r=t.value;null!=r&&r.toLowerCase().includes("javascript:")&&e.removeAttribute(i)}const t=s(e);for(let n=0;n<t.length;n++)r(t[n])},s=e=>null!=e.children?e.children:e.childNodes,o=()=>{const e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},a=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"3oEA":function(e,t,n){!function(t){"use strict";const n="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,"i"),threeOctet:new RegExp(`^${n}\\.${n}\\.${n}$`,"i"),twoOctet:new RegExp(`^${n}\\.${n}$`,"i"),longValue:new RegExp(`^${n}$`,"i")},r=new RegExp("^0[0-7]+$","i"),s=new RegExp("^0x[a-f0-9]+$","i"),o="(?:[0-9a-f]+::?)+",a={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(%[0-9a-z]{1,})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${n}\\.${n}\\.${n}\\.${n}(%[0-9a-z]{1,})?$`,"i")};function l(e,t){if(e.indexOf("::")!==e.lastIndexOf("::"))return null;let n,i,r=0,s=-1,o=(e.match(a.zoneIndex)||[])[0];for(o&&(o=o.substring(1),e=e.replace(/%.+$/,""));(s=e.indexOf(":",s+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(i=t-r,n=":";i--;)n+="0:";return":"===(e=e.replace("::",n))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){const t=e.split(":"),n=[];for(let e=0;e<t.length;e++)n.push(parseInt(t[e],16));return n}(),zoneId:o}}function c(e,t,n,i){if(e.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let r,s=0;for(;i>0;){if(r=n-i,r<0&&(r=0),e[s]>>r!=t[s]>>r)return!1;i-=n,s+=1}return!0}function u(e){if(s.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(r.test(e))return parseInt(e,8);throw new Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function d(e,t){for(;e.length<t;)e="0"+e;return e}const h={};h.IPv4=function(){function e(e){if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){let n;if(void 0===t&&(n=e,e=n[0],t=n[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return c(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1;const n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let i,r,s;for(i=3;i>=0;i-=1){if(r=this.octets[i],!(r in n))return null;if(s=n[r],t&&0!==s)return null;8!==s&&(t=!0),e+=s}return 32-e},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse("::ffff:"+this.toString())},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),h.IPv4.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[];let s=0;for(;s<4;)r.push(parseInt(n[s],10)|255^parseInt(i[s],10)),s++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(e){return null!==this.parser(e)},h.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(t){return!1}},h.IPv4.isValidFourPartDecimal=function(e){return!(!h.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(e){let t,n,i,r,s;try{for(t=this.parseCIDR(e),i=t[0].toByteArray(),s=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<4;)r.push(parseInt(i[n],10)&parseInt(s[n],10)),n++;return new this(r)}catch(o){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(e){const t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},h.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){const e=parseInt(t[2]);if(e>=0&&e<=32){const n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(e){let t,n,r;if(t=e.match(i.fourOctet))return function(){const e=t.slice(1,6),i=[];for(let t=0;t<e.length;t++)n=e[t],i.push(u(n));return i}();if(t=e.match(i.longValue)){if(r=u(t[1]),r>4294967295||r<0)throw new Error("ipaddr: address outside defined range");return function(){const e=[];let t;for(t=0;t<=24;t+=8)e.push(r>>t&255);return e}().reverse()}return(t=e.match(i.twoOctet))?function(){const e=t.slice(1,4),n=[];if(r=u(e[1]),r>16777215||r<0)throw new Error("ipaddr: address outside defined range");return n.push(u(e[0])),n.push(r>>16&255),n.push(r>>8&255),n.push(255&r),n}():(t=e.match(i.threeOctet))?function(){const e=t.slice(1,5),n=[];if(r=u(e[2]),r>65535||r<0)throw new Error("ipaddr: address outside defined range");return n.push(u(e[0])),n.push(u(e[1])),n.push(r>>8&255),n.push(255&r),n}():null},h.IPv4.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");const t=[0,0,0,0];let n=0;const i=Math.floor(e/8);for(;n<i;)t[n]=255,n++;return i<4&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.IPv6=function(){function e(e,t){let n,i;if(16===e.length)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(n=0;n<this.parts.length;n++)if(i=this.parts[n],!(0<=i&&i<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){let n;if(void 0===t&&(n=e,e=n[0],t=n[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return c(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1;const n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let i,r;for(let s=7;s>=0;s-=1){if(i=this.parts[s],!(i in n))return null;if(r=n[i],t&&0!==r)return null;16!==r&&(t=!0),e+=r}return 128-e},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e;const t=[],n=this.parts;for(let i=0;i<n.length;i++)e=n[i],t.push(e>>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){const e=(function(){const e=[];for(let t=0;t<this.parts.length;t++)e.push(d(this.parts[t].toString(16),4));return e}).call(this).join(":");let t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const e=this.parts.slice(-2),t=e[0],n=e[1];return new h.IPv4([t>>8,255&t,n>>8,255&n])},e.prototype.toNormalizedString=function(){const e=(function(){const e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(":");let t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toRFC5952String=function(){const e=/((^|:)(0(:|$)){2,})/g,t=this.toNormalizedString();let n,i=0,r=-1;for(;n=e.exec(t);)n[0].length>r&&(i=n.index,r=n[0].length);return r<0?t:`${t.substring(0,i)}::${t.substring(i+r)}`},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),h.IPv6.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[];let s=0;for(;s<16;)r.push(parseInt(n[s],10)|255^parseInt(i[s],10)),s++;return new this(r)}catch(t){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${t})`)}},h.IPv6.isIPv6=function(e){return null!==this.parser(e)},h.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{const t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(t){return!1}},h.IPv6.networkAddressFromCIDR=function(e){let t,n,i,r,s;try{for(t=this.parseCIDR(e),i=t[0].toByteArray(),s=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<16;)r.push(parseInt(i[n],10)&parseInt(s[n],10)),n++;return new this(r)}catch(o){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${o})`)}},h.IPv6.parse=function(e){const t=this.parser(e);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},h.IPv6.parseCIDR=function(e){let t,n,i;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return i=[this.parse(n[1]),t],Object.defineProperty(i,"toString",{value:function(){return this.join("/")}}),i;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(e){let t,n,i,r,s,o;if(i=e.match(a.deprecatedTransitional))return this.parser("::ffff:"+i[1]);if(a.native.test(e))return l(e,8);if((i=e.match(a.transitional))&&(o=i[6]||"",t=l(i[1].slice(0,-1)+o,6),t.parts)){for(s=[parseInt(i[2]),parseInt(i[3]),parseInt(i[4]),parseInt(i[5])],n=0;n<s.length;n++)if(r=s[n],!(0<=r&&r<=255))return null;return t.parts.push(s[0]<<8|s[1]),t.parts.push(s[2]<<8|s[3]),{parts:t.parts,zoneId:t.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>128)throw new Error("ipaddr: invalid IPv6 prefix length");const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let n=0;const i=Math.floor(e/8);for(;n<i;)t[n]=255,n++;return i<16&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.fromByteArray=function(e){const t=e.length;if(4===t)return new h.IPv4(e);if(16===t)return new h.IPv6(e);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(e){return h.IPv6.isValid(e)||h.IPv4.isValid(e)},h.parse=function(e){if(h.IPv6.isValid(e))return h.IPv6.parse(e);if(h.IPv4.isValid(e))return h.IPv4.parse(e);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(e){try{return h.IPv6.parseCIDR(e)}catch(t){try{return h.IPv4.parseCIDR(e)}catch(n){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(e){const t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},h.subnetMatch=function(e,t,n){let i,r,s,o;for(r in null==n&&(n="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,r))for(s=t[r],!s[0]||s[0]instanceof Array||(s=[s]),i=0;i<s.length;i++)if(o=s[i],e.kind()===o[0].kind()&&e.match.apply(e,o))return r;return n},e.exports?e.exports=h:t.ipaddr=h}(this)},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return A}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return P}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return O}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return f});var i=n("E/Mt"),r=n("B4Jq"),s=n("1vRN");let o=0;const a=new WeakMap,l=e=>({create:t=>v(e,t),dismiss:(t,n,i)=>_(document,t,n,e,i),getTop:async()=>x(document,e)}),c=l("ion-alert"),u=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),p=l("ion-picker"),g=l("ion-popover"),f=l("ion-toast"),m=e=>{"undefined"!=typeof document&&w(document);const t=o++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},v=(e,t)=>"undefined"!=typeof customElements?customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),k(document).appendChild(n),new Promise(e=>Object(s.c)(n,e))}):Promise.resolve(),b='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',y="input:not([type=hidden]), textarea, button, select",w=e=>{0===o&&(o=1,e.addEventListener("focus",t=>((e,t)=>{const n=x(t),i=e.target;if(n&&i)if(n===i)n.lastFocus=void 0;else{const e=Object(s.g)(n);if(!e.contains(i))return;const r=e.querySelector(".ion-overlay-wrapper");if(!r)return;if(r.contains(i))n.lastFocus=i;else{const e=n.lastFocus;((e,t)=>{let n=e.querySelector(b);const i=n&&n.shadowRoot;i&&(n=i.querySelector(y)||n),n?n.focus():t.focus()})(r,n),e===t.activeElement&&((e,t)=>{const n=Array.from(e.querySelectorAll(b));let i=n.length>0?n[n.length-1]:null;const r=i&&i.shadowRoot;r&&(i=r.querySelector(y)||i),i?i.focus():t.focus()})(r,n),n.lastFocus=t.activeElement}}})(t,e),!0),e.addEventListener("ionBackButton",t=>{const n=x(e);n&&n.backdropDismiss&&t.detail.register(r.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,M))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=x(e);t&&t.backdropDismiss&&t.dismiss(void 0,M)}}))},_=(e,t,n,i,r)=>{const s=x(e,i,r);return s?s.dismiss(t,n):Promise.reject("overlay does not exist")},x=(e,t,n)=>{const i=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?i[i.length-1]:i.find(e=>e.id===n)},A=async(e,t,n,r,s)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const o=Object(i.b)(e),a=e.enterAnimation?e.enterAnimation:i.c.get(t,"ios"===o?n:r);await E(e,a,e.el,s)&&e.didPresent.emit(),"ION-TOAST"!==e.el.tagName&&C(e.el),e.keyboardClose&&e.el.focus()},C=async e=>{let t=document.activeElement;if(!t)return;const n=t&&t.shadowRoot;n&&(t=n.querySelector(y)||t),await e.onDidDismiss(),t.focus()},S=async(e,t,n,r,s,o,l)=>{if(!e.presented)return!1;e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n});const c=Object(i.b)(e),u=e.leaveAnimation?e.leaveAnimation:i.c.get(r,"ios"===c?s:o);"gesture"!==n&&await E(e,u,e.el,l),e.didDismiss.emit({data:t,role:n}),a.delete(e)}catch(c){console.error(c)}return e.el.remove(),!0},k=e=>e.querySelector("ion-app")||e.body,E=async(e,t,n,r)=>{n.classList.remove("overlay-hidden");const s=t(n.shadowRoot||e.el,r);e.animated&&i.c.getBoolean("animated",!0)||s.duration(0),e.keyboardClose&&s.beforeAddWrite(()=>{const e=n.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const o=a.get(e)||[];return a.set(e,[...o,s]),await s.play(),!0},P=(e,t)=>{let n;const i=new Promise(e=>n=e);return D(e,t,e=>{n(e.detail)}),i},D=(e,t,n)=>{const i=r=>{Object(s.b)(e,t,i),n(r)};Object(s.a)(e,t,i)},O=e=>"cancel"===e||e===M,I=e=>e(),T=(e,t)=>{if("function"==typeof e)return i.c.get("_zoneGate",I)(()=>{try{return e(t)}catch(n){console.error(n)}})},M="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return s}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return r});const i=()=>{document.addEventListener("backbutton",()=>{})},r=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,i=[];const r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);const s=()=>{if(i.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};i.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,i=i.filter(t=>t.id!==e.id),(async e=>{try{if(e&&e.handler){const t=e.handler(s);null!=t&&await t}}catch(t){console.error(t)}})(e).then(()=>t=!1)}};s()})},s=100,o=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return b}),n.d(t,"d",function(){return r}),n.d(t,"e",function(){return _});var i=n("wEJo");const r=e=>o(e),s=(e,t)=>("string"==typeof e&&(t=e,e=void 0),r(e).includes(t)),o=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=a(e),t.forEach(t=>e.document.documentElement.classList.add("plt-"+t))),t},a=e=>Object.keys(m).filter(t=>m[t](e)),l=e=>!!g(e,/iPad/i)||!(!g(e,/Macintosh/i)||!u(e)),c=e=>g(e,/android|sink/i),u=e=>f(e,"(any-pointer:coarse)"),d=e=>h(e)||p(e),h=e=>!!(e.cordova||e.phonegap||e.PhoneGap),p=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},g=(e,t)=>t.test(e.navigator.userAgent),f=(e,t)=>e.matchMedia(t).matches,m={ipad:l,iphone:e=>g(e,/iPhone/i),ios:e=>g(e,/iPhone|iPod/i)||l(e),android:c,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return l(e)||(e=>c(e)&&!g(e,/mobile/i))(e)||i>460&&i<820&&r>780&&r<1400},cordova:h,capacitor:p,electron:e=>g(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:u,mobileweb:e=>u(e)&&!d(e),desktop:e=>!u(e),hybrid:d};class v{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const b=new v;let y;const w=e=>e&&Object(i.i)(e)||y,_=(e={})=>{if("undefined"==typeof window)return;const t=window.document,n=window,r=n.Ionic=n.Ionic||{};o(n);const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(t){return{}}})(n)),{persistConfig:!1}),r.config),(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>"ionic:"===e.substr(0,"ionic:".length)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(n)),e);b.reset(a),b.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}})(n,a),r.config=b,r.mode=y=b.get("mode",t.documentElement.getAttribute("mode")||(s(n,"ios")?"ios":"md")),b.set("mode",y),t.documentElement.setAttribute("mode",y),t.documentElement.classList.add(y),b.getBoolean("_testing")&&b.set("animated",!1);const l=e=>e.tagName&&e.tagName.startsWith("ION-"),c=e=>["ios","md"].includes(e);Object(i.p)(e=>{for(;e;){const t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return y})}},Hfs6:function(e,t,n){var i,r,s;!function(o){if("object"==typeof e.exports){var a=o(0,t);void 0!==a&&(e.exports=a)}else r=[n,t],void 0===(s="function"==typeof(i=o)?i.apply(t,r):i)||(e.exports=s)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},OmFT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{static isArrayBuffer(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}static toArrayBuffer(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e).slice().buffer}static toUint8Array(e){return this.toView(e,Uint8Array)}static toView(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}static isArrayBufferView(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}static isEqual(e,t){const n=i.toUint8Array(e),r=i.toUint8Array(t);if(n.length!==r.byteLength)return!1;for(let i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}static concat(...e){if(Array.isArray(e[0])){const t=e[0];let n=0;for(const e of t)n+=e.byteLength;const i=new Uint8Array(n);let r=0;for(const e of t){const t=this.toUint8Array(e);i.set(t,r),r+=t.length}return e[1]?this.toView(i,e[1]):i.buffer}return this.concat(e)}}class r{static fromString(e){const t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n.buffer}static toString(e){const t=i.toUint8Array(e);let n="";for(let i=0;i<t.length;i++)n+=String.fromCharCode(t[i]);return decodeURIComponent(escape(n))}}class s{static toString(e,t=!1){const n=i.toArrayBuffer(e),r=new DataView(n);let s="";for(let i=0;i<n.byteLength;i+=2){const e=r.getUint16(i,t);s+=String.fromCharCode(e)}return s}static fromString(e,t=!1){const n=new ArrayBuffer(2*e.length),i=new DataView(n);for(let r=0;r<e.length;r++)i.setUint16(2*r,e.charCodeAt(r),t);return n}}class o{static isHex(e){return"string"==typeof e&&/^[a-z0-9]+$/i.test(e)}static isBase64(e){return"string"==typeof e&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}static isBase64Url(e){return"string"==typeof e&&/^[a-zA-Z0-9-_]+$/i.test(e)}static ToString(e,t="utf8"){const n=i.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(n);case"binary":return this.ToBinary(n);case"hex":return this.ToHex(n);case"base64":return this.ToBase64(n);case"base64url":return this.ToBase64Url(n);case"utf16le":return s.toString(n,!0);case"utf16":case"utf16be":return s.toString(n);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromString(e,t="utf8"){if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return s.fromString(e,!0);case"utf16":case"utf16be":return s.fromString(e);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToBase64(e){const t=i.toUint8Array(e);if("undefined"!=typeof btoa){const e=this.ToString(t,"binary");return btoa(e)}return Buffer.from(t).toString("base64")}static FromBase64(e){const t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!o.isBase64(t))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(t)):new Uint8Array(Buffer.from(t,"base64")).buffer}static FromBase64Url(e){const t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!o.isBase64Url(t))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(t.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(e,t=o.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.FromBinary(e);case"utf8":return r.fromString(e);case"utf16":case"utf16be":return s.fromString(e);case"utf16le":case"usc2":return s.fromString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToUtf8String(e,t=o.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.ToBinary(e);case"utf8":return r.toString(e);case"utf16":case"utf16be":return s.toString(e);case"utf16le":case"usc2":return s.toString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromBinary(e){const t=e.length,n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e.charCodeAt(i);return n.buffer}static ToBinary(e){const t=i.toUint8Array(e);let n="";for(let i=0;i<t.length;i++)n+=String.fromCharCode(t[i]);return n}static ToHex(e){const t=i.toUint8Array(e),n=[],r=t.length;for(let i=0;i<r;i++){const e=t[i].toString(16).padStart(2,"0");n.push(e)}return n.join("")}static FromHex(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!o.isHex(t))throw new TypeError("Argument 'hexString' is not HEX encoded");t.length%2&&(t="0"+t);const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2){const e=t.slice(i,i+2);n[i/2]=parseInt(e,16)}return n.buffer}static ToUtf16String(e,t=!1){return s.toString(e,t)}static FromUtf16String(e,t=!1){return s.fromString(e,t)}static Base64Padding(e){const t=4-e.length%4;if(t<4)for(let n=0;n<t;n++)e+="=";return e}static formatString(e){return(null==e?void 0:e.replace(/[\n\r\t ]/g,""))||""}}o.DEFAULT_UTF8_ENCODING="utf8",t.BufferSourceConverter=i,t.Convert=o,t.assign=function(e,...t){const n=arguments[0];for(let i=1;i<arguments.length;i++){const e=arguments[i];for(const t in e)n[t]=e[t]}return n},t.combine=function(...e){const t=e.map(e=>e.byteLength).reduce((e,t)=>e+t),n=new Uint8Array(t);let i=0;return e.map(e=>new Uint8Array(e)).forEach(e=>{for(const t of e)n[i++]=t}),n.buffer},t.isEqual=function(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return s});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");const s=(e,t)=>{const n="back"===t.direction,s=t.enteringEl,o=t.leavingEl,a=Object(r.g)(s),l=a.querySelector("ion-toolbar"),c=Object(i.a)();if(c.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):c.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){const e=Object(i.a)();e.addElement(l),c.addAnimation(e)}if(o&&n){c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=Object(i.a)();e.addElement(Object(r.g)(o)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),c.addAnimation(e)}return c}},b0Xh:function(e,t,i){var r;(function(){var i=function(e){return e instanceof i?e:this instanceof i?void(this.EXIFwrapped=e):new i(e)};e.exports&&(t=e.exports=i),t.EXIF=i;var s=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},o=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},a=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},c=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function u(e){return!!e.exifdata}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return v(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,n){for(var i,r,s,o,a=new DataView(e),l={},c=t;c<t+n;)28===a.getUint8(c)&&2===a.getUint8(c+1)&&(o=a.getUint8(c+2))in h&&(s=a.getInt16(c+3),r=h[o],i=m(a,c+5,s),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(i):l[r]=[l[r],i]:l[r]=i),c++;return l}function g(e,t,n,i,r){var s,o,a=e.getUint16(n,!r),l={};for(o=0;o<a;o++)l[i[e.getUint16(s=n+12*o+2,!r)]]=f(e,s,t,0,r);return l}function f(e,t,n,i,r){var s,o,a,l,c,u,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),p=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(s=h>4?p:t+8,o=[],l=0;l<h;l++)o[l]=e.getUint8(s+l);return o;case 2:return m(e,s=h>4?p:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(s=h>2?p:t+8,o=[],l=0;l<h;l++)o[l]=e.getUint16(s+2*l,!r);return o;case 4:if(1==h)return e.getUint32(t+8,!r);for(o=[],l=0;l<h;l++)o[l]=e.getUint32(p+4*l,!r);return o;case 5:if(1==h)return c=e.getUint32(p,!r),u=e.getUint32(p+4,!r),(a=new Number(c/u)).numerator=c,a.denominator=u,a;for(o=[],l=0;l<h;l++)c=e.getUint32(p+8*l,!r),u=e.getUint32(p+4+8*l,!r),o[l]=new Number(c/u),o[l].numerator=c,o[l].denominator=u;return o;case 9:if(1==h)return e.getInt32(t+8,!r);for(o=[],l=0;l<h;l++)o[l]=e.getInt32(p+4*l,!r);return o;case 10:if(1==h)return e.getInt32(p,!r)/e.getInt32(p+4,!r);for(o=[],l=0;l<h;l++)o[l]=e.getInt32(p+8*l,!r)/e.getInt32(p+4+8*l,!r);return o}}function m(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function v(e,t){if("Exif"!=m(e,t,4))return!1;var n,i,r,u,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var p=e.getUint32(h+4,!n);if(p<8)return!1;if((i=g(e,h,h+p,o,n)).ExifIFDPointer)for(r in u=g(e,h,h+i.ExifIFDPointer,s,n)){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":u[r]=c[r][u[r]];break;case"ExifVersion":case"FlashpixVersion":u[r]=String.fromCharCode(u[r][0],u[r][1],u[r][2],u[r][3]);break;case"ComponentsConfiguration":u[r]=c.Components[u[r][0]]+c.Components[u[r][1]]+c.Components[u[r][2]]+c.Components[u[r][3]]}i[r]=u[r]}if(i.GPSInfoIFDPointer)for(r in d=g(e,h,h+i.GPSInfoIFDPointer,a,n)){switch(r){case"GPSVersionID":d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]}i[r]=d[r]}return i.thumbnail=function(e,t,n,i){var r=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var s=g(e,t,t+r,l,i);if(s.Compression)switch(s.Compression){case 6:s.JpegIFOffset&&s.JpegIFByteCount&&(s.blob=new Blob([new Uint8Array(e.buffer,t+s.JpegIFOffset,s.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",s.Compression)}else 2==s.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return s}(e,h,p,n),i}function b(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var s=e.childNodes.item(r),o=s.nodeName;if(null==t[o])t[o]=b(s);else{if(null==t[o].push){var a=t[o];t[o]=[],t[o].push(a)}t[o].push(b(s))}}return t}function y(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var s in r){var o=r[s],a=o.nodeName;void 0!==a&&(t[a]=o.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=b(i);else{if(void 0===t[l].push){var c=t[l];t[l]=[],t[l].push(c)}t[l].push(b(i))}}else t=e.textContent;return t}catch(u){console.log(u.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(u(e)?t&&t.call(e):function(e,t){function n(n){var r=d(n);e.exifdata=r||{};var s=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(r(t,n)){var s=t.getUint8(n+7);return s%2!=0&&(s+=1),0===s&&(s=4),p(e,n+8+s,t.getUint16(n+6+s))}n++}}(n);if(e.iptcdata=s||{},i.isXmpEnabled){var o=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=new DOMParser;n<i-4;){if("http"==m(t,n,4)){var s=n-1,o=t.getUint16(n-2)-1,a=m(t,s,o),l=a.indexOf("xmpmeta>")+8,c=(a=a.substring(a.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return a=a.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+a.slice(c),y(r.parseFromString(a,"text/xml"))}n++}}}(n);e.xmpdata=o||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),s=new Uint8Array(r),o=0;o<i;o++)s[o]=n.charCodeAt(o);return r}(e.src));else if(/^blob\:/i.test(e.src))(s=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||s.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(r.response),r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var s;(s=new FileReader).onload=function(e){n(e.target.result)},s.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(u(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(u(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!u(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!u(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!u(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return d(e)},void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(e,t,n,i,o)=>s(e[1],t[1],n[1],i[1],o).map(s=>r(e[0],t[0],n[0],i[0],s)),r=(e,t,n,i,r)=>r*(3*t*Math.pow(r-1,2)+r*(-3*n*r+3*n+i*r))-e*Math.pow(r-1,3),s=(e,t,n,i,r)=>o((i-=r)-3*(n-=r)+3*(t-=r)-(e-=r),3*n-6*t+3*e,3*t-3*e,e).filter(e=>e>=0&&e<=1),o=(e,t,n,i)=>{if(0===e)return((e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]})(t,n,i);const r=(3*(n/=e)-(t/=e)*t)/3,s=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===r)return[Math.pow(-s,1/3)];if(0===s)return[Math.sqrt(-r),-Math.sqrt(-r)];const o=Math.pow(s/2,2)+Math.pow(r/3,3);if(0===o)return[Math.pow(s/2,.5)-t/3];if(o>0)return[Math.pow(-s/2+Math.sqrt(o),1/3)-Math.pow(s/2+Math.sqrt(o),1/3)-t/3];const a=Math.sqrt(Math.pow(-r/3,3)),l=Math.acos(-s/(2*Math.sqrt(Math.pow(-r/3,3)))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});const r=(e,t,n,i)=>{const r=s(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;let o,a;return e.__zone_symbol__addEventListener?(o="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(o="addEventListener",a="removeEventListener"),e[o](t,n,r),()=>{e[a](t,n,r)}},s=e=>{if(void 0===o)try{const t=Object.defineProperty({},"passive",{get:()=>{o=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){o=!1}return!!o};let o;const a=e=>e instanceof Document?e:e.ownerDocument,l=e=>{let t=!1,n=!1,s=!0,o=!1;const l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,p=l.onWillStart,g=l.onStart,f=l.onEnd,m=l.notCaptured,v=l.onMove,b=l.threshold,y=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=((e,t,n)=>{const i=n*(Math.PI/180),r="x"===e,s=Math.cos(i),o=t*t;let a=0,l=0,c=!1,u=0;return{start(e,t){a=e,l=t,u=0,c=!0},detect(e,t){if(!c)return!1;const n=e-a,i=t-l,d=n*n+i*i;if(d<o)return!1;const h=Math.sqrt(d),p=(r?n:i)/h;return u=p>s?1:p<-s?-1:0,c=!1,!0},isGesture:()=>0!==u,getDirection:()=>u}})(l.direction,l.threshold,l.maxAngle),A=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),C=()=>{t&&(o=!1,v&&v(_))},S=()=>!(A&&!A.capture()||(t=!0,s=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,p?p(_).then(k):k(),0)),k=()=>{w&&(()=>{if("undefined"!=typeof document){const e=document.activeElement;null!==e&&e.blur&&e.blur()}})(),g&&g(_),s=!0},E=()=>{t=!1,n=!1,o=!1,s=!0,A.release()},P=e=>{const n=t,i=s;E(),i&&(c(_,e),n?f&&f(_):m&&m(_))},D=((e,t,n,i,s)=>{let o,l,c,u,d,h,p,g=0;const f=i=>{g=Date.now()+2e3,t(i)&&(!l&&n&&(l=r(e,"touchmove",n,s)),c||(c=r(e,"touchend",v,s)),u||(u=r(e,"touchcancel",v,s)))},m=i=>{g>Date.now()||t(i)&&(!h&&n&&(h=r(a(e),"mousemove",n,s)),p||(p=r(a(e),"mouseup",b,s)))},v=e=>{y(),i&&i(e)},b=e=>{w(),i&&i(e)},y=()=>{l&&l(),c&&c(),u&&u(),l=c=u=void 0},w=()=>{h&&h(),p&&p(),h=p=void 0},_=()=>{y(),w()},x=(t=!0)=>{t?(o||(o=r(e,"touchstart",f,s)),d||(d=r(e,"mousedown",m,s))):(o&&o(),d&&d(),o=d=void 0,_())};return{enable:x,stop:_,destroy:()=>{x(!1),i=n=t=void 0}}})(l.el,e=>{const t=d(e);return!(n||!s)&&(u(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(A.release(),!!A.start()&&(n=!0,0===b?S():(x.start(_.startX,_.startY),!0))))},e=>{t?!o&&s&&(o=!0,c(_,e),requestAnimationFrame(C)):(c(_,e),x.detect(_.currentX,_.currentY)&&(x.isGesture()&&S()||O()))},P,{capture:!1,passive:y}),O=()=>{E(),D.stop(),m&&m(_)};return{enable(e=!0){e||(t&&P(void 0),E()),D.enable(e)},destroy(){A.destroy(),D.destroy()}}},c=(e,t)=>{if(!t)return;const n=e.currentX,i=e.currentY,r=e.currentTime;u(t,e);const s=e.currentX,o=e.currentY,a=(e.currentTime=d(t))-r;if(a>0&&a<100){const t=(o-i)/a;e.velocityX=(s-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=s-e.startX,e.deltaY=o-e.startY,e.event=t},u=(e,t)=>{let n=0,i=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,i=e.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},d=e=>e.timeStamp||Date.now()},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return u});var i=n("wEJo"),r=n("1vRN");const s="ionViewWillEnter",o="ionViewDidEnter",a="ionViewWillLeave",l="ionViewDidLeave",c="ionViewWillUnload",u=e=>new Promise((t,n)=>{Object(i.f)(()=>{d(e),h(e).then(n=>{n.animation&&n.animation.destroy(),p(e),t(n)},t=>{p(e),n(t)})})}),d=e=>{const t=e.enteringEl,n=e.leavingEl;k(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=async e=>{const t=await g(e);return t&&i.a.isBrowser?f(t,e):m(e)},p=e=>{const t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},g=async e=>{if(e.leavingEl&&e.animated&&0!==e.duration)return e.animationBuilder?e.animationBuilder:"ios"===e.mode?(await Promise.resolve().then(n.bind(null,"lTIg"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"RQGG"))).mdTransitionAnimation},f=async(e,t)=>{await v(t,!0);const n=e(t.baseEl,t);w(t.enteringEl,t.leavingEl);const i=await y(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&_(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},m=async e=>{const t=e.enteringEl,n=e.leavingEl;return await v(e,!1),w(t,n),_(t,n),{hasCompleted:!0}},v=async(e,t)=>{const n=(void 0!==e.deepWait?e.deepWait:t)?[C(e.enteringEl),C(e.leavingEl)]:[A(e.enteringEl),A(e.leavingEl)];await Promise.all(n),await b(e.viewIsReady,e.enteringEl)},b=async(e,t)=>{e&&await e(t)},y=(e,t)=>{const n=t.progressCallback,i=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),i},w=(e,t)=>{x(t,a),x(e,s)},_=(e,t)=>{x(e,o),x(t,l)},x=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},A=e=>e?new Promise(t=>Object(r.c)(e,t)):Promise.resolve(),C=async e=>{const t=e;if(t){if(null!=t.componentOnReady&&null!=await t.componentOnReady())return;await Promise.all(Array.from(t.children).map(C))}},S=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},k=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=e=>e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,13],"./ion-alert.entry.js":["Q8AI",0,14],"./ion-app_8.entry.js":["hgI1",0,15],"./ion-avatar_3.entry.js":["CfoV",0,16],"./ion-back-button.entry.js":["Nt02",0,17],"./ion-backdrop.entry.js":["Q2Bp",18],"./ion-button_2.entry.js":["0Pbj",0,19],"./ion-card_5.entry.js":["ydQj",0,20],"./ion-checkbox.entry.js":["4fMi",0,21],"./ion-chip.entry.js":["czK9",0,22],"./ion-col_3.entry.js":["/CAe",23],"./ion-datetime_3.entry.js":["WgF3",0,24],"./ion-fab_3.entry.js":["uQcF",0,25],"./ion-img.entry.js":["wHD8",26],"./ion-infinite-scroll_2.entry.js":["2lz6",27],"./ion-input.entry.js":["ercB",0,28],"./ion-item-option_3.entry.js":["MGMP",0,29],"./ion-item_8.entry.js":["9bur",0,30],"./ion-loading.entry.js":["cABk",0,31],"./ion-menu_3.entry.js":["kyFE",0,32],"./ion-modal.entry.js":["TvZU",0,33],"./ion-nav_2.entry.js":["vnES",0,34],"./ion-popover.entry.js":["qCuA",0,35],"./ion-progress-bar.entry.js":["0tOe",0,36],"./ion-radio_2.entry.js":["h11V",0,37],"./ion-range.entry.js":["XGij",0,38],"./ion-refresher_2.entry.js":["nYbb",0,39],"./ion-reorder_2.entry.js":["smMY",0,40],"./ion-ripple-effect.entry.js":["STjf",41],"./ion-route_4.entry.js":["k5eQ",0,42],"./ion-searchbar.entry.js":["OR5t",0,43],"./ion-segment_2.entry.js":["fSgp",0,44],"./ion-select_3.entry.js":["lfGF",0,45],"./ion-slide_2.entry.js":["5xYT",46],"./ion-spinner.entry.js":["nI0H",0,47],"./ion-split-pane.entry.js":["NAQR",48],"./ion-tab-bar_2.entry.js":["knkW",0,49],"./ion-tab_2.entry.js":["TpdJ",0,50],"./ion-text.entry.js":["ISmu",0,51],"./ion-textarea.entry.js":["U7LX",0,52],"./ion-toast.entry.js":["L3sA",0,53],"./ion-toggle.entry.js":["IUOf",0,54],"./ion-virtual-scroll.entry.js":["8Mb5",55]};function r(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id="kLfG",e.exports=r},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.15","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","engines":{"npm":"6.14.5","node":"14.4.0"},"scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"3.1.0","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return d}),n.d(t,"shadow",function(){return o});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");const s=e=>document.querySelector(e+".ion-cloned-element"),o=e=>e.shadowRoot||e,a=e=>{const t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){const e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{const n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs");let i=[];if(null!=n){const e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(i=e.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");for(const r of i){const e=r.closest("ion-header"),n=e&&!e.classList.contains("header-collapse-condense-inactive"),i=r.querySelector("ion-back-button"),s=r.classList.contains("buttons-collapse"),o="start"===r.slot||""===r.slot;if(null!==i&&o&&(s&&n&&t||!s))return i}return null},c=(e,t,n,r,a,l)=>{const c=t?`calc(100% - ${l.right+4}px)`:l.left-4+"px",u=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",p=t?"right":"left",g=t?"left":"right",f=n?[{offset:0,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`}],m=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`}],v=Object(i.a)(),b=Object(i.a)(),y=s("ion-back-button"),w=o(y).querySelector(".button-text"),_=o(y).querySelector("ion-icon");y.text=r.text,y.mode=r.mode,y.icon=r.icon,y.color=r.color,y.disabled=r.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),b.addElement(_),v.addElement(w),v.beforeStyles({"transform-origin":p+" center"}).beforeAddWrite(()=>{r.style.setProperty("display","none"),y.style.setProperty(p,c)}).afterAddWrite(()=>{r.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(p)}).keyframes(f),b.beforeStyles({"transform-origin":g+" center"}).keyframes(m),e.addAnimation([v,b])},u=(e,t,n,r,o,a)=>{const l=t?`calc(100% - ${o.right}px)`:o.left+"px",c=t?"-18px":"18px",u=t?"right":"left",d=n?[{offset:0,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.5)`}],h=s("ion-title"),p=Object(i.a)();h.innerText=r.innerText,h.size=r.size,h.color=r.color,p.addElement(h),p.beforeStyles({"transform-origin":u+" center",height:"46px",display:"",position:"relative",[u]:l}).beforeAddWrite(()=>{r.style.setProperty("display","none")}).afterAddWrite(()=>{r.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(d),e.addAnimation(p)},d=(e,t)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",s="opacity",d="transform",h="0%",p=.8,g="rtl"===e.ownerDocument.dir,f=g?"-99.5%":"99.5%",m=g?"33%":"-33%",v=t.enteringEl,b=t.leavingEl,y="back"===t.direction,w=v.querySelector(":scope > ion-content"),_=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),x=v.querySelectorAll(":scope > ion-header > ion-toolbar"),A=Object(i.a)(),C=Object(i.a)();if(A.addElement(v).duration(t.duration||540).easing(t.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),b&&e){const t=Object(i.a)();t.addElement(e),A.addAnimation(t)}if(w||0!==x.length||0!==_.length?(C.addElement(w),C.addElement(_)):C.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(C),y?C.beforeClearStyles([s]).fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(s,p,1):C.beforeClearStyles([s]).fromTo("transform",`translateX(${f})`,`translateX(${h})`),w){const e=o(w).querySelector(".transition-effect");if(e){const t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),r=Object(i.a)(),o=Object(i.a)(),a=Object(i.a)();r.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),o.addElement(t).beforeClearStyles([s]).fromTo(s,0,.1),a.addElement(n).beforeClearStyles([s]).fromTo(s,.03,.7),r.addAnimation([o,a]),C.addAnimation([r])}}const S=v.querySelector("ion-header.header-collapse-condense"),{forward:k,backward:E}=((e,t,n,i,r)=>{const s=l(i,n),o=a(r),d=a(i),h=l(r,n),p=null!==s&&null!==o&&!n,g=null!==d&&null!==h&&n;if(p){const i=o.getBoundingClientRect(),r=s.getBoundingClientRect();u(e,t,n,o,i,r),c(e,t,n,s,i,r)}else if(g){const i=d.getBoundingClientRect(),r=h.getBoundingClientRect();u(e,t,n,d,i,r),c(e,t,n,h,i,r)}return{forward:p,backward:g}})(A,g,y,v,b);if(x.forEach(e=>{const t=Object(i.a)();t.addElement(e),A.addAnimation(t);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const r=Object(i.a)(),a=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive");let u;u=a.filter(y?e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t}:e=>!e.classList.contains("buttons-collapse")),r.addElement(u);const d=Object(i.a)();d.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const p=Object(i.a)();p.addElement(o(e).querySelector(".toolbar-background"));const v=Object(i.a)(),b=e.querySelector("ion-back-button");if(b&&v.addElement(b),t.addAnimation([n,r,d,p,v]),r.fromTo(s,.01,1),d.fromTo(s,.01,1),y)c||n.fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(s,.01,1),d.fromTo("transform",`translateX(${m})`,`translateX(${h})`),v.fromTo(s,.01,1);else if(S||n.fromTo("transform",`translateX(${f})`,`translateX(${h})`).fromTo(s,.01,1),d.fromTo("transform",`translateX(${f})`,`translateX(${h})`),p.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?p.fromTo("transform",g?"translateX(-100%)":"translateX(100%)","translateX(0px)"):p.fromTo(s,.01,"var(--opacity)"),k||v.fromTo(s,.01,1),b&&!k){const e=Object(i.a)();e.addElement(o(b).querySelector(".button-text")).fromTo("transform",g?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(e)}}),b){const e=Object(i.a)(),t=b.querySelector(":scope > ion-content"),n=b.querySelectorAll(":scope > ion-header > ion-toolbar"),a=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(t||0!==n.length||0!==a.length?(e.addElement(t),e.addElement(a)):e.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(e),y){e.beforeClearStyles([s]).fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)");const t=Object(r.g)(b);A.afterAddWrite(()=>{"normal"===A.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(s,1,p);if(t){const n=o(t).querySelector(".transition-effect");if(n){const t=n.querySelector(".transition-cover"),r=n.querySelector(".transition-shadow"),o=Object(i.a)(),a=Object(i.a)(),l=Object(i.a)();o.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([s]).fromTo(s,.1,0),l.addElement(r).beforeClearStyles([s]).fromTo(s,.7,.03),o.addAnimation([a,l]),e.addAnimation([o])}}n.forEach(e=>{const t=Object(i.a)();t.addElement(e);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const r=Object(i.a)(),a=e.querySelectorAll("ion-buttons,[menuToggle]"),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive"),u=Array.from(a).filter(e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t});r.addElement(u);const p=Object(i.a)(),f=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");f.length>0&&p.addElement(f);const v=Object(i.a)();v.addElement(o(e).querySelector(".toolbar-background"));const b=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([n,r,p,b,v]),A.addAnimation(t),b.fromTo(s,.99,0),r.fromTo(s,.99,0),p.fromTo(s,.99,0),y){if(c||n.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)").fromTo(s,.99,0),p.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)"),v.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?v.fromTo("transform","translateX(0px)",g?"translateX(-100%)":"translateX(100%)"):v.fromTo(s,"var(--opacity)",0),w&&!E){const e=Object(i.a)();e.addElement(o(w).querySelector(".button-text")).fromTo("transform",`translateX(${h})`,`translateX(${(g?-124:124)+"px"})`),t.addAnimation(e)}}else c||n.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(s,.99,0).afterClearStyles([d,s]),p.fromTo("transform",`translateX(${h})`,`translateX(${m})`).afterClearStyles([d,s]),b.afterClearStyles([s]),n.afterClearStyles([s]),r.afterClearStyles([s])})}return A}catch(n){throw n}}},"m9/o":function(e,t,n){"use strict";n.r(t);var i={};function r(e){return"function"==typeof e}n.r(i),n.d(i,"Any",function(){return FN}),n.d(i,"BaseBlock",function(){return IF}),n.d(i,"BaseStringBlock",function(){return MF}),n.d(i,"BitString",function(){return QF}),n.d(i,"BmpString",function(){return bN}),n.d(i,"Boolean",function(){return qF}),n.d(i,"CharacterString",function(){return DN}),n.d(i,"Choice",function(){return NN}),n.d(i,"Constructed",function(){return HF}),n.d(i,"DATE",function(){return TN}),n.d(i,"DateTime",function(){return BN}),n.d(i,"Duration",function(){return RN}),n.d(i,"EndOfContent",function(){return WF}),n.d(i,"Enumerated",function(){return iN}),n.d(i,"GeneralString",function(){return PN}),n.d(i,"GeneralizedTime",function(){return IN}),n.d(i,"GraphicString",function(){return kN}),n.d(i,"HexBlock",function(){return SF}),n.d(i,"IA5String",function(){return SN}),n.d(i,"Integer",function(){return nN}),n.d(i,"Null",function(){return $F}),n.d(i,"NumericString",function(){return _N}),n.d(i,"ObjectIdentifier",function(){return oN}),n.d(i,"OctetString",function(){return ZF}),n.d(i,"Primitive",function(){return NF}),n.d(i,"PrintableString",function(){return xN}),n.d(i,"RawData",function(){return zN}),n.d(i,"RelativeObjectIdentifier",function(){return cN}),n.d(i,"Repeated",function(){return VN}),n.d(i,"Sequence",function(){return uN}),n.d(i,"Set",function(){return dN}),n.d(i,"TIME",function(){return LN}),n.d(i,"TeletexString",function(){return AN}),n.d(i,"TimeOfDay",function(){return MN}),n.d(i,"UTCTime",function(){return ON}),n.d(i,"UniversalString",function(){return wN}),n.d(i,"Utf8String",function(){return mN}),n.d(i,"ValueBlock",function(){return EF}),n.d(i,"VideotexString",function(){return CN}),n.d(i,"ViewWriter",function(){return _F}),n.d(i,"VisibleString",function(){return EN}),n.d(i,"compareSchema",function(){return jN}),n.d(i,"fromBER",function(){return zF}),n.d(i,"verifySchema",function(){return HN});let s=!1;const o={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 s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function a(e){setTimeout(()=>{throw e},0)}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete(){}},c=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const d=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(r(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(a){t=a instanceof d?p(a.errors):[a]}}if(c(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(u(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof d?t=t.concat(p(a.errors)):t.push(a)}}}if(t)throw new d(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function p(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const g=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[g](){return this}static create(e,t,n){const i=new f(e,t,n);return i.syncErrorThrowable=!1,i}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 m extends f{constructor(e,t,n,i){let s;super(),this._parentSubscriber=e;let o=this;r(t)?s=t:t&&(s=t.next,n=t.error,i=t.complete,t!==l&&(o=Object.create(t),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.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}=o;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):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.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(),o.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(a(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const v=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function b(e){return e}let y=(()=>{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:i}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[g])return e[g]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.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 f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=w(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[v](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?b:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=w(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function w(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const _=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class x extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class A extends f{constructor(e){super(e),this.destination=e}}let C=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[g](){return new A(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].next(e)}}error(e){if(this.closed)throw new _;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new _;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new _;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new _;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new x(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=(e,t)=>new S(e,t),e})();class S extends C{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}function E(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new P(e,t))}}class P{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new D(e,this.project,this.thisArg))}}class D extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const O=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const T=I(),M=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function B(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e&&"function"==typeof e[v])return i=e,e=>{const t=i[v]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(M(e))return O(e);if(B(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,a),e);if(e&&"function"==typeof e[T])return t=e,e=>{const n=t[T]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,i};function L(e,t){return new y(n=>{const i=new h;let r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function F(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[v]}(e))return function(e,t){return new y(n=>{const i=new h;return i.add(t.schedule(()=>{const r=e[v]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(B(e))return function(e,t){return new y(n=>{const i=new h;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(M(e))return L(e,t);if(function(e){return e&&"function"==typeof e[T]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(n=>{const i=new h;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=e[T](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof y?e:new y(R(e))}class N extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function z(e,t){if(!t.closed)return e instanceof y?e.subscribe(t):R(e)(t)}function j(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(j((n,i)=>F(e(n,i)).pipe(E((e,r)=>t(n,e,i,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new H(e,n)))}class H{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new U(e,this.project,this.concurrent))}}class U extends V{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.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new N(this),n=this.destination;n.add(t);const i=z(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function W(e=Number.POSITIVE_INFINITY){return j(b,e)}function G(e,t){return t?L(e,t):new y(O(e))}function q(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return k(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof y?e[0]:W(t)(G(e,n))}function Y(){return function(e){return e.lift(new Z(e))}}class Z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new K(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class K extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Q extends y{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 h,e.add(this.source.subscribe(new J(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return Y()(this)}}const X=(()=>{const e=Q.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 J extends A{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()}}}function ee(){return new C}function te(){return e=>{return Y()((t=ee,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,X);return i.source=e,i.subjectFactory=n,i})(e));var t}}function ne(e){for(let t in e)if(e[t]===ne)return t;throw Error("Could not find renamed property on target object.")}function ie(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function re(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(re).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const oe=ne({__forward_ref__:ne});function ae(e){return e.__forward_ref__=ae,e.toString=function(){return re(this())},e}function le(e){return ce(e)?e():e}function ce(e){return"function"==typeof e&&e.hasOwnProperty(oe)&&e.__forward_ref__===ae}class ue extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function he(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}function pe(e,t){const n=t?" in "+t:"";throw new ue("201",`No provider for ${he(e)} found${n}`)}function ge(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const fe=ge;function me(e){return{providers:e.providers||[],imports:e.imports||[]}}function ve(e){return be(e,we)||be(e,xe)}function be(e,t){return e.hasOwnProperty(t)?e[t]:null}function ye(e){return e&&(e.hasOwnProperty(_e)||e.hasOwnProperty(Ae))?e[_e]:null}const we=ne({\u0275prov:ne}),_e=ne({\u0275inj:ne}),xe=ne({ngInjectableDef:ne}),Ae=ne({ngInjectorDef:ne});var Ce=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let Se;function ke(e){const t=Se;return Se=e,t}function Ee(e,t,n){const i=ve(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ce.Optional?null:void 0!==t?t:void pe(re(e),"Injector")}function Pe(e){return{toString:e}.toString()}var De=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Oe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Ie="undefined"!=typeof globalThis&&globalThis,Te="undefined"!=typeof window&&window,Me="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Be="undefined"!=typeof global&&global,Re=Ie||Be||Te||Me,Le={},Fe=[],Ne=[],Ve=ne({\u0275cmp:ne}),ze=ne({\u0275dir:ne}),je=ne({\u0275pipe:ne}),He=ne({\u0275mod:ne}),Ue=ne({\u0275loc:ne}),We=ne({\u0275fac:ne}),$e=ne({__NG_ELEMENT_ID__:ne});let Ge=0;function qe(e){return Pe(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===De.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Oe.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=Ge++,n.inputs=Xe(e.inputs,t),n.outputs=Xe(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ye):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ze):null,n})}function Ye(e){return tt(e)||function(e){return e[ze]||null}(e)}function Ze(e){return function(e){return e[je]||null}(e)}const Ke={};function Qe(e){const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Pe(()=>{Ke[e.id]=e.type}),t}function Xe(e,t){if(null==e)return Le;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const Je=qe;function et(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function tt(e){return e[Ve]||null}function nt(e,t){const n=e[He]||null;if(!n&&!0===t)throw new Error(`Type ${re(e)} does not have '\u0275mod' property.`);return n}function it(e){return Array.isArray(e)&&"object"==typeof e[1]}function rt(e){return Array.isArray(e)&&!0===e[1]}function st(e){return 0!=(8&e.flags)}function ot(e){return 2==(2&e.flags)}function at(e){return 1==(1&e.flags)}function lt(e){return null!==e.template}function ct(e,t){return e.hasOwnProperty(We)?e[We]:null}class ut{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function dt(){return ht}function ht(e){return e.type.prototype.ngOnChanges&&(e.setInput=gt),pt}function pt(){const e=ft(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Le)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function gt(e,t,n,i){const r=ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Le,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new ut(l&&l.currentValue,t,o===Le),e[i]=t}function ft(e){return e.__ngSimpleChanges__||null}dt.ngInherit=!0;let mt=void 0;function vt(){return void 0!==mt?mt:"undefined"!=typeof document?document:void 0}function bt(e){return!!e.listen}const yt={createRenderer:(e,t)=>vt()};function wt(e){for(;Array.isArray(e);)e=e[0];return e}function _t(e,t){return wt(t[e])}function xt(e,t){return wt(t[e.index])}function At(e,t){return e.data[t]}function Ct(e,t){return e[t]}function St(e,t){const n=t[e];return it(n)?n:n[0]}function kt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Et(e){return 4==(4&e[2])}function Pt(e){return 128==(128&e[2])}function Dt(e,t){return null==t?null:e[t]}function Ot(e){e[18]=0}function It(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Tt={lFrame:rn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mt(){return Tt.bindingsEnabled}function Bt(){return Tt.lFrame.lView}function Rt(){return Tt.lFrame.tView}function Lt(e){Tt.lFrame.contextLView=e}function Ft(){let e=Nt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Nt(){return Tt.lFrame.currentTNode}function Vt(e,t){const n=Tt.lFrame;n.currentTNode=e,n.isParent=t}function zt(){return Tt.lFrame.isParent}function jt(){Tt.lFrame.isParent=!1}function Ht(){return Tt.isInCheckNoChangesMode}function Ut(e){Tt.isInCheckNoChangesMode=e}function Wt(){const e=Tt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $t(){return Tt.lFrame.bindingIndex}function Gt(){return Tt.lFrame.bindingIndex++}function qt(e){const t=Tt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yt(e,t){const n=Tt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zt(t)}function Zt(e){Tt.lFrame.currentDirectiveIndex=e}function Kt(e){const t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Qt(){return Tt.lFrame.currentQueryIndex}function Xt(e){Tt.lFrame.currentQueryIndex=e}function Jt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function en(e,t,n){if(n&Ce.SkipSelf){let i=t,r=e;for(;i=i.parent,!(null!==i||n&Ce.Host||(i=Jt(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}const i=Tt.lFrame=nn();return i.currentTNode=t,i.lView=e,!0}function tn(e){const t=nn(),n=e[1];Tt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function nn(){const e=Tt.lFrame,t=null===e?null:e.child;return null===t?rn(e):t}function rn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function sn(){const e=Tt.lFrame;return Tt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const on=sn;function an(){const e=sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ln(){return Tt.lFrame.selectedIndex}function cn(e){Tt.lFrame.selectedIndex=e}function un(){const e=Tt.lFrame;return At(e.tView,e.selectedIndex)}function dn(){Tt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function hn(){Tt.lFrame.currentNamespace=null}function pn(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function gn(e,t,n){vn(e,t,3,n)}function fn(e,t,n,i){(3&e[2])===n&&vn(e,t,n,i)}function mn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vn(e,t,n,i){const r=null!=i?i:-1,s=t.length-1;let o=0;for(let a=void 0!==i?65535&e[18]:0;a<s;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<r||-1==r)&&(bn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function bn(e,t,n,i){const r=n[i]<0,s=n[i+1],o=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}class yn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function wn(e,t,n){const i=bt(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],l=n[r++];i?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=n[++r];xn(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function _n(e){return 3===e||4===e||6===e}function xn(e){return 64===e.charCodeAt(0)}function An(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Cn(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Cn(e,t,n,i,r){let s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){const n=e[s++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=s-1;break}}}for(;s<e.length;){const t=e[s];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function Sn(e){return-1!==e}function kn(e){return 32767&e}function En(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}let Pn=!0;function Dn(e){const t=Pn;return Pn=e,t}let On=0;function In(e,t){const n=Mn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Tn(i.data,e),Tn(t,null),Tn(i.blueprint,null));const r=Bn(e,t),s=e.injectorIndex;if(Sn(r)){const e=kn(r),n=En(r,t),i=n[1].data;for(let r=0;r<8;r++)t[s+r]=n[e+r]|i[e+r]}return t[s+8]=r,s}function Tn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Bn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(i=2===t?e.declTNode:1===t?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Rn(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty($e)&&(i=n[$e]),null==i&&(i=n[$e]=On++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Ln(e,t,n){if(n&Ce.Optional)return e;pe(t,"NodeInjector")}function Fn(e,t,n,i){if(n&Ce.Optional&&void 0===i&&(i=null),0==(n&(Ce.Self|Ce.Host))){const r=e[9],s=ke(void 0);try{return r?r.get(t,i,n&Ce.Optional):Ee(t,i,n&Ce.Optional)}finally{ke(s)}}return Ln(i,t,n)}function Nn(e,t,n,i=Ce.Default,r){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty($e)?e[$e]:void 0;return"number"==typeof t?t>=0?255&t:zn:t}(n);if("function"==typeof s){if(!en(t,e,i))return i&Ce.Host?Ln(r,n,i):Fn(t,n,i,r);try{const e=s();if(null!=e||i&Ce.Optional)return e;pe(n)}finally{on()}}else if("number"==typeof s){let r=null,o=Mn(e,t),a=-1,l=i&Ce.Host?t[16][6]:null;for((-1===o||i&Ce.SkipSelf)&&(a=-1===o?Bn(e,t):t[o+8],-1!==a&&$n(i,!1)?(r=t[1],o=kn(a),t=En(a,t)):o=-1);-1!==o;){const e=t[1];if(Wn(s,o,e.data)){const e=jn(o,t,n,r,i,l);if(e!==Vn)return e}a=t[o+8],-1!==a&&$n(i,t[1].data[o+8]===l)&&Wn(s,o,t)?(r=e,o=kn(a),t=En(a,t)):o=-1}}}return Fn(t,n,i,r)}const Vn={};function zn(){return new Gn(Ft(),Bt())}function jn(e,t,n,i,r,s){const o=t[1],a=o.data[e+8],l=Hn(a,o,n,null==i?ot(a)&&Pn:i!=o&&0!=(3&a.type),r&Ce.Host&&s===a);return null!==l?Un(t,o,l,a):Vn}function Hn(e,t,n,i,r){const s=e.providerIndexes,o=t.data,a=1048575&s,l=e.directiveStart,c=s>>20,u=r?a+c:e.directiveEnd;for(let d=i?a:a+c;d<u;d++){const e=o[d];if(d<l&&n===e||d>=l&&e.type===n)return d}if(r){const e=o[l];if(e&&lt(e)&&e.type===n)return l}return null}function Un(e,t,n,i){let r=e[n];const s=t.data;if(r instanceof yn){const o=r;o.resolving&&function(e,t){throw new ue("200","Circular dependency in DI detected for "+e)}(he(s[n]));const a=Dn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ke(o.injectImpl):null;en(e,i,Ce.Default);try{r=e[n]=o.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const i=ht(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==l&&ke(l),Dn(a),o.resolving=!1,on()}}return r}function Wn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function $n(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class Gn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Nn(this._tNode,this._lView,e,void 0,t)}}function qn(e){return Pe(()=>{const t=e.prototype.constructor,n=t[We]||Yn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[We]||Yn(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function Yn(e){return ce(e)?()=>{const t=Yn(le(e));return t&&t()}:ct(e)}function Zn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const r=n[i];if(_n(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(r===t)return n[i+1];i+=2}}}return null}(Ft(),e)}function Kn(e,t,n){return Pe(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Qn=function(){return Kn("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Zn(e)}))}();class Xn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ge({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Jn=new Xn("AnalyzeForEntryComponents"),ei=Function;function ti(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),ti(i,t)):t!==e&&t.push(i)}return t}function ni(e,t){e.forEach(e=>Array.isArray(e)?ni(e,t):t(e))}function ii(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ri(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function si(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function oi(e,t,n){let i=li(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ai(e,t){const n=li(e,t);if(n>=0)return e[1|n]}function li(e,t){return function(e,t,n){let i=0,r=e.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=e[n<<1];if(t===s)return n<<1;s>t?r=n:i=n+1}return~(r<<1)}(e,t)}const ci={},ui=/\n/gm,di=ne({provide:String,useValue:ne});let hi=void 0;function pi(e){const t=hi;return hi=e,t}function gi(e,t=Ce.Default){if(void 0===hi)throw new Error("inject() must be called from an injection context");return null===hi?Ee(e,void 0,t):hi.get(e,t&Ce.Optional?null:void 0,t)}function fi(e,t=Ce.Default){return(Se||gi)(le(e),t)}const mi=fi;function vi(e){const t=[];for(let n=0;n<e.length;n++){const i=le(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=Ce.Default;for(let t=0;t<i.length;t++){const r=i[t],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?e=r.token:n|=s:e=r}t.push(fi(e,n))}else t.push(fi(i))}return t}function bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const yi=bi(Kn("Inject",e=>({token:e})),-1),wi=bi(Kn("Optional"),8),_i=bi(Kn("SkipSelf"),4);let xi,Ai;function Ci(e){var t;return(null===(t=function(){if(void 0===xi&&(xi=null,Re.trustedTypes))try{xi=Re.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return xi}())||void 0===t?void 0:t.createHTML(e))||e}function Si(e){var t;return(null===(t=function(){if(void 0===Ai&&(Ai=null,Re.trustedTypes))try{Ai=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Ai}())||void 0===t?void 0:t.createHTML(e))||e}class ki{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Ei extends ki{getTypeName(){return"HTML"}}class Pi extends ki{getTypeName(){return"Style"}}class Di extends ki{getTypeName(){return"Script"}}class Oi extends ki{getTypeName(){return"URL"}}class Ii extends ki{getTypeName(){return"ResourceURL"}}function Ti(e){return e instanceof ki?e.changingThisBreaksApplicationSecurity:e}function Mi(e,t){const n=Bi(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Bi(e){return e instanceof ki&&e.getTypeName()||null}class Ri{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ci(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Li{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ci(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ci(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ni=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Vi(e){return(e=String(e)).match(Fi)||e.match(Ni)?e:"unsafe:"+e}function zi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ji(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Hi=zi("area,br,col,hr,img,wbr"),Ui=zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wi=zi("rp,rt"),$i=ji(Wi,Ui),Gi=ji(Hi,ji(Ui,zi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ji(Wi,zi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$i),qi=zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yi=zi("srcset"),Zi=ji(qi,Yi,zi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ki=zi("script,style,template");class Qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Gi.hasOwnProperty(t))return this.sanitizedSomething=!0,!Ki.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,s=t.toLowerCase();if(!Zi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=e.value;qi[s]&&(o=Vi(o)),Yi[s]&&(i=o,o=(i=String(i)).split(",").map(e=>Vi(e.trim())).join(", ")),this.buf.push(" ",t,'="',er(o),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Gi.hasOwnProperty(t)&&!Hi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(er(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const Xi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ji=/([^\#-~ |!])/g;function er(e){return e.replace(/&/g,"&amp;").replace(Xi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ji,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let tr;function nr(e,t){let n=null;try{tr=tr||function(e){const t=new Li(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch(e){return!1}}()?new Ri(t):t}(e);let i=t?String(t):"";n=tr.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=tr.getInertBodyElement(i)}while(i!==s);return Ci((new Qi).sanitizeChildren(ir(n)||n))}finally{if(n){const e=ir(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ir(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var rr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function sr(e){const t=ar();return t?Si(t.sanitize(rr.HTML,e)||""):Mi(e,"HTML")?Si(Ti(e)):nr(vt(),de(e))}function or(e){const t=ar();return t?t.sanitize(rr.URL,e)||"":Mi(e,"URL")?Ti(e):Vi(de(e))}function ar(){const e=Bt();return e&&e[12]}function lr(e){return e.ngDebugContext}function cr(e){return e.ngOriginalError}function ur(e,...t){e.error(...t)}class dr{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||ur}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?lr(e)?lr(e):this._findContext(cr(e)):null}_findOriginalError(e){let t=cr(e);for(;t&&cr(t);)t=cr(t);return t}}function hr(e,t){e.__ngContext__=t}const pr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function gr(e){return{name:"window",target:e.ownerDocument.defaultView}}function fr(e){return{name:"body",target:e.ownerDocument.body}}function mr(e){return e instanceof Function?e():e}var vr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function br(e,t){return(void 0)(e,t)}function yr(e){const t=e[3];return rt(t)?t[3]:t}function wr(e){return xr(e[13])}function _r(e){return xr(e[4])}function xr(e){for(;null!==e&&!rt(e);)e=e[4];return e}function Ar(e,t,n,i,r){if(null!=i){let s,o=!1;rt(i)?s=i:it(i)&&(o=!0,i=i[0]);const a=wt(i);0===e&&null!==n?null==r?Ir(t,n,a):Or(t,n,a,r||null,!0):1===e&&null!==n?Or(t,n,a,r||null,!0):2===e?function(e,t,n){const i=Mr(e,t);i&&function(e,t,n,i){bt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,i,r){const s=n[7];s!==wt(n)&&Ar(t,e,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];jr(r[1],r,e,t,i,s)}}(t,e,s,n,r)}}function Cr(e,t,n){return bt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Sr(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,It(r,-1)),n.splice(i,1)}function kr(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&Sr(s,i),t>0&&(e[n-1][4]=i[4]);const o=ri(e,10+t);jr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Er(e,t){if(!(256&t[2])){const n=t[11];bt(n)&&n.destroyNode&&jr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Pr(e[1],e);for(;t;){let n=null;if(it(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)it(t)&&Pr(t[1],t),t=t[3];null===t&&(t=e),it(t)&&Pr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Pr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof yn)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const e=n[s+1],o="function"==typeof e?e(t):wt(t[e]),a=i[r=n[s+2]],l=n[s+3];"boolean"==typeof l?o.removeEventListener(n[s],a,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const e=i[r=n[s+1]];n[s].call(e)}if(null!==i){for(let e=r+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&bt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&rt(t[3])){n!==t[3]&&Sr(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Dr(e,t,n){return function(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===Oe.None||t===Oe.Emulated)return null}return xt(i,n)}(e,t.parent,n)}function Or(e,t,n,i,r){bt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Ir(e,t,n){bt(e)?e.appendChild(t,n):t.appendChild(n)}function Tr(e,t,n,i,r){null!==i?Or(e,t,n,i,r):Ir(e,t,n)}function Mr(e,t){return bt(e)?e.parentNode(t):t.parentNode}function Br(e,t,n){return Rr(e,t,n)}let Rr=function(e,t,n){return 40&e.type?xt(e,n):null};function Lr(e,t,n,i){const r=Dr(e,i,t),s=t[11],o=Br(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)Tr(s,r,n[a],o,!1);else Tr(s,r,n,o,!1)}function Fr(e,t){if(null!==t){const n=t.type;if(3&n)return xt(t,e);if(4&n)return Vr(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Fr(e,n);{const n=e[t.index];return rt(n)?Vr(-1,n):wt(n)}}if(32&n)return br(t,e)()||wt(e[t.index]);{const n=Nr(e,t);return null!==n?Array.isArray(n)?n[0]:Fr(yr(e[16]),n):Fr(e,t.next)}}return null}function Nr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Vr(e,t){const n=10+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return Fr(e,i)}return t[7]}function zr(e,t,n,i,r,s,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===t&&(a&&hr(wt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)zr(e,t,n.child,i,r,s,!1),Ar(t,e,r,a,s);else if(32&l){const o=br(n,i);let l;for(;l=o();)Ar(t,e,r,l,s);Ar(t,e,r,a,s)}else 16&l?Hr(e,t,i,n,r,s):Ar(t,e,r,a,s);n=o?n.projectionNext:n.next}}function jr(e,t,n,i,r,s){zr(n,i,e.firstChild,t,r,s,!1)}function Hr(e,t,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ar(t,e,r,a[l],s);else zr(e,t,a,o[3],r,s,!0)}function Ur(e,t,n){bt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Wr(e,t,n){bt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function $r(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===i||e.charCodeAt(r+n)<=32)return r}n=r+1}}function Gr(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==$r(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function qr(e){return 4===e.type&&"ng-template"!==e.value}function Yr(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Zr(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(_n(e[t]))return t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Yr(e,l,n)||""===l&&1===t.length){if(Kr(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==e.attrs){if(!Gr(e.attrs,c,n)){if(Kr(i))return!1;o=!0}continue}const u=Qr(8&i?"class":l,r,qr(e),n);if(-1===u){if(Kr(i))return!1;o=!0;continue}if(""!==c){let e;e=u>s?"":r[u+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==$r(t,c,0)||2&i&&c!==e){if(Kr(i))return!1;o=!0}}}}else{if(!o&&!Kr(i)&&!Kr(l))return!1;if(o&&Kr(l))continue;o=!1,i=l|1&i}}return Kr(i)||o}function Kr(e){return 0==(1&e)}function Qr(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let n=!1;for(;r<t.length;){const i=t[r];if(i===e)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Xr(e,t,n=!1){for(let i=0;i<t.length;i++)if(Zr(e,t[i],n))return!0;return!1}function Jr(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function es(e,t){return e?":not("+t.trim()+")":t}function ts(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&i){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Kr(o)||(t+=es(s,r),r=""),i=o,s=s||!Kr(i);n++}return""!==r&&(t+=es(s,r)),t}const ns={};function is(e){rs(Rt(),Bt(),ln()+e,Ht())}function rs(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&gn(t,i,n)}else{const i=e.preOrderHooks;null!==i&&fn(t,i,0,n)}cn(n)}function ss(e,t){return e<<17|t<<2}function os(e){return e>>17&32767}function as(e){return 2|e}function ls(e){return(131068&e)>>2}function cs(e,t){return-131069&e|t<<2}function us(e){return 1|e}function ds(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=e.data[s];Xt(r),n.contentQueries(2,t[s],s)}}}function hs(e,t,n,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Ot(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=s,u[16]=2==t.type?e[16]:u,u}function ps(e,t,n,i,r){let s=e.data[t];if(null===s)s=function(e,t,n,i,r){const s=Nt(),o=zt(),a=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(e,t,n,i,r),Tt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const e=function(){const e=Tt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===e?-1:e.injectorIndex}return Vt(s,!0),s}function gs(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function fs(e,t,n){tn(t);try{const i=e.viewQuery;null!==i&&$s(1,i,n);const r=e.template;null!==r&&bs(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&ds(e,t),e.staticViewQueries&&$s(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)zs(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,an()}}function ms(e,t,n,i){const r=t[2];if(256==(256&r))return;tn(t);const s=Ht();try{Ot(t),Tt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&bs(e,t,n,2,i);const o=3==(3&r);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&gn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&fn(t,n,0,null),mn(t,0)}if(function(e){for(let t=wr(e);null!==t;t=_r(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],i=n[3];0==(1024&n[2])&&It(i,1),n[2]|=1024}}}(t),function(e){for(let t=wr(e);null!==t;t=_r(t))for(let e=10;e<t.length;e++){const n=t[e],i=n[1];Pt(n)&&ms(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&ds(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&gn(t,n)}else{const n=e.contentHooks;null!==n&&fn(t,n,1),mn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)cn(~i);else{const r=i,s=n[++e],o=n[++e];Yt(s,r),o(2,t[r])}}}finally{cn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Ns(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&$s(2,l,i),!s)if(o){const n=e.viewCheckHooks;null!==n&&gn(t,n)}else{const n=e.viewHooks;null!==n&&fn(t,n,2),mn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,It(t[3],-1))}finally{an()}}function vs(e,t,n,i){const r=t[10],s=!Ht(),o=Et(t);try{s&&!o&&r.begin&&r.begin(),o&&fs(e,t,i),ms(e,t,n,i)}finally{s&&!o&&r.end&&r.end()}}function bs(e,t,n,i,r){const s=ln();try{cn(-1),2&i&&t.length>20&&rs(e,t,20,Ht()),n(i,r)}finally{cn(s)}}function ys(e,t,n){if(st(t)){const i=t.directiveEnd;for(let r=t.directiveStart;r<i;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function ws(e,t,n){Mt()&&(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||In(n,t),hr(i,t);const o=n.initialInputs;for(let a=r;a<s;a++){const i=e.data[a],s=lt(i);s&&Bs(t,n,i);const l=Un(t,e,a,n);hr(l,t),null!==o&&Rs(0,a-r,l,i,0,o),s&&(St(n.index,t)[8]=l)}}(e,t,n,xt(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=Tt.lFrame.currentDirectiveIndex;try{cn(s);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];Zt(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Ds(i,r)}}finally{cn(-1),Zt(o)}}(e,t,n))}function _s(e,t,n=xt){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}function xs(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=As(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function As(e,t,n,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:ns);return n}(u,d),p="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Cs(e,t,n,i){const r=qs(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Ys(e).push(i,r.length-1))}function Ss(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ks(e,t,n,i,r,s,o,a){const l=xt(t,n);let c,u=t.inputs;var d;!a&&null!=u&&(c=u[i])?(Qs(e,n,c,i,r),ot(t)&&function(e,t){const n=St(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(d=i)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,r=null!=o?o(r,t.value||"",i):r,bt(s)?s.setProperty(l,i,r):xn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Es(e,t,n,i){let r=!1;if(Mt()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Xr(n,o.selectors,!1)&&(r||(r=[]),Rn(In(n,t),e,o.type),lt(o)?(Os(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==s){r=!0,Ts(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,l=gs(e,t,s.length,null);for(let r=0;r<s.length;r++){const c=s[r];n.mergedAttrs=An(n.mergedAttrs,c.hostAttrs),Ms(e,n,t,l,c),Is(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,i=e.data,r=t.attrs,s=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=i[l],n=e.inputs,c=null===r||qr(t)?null:Ls(n,r);s.push(c),o=Ss(n,l,o),a=Ss(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=o,t.outputs=a}(e,n)}o&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new ue("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,o)}return n.mergedAttrs=An(n.mergedAttrs,n.attrs),r}function Ps(e,t,n,i,r,s){const o=s.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const s=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function Ds(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Os(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Is(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;lt(t)&&(n[""]=e)}}function Ts(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ms(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=ct(r.type)),o=new yn(s,lt(r),null);e.blueprint[i]=o,n[i]=o,Ps(e,t,0,i,gs(e,n,r.hostVars,ns),r)}function Bs(e,t,n){const i=xt(t,e),r=xs(n),s=e[10],o=js(e,hs(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=o}function Rs(e,t,n,i,r,s){const o=s[t];if(null!==o){const e=i.setInput;for(let t=0;t<o.length;){const r=o[t++],s=o[t++],a=o[t++];null!==e?i.setInput(n,a,r,s):n[s]=a}}}function Ls(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Fs(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Ns(e,t){const n=St(t,e);if(Pt(n)){const e=n[1];80&n[2]?ms(e,n,e.template,n[8]):n[5]>0&&Vs(n)}}function Vs(e){for(let n=wr(e);null!==n;n=_r(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];ms(e,t,e.template,t[8])}else t[5]>0&&Vs(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=St(t[n],e);Pt(i)&&i[5]>0&&Vs(i)}}function zs(e,t){const n=St(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),fs(i,n,n[8])}function js(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Hs(e){for(;e;){e[2]|=64;const t=yr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Us(e,t,n){const i=t[10];i.begin&&i.begin();try{ms(e,t,e.template,n)}catch(r){throw Ks(t,r),r}finally{i.end&&i.end()}}function Ws(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=kt(n),r=i[1];vs(r,i,r.template,n)}}(e[8])}function $s(e,t,n){Xt(0),t(e,n)}const Gs=(()=>Promise.resolve(null))();function qs(e){return e[7]||(e[7]=[])}function Ys(e){return e.cleanup||(e.cleanup=[])}function Zs(e,t,n){return(null===e||lt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Ks(e,t){const n=e[9],i=n?n.get(dr,null):null;i&&i.handleError(t)}function Qs(e,t,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Xs(e,t,n){const i=_t(t,e);!function(e,t,n){bt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Js(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?s=e:1==s?r=se(r,e):2==s&&(i=se(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}const eo=new Xn("INJECTOR",-1);class to{get(e,t=ci){if(t===ci){const t=new Error(`NullInjectorError: No provider for ${re(e)}!`);throw t.name="NullInjectorError",t}return t}}const no=new Xn("Set Injector scope."),io={},ro={},so=[];let oo=void 0;function ao(){return void 0===oo&&(oo=new to),oo}function lo(e,t=null,n=null,i){return new co(e,n,t||ao(),i)}class co{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&ni(t,n=>this.processProvider(n,e,t)),ni([e],e=>this.processInjectorType(e,[],r)),this.records.set(eo,po(void 0,this));const s=this.records.get(no);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof e?null:re(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ci,n=Ce.Default){this.assertNotDestroyed();const i=pi(this);try{if(!(n&Ce.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Xn)&&ve(e);t=n&&this.injectableDefInScope(n)?po(uo(e),io):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ce.Self?ao():this.parent).get(e,t=n&Ce.Optional&&t===ci?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(re(e)),i)throw s;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=re(t);if(Array.isArray(t))r=t.map(re).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):re(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(ui,"\n  ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{pi(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(re(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=le(e)))return!1;let i=ye(e);const r=null==i&&e.ngModule||void 0,s=void 0===r?e:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=ye(r)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(s);try{ni(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];ni(i,e=>this.processProvider(e,n,i||so))}}this.injectorDefTypes.add(s);const a=ct(s)||(()=>new s);this.records.set(s,po(a,io));const l=i.providers;if(null!=l&&!o){const t=e;ni(l,e=>this.processProvider(e,t,l))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=fo(e=le(e))?e:le(e&&e.provide);const r=function(e,t,n){return go(e)?po(void 0,e.useValue):po(ho(e),io)}(e);if(fo(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=po(void 0,io,!0),t.factory=()=>vi(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,r)}hydrate(e,t){var n;return t.value===io&&(t.value=ro,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function uo(e){const t=ve(e),n=null!==t?t.factory:ct(e);if(null!==n)return n;if(e instanceof Xn)throw new Error(`Token ${re(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=si(t,"?");throw new Error(`Can't resolve all parameters for ${re(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[we]||e[xe]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function ho(e,t,n){let i=void 0;if(fo(e)){const t=le(e);return ct(t)||uo(t)}if(go(e))i=()=>le(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...vi(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>fi(le(e.useExisting));else{const t=le(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ct(t)||uo(t);i=()=>new t(...vi(e.deps))}var r;return i}function po(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function go(e){return null!==e&&"object"==typeof e&&di in e}function fo(e){return"function"==typeof e}const mo=function(e,t,n){return function(e,t=null,n=null,i){const r=lo(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let vo=(()=>{class e{static create(e,t){return Array.isArray(e)?mo(e,t,""):mo(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ci,e.NULL=new to,e.\u0275prov=ge({token:e,providedIn:"any",factory:()=>fi(eo)}),e.__NG_ELEMENT_ID__=-1,e})();function bo(e,t){pn(kt(e)[1],Ft())}function yo(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r=void 0;if(lt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const t=e;t.inputs=wo(e.inputs),t.declaredInputs=wo(e.declaredInputs),t.outputs=wo(e.outputs);const n=r.hostBindings;n&&Ao(e,n);const s=r.viewQuery,o=r.contentQueries;if(s&&_o(e,s),o&&xo(e,o),ie(e.inputs,r.inputs),ie(e.declaredInputs,r.declaredInputs),ie(e.outputs,r.outputs),lt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let i=0;i<t.length;i++){const r=t[i];r&&r.ngInherit&&r(e),r===yo&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=An(r.hostAttrs,n=An(n,r.hostAttrs))}}(i)}function wo(e){return e===Le?{}:e===Ne?[]:e}function _o(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function xo(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function Ao(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Co=null;function So(){if(!Co){const e=Re.Symbol;if(e&&e.iterator)Co=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Co=n)}}}return Co}class ko{constructor(e){this.wrapped=e}static wrap(e){return new ko(e)}static unwrap(e){return ko.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof ko}}function Eo(e){return!!Po(e)&&(Array.isArray(e)||!(e instanceof Map)&&So()in e)}function Po(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Do(e,t,n){return e[t]=n}function Oo(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Io(e,t,n,i){const r=Oo(e,t,n);return Oo(e,t+1,i)||r}function To(e,t,n,i,r){const s=Io(e,t,n,i);return Oo(e,t+2,r)||s}function Mo(e,t,n,i,r,s){const o=Io(e,t,n,i);return Io(e,t+2,r,s)||o}function Bo(e,t,n,i){const r=Bt();return Oo(r,Gt(),t)&&(Rt(),function(e,t,n,i,r,s){const o=xt(e,t);!function(e,t,n,i,r,s,o){if(null==s)bt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const a=null==o?de(s):o(s,i||"",r);bt(e)?e.setAttribute(t,r,a,n):n?t.setAttributeNS(n,r,a):t.setAttribute(r,a)}}(t[11],o,s,e.value,n,i,r)}(un(),r,e,t,n,i)),Bo}function Ro(e,t,n,i){return Oo(e,Gt(),n)?t+de(n)+i:ns}function Lo(e,t,n,i,r,s){const o=Io(e,$t(),n,r);return qt(2),o?t+de(n)+i+de(r)+s:ns}function Fo(e,t,n,i,r,s,o,a){const l=Bt(),c=Rt(),u=e+20,d=c.firstCreatePass?function(e,t,n,i,r,s,o,a,l){const c=t.consts,u=ps(t,e,4,o||null,Dt(c,a));Es(t,n,u,Dt(c,l)),pn(t,u);const d=u.tViews=As(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,i,r,s,o):c.data[u];Vt(d,!1);const h=l[11].createComment("");Lr(c,l,h,d),hr(h,l),js(l,l[u]=Fs(h,l,h,d)),at(d)&&ws(c,l,d),null!=o&&_s(l,d,a)}function No(e){return Ct(Tt.lFrame.contextLView,20+e)}function Vo(e,t=Ce.Default){const n=Bt();return null===n?fi(e,t):Nn(Ft(),n,le(e),t)}function zo(e,t,n){const i=Bt();return Oo(i,Gt(),t)&&ks(Rt(),un(),i,e,t,i[11],n,!1),zo}function jo(e,t,n,i,r){const s=r?"class":"style";Qs(e,n,t.inputs[s],s,i)}function Ho(e,t,n,i){const r=Bt(),s=Rt(),o=20+e,a=r[11],l=r[o]=Cr(a,t,Tt.lFrame.currentNamespace),c=s.firstCreatePass?function(e,t,n,i,r,s,o){const a=t.consts,l=ps(t,e,2,r,Dt(a,s));return Es(t,n,l,Dt(a,o)),null!==l.attrs&&Js(l,l.attrs,!1),null!==l.mergedAttrs&&Js(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,s,r,0,t,n,i):s.data[o];Vt(c,!0);const u=c.mergedAttrs;null!==u&&wn(a,l,u);const d=c.classes;null!==d&&Wr(a,l,d);const h=c.styles;null!==h&&Ur(a,l,h),64!=(64&c.flags)&&Lr(s,r,l,c),0===Tt.lFrame.elementDepthCount&&hr(l,r),Tt.lFrame.elementDepthCount++,at(c)&&(ws(s,r,c),ys(s,c,r)),null!==i&&_s(r,c)}function Uo(){let e=Ft();zt()?jt():(e=e.parent,Vt(e,!1));const t=e;Tt.lFrame.elementDepthCount--;const n=Rt();n.firstCreatePass&&(pn(n,e),st(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&jo(n,t,Bt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&jo(n,t,Bt(),t.stylesWithoutHost,!1)}function Wo(e,t,n,i){Ho(e,t,n,i),Uo()}function $o(e,t,n){const i=Bt(),r=Rt(),s=e+20,o=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,o=Dt(s,i),a=ps(t,e,8,"ng-container",o);return null!==o&&Js(a,o,!0),Es(t,n,a,Dt(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,n):r.data[s];Vt(o,!0);const a=i[s]=i[11].createComment("");Lr(r,i,a,o),hr(a,i),at(o)&&(ws(r,i,o),ys(r,o,i)),null!=n&&_s(i,o)}function Go(){let e=Ft();const t=Rt();zt()?jt():(e=e.parent,Vt(e,!1)),t.firstCreatePass&&(pn(t,e),st(e)&&t.queries.elementEnd(e))}function qo(e,t,n){$o(e,t,n),Go()}function Yo(){return Bt()}function Zo(e){return!!e&&"function"==typeof e.then}function Ko(e){return!!e&&"function"==typeof e.subscribe}const Qo=Ko;function Xo(e,t,n=!1,i){const r=Bt(),s=Rt(),o=Ft();return ea(s,r,r[11],o,e,t,n,i),Xo}function Jo(e,t,n=!1,i){const r=Ft(),s=Bt(),o=Rt();return ea(o,s,Zs(Kt(o.data),r,s),r,e,t,n,i),Jo}function ea(e,t,n,i,r,s,o=!1,a){const l=at(i),c=e.firstCreatePass&&Ys(e),u=qs(t);let d=!0;if(3&i.type){const h=xt(i,t),p=a?a(h):Le,g=p.target||h,f=u.length,m=a?e=>a(wt(e[i.index])).target:i.index;if(bt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const e=r[s];if(e===n&&r[s+1]===i){const e=t[7],n=r[s+2];return e.length>n?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=na(i,t,s,!1);const e=n.listen(p.name||g,r,s);u.push(s,e),c&&c.push(r,m,f,f+1)}}else s=na(i,t,s,!0),g.addEventListener(r,s,o),u.push(s),c&&c.push(r,m,f,o)}else s=na(i,t,s,!1);const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(s),o=u.length;u.push(s,e),c&&c.push(r,i.index,o,-(o+1))}}}function ta(e,t,n){try{return!1!==t(n)}catch(i){return Ks(e,i),!1}}function na(e,t,n,i){return function r(s){if(s===Function)return n;const o=2&e.flags?St(e.index,t):t;0==(32&t[2])&&Hs(o);let a=ta(t,n,s),l=r.__ngNextListenerFn__;for(;l;)a=ta(t,l,s)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function ia(e=1){return function(e){return(Tt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Tt.lFrame.contextLView))[8]}(e)}function ra(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Xr(e,s,!0):Jr(i,s))return r}else n=r}return n}function sa(e){const t=Bt()[16][6];if(!t.projection){const n=t.projection=si(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?ra(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}function oa(e,t=0,n){const i=Bt(),r=Rt(),s=ps(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),jt(),64!=(64&s.flags)&&function(e,t,n){Hr(t[11],0,t,n,Dr(e,n,t),Br(n.parent||t[6],n,t))}(r,i,s)}function aa(e,t,n){return la(e,"",t,"",n),aa}function la(e,t,n,i,r){const s=Bt(),o=Ro(s,t,n,i);return o!==ns&&ks(Rt(),un(),s,e,o,s[11],r,!1),la}function ca(e,t,n,i,r,s,o){const a=Bt(),l=Lo(a,t,n,i,r,s);return l!==ns&&ks(Rt(),un(),a,e,l,a[11],o,!1),ca}function ua(e,t,n,i,r){const s=e[n+1],o=null===t;let a=i?os(s):ls(s),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];da(e[a],t)&&(l=!0,e[a+1]=i?us(n):as(n)),a=i?os(n):ls(n)}l&&(e[n+1]=i?as(s):us(s))}function da(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&li(e,t)>=0}const ha={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pa(e){return e.substring(ha.key,ha.keyEnd)}function ga(e,t){const n=ha.textEnd;return n===t?-1:(t=ha.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ha.key=t,n),fa(e,t,n))}function fa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ma(e,t,n){return wa(e,t,n,!1),ma}function va(e,t){return wa(e,t,null,!0),va}function ba(e){_a(oi,ya,e,!0)}function ya(e,t){for(let n=function(e){return function(e){ha.key=0,ha.keyEnd=0,ha.value=0,ha.valueEnd=0,ha.textEnd=e.length}(e),ga(e,fa(e,0,ha.textEnd))}(t);n>=0;n=ga(t,n))oi(e,pa(t),!0)}function wa(e,t,n,i){const r=Bt(),s=Rt(),o=qt(2);s.firstUpdatePass&&Aa(s,e,o,i),t!==ns&&Oo(r,o,t)&&ka(s,s.data[ln()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=re(Ti(e)))),e}(t,n),i,o)}function _a(e,t,n,i){const r=Rt(),s=qt(2);r.firstUpdatePass&&Aa(r,null,s,i);const o=Bt();if(n!==ns&&Oo(o,s,n)){const a=r.data[ln()];if(Da(a,i)&&!xa(r,s)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=se(e,n||"")),jo(r,a,o,n,i)}else!function(e,t,n,i,r,s,o,a){r===ns&&(r=Fe);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let g=null,f=void 0;u===d?(l+=2,c+=2,h!==p&&(g=d,f=p)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,f=p),null!==g&&ka(e,t,n,i,g,f,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(e,t,n){if(null==n||""===n)return Fe;const i=[],r=Ti(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function xa(e,t){return t>=e.expandoStartIndex}function Aa(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[ln()],o=xa(e,n);Da(s,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const r=Kt(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Sa(n=Ca(null,e,t,n,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ca(r,e,t,n,i),null===s){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ls(i))return e[os(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Ca(null,e,t,n[1],i),n=Sa(n,t.attrs,i),function(e,t,n,i){e[os(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else s=function(e,t,n){let i=void 0;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Sa(i,e[s].hostAttrs,n);return Sa(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let o=s?t.classBindings:t.styleBindings,a=os(o),l=ls(o);e[i]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||li(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=os(e[a+1]);e[i+1]=ss(t,a),0!==t&&(e[t+1]=cs(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=ss(a,0),0!==a&&(e[a+1]=cs(e[a+1],i)),a=i;else e[i+1]=ss(l,0),0===a?a=i:e[l+1]=cs(e[l+1],i),l=i;u&&(e[i+1]=as(e[i+1])),ua(e,c,i,!0),ua(e,c,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&li(s,t)>=0&&(n[i+1]=us(n[i+1]))}(t,c,e,i,s),o=ss(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,n,o,i)}}function Ca(e,t,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=t[a],i=Sa(i,s.hostAttrs,r),s!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Sa(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),oi(e,o,!!n||t[++s]))}return void 0===e?null:e}function ka(e,t,n,i,r,s,o,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];Pa(1==(1&c)?Ea(l,t,n,r,ls(c),o):void 0)||(Pa(s)||2==(2&c)&&(s=Ea(l,null,n,r,a,o)),function(e,t,n,i,r){const s=bt(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:vr.DashCase;if(null==r)s?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),t|=vr.Important),s?e.setStyle(n,i,r,t):n.style.setProperty(i,r,o?"important":"")}}}(i,o,_t(ln(),n),r,s))}function Ea(e,t,n,i,r,s){const o=null===t;let a=void 0;for(;r>0;){const t=e[r],s=Array.isArray(t),l=s?t[1]:t,c=null===l;let u=n[r+1];u===ns&&(u=c?Fe:void 0);let d=c?ai(u,i):l===i?u:void 0;if(s&&!Pa(d)&&(d=ai(t,i)),Pa(d)&&(a=d,o))return a;const h=e[r+1];r=o?os(h):ls(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=ai(e,i))}return a}function Pa(e){return void 0!==e}function Da(e,t){return 0!=(e.flags&(t?16:32))}function Oa(e,t=""){const n=Bt(),i=Rt(),r=e+20,s=i.firstCreatePass?ps(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Lr(i,n,o,s),Vt(s,!1)}function Ia(e){return Ta("",e,""),Ia}function Ta(e,t,n){const i=Bt(),r=Ro(i,e,t,n);return r!==ns&&Xs(i,ln(),r),Ta}function Ma(e,t,n,i,r){const s=Bt(),o=Lo(s,e,t,n,i,r);return o!==ns&&Xs(s,ln(),o),Ma}function Ba(e,t,n,i,r,s,o){const a=Bt(),l=function(e,t,n,i,r,s,o,a){const l=To(e,$t(),n,r,o);return qt(3),l?t+de(n)+i+de(r)+s+de(o)+a:ns}(a,e,t,n,i,r,s,o);return l!==ns&&Xs(a,ln(),l),Ba}function Ra(e,t,n,i,r,s,o,a,l){const c=Bt(),u=function(e,t,n,i,r,s,o,a,l,c){const u=Mo(e,$t(),n,r,o,l);return qt(4),u?t+de(n)+i+de(r)+s+de(o)+a+de(l)+c:ns}(c,e,t,n,i,r,s,o,a,l);return u!==ns&&Xs(c,ln(),u),Ra}function La(e,t,n){_a(oi,ya,Ro(Bt(),e,t,n),!0)}function Fa(e,t,n){const i=Bt();return Oo(i,Gt(),t)&&ks(Rt(),un(),i,e,t,i[11],n,!0),Fa}function Na(e,t,n){const i=Bt();if(Oo(i,Gt(),t)){const r=Rt(),s=un();ks(r,s,i,e,t,Zs(Kt(r.data),s,i),n,!0)}return Na}const Va=void 0;var za=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Va,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Va,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ja={};function Ha(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ua(t);if(n)return n;const i=t.split("-")[0];if(n=Ua(i),n)return n;if("en"===i)return za;throw new Error(`Missing locale data for the locale "${e}".`)}function Ua(e){return e in ja||(ja[e]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[e]),ja[e]}var Wa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let $a="en-US";function Ga(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&($a=e.toLowerCase().replace(/_/g,"-"))}function qa(e,t,n,i,r){if(e=le(e),Array.isArray(e))for(let s=0;s<e.length;s++)qa(e[s],t,n,i,r);else{const s=Rt(),o=Bt();let a=fo(e)?e:le(e.provide),l=ho(e);const c=Ft(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(fo(e)||!e.multi){const i=new yn(l,r,Vo),p=Ka(a,t,r?u:u+h,d);-1===p?(Rn(In(c,o),s,a),Ya(s,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ka(a,t,u+h,d),g=Ka(a,t,u,u+h),f=p>=0&&n[p],m=g>=0&&n[g];if(r&&!m||!r&&!f){Rn(In(c,o),s,a);const u=function(e,t,n,i,r){const s=new yn(e,n,Vo);return s.multi=[],s.index=t,s.componentProviders=0,Za(s,r,i&&!n),s}(r?Xa:Qa,n.length,r,i,l);!r&&m&&(n[g].providerFactory=u),Ya(s,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Ya(s,e,p>-1?p:g,Za(n[r?g:p],l,!r&&i));!r&&i&&m&&n[g].componentProviders++}}}function Ya(e,t,n,i){const r=fo(t);if(r||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[i,s]):o[e+1].push(i,s)}else o.push(n,s)}}}function Za(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ka(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function Qa(e,t,n,i){return Ja(this.multi,[])}function Xa(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Un(n,n[1],this.providerFactory.index,i);s=t.slice(0,e),Ja(r,s);for(let n=e;n<t.length;n++)s.push(t[n])}else s=[],Ja(r,s);return s}function Ja(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function el(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=Rt();if(i.firstCreatePass){const r=lt(e);qa(n,i.data,i.blueprint,r,!0),qa(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class tl{}class nl{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${re(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let il=(()=>{class e{}return e.NULL=new nl,e})();function rl(...e){}function sl(e,t){return new al(xt(e,t))}const ol=function(){return sl(Ft(),Bt())};let al=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ol,e})();function ll(e){return e instanceof al?e.nativeElement:e}class cl{}let ul=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>dl(),e})();const dl=function(){const e=Bt(),t=St(Ft().index,e);return function(e){return e[11]}(it(t)?t:e)};let hl=(()=>{class e{}return e.\u0275prov=ge({token:e,providedIn:"root",factory:()=>null}),e})();class pl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const gl=new pl("11.2.6");class fl{constructor(){}supports(e){return Eo(e)}create(e){return new vl(e)}}const ml=(e,t)=>t;class vl{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ml}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const s=!n||t&&t.currentIndex<_l(n,i,r)?t:n,o=_l(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{r||(r=[]);const e=o-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;t<=s&&s<e&&(r[n]=i+1)}r[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Eo(e))throw new Error(`Error trying to diff '${re(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,r=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,t),s=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[So()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,e,i,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,t),s=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new bl(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class bl{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class yl{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class wl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new yl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _l(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class xl{constructor(){}supports(e){return e instanceof Map||Po(e)}create(){return new Al}}class Al{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Po(e)))throw new Error(`Error trying to diff '${re(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Cl(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Cl{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Sl(){return new kl([new fl])}let kl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Sl()),deps:[[e,new _i,new wi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ge({token:e,providedIn:"root",factory:Sl}),e})();function El(){return new Pl([new xl])}let Pl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||El()),deps:[[e,new _i,new wi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ge({token:e,providedIn:"root",factory:El}),e})();function Dl(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(wt(s)),rt(s))for(let e=10;e<s.length;e++){const t=s[e],n=t[1].firstChild;null!==n&&Dl(t[1],t,n,i)}const o=n.type;if(8&o)Dl(e,t,n.child,i);else if(32&o){const e=br(n,t);let r;for(;r=e();)i.push(r)}else if(16&o){const e=Nr(t,n);if(Array.isArray(e))i.push(...e);else{const n=yr(t[16]);Dl(n[1],n,e,i,!0)}}n=r?n.projectionNext:n.next}return i}class Ol{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Dl(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(rt(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(kr(e,n),ri(t,n))}this._attachedToViewContainer=!1}Er(this._lView[1],this._lView)}onDestroy(e){Cs(this._lView[1],this._lView,null,e)}markForCheck(){Hs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Us(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ut(!0);try{Us(e,t,n)}finally{Ut(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,jr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Il extends Ol{constructor(e){super(e),this._view=e}detectChanges(){Ws(this._view)}checkNoChanges(){!function(e){Ut(!0);try{Ws(e)}finally{Ut(!1)}}(this._view)}get context(){return null}}const Tl=Bl;let Ml=(()=>{class e{}return e.__NG_ELEMENT_ID__=Tl,e.__ChangeDetectorRef__=!0,e})();function Bl(e=!1){return function(e,t,n){if(!n&&ot(e)){const n=St(e.index,t);return new Ol(n,n)}return 47&e.type?new Ol(t[16],t):null}(Ft(),Bt(),e)}const Rl=[new xl],Ll=new kl([new fl]),Fl=new Pl(Rl),Nl=function(){return Hl(Ft(),Bt())};let Vl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Nl,e})();const zl=Vl,jl=class extends zl{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=hs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),fs(t,n,e),new Ol(n)}};function Hl(e,t){return 4&e.type?new jl(t,e,sl(e,t)):null}class Ul{}class Wl{}const $l=function(){return Ql(Ft(),Bt())};let Gl=(()=>{class e{}return e.__NG_ELEMENT_ID__=$l,e})();const ql=Gl,Yl=class extends ql{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return sl(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Bn(this._hostTNode,this._hostLView);if(Sn(e)){const t=En(e,this._hostLView),n=kn(e);return new Gn(t[1].data[n+8],t)}return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Zl(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const s=n||this.parentInjector;if(!r&&null==e.ngModule&&s){const e=s.get(Ul,null);e&&(r=e)}const o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,i=n[1];if(rt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new Yl(t,t[6],t[3]);i.detach(i.indexOf(e))}}const r=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-10?(t[4]=n[r],ii(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,s,r);const o=Vr(r,s),a=n[11],l=Mr(a,s[7]);return null!==l&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,jr(e,i,n,1,r,s)}(i,s[6],a,n,l,o),e.attachToViewContainerRef(),ii(Kl(s),r,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Zl(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=kr(this._lContainer,t);n&&(ri(Kl(this._lContainer),t),Er(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=kr(this._lContainer,t);return n&&null!=ri(Kl(this._lContainer),t)?new Ol(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Zl(e){return e[8]}function Kl(e){return e[8]||(e[8]=[])}function Ql(e,t){let n;const i=t[e.index];if(rt(i))n=i;else{let r;if(8&e.type)r=wt(i);else{const n=t[11];r=n.createComment("");const i=xt(e,t);Or(n,Mr(n,i),r,function(e,t){return bt(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=Fs(i,t,r,e),js(t,n)}return new Yl(n,e,t)}const Xl={};class Jl extends il{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=tt(e);return new nc(t,this.ngModule)}}function ec(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const tc=new Xn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>pr});class nc extends tl{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(ts).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ec(this.componentDef.inputs)}get outputs(){return ec(this.componentDef.outputs)}create(e,t,n,i){const r=(i=i||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,Xl,r);return s!==Xl||i===Xl?s:t.get(n,i,r)}}}(e,i.injector):e,s=r.get(cl,yt),o=r.get(hl,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(bt(e))return e.selectRootElement(t,n===Oe.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Cr(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:pr,clean:Gs,playerHandler:null,flags:0},h=As(0,null,null,1,0,null,null,null,null,null),p=hs(null,h,d,u,null,null,s,a,o,r);let g,f;tn(p);try{const e=function(e,t,n,i,r,s){const o=n[1];n[20]=e;const a=ps(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Js(a,l,!0),null!==e&&(wn(r,e,l),null!==a.classes&&Wr(r,e,a.classes),null!==a.styles&&Ur(r,e,a.styles)));const c=i.createRenderer(e,t),u=hs(n,xs(t),null,t.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Rn(In(a,n),o,t.type),Os(o,a),Ts(a,n.length,1)),js(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)wn(a,c,["ng-version",gl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!Kr(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&wn(a,c,e),t&&t.length>0&&Wr(a,c,t.join(" "))}if(f=At(h,20),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}g=function(e,t,n,i,r){const s=n[1],o=function(e,t,n){const i=Ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ms(e,i,t,gs(e,t,1,null),n));const r=Un(t,e,i.directiveStart,i);hr(r,t);const s=xt(i,t);return s&&hr(s,t),r}(s,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries){const e=Ft();t.contentQueries(1,o,e.directiveStart)}const a=Ft();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(cn(a.index),Ps(n[1],a,0,a.directiveStart,a.directiveEnd,t),Ds(t,o)),o}(e,this.componentDef,p,d,[bo]),fs(h,p,null)}finally{an()}return new ic(this.componentType,g,sl(f,p),p,f)}}class ic extends class{}{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new Il(i),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const rc=new Map;class sc extends Ul{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Jl(this);const n=nt(e),i=e[Ue]||null;i&&Ga(i),this._bootstrapComponents=mr(n.bootstrap),this._r3Injector=lo(e,t,[{provide:Ul,useValue:this},{provide:il,useValue:this.componentFactoryResolver}],re(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=vo.THROW_IF_NOT_FOUND,n=Ce.Default){return e===vo||e===Ul||e===eo?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class oc extends Wl{constructor(e){super(),this.moduleType=e,null!==nt(e)&&function(e){const t=new Set;!function e(n){const i=nt(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${re(t)} vs ${re(t.name)}`)}(r,rc.get(r),n),rc.set(r,n));const s=mr(i.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new sc(this.moduleType,e)}}function ac(e,t,n){const i=Wt()+e,r=Bt();return r[i]===ns?Do(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function lc(e,t,n,i){return dc(Bt(),Wt(),e,t,n,i)}function cc(e,t,n,i,r){return hc(Bt(),Wt(),e,t,n,i,r)}function uc(e,t){const n=e[t];return n===ns?void 0:n}function dc(e,t,n,i,r,s){const o=t+n;return Oo(e,o,r)?Do(e,o+1,s?i.call(s,r):i(r)):uc(e,o+1)}function hc(e,t,n,i,r,s,o){const a=t+n;return Io(e,a,r,s)?Do(e,a+2,o?i.call(o,r,s):i(r,s)):uc(e,a+2)}function pc(e,t){const n=Rt();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new ue("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=ct(i.type)),o=ke(Vo);try{const e=Dn(!1),t=s();return Dn(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Bt(),r,t),t}finally{ke(o)}}function gc(e,t,n){const i=e+20,r=Bt(),s=Ct(r,i);return yc(r,bc(r,i)?dc(r,Wt(),t,s.transform,n,s):s.transform(n))}function fc(e,t,n,i){const r=e+20,s=Bt(),o=Ct(s,r);return yc(s,bc(s,r)?hc(s,Wt(),t,o.transform,n,i,o):o.transform(n,i))}function mc(e,t,n,i,r){const s=e+20,o=Bt(),a=Ct(o,s);return yc(o,bc(o,s)?function(e,t,n,i,r,s,o,a){const l=t+n;return To(e,l,r,s,o)?Do(e,l+3,a?i.call(a,r,s,o):i(r,s,o)):uc(e,l+3)}(o,Wt(),t,a.transform,n,i,r,a):a.transform(n,i,r))}function vc(e,t,n,i,r,s){const o=e+20,a=Bt(),l=Ct(a,o);return yc(a,bc(a,o)?function(e,t,n,i,r,s,o,a,l){const c=t+n;return Mo(e,c,r,s,o,a)?Do(e,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):uc(e,c+4)}(a,Wt(),t,l.transform,n,i,r,s,l):l.transform(n,i,r,s))}function bc(e,t){return e[1].data[t].pure}function yc(e,t){return ko.isWrapped(t)&&(t=ko.unwrap(t),e[$t()]=ns),t}const wc=class extends C{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,r=e=>null,s=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return e instanceof h&&e.add(o),o}};function _c(){return this._results[So()]()}class xc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=So(),n=xc.prototype;n[t]||(n[t]=_c)}get changes(){return this._changes||(this._changes=new wc)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=ti(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Ac{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ac(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new Cc(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Nc(e,t).matches&&this.queries[t].setDirty()}}class Sc{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class kc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,i);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new kc(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ec{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Ec(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(e,t,Pc(t,r)),this.matchTNodeWithReadOption(e,t,Hn(t,e,r,!1,!1))}else n===Vl?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Hn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===al||i===Gl||i===Vl&&4&t.type)this.addMatch(t.index,-2);else{const n=Hn(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Pc(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Dc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?sl(e,t):4&e.type?Hl(e,t):null}(t,e):-2===n?function(e,t,n){return n===al?sl(t,e):n===Vl?Hl(t,e):n===Gl?Ql(t,e):void 0}(e,t,i):Un(e,e[1],n,t)}function Oc(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const i=e.data,s=n.matches,o=[];for(let e=0;e<s.length;e+=2){const r=s[e];o.push(r<0?null:Dc(t,i[r],s[e+1],n.metadata.read))}r.matches=o}return r.matches}function Ic(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const o=Oc(e,t,r,n);for(let e=0;e<s.length;e+=2){const n=s[e];if(n>0)i.push(o[e/2]);else{const r=s[e+1],o=t[-n];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&Ic(t[1],t,r,i)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];Ic(n[1],n,r,i)}}}}}return i}function Tc(e){const t=Bt(),n=Rt(),i=Qt();Xt(i+1);const r=Nc(n,i);if(e.dirty&&Et(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?Ic(n,t,i,[]):Oc(n,t,r,i);e.reset(s,ll),e.notifyOnChanges()}return!0}return!1}function Mc(e,t,n){const i=Rt();i.firstCreatePass&&(Fc(i,new Sc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Lc(i,Bt(),t)}function Bc(e,t,n,i){const r=Rt();if(r.firstCreatePass){const s=Ft();Fc(r,new Sc(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Lc(r,Bt(),n)}function Rc(){return e=Bt(),t=Qt(),e[19].queries[t].queryList;var e,t}function Lc(e,t,n){const i=new xc(4==(4&n));Cs(e,t,i,i.destroy),null===t[19]&&(t[19]=new Cc),t[19].queries.push(new Ac(i))}function Fc(e,t,n){null===e.queries&&(e.queries=new kc),e.queries.track(new Ec(t,n))}function Nc(e,t){return e.queries.getByIndex(t)}function Vc(e,t){return Hl(e,t)}function zc(e=Ce.Default){const t=Bl(!0);if(null!=t||e&Ce.Optional)return t;pe("ChangeDetectorRef")}const jc=new Xn("Application Initializer");let Hc=(()=>{class e{constructor(e){this.appInits=e,this.resolve=rl,this.reject=rl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Zo(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(fi(jc,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Uc=new Xn("AppId"),Wc={provide:Uc,useFactory:function(){return`${$c()}${$c()}${$c()}`},deps:[]};function $c(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gc=new Xn("Platform Initializer"),qc=new Xn("Platform ID"),Yc=new Xn("appBootstrapListener");let Zc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Kc=new Xn("LocaleId"),Qc=new Xn("DefaultCurrencyCode");class Xc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Jc=function(e){return new oc(e)},eu=Jc,tu=function(e){return Promise.resolve(Jc(e))},nu=function(e){const t=Jc(e),n=mr(nt(e).declarations).reduce((e,t)=>{const n=tt(t);return n&&e.push(new nc(n)),e},[]);return new Xc(t,n)},iu=nu,ru=function(e){return Promise.resolve(nu(e))};let su=(()=>{class e{constructor(){this.compileModuleSync=eu,this.compileModuleAsync=tu,this.compileModuleAndAllComponentsSync=iu,this.compileModuleAndAllComponentsAsync=ru}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const ou=(()=>Promise.resolve(0))();function au(e){"undefined"==typeof Zone?ou.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class lu{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wc(!1),this.onMicrotaskEmpty=new wc(!1),this.onStable=new wc(!1),this.onError=new wc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,du(e),uu(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),du(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return hu(e),n.invokeTask(r,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),pu(e)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return hu(e),n.invoke(r,s,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),pu(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,du(e),uu(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!lu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(lu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,e,cu,rl,rl);try{return r.runTask(s,t,n)}finally{r.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const cu={};function uu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function du(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function hu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pu(e){e._nesting--,uu(e)}class gu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wc,this.onMicrotaskEmpty=new wc,this.onStable=new wc,this.onError=new wc}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let fu=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{lu.assertNotInAngularZone(),au(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())au(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(fi(lu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),mu=(()=>{class e{constructor(){this._applications=new Map,yu.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return yu.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class vu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let bu,yu=new vu,wu=!0,_u=!1;function xu(){return _u=!0,wu}const Au=new Xn("AllowMultipleToken");class Cu{constructor(e,t){this.name=e,this.token=t}}function Su(e,t,n=[]){const i="Platform: "+t,r=new Xn(i);return(t=[])=>{let s=ku();if(!s||s.injector.get(Au,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:no,useValue:"platform"});!function(e){if(bu&&!bu.destroyed&&!bu.injector.get(Au,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bu=e.get(Eu);const t=e.get(Gc,null);t&&t.forEach(e=>e())}(vo.create({providers:e,name:i}))}return function(e){const t=ku();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function ku(){return bu&&!bu.destroyed?bu:null}let Eu=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new gu:("zone.js"===e?void 0:e)||new lu({enableLongStackTrace:xu(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:lu,useValue:n}];return n.run(()=>{const t=vo.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(dr,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{s.handleError(e)}});r.onDestroy(()=>{Ou(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const i=n();return Zo(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(s,n,()=>{const e=r.injector.get(Hc);return e.runInitializers(),e.donePromise.then(()=>(Ga(r.injector.get(Kc,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Pu({},t);return function(e,t,n){const i=new oc(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Du);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${re(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(fi(vo))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function Pu(e,t){return Array.isArray(t)?t.reduce(Pu,e):Object.assign(Object.assign({},e),t)}let Du=(()=>{class e{constructor(e,t,n,i,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{lu.assertNotInAngularZone(),au(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{lu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=q(s,o.pipe(te()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof tl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Ul),r=n.create(vo.NULL,[],t||n.selector,i),s=r.location.nativeElement,o=r.injector.get(fu,null),a=o&&r.injector.get(mu);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Ou(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ou(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Yc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(vo),fi(dr),fi(il),fi(Hc))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function Ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Iu{}class Tu{}const Mu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Bu=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Mu}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("MYvV")(t).then(e=>e[i]).then(e=>Ru(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("MYvV")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+r]).then(e=>Ru(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(fi(su),fi(Tu,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function Ru(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Lu=Su(null,"core",[{provide:qc,useValue:"unknown"},{provide:Eu,deps:[vo]},{provide:mu,deps:[]},{provide:Zc,deps:[]}]),Fu=[{provide:Du,useClass:Du,deps:[lu,vo,dr,il,Hc]},{provide:tc,deps:[lu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Hc,useClass:Hc,deps:[[new wi,jc]]},{provide:su,useClass:su,deps:[]},Wc,{provide:kl,useFactory:function(){return Ll},deps:[]},{provide:Pl,useFactory:function(){return Fl},deps:[]},{provide:Kc,useFactory:function(e){return Ga(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new yi(Kc),new wi,new _i]]},{provide:Qc,useValue:"USD"}];let Nu=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(fi(Du))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:Fu}),e})();const Vu={production:!0,VERSION:n("kiQV").version,AUTHOR:n("kiQV").author};let zu=null;function ju(){return zu}const Hu=new Xn("DocumentToken");let Uu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:Wu,token:e,providedIn:"platform"}),e})();function Wu(){return fi(Gu)}const $u=new Xn("Location Initialized");let Gu=(()=>{class e extends Uu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=ju().getLocation(),this._history=ju().getHistory()}getBaseHrefFromDOM(){return ju().getBaseHref(this._doc)}onPopState(e){ju().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){ju().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){qu()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){qu()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:Yu,token:e,providedIn:"platform"}),e})();function qu(){return!!window.history.pushState}function Yu(){return new Gu(fi(Hu))}function Zu(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Ku(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Qu(e){return e&&"?"!==e[0]?"?"+e:e}let Xu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:Ju,token:e,providedIn:"root"}),e})();function Ju(e){const t=fi(Hu).location;return new td(fi(Uu),t&&t.origin||"")}const ed=new Xn("appBaseHref");let td=(()=>{class e extends Xu{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Zu(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Qu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const r=this.prepareExternalUrl(n+Qu(i));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){const r=this.prepareExternalUrl(n+Qu(i));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(fi(Uu),fi(ed,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),nd=(()=>{class e extends Xu{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Zu(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let r=this.prepareExternalUrl(n+Qu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){let r=this.prepareExternalUrl(n+Qu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(fi(Uu),fi(ed,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),id=(()=>{class e{constructor(e,t){this._subject=new wc,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Ku(sd(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Qu(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,sd(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qu(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qu(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(fi(Xu),fi(Uu))},e.normalizeQueryParams=Qu,e.joinWithSlash=Zu,e.stripTrailingSlash=Ku,e.\u0275prov=ge({factory:rd,token:e,providedIn:"root"}),e})();function rd(){return new id(fi(Xu),fi(Uu))}function sd(e){return e.replace(/\/index.html$/,"")}var od=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),ad=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),ld=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),cd=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),ud=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function dd(e,t){return md(Ha(e)[Wa.DateFormat],t)}function hd(e,t){return md(Ha(e)[Wa.TimeFormat],t)}function pd(e,t){return md(Ha(e)[Wa.DateTimeFormat],t)}function gd(e,t){const n=Ha(e),i=n[Wa.NumberSymbols][t];if(void 0===i){if(t===ud.CurrencyDecimal)return n[Wa.NumberSymbols][ud.Decimal];if(t===ud.CurrencyGroup)return n[Wa.NumberSymbols][ud.Group]}return i}function fd(e){if(!e[Wa.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Wa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function md(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function vd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const bd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,yd={},wd=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var _d=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),xd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Ad=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Cd(e,t,n,i){let r=function(e){if(Fd(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return Sd(t,n-1,i)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(bd))return function(e){const t=new Date(0);let n=0,i=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,l,c),t}(n)}const t=new Date(e);if(!Fd(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=kd(n,t)||t;let s,o=[];for(;t;){if(s=wd.exec(t),!s){o.push(t);break}{o=o.concat(s.slice(1));const e=o.pop();if(!e)break;t=e}}let a=r.getTimezoneOffset();i&&(a=Ld(i,a),r=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ld(t,i)-i))}(r,i));let l="";return o.forEach(e=>{const t=function(e){if(Rd[e])return Rd[e];let t;switch(e){case"G":case"GG":case"GGG":t=Od(Ad.Eras,ld.Abbreviated);break;case"GGGG":t=Od(Ad.Eras,ld.Wide);break;case"GGGGG":t=Od(Ad.Eras,ld.Narrow);break;case"y":t=Dd(xd.FullYear,1,0,!1,!0);break;case"yy":t=Dd(xd.FullYear,2,0,!0,!0);break;case"yyy":t=Dd(xd.FullYear,3,0,!1,!0);break;case"yyyy":t=Dd(xd.FullYear,4,0,!1,!0);break;case"Y":t=Bd(1);break;case"YY":t=Bd(2,!0);break;case"YYY":t=Bd(3);break;case"YYYY":t=Bd(4);break;case"M":case"L":t=Dd(xd.Month,1,1);break;case"MM":case"LL":t=Dd(xd.Month,2,1);break;case"MMM":t=Od(Ad.Months,ld.Abbreviated);break;case"MMMM":t=Od(Ad.Months,ld.Wide);break;case"MMMMM":t=Od(Ad.Months,ld.Narrow);break;case"LLL":t=Od(Ad.Months,ld.Abbreviated,ad.Standalone);break;case"LLLL":t=Od(Ad.Months,ld.Wide,ad.Standalone);break;case"LLLLL":t=Od(Ad.Months,ld.Narrow,ad.Standalone);break;case"w":t=Md(1);break;case"ww":t=Md(2);break;case"W":t=Md(1,!0);break;case"d":t=Dd(xd.Date,1);break;case"dd":t=Dd(xd.Date,2);break;case"E":case"EE":case"EEE":t=Od(Ad.Days,ld.Abbreviated);break;case"EEEE":t=Od(Ad.Days,ld.Wide);break;case"EEEEE":t=Od(Ad.Days,ld.Narrow);break;case"EEEEEE":t=Od(Ad.Days,ld.Short);break;case"a":case"aa":case"aaa":t=Od(Ad.DayPeriods,ld.Abbreviated);break;case"aaaa":t=Od(Ad.DayPeriods,ld.Wide);break;case"aaaaa":t=Od(Ad.DayPeriods,ld.Narrow);break;case"b":case"bb":case"bbb":t=Od(Ad.DayPeriods,ld.Abbreviated,ad.Standalone,!0);break;case"bbbb":t=Od(Ad.DayPeriods,ld.Wide,ad.Standalone,!0);break;case"bbbbb":t=Od(Ad.DayPeriods,ld.Narrow,ad.Standalone,!0);break;case"B":case"BB":case"BBB":t=Od(Ad.DayPeriods,ld.Abbreviated,ad.Format,!0);break;case"BBBB":t=Od(Ad.DayPeriods,ld.Wide,ad.Format,!0);break;case"BBBBB":t=Od(Ad.DayPeriods,ld.Narrow,ad.Format,!0);break;case"h":t=Dd(xd.Hours,1,-12);break;case"hh":t=Dd(xd.Hours,2,-12);break;case"H":t=Dd(xd.Hours,1);break;case"HH":t=Dd(xd.Hours,2);break;case"m":t=Dd(xd.Minutes,1);break;case"mm":t=Dd(xd.Minutes,2);break;case"s":t=Dd(xd.Seconds,1);break;case"ss":t=Dd(xd.Seconds,2);break;case"S":t=Dd(xd.FractionalSeconds,1);break;case"SS":t=Dd(xd.FractionalSeconds,2);break;case"SSS":t=Dd(xd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Id(_d.Short);break;case"ZZZZZ":t=Id(_d.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Id(_d.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Id(_d.Long);break;default:return null}return Rd[e]=t,t}(e);l+=t?t(r,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Sd(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function kd(e,t){const n=function(e){return Ha(e)[Wa.LocaleId]}(e);if(yd[n]=yd[n]||{},yd[n][t])return yd[n][t];let i="";switch(t){case"shortDate":i=dd(e,cd.Short);break;case"mediumDate":i=dd(e,cd.Medium);break;case"longDate":i=dd(e,cd.Long);break;case"fullDate":i=dd(e,cd.Full);break;case"shortTime":i=hd(e,cd.Short);break;case"mediumTime":i=hd(e,cd.Medium);break;case"longTime":i=hd(e,cd.Long);break;case"fullTime":i=hd(e,cd.Full);break;case"short":const t=kd(e,"shortTime"),n=kd(e,"shortDate");i=Ed(pd(e,cd.Short),[t,n]);break;case"medium":const r=kd(e,"mediumTime"),s=kd(e,"mediumDate");i=Ed(pd(e,cd.Medium),[r,s]);break;case"long":const o=kd(e,"longTime"),a=kd(e,"longDate");i=Ed(pd(e,cd.Long),[o,a]);break;case"full":const l=kd(e,"fullTime"),c=kd(e,"fullDate");i=Ed(pd(e,cd.Full),[l,c])}return i&&(yd[n][t]=i),i}function Ed(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Pd(e,t,n="-",i,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function Dd(e,t,n=0,i=!1,r=!1){return function(s,o){let a=function(e,t){switch(e){case xd.FullYear:return t.getFullYear();case xd.Month:return t.getMonth();case xd.Date:return t.getDate();case xd.Hours:return t.getHours();case xd.Minutes:return t.getMinutes();case xd.Seconds:return t.getSeconds();case xd.FractionalSeconds:return t.getMilliseconds();case xd.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,s);if((n>0||a>-n)&&(a+=n),e===xd.Hours)0===a&&-12===n&&(a=12);else if(e===xd.FractionalSeconds)return l=t,Pd(a,3).substr(0,l);var l;const c=gd(o,ud.MinusSign);return Pd(a,t,c,i,r)}}function Od(e,t,n=ad.Format,i=!1){return function(r,s){return function(e,t,n,i,r,s){switch(n){case Ad.Months:return function(e,t,n){const i=Ha(e),r=md([i[Wa.MonthsFormat],i[Wa.MonthsStandalone]],t);return md(r,n)}(t,r,i)[e.getMonth()];case Ad.Days:return function(e,t,n){const i=Ha(e),r=md([i[Wa.DaysFormat],i[Wa.DaysStandalone]],t);return md(r,n)}(t,r,i)[e.getDay()];case Ad.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(s){const e=function(e){const t=Ha(e);return fd(t),(t[Wa.ExtraData][2]||[]).map(e=>"string"==typeof e?vd(e):[vd(e[0]),vd(e[1])])}(t),n=function(e,t,n){const i=Ha(e);fd(i);const r=md([i[Wa.ExtraData][0],i[Wa.ExtraData][1]],t)||[];return md(r,n)||[]}(t,r,i),s=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=o>=t.hours&&a>=t.minutes,r=o<n.hours||o===n.hours&&a<n.minutes;if(t.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(e.hours===o&&e.minutes===a)return!0;return!1});if(-1!==s)return n[s]}return function(e,t,n){const i=Ha(e),r=md([i[Wa.DayPeriodsFormat],i[Wa.DayPeriodsStandalone]],t);return md(r,n)}(t,r,i)[o<12?0:1];case Ad.Eras:return function(e,t){return md(Ha(e)[Wa.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,s,e,t,n,i)}}function Id(e){return function(t,n,i){const r=-1*i,s=gd(n,ud.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case _d.Short:return(r>=0?"+":"")+Pd(o,2,s)+Pd(Math.abs(r%60),2,s);case _d.ShortGMT:return"GMT"+(r>=0?"+":"")+Pd(o,1,s);case _d.Long:return"GMT"+(r>=0?"+":"")+Pd(o,2,s)+":"+Pd(Math.abs(r%60),2,s);case _d.Extended:return 0===i?"Z":(r>=0?"+":"")+Pd(o,2,s)+":"+Pd(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function Td(e){return Sd(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Md(e,t=!1){return function(n,i){let r;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();r=1+Math.floor((t+e)/7)}else{const e=Td(n),t=function(e){const t=Sd(e,0,1).getDay();return Sd(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}return Pd(r,e,gd(i,ud.MinusSign))}}function Bd(e,t=!1){return function(n,i){return Pd(Td(n).getFullYear(),e,gd(i,ud.MinusSign),t)}}const Rd={};function Ld(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Fd(e){return e instanceof Date&&!isNaN(e.valueOf())}class Nd{}let Vd=(()=>{class e extends Nd{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return Ha(e)[Wa.PluralCase]}(t||this.locale)(e)){case od.Zero:return"zero";case od.One:return"one";case od.Two:return"two";case od.Few:return"few";case od.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(fi(Kc))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function zd(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}let jd=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Eo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+re(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(kl),Vo(Pl),Vo(al),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class Hd{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ud=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Hd(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new Wd(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new Wd(e,r);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl),Vo(kl))},e.\u0275dir=Je({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Wd{constructor(e,t){this.record=e,this.view=t}}let $d=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Gd,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){qd("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){qd("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl))},e.\u0275dir=Je({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Gd{constructor(){this.$implicit=null,this.ngIf=null}}function qd(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${re(t)}'.`)}class Yd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Zd=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Kd=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Yd(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl),Vo(Zd,1))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Qd=(()=>{class e{constructor(e,t,n){n._addDefault(new Yd(e,t))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl),Vo(Zd,1))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Xd=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Pl),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Jd=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl))},e.\u0275dir=Je({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[dt]}),e})();function eh(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${re(e)}'`)}class th{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class nh{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const ih=new nh,rh=new th;let sh=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Zo(t))return ih;if(Ko(t))return rh;throw eh(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(zc())},e.\u0275pipe=et({name:"async",type:e,pure:!1}),e})();const oh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let ah=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw eh(e,t);return t.replace(oh,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"titlecase",type:e,pure:!0}),e})(),lh=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw eh(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"uppercase",type:e,pure:!0}),e})(),ch=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return Cd(t,n,r||this.locale,i)}catch(s){throw eh(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(Vo(Kc))},e.\u0275pipe=et({name:"date",type:e,pure:!0}),e})(),uh=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=dh){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(Vo(Pl))},e.\u0275pipe=et({name:"keyvalue",type:e,pure:!1}),e})();function dh(e,t){const n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const r=String(n),s=String(i);return r==s?0:r<s?-1:1}let hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[{provide:Nd,useClass:Vd}]}),e})();function ph(e){return"browser"===e}let gh=(()=>{class e{}return e.\u0275prov=ge({token:e,providedIn:"root",factory:()=>new fh(fi(Hu),window)}),e})();class fh{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=mh(this.window.history)||mh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function mh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class vh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new vh,zu||(zu=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=yh||(yh=document.querySelector("base"),yh)?yh.getAttribute("href"):null;return null==t?null:(n=t,bh||(bh=document.createElement("a")),bh.setAttribute("href",n),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname);var n}resetBaseElement(){yh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return zd(document.cookie,e)}}let bh,yh=null;const wh=new Xn("TRANSITION_ID"),_h=[{provide:jc,useFactory:function(e,t,n){return()=>{n.get(Hc).donePromise.then(()=>{const n=ju();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[wh,Hu,vo],multi:!0}];class xh{static init(){var e;e=new xh,yu=e}addToWindow(e){Re.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Re.getAllAngularTestabilities=()=>e.getAllTestabilities(),Re.getAllAngularRootElements=()=>e.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(e=>{const t=Re.getAllAngularTestabilities();let n=t.length,i=!1;const r=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?ju().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Ah=new Xn("EventManagerPlugins");let Ch=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(fi(Ah),fi(lu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class Sh{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=ju().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let kh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Eh=(()=>{class e extends kh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>ju().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Ph={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dh=/%COMP%/g;function Oh(e,t,n){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Oh(e,r,n):(r=r.replace(Dh,e),n.push(r))}return n}function Ih(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Th=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Mh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Oe.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Bh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Oe.ShadowDom:return new Rh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Oh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(fi(Ch),fi(Eh),fi(Uc))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class Mh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ph[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const r=Ph[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=Ph[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(vr.DashCase|vr.Important)?e.style.setProperty(t,n,i&vr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&vr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ih(n)):this.eventManager.addEventListener(e,t,Ih(n))}}class Bh extends Mh{constructor(e,t,n,i){super(e),this.component=n;const r=Oh(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Dh,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Dh,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Rh extends Mh{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Oh(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const e=document.createElement("style");e.textContent=r[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Lh=(()=>{class e extends Sh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Fh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Nh=new Xn("HammerGestureConfig"),Vh=new Xn("HammerLoader");let zh=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const jh=[{provide:Ah,useClass:(()=>{class e extends Sh{constructor(e,t,n,i){super(e),this._config=t,this.console=n,this.loader=i,this._loaderPromise=null}supports(e){return!(!Fh.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,n){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let i=!1,r=()=>{i=!0};return this._loaderPromise.then(()=>{window.Hammer?i||(r=this.addEventListener(e,t,n)):r=()=>{}}).catch(()=>{r=()=>{}}),()=>{r()}}return i.runOutsideAngular(()=>{const r=this._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(e)})};return r.on(t,s),()=>{r.off(t,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(Nh),fi(Zc),fi(Vh,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),multi:!0,deps:[Hu,Nh,Zc,[new wi,Vh]]},{provide:Nh,useClass:zh,deps:[]}];let Hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:jh}),e})();const Uh=["alt","control","meta","shift"],Wh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$h={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Gh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qh=(()=>{class e extends Sh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const r=e.parseEventName(n),s=e.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ju().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let s="";if(Uh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&$h.hasOwnProperty(t)&&(t=$h[t]))}return Wh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Uh.forEach(i=>{i!=n&&(0,Gh[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Yh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return fi(Zh)},token:e,providedIn:"root"}),e})(),Zh=(()=>{class e extends Yh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case rr.NONE:return t;case rr.HTML:return Mi(t,"HTML")?Ti(t):nr(this._doc,String(t)).toString();case rr.STYLE:return Mi(t,"Style")?Ti(t):t;case rr.SCRIPT:if(Mi(t,"Script"))return Ti(t);throw new Error("unsafe value used in a script context");case rr.URL:return Bi(t),Mi(t,"URL")?Ti(t):Vi(String(t));case rr.RESOURCE_URL:if(Mi(t,"ResourceURL"))return Ti(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new Ei(e)}bypassSecurityTrustStyle(e){return new Pi(e)}bypassSecurityTrustScript(e){return new Di(e)}bypassSecurityTrustUrl(e){return new Oi(e)}bypassSecurityTrustResourceUrl(e){return new Ii(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return e=fi(eo),new Zh(e.get(Hu));var e},token:e,providedIn:"root"}),e})();const Kh=Su(Lu,"browser",[{provide:qc,useValue:"browser"},{provide:Gc,useValue:function(){vh.makeCurrent(),xh.init()},multi:!0},{provide:Hu,useFactory:function(){return function(e){mt=e}(document),document},deps:[]}]),Qh=[[],{provide:no,useValue:"root"},{provide:dr,useFactory:function(){return new dr},deps:[]},{provide:Ah,useClass:Lh,multi:!0,deps:[Hu,lu,qc]},{provide:Ah,useClass:qh,multi:!0,deps:[Hu]},[],{provide:Th,useClass:Th,deps:[Ch,Eh,Uc]},{provide:cl,useExisting:Th},{provide:kh,useExisting:Eh},{provide:Eh,useClass:Eh,deps:[Hu]},{provide:fu,useClass:fu,deps:[lu]},{provide:Ch,useClass:Ch,deps:[Ah,lu]},[]];let Xh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Uc,useValue:t.appId},{provide:wh,useExisting:Uc},_h]}}}return e.\u0275fac=function(t){return new(t||e)(fi(e,12))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:Qh,imports:[hh,Nu]}),e})();"undefined"!=typeof window&&window;class Jh{}function ep(e,t){return{type:7,name:e,definitions:t,options:{}}}function tp(e,t=null){return{type:4,styles:t,timings:e}}function np(e,t=null){return{type:2,steps:e,options:t}}function ip(e){return{type:6,styles:e,offset:null}}function rp(e,t,n){return{type:0,name:e,styles:t,options:n}}function sp(e){return{type:5,steps:e}}function op(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function ap(e=null){return{type:9,options:e}}function lp(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function cp(e){Promise.resolve(null).then(e)}class up{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){cp(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class dp{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const r=this.players.length;0==r?cp(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function hp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function pp(e){switch(e.length){case 0:return new up;case 1:return e[0];default:return new dp(e)}}function gp(e,t,n,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(e=>{const n=e.offset,i=n==l,u=i&&c||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),a){case"!":a=r[n];break;case"*":a=s[n];break;default:a=t.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function fp(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&mp(n,"start",e)));break;case"done":e.onDone(()=>i(n&&mp(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&mp(n,"destroy",e)))}}function mp(e,t,n){const i=n.totalTime,r=vp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function vp(e,t,n,i,r="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function bp(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function yp(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let wp=(e,t)=>!1,_p=(e,t)=>!1,xp=(e,t,n)=>[];const Ap=hp();(Ap||"undefined"!=typeof Element)&&(wp=(e,t)=>e.contains(t),_p=(()=>{if(Ap||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):_p}})(),xp=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let Cp=null,Sp=!1;function kp(e){Cp||(Cp=("undefined"!=typeof document?document.body:null)||{},Sp=!!Cp.style&&"WebkitAppearance"in Cp.style);let t=!0;return Cp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Cp.style,!t&&Sp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Cp.style),t}const Ep=_p,Pp=wp,Dp=xp;function Op(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Ip=(()=>{class e{validateStyleProperty(e){return kp(e)}matchesElement(e,t){return Ep(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Dp(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],o){return new up(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Tp=(()=>{class e{}return e.NOOP=new Ip,e})();function Mp(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Bp(parseFloat(t[1]),t[2])}function Bp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Rp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,r=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=Bp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Bp(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=e;if(!n){let n=!1,s=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:r,easing:s}}(e,t,n)}function Lp(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Fp(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Lp(e,n);return n}function Np(e,t,n){return n?t+":"+n+";":""}function Vp(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=Np(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Np(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function zp(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=Yp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),hp()&&Vp(e))}function jp(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Yp(t);e.style[n]=""}),hp()&&Vp(e))}function Hp(e){return Array.isArray(e)?1==e.length?e[0]:np(e):e}const Up=new RegExp("{{\\s*(.+?)\\s*}}","g");function Wp(e){let t=[];if("string"==typeof e){let n;for(;n=Up.exec(e);)t.push(n[1]);Up.lastIndex=0}return t}function $p(e,t,n){const i=e.toString(),r=i.replace(Up,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?e:r}function Gp(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const qp=/-+([a-z0-9])/g;function Yp(e){return e.replace(qp,(...e)=>e[1].toUpperCase())}function Zp(e,t){return 0===e||0===t}function Kp(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach(function(t){n[t]=Xp(e,t)})}}return t}function Qp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Xp(e,t){return window.getComputedStyle(e)[t]}function Jp(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(ng(r,o)),"<"!=s[0]||"*"==r&&"*"==o||t.push(ng(o,r))}(e,n,t)):n.push(e),n}const eg=new Set(["true","1"]),tg=new Set(["false","0"]);function ng(e,t){const n=eg.has(e)||tg.has(e),i=eg.has(t)||tg.has(t);return(r,s)=>{let o="*"==e||e==r,a="*"==t||t==s;return!o&&n&&"boolean"==typeof r&&(o=r?eg.has(e):tg.has(e)),!a&&i&&"boolean"==typeof s&&(a=s?eg.has(t):tg.has(t)),o&&a}}const ig=new RegExp("s*:selfs*,?","g");function rg(e,t,n){return new sg(e).build(t,n)}class sg{constructor(e){this._driver=e}build(e,t){const n=new og(t);return this._resetContextStyleTimingState(n),Qp(this,Hp(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=r.depCount,s.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(e=>{if(ag(e)){const t=e;Object.keys(t).forEach(e=>{Wp(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Gp(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Qp(this,Hp(e.animation),t);return{type:1,matchers:Jp(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:lg(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Qp(this,e,t)),options:lg(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Qp(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:lg(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return cg(Rp(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=cg(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||Rp(i,t),cg(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:ip({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=ip(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=s,i=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(ag(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},r=Wp(e);r.length&&r.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ag(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ag(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,s=s||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const d=c-1,h=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return l.forEach((e,i)=>{const s=u>0?i==d?1:u*i:r[i],o=s*g;t.currentTime=h+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Qp(this,Hp(e.animation),t),options:lg(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:lg(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:lg(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(ig,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,bp(t.collectedStyles,t.currentQuerySelector,{});const o=Qp(this,Hp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:lg(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Rp(e.timings,t.errors,!0);return{type:12,animation:Qp(this,Hp(e.animation),t),timings:n,options:null}}}class og{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ag(e){return!Array.isArray(e)&&"object"==typeof e}function lg(e){var t;return e?(e=Lp(e)).params&&(e.params=(t=e.params)?Lp(t):null):e={},e}function cg(e,t,n){return{duration:e,delay:t,easing:n}}function ug(e,t,n,i,r,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class dg{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const hg=new RegExp(":enter","g"),pg=new RegExp(":leave","g");function gg(e,t,n,i,r,s={},o={},a,l,c=[]){return(new fg).buildKeyframes(e,t,n,i,r,s,o,a,l,c)}class fg{buildKeyframes(e,t,n,i,r,s,o,a,l,c=[]){l=l||new dg;const u=new vg(e,t,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),Qp(this,n,u);const d=u.timelines.filter(e=>e.containsAnimation());if(d.length&&Object.keys(o).length){const e=d[d.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return d.length?d.map(e=>e.buildKeyframes()):[ug(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const r=null!=n.duration?Mp(n.duration):null,s=null!=n.delay?Mp(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Qp(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=mg);const e=Mp(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Qp(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Mp(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Qp(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Rp(t.params?$p(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Mp(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=mg);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Qp(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Qp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const mg={};class vg{constructor(e,t,n,i,r,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new bg(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=Mp(n.duration)),null!=n.delay&&(i.delay=Mp(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=$p(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,r=new vg(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=mg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new yg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,s){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(hg,"."+this._enterClassName)).replace(pg,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class bg{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new bg(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},s=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]="*"})):Fp(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=$p(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=Fp(r,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?e.add(n):"*"==i&&t.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=e.size?Gp(e.values()):[],s=t.size?Gp(t.values()):[];if(n){const e=i[0],t=Lp(e);e.offset=0,t.offset=1,i=[e,t]}return ug(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class yg extends bg{constructor(e,t,n,i,r,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=n+t,o=t/s,a=Fp(e[0],!1);a.offset=0,r.push(a);const l=Fp(e[0],!1);l.offset=wg(o),r.push(l);const c=e.length-1;for(let i=1;i<=c;i++){let o=Fp(e[i],!1);o.offset=wg((t+o.offset*n)/s),r.push(o)}n=s,t=0,i="",e=r}return ug(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function wg(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class _g{}class xg extends _g{normalizePropertyName(e,t){return Yp(e)}normalizeStyleValue(e,t,n,i){let r="";const s=n.toString().trim();if(Ag[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+r}}const Ag=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Cg(e,t,n,i,r,s,o,a,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Sg={};class kg{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}build(e,t,n,i,r,s,o,a,l,c){const u=[],d=this.ast.options&&this.ast.options.params||Sg,h=this.buildStyles(n,o&&o.params||Sg,u),p=a&&a.params||Sg,g=this.buildStyles(i,p,u),f=new Set,m=new Map,v=new Map,b="void"===i,y={params:Object.assign(Object.assign({},d),p)},w=c?[]:gg(e,t,this.ast.animation,r,s,h,g,y,l,u);let _=0;if(w.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),u.length)return Cg(t,this._triggerName,n,i,b,h,g,[],[],m,v,_,u);w.forEach(e=>{const n=e.element,i=bp(m,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=bp(v,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&f.add(n)});const x=Gp(f.values());return Cg(t,this._triggerName,n,i,b,h,g,w,x,m,v,_)}}class Eg{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Lp(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let s=r[e];s.length>1&&(s=$p(s,i,t)),n[e]=s})}}),n}}class Pg{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Eg(e.style,e.options&&e.options.params||{})}),Dg(this.states,"true","1"),Dg(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new kg(e,t,this.states))}),this.fallbackTransition=new kg(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Dg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Og=new dg;class Ig{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=rg(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,r=gp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let s;const o=new Map;if(r?(s=gg(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Og,i),s.forEach(e=>{const t=bp(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=pp(s.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,i){const r=vp(t,"","","");return fp(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const Tg=[],Mg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Rg{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=Lp(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Lg=new Rg("void");class Fg{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wg(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const s=bp(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);const a=bp(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wg(e,"ng-trigger"),Wg(e,"ng-trigger-"+t),a[t]=Lg),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const r=this._getTrigger(t),s=new Vg(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Wg(e,"ng-trigger"),Wg(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Rg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Lg),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),i=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{jp(e,n),zp(e,i)})}return}const c=bp(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),d=!1;if(!u){if(!i)return;u=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:d}),d||(Wg(e,"ng-animate-queued"),s.onStart(()=>{$g(e,"ng-animate-queued")})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),c.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const r=this._engine.statesByElement.get(e);if(r){const s=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&pp(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const r=t.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||Lg,a=new Rg("void"),l=new Vg(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Mg||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Wg(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(t=>{if(t.name==n.triggerName){const i=vp(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,fp(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Ng{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Fg(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=n[e[i]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(zg(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!zg(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wg(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$g(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(zg(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return zg(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return pp(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Mg,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Wg(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?pp(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new dg,i=[],r=new Map,s=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,d=Array.from(this.statesByElement.keys()),h=Ug(d,this.collectedEnterElements),p=new Map;let g=0;h.forEach((e,t)=>{const n="ng-enter"+g++;p.set(t,n),e.forEach(e=>Wg(e,n))});const f=[],m=new Set,v=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(f.push(e),m.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>m.add(e)):v.add(e))}const b=new Map,y=Ug(d,Array.from(m));y.forEach((e,t)=>{const n="ng-leave"+g++;b.set(t,n),e.forEach(e=>Wg(e,n))}),e.push(()=>{h.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>$g(e,n))}),y.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>$g(e,n))}),f.forEach(e=>{this.processLeaveNode(e)})});const w=[],_=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(w.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),d=b.get(r),h=p.get(r),g=this._buildInstruction(e,n,h,d,c);if(g.errors&&g.errors.length)_.push(g);else{if(c)return t.onStart(()=>jp(r,g.fromStyles)),t.onDestroy(()=>zp(r,g.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>jp(r,g.fromStyles)),t.onDestroy(()=>zp(r,g.toStyles)),void i.push(t);g.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,g.timelines),s.push({instruction:g,player:t,element:r}),g.queriedElements.forEach(e=>bp(o,e,[]).push(t)),g.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),g.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(_.length){const e=[];_.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,A=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(A.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{bp(x,t,[]).push(e),e.destroy()})});const C=f.filter(e=>Yg(e,a,l)),S=new Map;Hg(S,this.driver,v,l,"*").forEach(e=>{Yg(e,a,l)&&C.push(e)});const k=new Map;h.forEach((e,t)=>{Hg(k,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=S.get(e),n=k.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const E=[],P=[],D={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(c.has(t))return s.onDestroy(()=>zp(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=D;if(A.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=A.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>A.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,x,r,k,S);if(s.setRealPlayer(n),e===D)E.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=pp(t)),i.push(s)}}else jp(t,o.fromStyles),s.onDestroy(()=>zp(t,o.toStyles)),P.push(s),c.has(t)&&i.push(s)}),P.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=pp(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<f.length;O++){const e=f[O],t=e.__ng_removed;if($g(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=o.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Gg(this,e,i):this.processLeaveNode(e)}return f.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,r){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||"void"==r;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&s.push(t)})}}return(n||i)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==i,l=bp(n,e,[]);this._getPreviousPlayers(e,a,r,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}jp(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,d=t.timelines.map(t=>{const d=t.element;c.add(d);const h=d.__ng_removed;if(h&&h.removedBeforeQueried)return new up(t.duration,t.delay);const p=d!==a,g=function(e){const t=[];return qg(e,t),t}((n.get(d)||Tg).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===d),f=r.get(d),m=s.get(d),v=gp(0,this._normalizer,0,t.keyframes,f,m),b=this._buildPlayer(t,v,g);if(t.subTimeline&&i&&u.add(d),p){const t=new Vg(e,o,d);t.setRealPlayer(b),l.push(t)}return b});l.forEach(e=>{bp(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Wg(e,"ng-animating"));const h=pp(d);return h.onDestroy(()=>{c.forEach(e=>$g(e,"ng-animating")),zp(a,t.toStyles)}),u.forEach(e=>{bp(i,e,[]).push(h)}),h}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new up(e.duration,e.delay)}}class Vg{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new up,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>fp(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){bp(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function zg(e){return e&&1===e.nodeType}function jg(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Hg(e,t,n,i,r){const s=[];n.forEach(e=>s.push(jg(e)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Bg,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>jg(e,s[a++])),o}function Ug(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;function s(e){if(!e)return 1;let t=r.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:s(o),r.set(e,t),t}return t.forEach(e=>{const t=s(e);1!==t&&n.get(t).push(e)}),n}function Wg(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function $g(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Gg(e,t,n){pp(n).onDone(()=>e.processLeaveNode(t))}function qg(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof dp?qg(i.players,t):t.push(i)}}function Yg(e,t,n){const i=n.get(e);if(!i)return!1;let r=t.get(e);return r?i.forEach(e=>r.add(e)):t.set(e,i),n.delete(e),!0}class Zg{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ng(e,t,n),this._timelineEngine=new Ig(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,r){const s=e+"-"+i;let o=this._triggerCache[s];if(!o){const e=[],t=rg(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Pg(e,t)}(i,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=yp(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=yp(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kg(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=Xg(t[0]),t.length>1&&(i=Xg(t[t.length-1]))):t&&(n=Xg(t)),n||i?new Qg(e,n,i):null}let Qg=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&zp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(zp(this._element,this._initialStyles),this._endStyles&&(zp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(jp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jp(this._element,this._endStyles),this._endStyles=null),zp(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Xg(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];Jg(r)&&(t=t||{},t[r]=e[r])}return t}function Jg(e){return"display"===e||"position"===e}class ef{constructor(e,t,n,i,r,s,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=af(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),of(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),sf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){tf(this._element,this._name,"paused")}resume(){tf(this._element,this._name,"running")}setPosition(e){const t=nf(this._element,this._name);this._position=e*this._duration,of(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),sf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=af(e,"").split(","),i=rf(n,t);i>=0&&(n.splice(i,1),of(e,"",n.join(",")))}(this._element,this._name))}}function tf(e,t,n){of(e,"PlayState",n,nf(e,t))}function nf(e,t){const n=af(e,"");return n.indexOf(",")>0?rf(n.split(","),t):rf([n],t)}function rf(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function sf(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function of(e,t,n,i){const r="animation"+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function af(e,t){return e.style["animation"+t]||""}class lf{constructor(e,t,n,i,r,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ef(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Xp(this.element,n))})}this.currentSnapshot=e}}class cf extends up{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Op(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class uf{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return kp(e)}matchesElement(e,t){return Ep(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Dp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Op(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(e,t,n,i,r,s=[],o){const a=s.filter(e=>e instanceof lf),l={};Zp(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Kp(e,t,l));if(0==n)return new cf(e,c);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);const h=Kg(e,t),p=new lf(e,t,u,n,i,r,c,h);return p.onDestroy(()=>{var e;(e=d).parentNode.removeChild(e)}),p}}class df{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Xp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class hf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(pf().toString()),this._cssKeyframesDriver=new uf}validateStyleProperty(e){return kp(e)}matchesElement(e,t){return Ep(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Dp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(e=>e instanceof df);Zp(n,i)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Kg(e,t=Kp(e,t=t.map(e=>Fp(e,!1)),l));return new df(e,t,a,u)}}function pf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let gf=(()=>{class e extends Jh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Oe.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?np(e):e;return vf(this._renderer,null,t,"register",[n]),new ff(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(fi(cl),fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class ff extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new mf(this._id,e,t||{},this._renderer)}}class mf{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return vf(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function vf(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}let bf=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new yf("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const s=t=>{Array.isArray(t)?t.forEach(s):this.engine.registerTrigger(i,r,e,t.name,t)};return t.data.animation.forEach(s),new wf(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(fi(cl),fi(Zg),fi(lu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class yf{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class wf extends yf{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let _f=(()=>{class e extends Zg{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(Tp),fi(_g))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const xf=new Xn("AnimationModuleType"),Af=[{provide:Tp,useFactory:function(){return"function"==typeof pf()?new hf:new uf}},{provide:xf,useValue:"BrowserAnimations"},{provide:Jh,useClass:gf},{provide:_g,useFactory:function(){return new xg}},{provide:Zg,useClass:_f},{provide:cl,useFactory:function(e,t,n){return new bf(e,t,n)},deps:[Th,Zg,lu]}];let Cf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:Af,imports:[Xh]}),e})();function Sf(...e){if(1===e.length){const t=e[0];if(c(t))return kf(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return kf(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return kf(e=1===e.length&&c(e[0])?e[0]:e,null).pipe(E(e=>t(...e)))}return kf(e,null)}function kf(e,t){return new y(n=>{const i=e.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=F(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),r[a]=e},error:e=>n.error(e),complete:()=>{s++,s!==i&&c||(o===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}class Ef{}const Pf=new Xn("NgValueAccessor"),Df={provide:Pf,useExisting:ae(()=>Of),multi:!0};let Of=(()=>{class e extends Ef{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)(Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Xo("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[el([Df]),yo]}),e})();const If={provide:Pf,useExisting:ae(()=>Mf),multi:!0},Tf=new Xn("CompositionEventMode");let Mf=(()=>{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=ju()?ju().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)(Vo(ul),Vo(al),Vo(Tf,8))},e.\u0275dir=Je({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&&Xo("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:[el([If])]}),e})();function Bf(e){return null==e||0===e.length}function Rf(e){return null!=e&&"number"==typeof e.length}const Lf=new Xn("NgValidators"),Ff=new Xn("NgAsyncValidators"),Nf=/^(?=.{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 Vf{static min(e){return function(e){return t=>{if(Bf(t.value)||Bf(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(Bf(t.value)||Bf(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 zf(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return Bf(e.value)||Nf.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>Bf(t.value)||!Rf(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static maxLength(e){return jf(e)}static pattern(e){return Hf(e)}static nullValidator(e){return null}static compose(e){return Zf(e)}static composeAsync(e){return Qf(e)}}function zf(e){return Bf(e.value)?{required:!0}:null}function jf(e){return t=>Rf(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Hf(e){if(!e)return Uf;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(Bf(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function Uf(e){return null}function Wf(e){return null!=e}function $f(e){const t=Zo(e)?F(e):e;return Qo(t),t}function Gf(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 qf(e,t){return t.map(t=>t(e))}function Yf(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Zf(e){if(!e)return null;const t=e.filter(Wf);return 0==t.length?null:function(e){return Gf(qf(e,t))}}function Kf(e){return null!=e?Zf(Yf(e)):null}function Qf(e){if(!e)return null;const t=e.filter(Wf);return 0==t.length?null:function(e){return Sf(qf(e,t).map($f)).pipe(E(Gf))}}function Xf(e){return null!=e?Qf(Yf(e)):null}function Jf(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function em(e){return e._rawValidators}function tm(e){return e._rawAsyncValidators}let nm=(()=>{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=Kf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xf(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=Je({type:e}),e})(),im=(()=>{class e extends nm{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return rm(t||e)},e.\u0275dir=Je({type:e,features:[yo]}),e})();const rm=qn(im);class sm extends nm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class om{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 am=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(sm,2))},e.\u0275dir=Je({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&va("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:[yo]}),e})(),lm=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(im,10))},e.\u0275dir=Je({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&va("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:[yo]}),e})();function cm(e,t){return[...t.path,e]}function um(e,t){pm(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&&fm(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&&fm(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 dm(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),gm(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function hm(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function pm(e,t,n){const i=em(e);null!==t.validator?e.setValidators(Jf(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const r=tm(e);if(null!==t.asyncValidator?e.setAsyncValidators(Jf(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){const n=()=>e.updateValueAndValidity();hm(t._rawValidators,n),hm(t._rawAsyncValidators,n)}}function gm(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=em(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=tm(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}if(n){const e=()=>{};hm(t._rawValidators,e),hm(t._rawAsyncValidators,e)}return i}function fm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function mm(e,t){pm(e,t,!1)}function vm(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function bm(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ym(e,t){if(!t)return null;Array.isArray(t);let n=void 0,i=void 0,r=void 0;return t.forEach(e=>{e.constructor===Mf?n=e:Object.getPrototypeOf(e.constructor)===Ef?i=e:r=e}),r||i||n||null}function wm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function _m(e){return(Sm(e)?e.validators:e)||null}function xm(e){return Array.isArray(e)?Kf(e):e||null}function Am(e,t){return(Sm(t)?t.asyncValidators:e)||null}function Cm(e){return Array.isArray(e)?Xf(e):e||null}function Sm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class km{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=xm(this._rawValidators),this._composedAsyncValidatorFn=Cm(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}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=xm(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Cm(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="PENDING",!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="DISABLED",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="VALID",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(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=$f(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 i=e;return t.forEach(e=>{i=i instanceof Pm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Dm&&i.at(e)||null}),i}(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 wc,this.statusChanges=new wc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_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){Sm(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Em extends km{constructor(e=null,t,n){super(_m(t),Am(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){wm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){wm(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 Pm extends km{constructor(e,t,n){super(_m(t),Am(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,i)=>{n.reset(e[i],{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 Em?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,i)=>{n=t(n,e,i)}),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 Dm extends km{constructor(e,t,n){super(_m(t),Am(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,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Em?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 Om={provide:im,useExisting:ae(()=>Tm)},Im=(()=>Promise.resolve(null))();let Tm=(()=>{class e extends im{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new wc,this.form=new Pm({},Kf(e),Xf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Im.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),um(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Im.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),wm(this._directives,e)})}addFormGroup(e){Im.then(()=>{const t=this._findContainer(e.path),n=new Pm({});mm(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Im.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Im.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,bm(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)(Vo(Lf,10),Vo(Ff,10))},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xo("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[el([Om]),yo]}),e})();const Mm={provide:sm,useExisting:ae(()=>Rm)},Bm=(()=>Promise.resolve(null))();let Rm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this.control=new Em,this._registered=!1,this.update=new wc,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ym(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),vm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?cm(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(){um(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){Bm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Bm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(im,9),Vo(Lf,10),Vo(Ff,10),Vo(Pf,10))},e.\u0275dir=Je({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:[el([Mm]),yo,dt]}),e})(),Lm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Fm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();const Nm=new Xn("NgModelWithFormControlWarning"),Vm={provide:sm,useExisting:ae(()=>zm)};let zm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new wc,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ym(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&dm(t,this,!1),um(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}vm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(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)(Vo(Lf,10),Vo(Ff,10),Vo(Pf,10),Vo(Nm,8))},e.\u0275dir=Je({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[el([Vm]),yo,dt]}),e._ngModelWarningSentOnce=!1,e})();const jm={provide:im,useExisting:ae(()=>Hm)};let Hm=(()=>{class e extends im{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 wc,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&&(gm(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 um(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),wm(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,bm(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&&(dm(t||null,e),n instanceof Em&&(um(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);mm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return gm(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pm(this.form,this,!1),this._oldForm&&gm(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(Lf,10),Vo(Ff,10))},e.\u0275dir=Je({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xo("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[el([jm]),yo,dt]}),e})();const Um={provide:sm,useExisting:ae(()=>Wm)};let Wm=(()=>{class e extends sm{constructor(e,t,n,i,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new wc,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ym(0,i)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),vm(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 cm(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)(Vo(im,13),Vo(Lf,10),Vo(Ff,10),Vo(Pf,10),Vo(Nm,8))},e.\u0275dir=Je({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[el([Um]),yo,dt]}),e._ngModelWarningSentOnce=!1,e})();const $m={provide:Pf,useExisting:ae(()=>qm),multi:!0};function Gm(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let qm=(()=>{class e extends Ef{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=Gm(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)(Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Xo("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[el([$m]),yo]}),e})(),Ym=(()=>{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(Gm(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)(Vo(al),Vo(ul),Vo(qm,9))},e.\u0275dir=Je({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Zm={provide:Pf,useExisting:ae(()=>Qm),multi:!0};function Km(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Qm=(()=>{class e extends Ef{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<e.length;t++){const i=e.item(t),r=this._getOptionValue(i.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,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)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Xo("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[el([Zm]),yo]}),e})(),Xm=(()=>{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(Km(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Km(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)(Vo(al),Vo(ul),Vo(Qm,9))},e.\u0275dir=Je({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Jm={provide:Lf,useExisting:ae(()=>ev),multi:!0};let ev=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?zf(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({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&&Bo("required",t.required?"":null)},inputs:{required:"required"},features:[el([Jm])]}),e})();const tv={provide:Lf,useExisting:ae(()=>nv),multi:!0};let nv=(()=>{class e{constructor(){this._validator=Uf}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=jf("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[el([tv]),dt]}),e})();const iv={provide:Lf,useExisting:ae(()=>rv),multi:!0};let rv=(()=>{class e{constructor(){this._validator=Uf}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=Hf(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[el([iv]),dt]}),e})(),sv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[Fm]]}),e})(),ov=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[sv]}),e})(),av=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Nm,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[sv]}),e})(),lv=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,r=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Pm(n,{asyncValidators:r,updateOn:s,validators:i})}control(e,t,n){return new Em(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Dm(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Em||e instanceof Pm||e instanceof Dm?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=ge({factory:function(){return new e},token:e,providedIn:av}),e})();function cv(...e){let t=e[e.length-1];return k(t)?(e.pop(),L(e,t)):G(e)}function uv(e,t){return j(e,t,1)}function dv(e,t){return function(n){return n.lift(new hv(e,t))}}class hv{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new pv(e,this.predicate,this.thisArg))}}class pv extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class gv{}class fv{}class mv{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof mv?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new mv;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof mv?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class vv{encodeKey(e){return bv(e)}encodeValue(e){return bv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function bv(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class yv{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new vv,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[r,s]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new yv({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function wv(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function _v(e){return"undefined"!=typeof Blob&&e instanceof Blob}function xv(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Av{constructor(e,t,n,i){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new mv),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new yv,this.urlWithParams=t}serializeBody(){return null===this.body?null:wv(this.body)||_v(this.body)||xv(this.body)||"string"==typeof this.body?this.body:this.body instanceof yv?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||xv(this.body)?null:_v(this.body)?this.body.type||null:wv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof yv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new Av(t,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var Cv=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class Sv{constructor(e,t=200,n="OK"){this.headers=e.headers||new mv,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class kv extends Sv{constructor(e={}){super(e),this.type=Cv.ResponseHeader}clone(e={}){return new kv({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Ev extends Sv{constructor(e={}){super(e),this.type=Cv.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Ev({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pv extends Sv{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Dv(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Ov=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof Av)i=e;else{let r=void 0;r=n.headers instanceof mv?n.headers:new mv(n.headers);let s=void 0;n.params&&(s=n.params instanceof yv?n.params:new yv({fromObject:n.params})),i=new Av(e,t,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=cv(i).pipe(uv(e=>this.handler.handle(e)));if(e instanceof Av||"events"===n.observe)return r;const s=r.pipe(dv(e=>e instanceof Ev));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(E(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(E(e=>e.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new yv).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Dv(n,t))}post(e,t,n={}){return this.request("POST",e,Dv(n,t))}put(e,t,n={}){return this.request("PUT",e,Dv(n,t))}}return e.\u0275fac=function(t){return new(t||e)(fi(gv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class Iv{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Tv=new Xn("HTTP_INTERCEPTORS");let Mv=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Bv=/^\)\]\}',?\n/;class Rv{}let Lv=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Fv=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new y(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,i=n.statusText||"OK",s=new mv(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new kv({headers:s,status:t,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Bv,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new Ev({body:l,headers:i,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new Pv({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=s(),r=new Pv({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(r)};let l=!1;const c=i=>{l||(t.next(s()),l=!0);let r={type:Cv.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:Cv.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:Cv.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(fi(Rv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Nv=new Xn("XSRF_COOKIE_NAME"),Vv=new Xn("XSRF_HEADER_NAME");class zv{}let jv=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=zd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(qc),fi(Nv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Hv=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(zv),fi(Vv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Uv=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Tv,[]);this.chain=e.reduceRight((e,t)=>new Iv(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(fv),fi(vo))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Wv=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Hv,useClass:Mv}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Nv,useValue:t.cookieName}:[],t.headerName?{provide:Vv,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[Hv,{provide:Tv,useExisting:Hv,multi:!0},{provide:zv,useClass:jv},{provide:Nv,useValue:"XSRF-TOKEN"},{provide:Vv,useValue:"X-XSRF-TOKEN"}]}),e})(),$v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[Ov,{provide:gv,useClass:Uv},Fv,{provide:fv,useExisting:Fv},Lv,{provide:Rv,useExisting:Lv}],imports:[[Wv.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Gv extends C{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 _;return this._value}next(e){super.next(this._value=e)}}class qv extends f{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Yv extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Zv(e,t,n,i,r=new Yv(e,n,i)){if(!r.closed)return t instanceof y?t.subscribe(r):R(t)(r)}const Kv={};function Qv(...e){let t=void 0,n=void 0;return k(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&c(e[0])&&(e=e[0]),G(e,n).lift(new Xv(t))}class Xv{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Jv(e,this.resultSelector))}}class Jv extends qv{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Kv),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(Zv(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const i=this.values,r=this.toRespond?i[n]===Kv?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const eb=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function tb(...e){return W(1)(cv(...e))}const nb=new y(e=>e.complete());function ib(e){return e?function(e){return new y(t=>e.schedule(()=>t.complete()))}(e):nb}function rb(e){return new y(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?F(n):ib()).subscribe(t)})}function sb(e,t){return"function"==typeof t?n=>n.pipe(sb((n,i)=>F(e(n,i)).pipe(E((e,r)=>t(n,e,i,r))))):t=>t.lift(new ob(e))}class ob{constructor(e){this.project=e}call(e,t){return t.subscribe(new ab(e,this.project))}}class ab extends V{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new N(this),i=this.destination;i.add(n),this.innerSubscription=z(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const lb=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function cb(e){return t=>0===e?ib():t.lift(new ub(e))}class ub{constructor(e){if(this.total=e,this.total<0)throw new lb}call(e,t){return t.subscribe(new db(e,this.total))}}class db extends f{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()))}}function hb(...e){const t=e[e.length-1];return k(t)?(e.pop(),n=>tb(e,n,t)):t=>tb(e,t)}function pb(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new gb(e,t,n))}}class gb{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new fb(e,this.accumulator,this.seed,this.hasSeed))}}class fb extends f{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function mb(e){return function(t){const n=new vb(e),i=t.lift(n);return n.caught=i}}class vb{constructor(e){this.selector=e}call(e,t){return t.subscribe(new bb(e,this.selector,this.caught))}}class bb extends V{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 N(this);this.add(i);const r=z(n,i);r!==i&&this.add(r)}}}function yb(e){return function(t){return 0===e?ib():t.lift(new wb(e))}}class wb{constructor(e){if(this.total=e,this.total<0)throw new lb}call(e,t){return t.subscribe(new _b(e,this.total))}}class _b extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=t++%n;e.next(i[r])}}e.complete()}}function xb(e=Sb){return t=>t.lift(new Ab(e))}class Ab{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Cb(e,this.errorFactory))}}class Cb extends f{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Sb(){return new eb}function kb(e=null){return t=>t.lift(new Eb(e))}class Eb{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Pb(e,this.defaultValue))}}class Pb extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Db(e,t){const n=arguments.length>=2;return i=>i.pipe(e?dv((t,n)=>e(t,n,i)):b,cb(1),n?kb(t):xb(()=>new eb))}function Ob(){}function Ib(e,t,n){return function(i){return i.lift(new Tb(e,t,n))}}class Tb{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Mb(e,this.nextOrObserver,this.error,this.complete))}}class Mb extends f{constructor(e,t,n,i){super(e),this._tapNext=Ob,this._tapError=Ob,this._tapComplete=Ob,this._tapError=n||Ob,this._tapComplete=i||Ob,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Ob,this._tapError=t.error||Ob,this._tapComplete=t.complete||Ob)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Bb(e){return t=>t.lift(new Rb(e))}class Rb{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Lb(e,this.callback))}}class Lb extends f{constructor(e,t){super(e),this.add(new h(t))}}class Fb{constructor(e,t){this.id=e,this.url=t}}class Nb extends Fb{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vb extends Fb{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zb extends Fb{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jb extends Fb{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Hb extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ub extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wb extends Fb{constructor(e,t,n,i,r){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $b extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gb extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qb{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Yb{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zb{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kb{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qb{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xb{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jb{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ey{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ty(e){return new ey(e)}function ny(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function iy(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const r={};for(let s=0;s<i.length;s++){const t=i[s],n=e[s];if(t.startsWith(":"))r[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ry(e,t){const n=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!sy(e[r],t[r]))return!1;return!0}function sy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),i=[...t].sort();return n.every((e,t)=>i[t]===e)}return e===t}function oy(e){return Array.prototype.concat.apply([],e)}function ay(e){return e.length>0?e[e.length-1]:null}function ly(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function cy(e){return Qo(e)?e:Zo(e)?F(Promise.resolve(e)):cv(e)}function uy(e,t,n){return n?function(e,t){return ry(e,t)}(e.queryParams,t.queryParams)&&dy(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>sy(e[n],t[n]))}(e.queryParams,t.queryParams)&&hy(e.root,t.root)}function dy(e,t){if(!vy(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!dy(e.children[n],t.children[n]))return!1}return!0}function hy(e,t){return py(e,t,t.segments)}function py(e,t,n){if(e.segments.length>n.length)return!!vy(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!vy(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!hy(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!vy(e.segments,i)&&!!e.children.primary&&py(e.children.primary,t,r)}}class gy{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ty(this.queryParams)),this._queryParamMap}toString(){return wy.serialize(this)}}class fy{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ly(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _y(this)}}class my{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ty(this.parameters)),this._parameterMap}toString(){return Py(this)}}function vy(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class by{}class yy{parse(e){const t=new My(e);return new gy(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+xy(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Cy(t)}=${Cy(e)}`).join("&"):`${Cy(t)}=${Cy(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const wy=new yy;function _y(e){return e.segments.map(e=>Py(e)).join("/")}function xy(e,t){if(!e.hasChildren())return _y(e);if(t){const t=e.children.primary?xy(e.children.primary,!1):"",n=[];return ly(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${xy(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ly(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),ly(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>"primary"===n?[xy(e.children.primary,!1)]:[`${n}:${xy(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${_y(e)}/${t[0]}`:`${_y(e)}/(${t.join("//")})`}}function Ay(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cy(e){return Ay(e).replace(/%3B/gi,";")}function Sy(e){return Ay(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ky(e){return decodeURIComponent(e)}function Ey(e){return ky(e.replace(/\+/g,"%20"))}function Py(e){return`${Sy(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Sy(e)}=${Sy(t[e])}`).join("")}`;var t}const Dy=/^[^\/()?;=#]+/;function Oy(e){const t=e.match(Dy);return t?t[0]:""}const Iy=/^[^=?&#]+/,Ty=/^[^?&#]+/;class My{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fy([],{}):new fy([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new fy(e,t)),n}parseSegment(){const e=Oy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new my(ky(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Oy(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Oy(this.remaining);e&&(n=e,this.capture(n))}e[ky(t)]=ky(n)}parseQueryParam(e){const t=function(e){const t=e.match(Iy);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Ty);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=Ey(t),r=Ey(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(r)}else e[i]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Oy(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");const s=this.parseChildren();t[r]=1===Object.keys(s).length?s.primary:new fy([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class By{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ry(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ry(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ly(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ly(e,this._root).map(e=>e.value)}}function Ry(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ry(e,n);if(t)return t}return null}function Ly(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Ly(e,n);if(i.length)return i.unshift(t),i}return[]}class Fy{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ny(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Vy extends By{constructor(e,t){super(e),this.snapshot=t,$y(this,e)}toString(){return this.snapshot.toString()}}function zy(e,t){const n=function(e,t){const n=new Uy([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Wy("",new Fy(n,[]))}(e,t),i=new Gv([new my("",{})]),r=new Gv({}),s=new Gv({}),o=new Gv({}),a=new Gv(""),l=new jy(i,r,o,a,s,"primary",t,n.root);return l.snapshot=n.root,new Vy(new Fy(l,[]),n)}class jy{constructor(e,t,n,i,r,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(e=>ty(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(e=>ty(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hy(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Uy{constructor(e,t,n,i,r,s,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ty(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ty(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wy extends By{constructor(e,t){super(t),this.url=e,$y(this,t)}toString(){return Gy(this._root)}}function $y(e,t){t.value._routerState=e,t.children.forEach(t=>$y(e,t))}function Gy(e){const t=e.children.length>0?` { ${e.children.map(Gy).join(", ")} } `:"";return`${e.value}${t}`}function qy(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ry(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ry(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!ry(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ry(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Yy(e,t){var n,i;return ry(e.params,t.params)&&vy(n=e.url,i=t.url)&&n.every((e,t)=>ry(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Yy(e.parent,t.parent))}function Zy(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return Zy(e,t,i);return Zy(e,t)})}(e,t,n);return new Fy(i,r)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Ky(t,e),e}{const n=new jy(new Gv((i=t.value).url),new Gv(i.params),new Gv(i.queryParams),new Gv(i.fragment),new Gv(i.data),i.outlet,i.component,i),r=t.children.map(t=>Zy(e,t));return new Fy(n,r)}}var i}function Ky(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)Ky(e.children[n],t.children[n])}function Qy(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xy(e){return"object"==typeof e&&null!=e&&e.outlets}function Jy(e,t,n,i,r){let s={};return i&&ly(i,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new gy(n.root===e?t:ew(n.root,e,t),s,r)}function ew(e,t,n){const i={};return ly(e.children,(e,r)=>{i[r]=e===t?n:ew(e,t,n)}),new fy(e.segments,i)}class tw{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Qy(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Xy);if(i&&i!==ay(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class nw{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function iw(e,t,n){if(e||(e=new fy([],{})),0===e.segments.length&&e.hasChildren())return rw(e,t,n);const i=function(e,t,n){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=n.length)return s;const t=e.segments[r],o=n[i];if(Xy(o))break;const a=""+o,l=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!lw(a,l,t))return s;i+=2}else{if(!lw(a,{},t))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new fy(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new fy(e.segments.slice(i.pathIndex),e.children),rw(t,0,r)}return i.match&&0===r.length?new fy(e.segments,{}):i.match&&!e.hasChildren()?sw(e,t,n):i.match?rw(e,0,r):sw(e,t,n)}function rw(e,t,n){if(0===n.length)return new fy(e.segments,{});{const i=function(e){return Xy(e[0])?e[0].outlets:{primary:e}}(n),r={};return ly(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=iw(e.children[i],t,n))}),ly(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new fy(e.segments,r)}}function sw(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){const s=n[r];if(Xy(s)){const e=ow(s.outlets);return new fy(i,e)}if(0===r&&Qy(n[0])){i.push(new my(e.segments[t].path,aw(n[0]))),r++;continue}const o=Xy(s)?s.outlets.primary:""+s,a=r<n.length-1?n[r+1]:null;o&&a&&Qy(a)?(i.push(new my(o,aw(a))),r+=2):(i.push(new my(o,{})),r++)}return new fy(i,{})}function ow(e){const t={};return ly(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=sw(new fy([],{}),0,e))}),t}function aw(e){const t={};return ly(e,(e,n)=>t[n]=""+e),t}function lw(e,t,n){return e==n.path&&ry(t,n.parameters)}class cw{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),qy(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Ny(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ly(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Ny(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(e,t,n){const i=Ny(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new Xb(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Kb(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(qy(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),uw(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=r,t.outlet&&t.outlet.activateWith(i,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function uw(e){qy(e.value),e.children.forEach(uw)}class dw{constructor(e,t){this.routes=e,this.module=t}}function hw(e){return"function"==typeof e}function pw(e){return e instanceof gy}const gw=Symbol("INITIAL_VALUE");function fw(){return sb(e=>Qv(e.map(e=>e.pipe(cb(1),hb(gw)))).pipe(pb((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==gw)return e;if(i===gw&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||pw(i))return i}return e},e)},gw),dv(e=>e!==gw),E(e=>pw(e)?e:!0===e),cb(1)))}let mw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Wo(0,"router-outlet")},directives:function(){return[d_]},encapsulation:2}),e})();function vw(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];bw(i,yw(t,i))}}function bw(e,t){e.children&&vw(e.children,t)}function yw(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function ww(e){const t=e.children&&e.children.map(ww),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=mw),n}function _w(e){return e.outlet||"primary"}function xw(e,t){const n=e.filter(e=>_w(e)===t);return n.push(...e.filter(e=>_w(e)!==t)),n}const Aw={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Cw(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Aw):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||iy)(n,e,t);if(!r)return Object.assign({},Aw);const s={};ly(r.posParams,(e,t)=>{s[t]=e.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Sw(e,t,n,i,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>kw(e,t,n)&&"primary"!==_w(n))}(e,n,i)){const r=new fy(t,function(e,t,n,i){const r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&"primary"!==_w(s)){const n=new fy([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[_w(s)]=n}return r}(e,t,i,new fy(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>kw(e,t,n))}(e,n,i)){const s=new fy(e.segments,function(e,t,n,i,r,s){const o={};for(const a of i)if(kw(e,n,a)&&!r[_w(a)]){const n=new fy([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[_w(a)]=n}return Object.assign(Object.assign({},r),o)}(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new fy(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function kw(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ew(e,t,n,i){return!!(_w(e)===i||"primary"!==i&&kw(t,n,e))&&("**"===e.path||Cw(t,e,n).matched)}function Pw(e,t,n){return 0===t.length&&!e.children[n]}class Dw{constructor(e){this.segmentGroup=e||null}}class Ow{constructor(e){this.urlTree=e}}function Iw(e){return new y(t=>t.error(new Dw(e)))}function Tw(e){return new y(t=>t.error(new Ow(e)))}function Mw(e){return new y(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Bw{constructor(e,t,n,i,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(Ul)}apply(){const e=Sw(this.urlTree.root,[],[],this.config).segmentGroup,t=new fy(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(E(e=>this.createUrlTree(Rw(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(mb(e=>{if(e instanceof Ow)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Dw)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(E(t=>this.createUrlTree(Rw(t),e.queryParams,e.fragment))).pipe(mb(e=>{if(e instanceof Dw)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new fy([],{primary:e}):e;return new gy(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(E(e=>new fy([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return F(i).pipe(uv(i=>{const r=n.children[i],s=xw(t,i);return this.expandSegmentGroup(e,s,r,i).pipe(E(e=>({segment:e,outlet:i})))}),pb((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return i=>i.pipe(e?dv((t,n)=>e(t,n,i)):b,yb(1),n?kb(t):xb(()=>new eb))}())}expandSegment(e,t,n,i,r,s){return F(n).pipe(uv(o=>this.expandSegmentAgainstRoute(e,t,n,o,i,r,s).pipe(mb(e=>{if(e instanceof Dw)return cv(null);throw e}))),Db(e=>!!e),mb((e,n)=>{if(e instanceof eb||"EmptyError"===e.name){if(Pw(t,i,r))return cv(new fy([],{}));throw new Dw(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,r,s,o){return Ew(i,t,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):Iw(t):Iw(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tw(r):this.lineralizeSegments(n,r).pipe(j(n=>{const r=new fy(n,{});return this.expandSegment(e,r,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Cw(t,i,r);if(!o)return Iw(t);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Tw(u):this.lineralizeSegments(i,u).pipe(j(i=>this.expandSegment(e,t,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?cv(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(E(e=>(n._loadedConfig=e,new fy(i,{})))):cv(new fy(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=Cw(t,n,i);if(!s)return Iw(t);const l=i.slice(a);return this.getChildConfig(e,n,i).pipe(j(e=>{const i=e.module,s=e.routes,{segmentGroup:a,slicedSegments:c}=Sw(t,o,l,s),u=new fy(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,s,u).pipe(E(e=>new fy(o,e)));if(0===s.length&&0===c.length)return cv(new fy(o,{}));const d=_w(n)===r;return this.expandSegment(i,u,s,c,d?"primary":r,!0).pipe(E(e=>new fy(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?cv(new dw(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?cv(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(j(n=>n?this.configLoader.load(e.injector,t).pipe(E(e=>(t._loadedConfig=e,e))):function(e){return new y(t=>t.error(ny(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):cv(new dw([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;return i&&0!==i.length?cv(i.map(i=>{const r=e.get(i);let s;if(function(e){return e&&hw(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!hw(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return cy(s)})).pipe(fw(),Ib(e=>{if(!pw(e))return;const t=ny(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),E(e=>!0===e)):cv(!0)}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return cv(n);if(i.numberOfChildren>1||!i.children.primary)return Mw(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const r=this.createSegmentGroup(e,t.root,n,i);return new gy(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ly(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const r=this.createSegments(e,t.segments,n,i);let s={};return ly(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,i)}),new fy(r,s)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Rw(e){const t={};for(const n of Object.keys(e.children)){const i=Rw(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new fy(e.segments.concat(t.segments),t.children)}return e}(new fy(e.segments,t))}class Lw{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Fw{constructor(e,t){this.component=e,this.route=t}}function Nw(e,t,n){const i=e._root;return zw(i,t?t._root:null,n,[i.value])}function Vw(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function zw(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ny(t);return e.children.forEach(e=>{!function(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!vy(e.url,t.url);case"pathParamsOrQueryParamsChange":return!vy(e.url,t.url)||!ry(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yy(e,t)||!ry(e.queryParams,t.queryParams);case"paramsChange":default:return!Yy(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Lw(i)):(s.data=o.data,s._resolvedData=o._resolvedData),zw(e,t,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Fw(a.outlet.component,o))}else o&&jw(t,a,r),r.canActivateChecks.push(new Lw(i)),zw(e,null,s.component?a?a.children:null:n,i,r)}(e,s[e.value.outlet],n,i.concat([e.value]),r),delete s[e.value.outlet]}),ly(s,(e,t)=>jw(e,n.getContext(t),r)),r}function jw(e,t,n){const i=Ny(e),r=e.value;ly(i,(e,i)=>{jw(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Fw(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class Hw{}function Uw(e){return new y(t=>t.error(e))}class Ww{constructor(e,t,n,i,r,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const e=Sw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new Uy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Fy(n,t),r=new Wy(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=Hy(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const r of Object.keys(t.children)){const i=t.children[r],s=xw(e,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=function(e){const t=[];for(const n of e){if(!$w(n)){t.push(n);continue}const e=t.find(e=>n.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...n.children):t.push(n)}return t}(n);return i.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,i);if(null!==e)return e}return Pw(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!Ew(e,t,n,i))return null;let r,s=[],o=[];if("**"===e.path){const i=n.length>0?ay(n).parameters:{};r=new Uy(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yw(e),_w(e),e.component,e,Gw(t),qw(t)+n.length,Zw(e))}else{const i=Cw(t,e,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Uy(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yw(e),_w(e),e.component,e,Gw(t),qw(t)+s.length,Zw(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Sw(t,s,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new Fy(r,e)]}if(0===a.length&&0===c.length)return[new Fy(r,[])];const u=_w(e)===i,d=this.processSegment(a,l,c,u?"primary":i);return null===d?null:[new Fy(r,d)]}}function $w(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Gw(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function qw(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Yw(e){return e.data||{}}function Zw(e){return e.resolve||{}}function Kw(e){return sb(t=>{const n=e(t);return n?F(n).pipe(E(()=>t)):cv(t)})}class Qw{}class Xw extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Jw=new Xn("ROUTES");class e_{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new dw(oy(i.injector.get(Jw,void 0,Ce.Self|Ce.Optional)).map(ww),i)}),mb(e=>{throw t._loader$=void 0,e}));return t._loader$=new Q(n,()=>new C).pipe(Y()),t._loader$}loadModuleFactory(e){return"string"==typeof e?F(this.loader.load(e)):cy(e()).pipe(j(e=>e instanceof Wl?cv(e):F(this.compiler.compileModuleAsync(e))))}}class t_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new n_,this.attachRef=null}}class n_{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new t_,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class i_{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function r_(e){throw e}function s_(e,t,n){return t.parse("/")}function o_(e,t){return cv(null)}let a_=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new C,this.errorHandler=r_,this.malformedUriErrorHandler=s_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:o_,afterPreactivation:o_},this.urlHandlingStrategy=new i_,this.routeReuseStrategy=new Xw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(Ul),this.console=r.get(Zc);const l=r.get(lu);this.isNgZoneEnabled=l instanceof lu&&lu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new gy(new fy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new e_(s,o,e=>this.triggerEvent(new qb(e)),e=>this.triggerEvent(new Yb(e))),this.routerState=zy(this.currentUrlTree,this.rootComponentType),this.transitions=new Gv({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(dv(e=>0!==e.id),E(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),sb(e=>{let n=!1,i=!1;return cv(e).pipe(Ib(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sb(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return cv(e).pipe(sb(e=>{const n=this.transitions.getValue();return t.next(new Nb(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?nb:Promise.resolve(e)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,sb(e=>function(e,t,n,i,r){return new Bw(e,t,n,i,r).apply()}(i,r,s,e.extractedUrl,o).pipe(E(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Ib(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return j(s=>function(e,t,n,i,r="emptyOnly",s="legacy"){try{const o=new Ww(e,t,n,i,r,s).recognize();return null===o?Uw(new Hw):cv(o)}catch(o){return Uw(o)}}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(E(e=>Object.assign(Object.assign({},s),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ib(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new Hb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=e,a=new Nb(n,this.serializeUrl(i),r,s);t.next(a);const l=zy(i,this.rootComponentType).snapshot;return cv(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),nb}),Kw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Ib(e=>{const t=new Ub(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),E(e=>Object.assign(Object.assign({},e),{guards:Nw(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return j(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?cv(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return F(e).pipe(j(e=>function(e,t,n,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?cv(s.map(s=>{const o=Vw(s,t,r);let a;if(function(e){return e&&hw(e.canDeactivate)}(o))a=cy(o.canDeactivate(e,t,n,i));else{if(!hw(o))throw new Error("Invalid CanDeactivate guard");a=cy(o(e,t,n,i))}return a.pipe(Db())})).pipe(fw()):cv(!0)}(e.component,e.route,n,t,i)),Db(e=>!0!==e,!0))}(o,i,r,e).pipe(j(n=>n&&"boolean"==typeof n?function(e,t,n,i){return F(t).pipe(uv(t=>tb(function(e,t){return null!==e&&t&&t(new Zb(e)),cv(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Qb(e)),cv(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>rb(()=>cv(t.guards.map(r=>{const s=Vw(r,t.node,n);let o;if(function(e){return e&&hw(e.canActivateChild)}(s))o=cy(s.canActivateChild(i,e));else{if(!hw(s))throw new Error("Invalid CanActivateChild guard");o=cy(s(i,e))}return o.pipe(Db())})).pipe(fw())));return cv(r).pipe(fw())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?cv(i.map(i=>rb(()=>{const r=Vw(i,t,n);let s;if(function(e){return e&&hw(e.canActivate)}(r))s=cy(r.canActivate(t,e));else{if(!hw(r))throw new Error("Invalid CanActivate guard");s=cy(r(t,e))}return s.pipe(Db())}))).pipe(fw()):cv(!0)}(e,t.route,n))),Db(e=>!0!==e,!0))}(i,s,e,t):cv(n)),E(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Ib(e=>{if(pw(e.guardsResult)){const t=ny(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new Wb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),dv(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new zb(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Kw(e=>{if(e.guards.canActivateChecks.length)return cv(e).pipe(Ib(e=>{const t=new $b(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),sb(e=>{let n=!1;return cv(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,j(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return cv(e);let s=0;return F(n).pipe(uv(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return cv({});const s={};return F(r).pipe(j(r=>function(e,t,n,i){const r=Vw(e,t,i);return cy(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Ib(e=>{s[r]=e}))),yb(1),j(()=>Object.keys(s).length===r.length?cv(s):nb))}(e._resolve,e,t,i).pipe(E(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Hy(e,n).resolve),null)))}(e.route,t,i,r)),Ib(()=>s++),yb(1),j(t=>s===n.length?cv(e):nb))})),Ib({next:()=>n=!0,complete:()=>{if(!n){const n=new zb(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,r}),Ib(e=>{const t=new Gb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Kw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),E(e=>{const t=function(e,t,n){const i=Zy(e,t._root,n?n._root:void 0);return new Vy(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Ib(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,s=this.routeReuseStrategy,o=e=>this.triggerEvent(e),E(e=>(new cw(s,e.targetRouterState,e.currentRouterState,o).activate(r),e))),Ib({next(){n=!0},complete(){n=!0}}),Bb(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new zb(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),mb(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=pw(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new zb(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new jb(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var r;return nb}));var r,s,o}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(i,e,n,r)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){vw(e),this.config=e.map(ww),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,r){if(0===n.length)return Jy(t.root,t.root,t,i,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tw(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return ly(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new tw(n,t,i)}(n);if(s.toRoot())return Jy(t.root,new fy([],{}),t,i,r);const o=function(e,t,n){if(e.isAbsolute)return new nw(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new nw(e,e===t.root,0)}const i=Qy(e.commands[0])?0:1;return function(e,t,n){let i=e,r=t,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new nw(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?rw(o.segmentGroup,o.index,s.commands):iw(o.segmentGroup,o.index,s.commands);return Jy(o.segmentGroup,a,t,i,r)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=pw(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(pw(e))return uy(this.currentUrlTree,e,t);const n=this.parseUrl(e);return uy(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Vb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((e,t)=>{l=e,c=t});const d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(fi(ei),fi(by),fi(n_),fi(id),fi(vo),fi(Iu),fi(su),fi(void 0))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),l_=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new C,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:u_(this.skipLocationChange),replaceUrl:u_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:u_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_),Vo(jy),Zn("tabindex"),Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Xo("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})(),c_=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new C,this.subscription=e.events.subscribe(e=>{e instanceof Vb&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:u_(this.skipLocationChange),replaceUrl:u_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:u_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_),Vo(jy),Vo(Xu))},e.\u0275dir=Je({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Xo("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Fa("href",t.href,or),Bo("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})();function u_(e){return""===e||!!e}let d_=(()=>{class e{constructor(e,t,n,i,r){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new wc,this.deactivateEvents=new wc,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new h_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(Vo(n_),Vo(Gl),Vo(il),Zn("name"),Vo(Ml))},e.\u0275dir=Je({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class h_{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===jy?this.route:e===n_?this.childContexts:this.parent.get(e,t)}}class p_{}class g_{preload(e,t){return cv(null)}}let f_=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new e_(t,n,t=>e.triggerEvent(new qb(t)),t=>e.triggerEvent(new Yb(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(dv(e=>e instanceof Vb),uv(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Ul);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return F(n).pipe(W(),E(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?cv(t._loadedConfig):this.loader.load(e.injector,t)).pipe(j(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(fi(a_),fi(Iu),fi(su),fi(vo),fi(p_))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),m_=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Nb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Vb&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Jb&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Jb(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(fi(a_),fi(gh),fi(void 0))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const v_=new Xn("ROUTER_CONFIGURATION"),b_=new Xn("ROUTER_FORROOT_GUARD"),y_=[id,{provide:by,useClass:yy},{provide:a_,useFactory:function(e,t,n,i,r,s,o,a={},l,c){const u=new a_(null,e,t,n,i,r,s,oy(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(a,u),a.enableTracing){const e=ju();u.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u},deps:[by,n_,id,vo,Iu,su,Jw,v_,[class{},new wi],[Qw,new wi]]},n_,{provide:jy,useFactory:function(e){return e.routerState.root},deps:[a_]},{provide:Iu,useClass:Bu},f_,g_,class{preload(e,t){return t().pipe(mb(()=>cv(null)))}},{provide:v_,useValue:{enableTracing:!1}}];function w_(){return new Cu("Router",a_)}let __=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[y_,S_(t),{provide:b_,useFactory:C_,deps:[[a_,new wi,new _i]]},{provide:v_,useValue:n||{}},{provide:Xu,useFactory:A_,deps:[Uu,[new yi(ed),new wi],v_]},{provide:m_,useFactory:x_,deps:[a_,gh,v_]},{provide:p_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:g_},{provide:Cu,multi:!0,useFactory:w_},[k_,{provide:jc,multi:!0,useFactory:E_,deps:[k_]},{provide:D_,useFactory:P_,deps:[k_]},{provide:Yc,multi:!0,useExisting:D_}]]}}static forChild(t){return{ngModule:e,providers:[S_(t)]}}}return e.\u0275fac=function(t){return new(t||e)(fi(b_,8),fi(a_,8))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();function x_(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new m_(e,t,n)}function A_(e,t,n={}){return n.useHash?new nd(e,t):new td(e,t)}function C_(e){return"guarded"}function S_(e){return[{provide:Jn,multi:!0,useValue:e},{provide:Jw,multi:!0,useValue:e}]}let k_=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new C}appInitializer(){return this.injector.get($u,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(a_),i=this.injector.get(v_);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?cv(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(v_),n=this.injector.get(f_),i=this.injector.get(m_),r=this.injector.get(a_),s=this.injector.get(Du);e===s.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(fi(vo))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function E_(e){return e.appInitializer.bind(e)}function P_(e){return e.bootstrapListener.bind(e)}const D_=new Xn("Router Initializer");function O_(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function I_(e,t){return function(n,i){t(n,i,e)}}function T_(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function M_(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})}n("meiF"),n("lTIg"),n("RQGG"),n("bC4P"),n("iWo5");var B_=n("E/Mt"),R_=n("1vRN"),L_=(n("39oe"),n("k4ps")),F_=n("r7QR"),N_=n("7OTs"),V_=(n("y08P"),n("wEJo"));function z_(e,t,n,i){return r(n)&&(i=n,n=void 0),i?z_(e,t,n).pipe(E(e=>c(e)?i(...e):i(e))):new y(i=>{j_(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function j_(e,t,n,i,r){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,r),s=()=>i.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),s=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),s=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)j_(e[s],t,n,i,r)}i.add(s)}function H_(e,t){return n=>n.lift(new U_(e,t))}n("B4Jq");class U_{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new W_(e,this.compare,this.keySelector))}}class W_ extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}const $_=B_.e,G_=["*"],q_=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e);let Y_=(()=>{class e{constructor(e,t){this.injector=e,this.el=t,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,Z_(this.el)}handleChangeEvent(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),Z_(this.el))}_handleBlurEvent(e){e===this.el.nativeElement&&(this.onTouched(),Z_(this.el))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let e;try{e=this.injector.get(sm)}catch(n){}if(!e)return;e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(()=>Z_(this.el)));const t=e.control;t&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(e=>{if(t[e]){const n=t[e].bind(t);t[e]=(...e)=>{n(...e),Z_(this.el)}}})}}return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=Je({type:e,hostBindings:function(e,t){1&e&&Xo("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),e})();const Z_=e=>{q_(()=>{const t=e.nativeElement,n=K_(t);Q_(t,n);const i=t.closest("ion-item");i&&Q_(i,n)})},K_=e=>{const t=e.classList,n=[];for(let i=0;i<t.length;i++){const e=t.item(i);null!==e&&X_(e,"ng-")&&n.push("ion-"+e.substr(3))}return n},Q_=(e,t)=>{const n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(e=>n.remove(e)),t.forEach(e=>n.add(e))},X_=(e,t)=>e.substr(0,t.length)===t;var J_;let ex=(()=>{let e=J_=class extends Y_{constructor(e,t){super(e,t)}writeValue(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,Z_(this.el)}_handleIonChange(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleIonChange(e.target)})},features:[el([{provide:Pf,useExisting:J_,multi:!0}]),yo]}),e})();var tx;let nx=(()=>{let e=tx=class extends Y_{constructor(e,t){super(e,t)}_handleIonChange(e){this.handleChangeEvent(e,e.value)}registerOnChange(e){super.registerOnChange(t=>{e(""===t?null:parseFloat(t))})}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleIonChange(e.target)})},features:[el([{provide:Pf,useExisting:tx,multi:!0}]),yo]}),e})();var ix;let rx=(()=>{let e=ix=class extends Y_{constructor(e,t){super(e,t)}_handleIonSelect(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&Xo("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[el([{provide:Pf,useExisting:ix,multi:!0}]),yo]}),e})();var sx;let ox=(()=>{let e=sx=class extends Y_{constructor(e,t){super(e,t)}_handleChangeEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[el([{provide:Pf,useExisting:sx,multi:!0}]),yo]}),e})();var ax;let lx=(()=>{let e=ax=class extends Y_{constructor(e,t){super(e,t)}_handleInputEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[el([{provide:Pf,useExisting:ax,multi:!0}]),yo]}),e})(),cx=(()=>{let e=class{constructor(e,t){this.doc=e,this.backButton=new C,this.keyboardDidShow=new C,this.keyboardDidHide=new C,this.pause=new C,this.resume=new C,this.resize=new C,t.run(()=>{let n;this.win=e.defaultView,this.backButton.subscribeWithPriority=function(e,n){return this.subscribe(i=>i.register(e,e=>t.run(()=>n(e))))},dx(this.pause,e,"pause"),dx(this.resume,e,"resume"),dx(this.backButton,e,"ionBackButton"),dx(this.resize,this.win,"resize"),dx(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),dx(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(e=>{n=e}),this.win&&this.win.cordova?e.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(e){return Object(B_.a)(this.win,e)}platforms(){return Object(B_.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(e){return ux(this.win.location.href,e)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(e){const t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(lu))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e(fi(Hu),fi(lu))},token:e,providedIn:"root"}),e=O_([I_(0,yi(Hu))],e),e})();const ux=(e,t)=>{t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},dx=(e,t,n)=>{t&&t.addEventListener(n,t=>{e.next(null!=t?t.detail:void 0)})};let hx=(()=>{let e=class{constructor(e,t,n,i){this.location=t,this.serializer=n,this.router=i,this.direction=gx,this.animated=fx,this.guessDirection="forward",this.lastNavId=-1,i&&i.events.subscribe(e=>{if(e instanceof Nb){const t=e.restoredState?e.restoredState.navigationId:e.id;this.guessDirection=t<this.lastNavId?"back":"forward",this.guessAnimation=e.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?e.id:t}}),e.backButton.subscribeWithPriority(0,e=>{this.pop(),e()})}navigateForward(e,t={}){return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateBack(e,t={}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateRoot(e,t={}){return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}back(e={animated:!0,animationDirection:"back"}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}pop(){return M_(this,void 0,void 0,function*(){let e=this.topOutlet;for(;e&&!(yield e.pop());)e=e.parentOutlet})}setDirection(e,t,n,i){this.direction=e,this.animated=px(e,t,n),this.animationBuilder=i}setTopOutlet(e){this.topOutlet=e}consumeTransition(){let e,t="root";const n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=gx,this.animated=fx,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}navigate(e,t){if(Array.isArray(e))return this.router.navigate(e,t);{const n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}};return e.\u0275fac=function(t){return new(t||e)(fi(cx),fi(id),fi(by),fi(a_,8))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e(fi(cx),fi(id),fi(by),fi(a_,8))},token:e,providedIn:"root"}),e=O_([I_(3,wi())],e),e})();const px=(e,t,n)=>{if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},gx="auto",fx=void 0,mx=(e,t)=>{const n=e.prototype;t.forEach(e=>{Object.defineProperty(n,e,{get(){return this.el[e]},set(t){this.z.runOutsideAngular(()=>this.el[e]=t)}})})},vx=(e,t)=>{const n=e.prototype;t.forEach(e=>{n[e]=function(){const t=arguments;return this.z.runOutsideAngular(()=>this.el[e].apply(this.el,t))}})},bx=(e,t,n)=>{n.forEach(n=>e[n]=z_(t,n))};function yx(e){return function(t){return e.inputs&&mx(t,e.inputs),e.methods&&vx(t,e.methods),t}}let wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-app"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),_x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-avatar"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e),e})(),Ax=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),Cx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e),e})(),Sx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["collapse"]})],e),e})(),kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),Ex=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["mode"]})],e),e})(),Px=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode","translucent"]})],e),e})(),Dx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),Ox=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e),e})(),Ix=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","mode","outline"]})],e),e})(),Tx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],e),e})(),Mx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e),e})(),Bx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],e),e})(),Rx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e),e})(),Lx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e),e})(),Fx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["activated","side"]})],e),e})(),Nx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["mode","translucent"]})],e),e})(),Vx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["fixed"]})],e),e})(),zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["collapse","mode","translucent"]})],e),e})(),jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],e),e})(),Hx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["alt","src"]})],e),e})(),Ux=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInfinite"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled","position","threshold"],methods:["complete"]})],e),e})(),Wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["loadingSpinner","loadingText"]})],e),e})(),$x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),Gx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],e),e})(),Yx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSwipe"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["side"]})],e),e})(),Zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionDrag"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],e),e})(),Kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode","position"]})],e),e})(),Qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e),e})(),Xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","lines","mode"]})],e),e})(),Jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e),e})(),eA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["autoHide","color","disabled","menu","mode","type"]})],e),e})(),tA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["autoHide","menu"]})],e),e})(),nA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),iA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","mode","name","value"]})],e),e})(),rA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["allowEmptySelection","name","value"]})],e),e})(),sA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],e),e})(),oA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-reorder"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),aA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionItemReorder"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled"],methods:["complete"]})],e),e})(),lA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-row"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),cA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),uA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],e),e})(),dA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled","layout","mode","type","value"]})],e),e})(),hA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e),e})(),pA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled","value"]})],e),e})(),gA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-slide"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),fA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e),e})(),mA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","duration","name","paused"]})],e),e})(),vA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSplitPaneVisible"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["contentId","disabled","when"]})],e),e})(),bA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","size"]})],e),e})(),yA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["checked","color","disabled","mode","name","value"]})],e),e})(),wA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),_A=(()=>{let e=class{get(e,t){const n=AA();return n?n.get(e,t):null}getBoolean(e,t){const n=AA();return!!n&&n.getBoolean(e,t)}getNumber(e,t){const n=AA();return n?n.getNumber(e,t):0}set(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const n=AA();n&&n.set(e,t)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();const xA=new Xn("USERCONFIG"),AA=()=>{if("undefined"!=typeof window){const e=window.Ionic;if(e&&e.config)return e.config}return null};class CA{constructor(e={}){this.data=e}get(e){return this.data[e]}}let SA=(()=>{let e=class{constructor(e,t){this.zone=e,this.appRef=t}create(e,t,n){return new kA(e,t,n,this.appRef,this.zone)}};return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(Du))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();class kA{constructor(e,t,n,i,r){this.resolver=e,this.injector=t,this.location=n,this.appRef=i,this.zone=r,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(e,t,n,i){return this.zone.run(()=>new Promise(r=>{r(EA(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,e,t,n,i))}))}removeViewFromDom(e,t){return this.zone.run(()=>new Promise(e=>{const n=this.elRefMap.get(t);if(n){n.destroy(),this.elRefMap.delete(t);const e=this.elEventsMap.get(t);e&&(e(),this.elEventsMap.delete(t))}e()}))}}const EA=(e,t,n,i,r,s,o,a,l,c,u)=>{const d=t.resolveComponentFactory(l),h=vo.create({providers:IA(c),parent:n}),p=i?i.createComponent(d,i.length,h):d.create(h),g=p.instance,f=p.location.nativeElement;if(c&&Object.assign(g,c),u)for(const v of u)f.classList.add(v);const m=DA(e,g,f);return a.appendChild(f),i||r.attachView(p.hostView),p.changeDetectorRef.reattach(),s.set(f,p),o.set(f,m),f},PA=[L_.a,L_.b,L_.c,L_.d,L_.e],DA=(e,t,n)=>e.run(()=>{const e=PA.filter(e=>"function"==typeof t[e]).map(e=>{const i=n=>t[e](n.detail);return n.addEventListener(e,i),()=>n.removeEventListener(e,i)});return()=>e.forEach(e=>e())}),OA=new Xn("NavParamsToken"),IA=e=>[{provide:OA,useValue:e},{provide:CA,useFactory:TA,deps:[OA]}],TA=e=>new CA(e),MA=(e,t)=>((e=e.filter(e=>e.stackId!==t.stackId)).push(t),e),BA=(e,t)=>{const n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},RA=(e,t)=>{if(!e)return;const n=LA(t);for(let i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},LA=e=>e.split("/").map(e=>e.trim()).filter(e=>""!==e),FA=e=>{e&&(e.ref.destroy(),e.unlistenEvents())};class NA{constructor(e,t,n,i,r,s){this.containerEl=t,this.router=n,this.navCtrl=i,this.zone=r,this.location=s,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==e?LA(e):void 0}createView(e,t){const n=BA(this.router,t),i=e&&e.location&&e.location.nativeElement,r=DA(this.zone,e.instance,i);return{id:this.nextId++,stackId:RA(this.tabsPrefix,n),unlistenEvents:r,element:i,ref:e,url:n}}getExistingView(e){const t=BA(this.router,e),n=this.views.find(e=>e.url===t);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(e){const t=this.navCtrl.consumeTransition();let{direction:n,animation:i,animationBuilder:r}=t;const s=this.activeView,o=((e,t)=>!t||e.stackId!==t.stackId)(e,s);o&&(n="back",i=void 0);const a=this.views.slice();let l;const c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const u=this.views.includes(e),d=this.insertView(e,n);u||e.ref.changeDetectorRef.detectChanges();const h=e.animationBuilder;return void 0!==r||"back"!==n||o||void 0===h||(r=h),s&&(s.animationBuilder=r),this.zone.runOutsideAngular(()=>this.wait(()=>(s&&s.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),this.transition(e,s,i,this.canGoBack(1),!1,r).then(()=>VA(e,d,a,this.location)).then(()=>({enteringView:e,direction:n,animation:i,tabSwitch:o})))))}canGoBack(e,t=this.getActiveStackId()){return this.getStack(t).length>e}pop(e,t=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(t);if(n.length<=e)return Promise.resolve(!1);const i=n[n.length-e-1];let r=i.url;const s=i.savedData;if(s){const e=s.get("primary");e&&e.route&&e.route._routerState&&e.route._routerState.snapshot&&e.route._routerState.snapshot.url&&(r=e.route._routerState.snapshot.url)}const{animationBuilder:o}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(r,Object.assign({},i.savedExtras,{animation:o})).then(()=>!0)})}startBackTransition(){const e=this.activeView;if(e){const t=this.getStack(e.stackId),n=t[t.length-2],i=n.animationBuilder;return this.wait(()=>this.transition(n,e,"back",this.canGoBack(2),!0,i))}return Promise.resolve()}endBackTransition(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&zA(this.activeView,this.views,this.views,this.location)}getLastUrl(e){const t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}getRootUrl(e){const t=this.getStack(e);return t.length>0?t[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(FA),this.activeView=void 0,this.views=[]}getStack(e){return this.views.filter(t=>t.stackId===e)}insertView(e,t){return this.activeView=e,this.views=((e,t,n)=>"root"===n?MA(e,t):"forward"===n?((e,t)=>(e.indexOf(t)>=0?e=e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):e.push(t),e))(e,t):((e,t)=>e.indexOf(t)>=0?e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):MA(e,t))(e,t))(this.views,e,t),this.views.slice()}transition(e,t,n,i,r,s){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);const o=e?e.element:void 0,a=t?t.element:void 0,l=this.containerEl;return o&&o!==a&&(o.classList.add("ion-page"),o.classList.add("ion-page-invisible"),o.parentElement!==l&&l.appendChild(o),l.commit)?l.commit(o,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:r,animationBuilder:s}):Promise.resolve(!1)}wait(e){return M_(this,void 0,void 0,function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=e()})}}const VA=(e,t,n,i)=>"function"==typeof requestAnimationFrame?new Promise(r=>{requestAnimationFrame(()=>{zA(e,t,n,i),r()})}):Promise.resolve(),zA=(e,t,n,i)=>{n.filter(e=>!t.includes(e)).forEach(FA),t.forEach(t=>{const n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){const e=t.element;e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})};let jA=(()=>{let e=class{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h){this.parentContexts=e,this.location=t,this.resolver=n,this.config=s,this.navCtrl=o,this.parentOutlet=h,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Gv(null),this.stackEvents=new wc,this.activateEvents=new wc,this.deactivateEvents=new wc,this.nativeEl=l.nativeElement,this.name=i||"primary",this.tabsPrefix="true"===r?BA(c,d):void 0,this.stackCtrl=new NA(this.tabsPrefix,this.nativeEl,c,o,u,a),e.onChildOutletCreated(this.name,this)}set animation(e){this.nativeEl.animation=e}set animated(e){this.nativeEl.animated=e}set swipeGesture(e){this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:e=>this.stackCtrl.endBackTransition(e)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}new Promise(e=>Object(R_.c)(this.nativeEl,e)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(e,t){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};const e=this.getContext();if(e.route){const t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}const e=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");let n;this._activatedRoute=e;let i=this.stackCtrl.getExistingView(e);if(i){n=this.activated=i.ref;const t=i.savedData;t&&(this.getContext().children.contexts=t),this.updateActivatedRouteProxy(n.instance,e)}else{const r=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new Gv(null),a=this.createActivatedRouteProxy(o,e),l=new HA(a,s,this.location.injector);n=this.activated=this.location.createComponent(r,this.location.length,l),o.next(n.instance),i=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=i,this.stackCtrl.setActive(i).then(e=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(e)})}canGoBack(e=1,t){return this.stackCtrl.canGoBack(e,t)}pop(e=1,t){return this.stackCtrl.pop(e,t)}getLastUrl(e){const t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}getLastRouteView(e){return this.stackCtrl.getLastUrl(e)}getRootView(e){return this.stackCtrl.getRootUrl(e)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(e,t){const n=new jy;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}proxyObservable(e,t){return e.pipe(dv(e=>!!e),sb(e=>this.currentActivatedRoute$.pipe(dv(t=>null!==t&&t.component===e),sb(e=>e&&e.activatedRoute[t]),H_())))}updateActivatedRouteProxy(e,t){const n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}};return e.\u0275fac=function(t){return new(t||e)(Vo(n_),Vo(Gl),Vo(il),Zn("name"),Zn("tabs"),Vo(_A),Vo(hx),Vo(id),Vo(al),Vo(a_),Vo(lu),Vo(jy),Vo(e,12))},e.\u0275dir=Je({type:e,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e=O_([I_(3,Qn("name")),I_(4,wi()),I_(4,Qn("tabs")),I_(12,_i()),I_(12,wi())],e),e})();class HA{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===jy?this.route:e===n_?this.childContexts:this.parent.get(e,t)}}let UA=(()=>{let e=class{constructor(e,t,n){this.routerOutlet=e,this.navCtrl=t,this.config=n}onClick(e){const t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}};return e.\u0275fac=function(t){return new(t||e)(Vo(jA,8),Vo(hx),Vo(_A))},e.\u0275dir=Je({type:e,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&Xo("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),e=O_([I_(0,wi())],e),e})(),WA=(()=>{let e=class{constructor(e,t,n,i,r){this.locationStrategy=e,this.navCtrl=t,this.elementRef=n,this.router=i,this.routerLink=r,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTargetUrlAndHref(){if(this.routerLink){const e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}onClick(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}};return e.\u0275fac=function(t){return new(t||e)(Vo(Xu),Vo(hx),Vo(al),Vo(a_),Vo(l_,8))},e.\u0275dir=Je({type:e,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&Xo("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[dt]}),e=O_([I_(4,wi())],e),e})(),$A=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(Vo(Vl))},e.\u0275dir=Je({type:e,selectors:[["","virtualFooter",""]]}),e})(),GA=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(Vo(Vl))},e.\u0275dir=Je({type:e,selectors:[["","virtualHeader",""]]}),e})(),qA=(()=>{let e=class{constructor(e,t){this.templateRef=e,this.viewContainer=t}};return e.\u0275fac=function(t){return new(t||e)(Vo(Vl),Vo(Gl))},e.\u0275dir=Je({type:e,selectors:[["","virtualItem",""]]}),e})(),YA=(()=>{let e=class{constructor(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(e){if(this.trackBy&&"items"in e){const n=e.items.currentValue;if(void 0===this.differ&&null!=n)try{this.differ=this.iterableDiffers.find(n).create(this.trackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(e,t,n){return this.z.run(()=>{let i;if(e){i=this.refMap.get(e);const n=i.context;n.$implicit=t.value,n.index=t.index}else i=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(t.type),{$implicit:t.value,index:n},n),e=ZA(i),this.refMap.set(e,i);return i.detectChanges(),e})}getComponent(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}};return e.\u0275fac=function(t){return new(t||e)(Vo(lu),Vo(kl),Vo(al))},e.\u0275cmp=qe({type:e,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,qA,1),Bc(n,GA,1),Bc(n,$A,1)),2&e){let e;Tc(e=Rc())&&(t.itmTmp=e.first),Tc(e=Rc())&&(t.hdrTmp=e.first),Tc(e=Rc())&&(t.ftrTmp=e.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[dt],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],e),e})();const ZA=e=>{const t=e.rootNodes;for(let n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};class KA{constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,t,n){return this.ctrl.dismiss(e,t,n)}getTop(){return this.ctrl.getTop()}}let QA=(()=>{let e=class extends KA{constructor(){super(N_.c)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),XA=(()=>{let e=class extends KA{constructor(){super(N_.b)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),JA=(()=>{let e=class extends KA{constructor(){super(N_.k)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),eC=(()=>{let e=class{open(e){return F_.a.open(e)}close(e){return F_.a.close(e)}toggle(e){return F_.a.toggle(e)}enable(e,t){return F_.a.enable(e,t)}swipeGesture(e,t){return F_.a.swipeGesture(e,t)}isOpen(e){return F_.a.isOpen(e)}isEnabled(e){return F_.a.isEnabled(e)}get(e){return F_.a.get(e)}getOpen(){return F_.a.getOpen()}getMenus(){return F_.a.getMenus()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),tC=(()=>{let e=class extends KA{constructor(e,t,n){super(N_.l),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(fi(SA),fi(il),fi(vo))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),nC=(()=>{let e=class extends KA{constructor(e,t,n){super(N_.d),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(fi(SA),fi(il),fi(vo))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),iC=(()=>{let e=class extends KA{constructor(){super(N_.o)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();class rC{shouldDetach(e){return!1}shouldAttach(e){return!1}store(e,t){}retrieve(e){return null}shouldReuseRoute(e,t){if(e.routeConfig!==t.routeConfig)return!1;const n=e.params,i=t.params,r=Object.keys(n),s=Object.keys(i);if(r.length!==s.length)return!1;for(const o of r)if(i[o]!==n[o])return!1;return!0}}let sC=!1;const oC=(e,t,i)=>()=>{const r=t.defaultView;if(r&&"undefined"!=typeof window){sC&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),sC=!0,(r.Ionic=r.Ionic||{}).config=Object.assign({},e,{_zoneGate:e=>i.run(e)});const s="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(()=>{return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:q_,jmp:e=>i.runOutsideAngular(e),ael(e,t,n,i){e[s](t,n,i)},rel(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(V_.b&&V_.b.supports&&V_.b.supports("color","var(--c)")?Object(V_.d)():n.e(6).then(n.t.bind(null,"9qUq",7)).then(()=>(V_.n.$cssShim$=V_.q.__cssshim)?V_.n.$cssShim$.i():0)).then(()=>($_(),Object(V_.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)));var e})}};var aC;let lC=(()=>{let e=aC=class{static forRoot(e){return{ngModule:aC,providers:[{provide:xA,useValue:e},{provide:jc,useFactory:oC,multi:!0,deps:[xA,Hu,lu]}]}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[SA,tC,nC],imports:[[hh]]}),e})();var cC=n("Hfs6"),uC=n.n(cC);function dC(e){return!!e&&(e instanceof y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}class hC extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class pC extends hC{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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}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=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class gC extends pC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let fC=(()=>{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 mC extends fC{constructor(e,t=fC.now){super(e,()=>mC.delegate&&mC.delegate!==this?mC.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return mC.delegate&&mC.delegate!==this?mC.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}}}class vC extends mC{}const bC=new vC(gC);function yC(e,t){return new y(t?n=>t.schedule(wC,0,{error:e,subscriber:n}):t=>t.error(e))}function wC({error:e,subscriber:t}){t.error(e)}let _C=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return cv(this.value);case"E":return yC(this.error);case"C":return ib()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class xC extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(xC.dispatch,this.delay,new AC(e,this.destination)))}_next(e){this.scheduleMessage(_C.createNext(e))}_error(e){this.scheduleMessage(_C.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(_C.createComplete()),this.unsubscribe()}}class AC{constructor(e,t){this.notification=e,this.destination=t}}class CC extends C{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new SC(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new _;if(this.isStopped||this.hasError?s=h.EMPTY:(this.observers.push(e),s=new x(this,e)),i&&e.add(e=new xC(e,i)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||bC).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(e-i[s].time<n);)s++;return r>t&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}class SC{constructor(e,t){this.time=e,this.value=t}}function kC(e,t,n){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(c){let u;o++,!r||a?(a=!1,r=new CC(e,t,i),u=r.subscribe(this),s=c.subscribe({next(e){r.next(e)},error(e){a=!0,r.error(e)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):u=r.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,s&&!l&&n&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}class EC{}let PC=(()=>{class e extends EC{getTranslation(e){return cv({})}}return e.\u0275fac=function(t){return DC(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const DC=qn(PC);class OC{}let IC=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function TC(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,i,r,s=typeof e;if(s==typeof t&&"object"==s){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!TC(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!TC(e[i],t[i]))return!1;return!0}}return!1}function MC(e){return null!=e}function BC(e){return e&&"object"==typeof e&&!Array.isArray(e)}function RC(e,t){let n=Object.assign({},e);return BC(e)&&BC(t)&&Object.keys(t).forEach(i=>{BC(t[i])?i in e?n[i]=RC(e[i],t[i]):Object.assign(n,{[i]:t[i]}):Object.assign(n,{[i]:t[i]})}),n}class LC{}let FC=(()=>{class e extends LC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!MC(e)||!MC(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let i=this.getValue(t,n);return MC(i)?i:e}):e}}return e.\u0275fac=function(t){return NC(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const NC=qn(FC);class VC{}let zC=(()=>{class e extends VC{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return jC(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const jC=qn(zC);class HC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new wc,this.onLangChange=new wc,this.onDefaultLangChange=new wc}}const UC=new Xn("USE_STORE"),WC=new Xn("USE_DEFAULT_LANG"),$C=new Xn("DEFAULT_LANGUAGE"),GC=new Xn("USE_EXTEND");let qC=(()=>{class e{constructor(e,t,n,i,r,s=!0,o=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=r,this.useDefaultLang=s,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new wc,this._onLangChange=new wc,this._onDefaultLangChange=new wc,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe(cb(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return cv(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(cb(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),cv(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(kC(1),cb(1));return this.loadingTranslations=t.pipe(E(t=>this.compiler.compileTranslations(t,e)),kC(1),cb(1)),this.loadingTranslations.subscribe({next:t=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},t),this.translations[e]):t,this.updateLangs(),this.pending=!1},error:e=>{this.pending=!1}}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?RC(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let i;if(t instanceof Array){let i={},r=!1;for(let s of t)i[s]=this.getParsedResult(e,s,n),dC(i[s])&&(r=!0);return r?Sf(t.map(e=>dC(i[e])?i[e]:cv(i[e]))).pipe(E(e=>{let n={};return e.forEach((e,i)=>{n[t[i]]=e}),n})):i}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),i=this.missingTranslationHandler.handle(e)}return void 0!==i?i:t}get(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(uv(n=>dC(n=this.getParsedResult(n,e,t))?n:cv(n)));{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return dC(n)?n:cv(n)}}getStreamOnTranslationChange(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return tb(rb(()=>this.get(e,t)),this.onTranslationChange.pipe(sb(n=>{const i=this.getParsedResult(n.translations,e,t);return"function"==typeof i.subscribe?i:cv(i)})))}stream(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return tb(rb(()=>this.get(e,t)),this.onLangChange.pipe(sb(n=>{const i=this.getParsedResult(n.translations,e,t);return dC(i)?i:cv(i)})))}instant(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(dC(n)){if(e instanceof Array){let t={};return e.forEach((n,i)=>{t[e[i]]=e[i]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(fi(HC),fi(EC),fi(VC),fi(LC),fi(OC),fi(WC),fi(UC),fi(GC),fi($C))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),YC=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let i=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let r=this.translate.getParsedResult(n,e,t);dC(r.subscribe)?r.subscribe(i):i(r)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(TC(e,this.lastKey)&&TC(t,this.lastParams))return this.value;let n;if(MC(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),zc())},e.\u0275pipe=et({name:"translate",type:e,pure:!1}),e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),ZC=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:EC,useClass:PC},t.compiler||{provide:VC,useClass:zC},t.parser||{provide:LC,useClass:FC},t.missingTranslationHandler||{provide:OC,useClass:IC},HC,{provide:UC,useValue:t.isolate},{provide:WC,useValue:t.useDefaultLang},{provide:GC,useValue:t.extend},{provide:$C,useValue:t.defaultLanguage},qC]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:EC,useClass:PC},t.compiler||{provide:VC,useClass:zC},t.parser||{provide:LC,useClass:FC},t.missingTranslationHandler||{provide:OC,useClass:IC},{provide:UC,useValue:t.isolate},{provide:WC,useValue:t.useDefaultLang},{provide:GC,useValue:t.extend},{provide:$C,useValue:t.defaultLanguage},qC]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();var KC=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let QC=(()=>{class e{constructor(e,t,n){this.translate=e,this.router=t,this.toastController=n}success(e){return KC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-success",duration:3e3,message:t,position:"top"})).present()})}message(e){return KC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-primary",duration:3e3,message:t,position:"top"})).present()})}error(e){return KC(this,void 0,void 0,function*(){"object"==typeof e&&(e=e.toString());const t=e.indexOf("lang.")>-1?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-error",duration:3e3,message:t,position:"top"})).present()})}handleErrors(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}return e.\u0275fac=function(t){return new(t||e)(fi(qC),fi(a_),fi(iC))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class XC{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class JC extends XC{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class eS extends XC{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class tS extends XC{constructor(e){super(),this.element=e instanceof al?e.nativeElement:e}}class nS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof JC?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof eS?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof tS?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class iS extends nS{constructor(e,t,n,i,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),n.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let rS=(()=>{class e extends nS{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new wc,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(Vo(il),Vo(Gl),Vo(Hu))},e.\u0275dir=Je({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[yo]}),e})(),sS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),oS=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.injector=t,this.appRef=n,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.mustRefreshCerts=!0,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}reset(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}getAppSession(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}initTemplate(e,t,n="adminMenu",i=""){document.getElementById(""+n).innerHTML="",this.portalHost=new iS(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);const r=new eS(e,t);this.portalHost.attach(r)}detachTemplate(e="adminMenu"){this.portalHost.detach()}}return e.\u0275fac=function(t){return new(t||e)(fi(il),fi(vo),fi(Du))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),aS=(()=>{class e{constructor(){}setAppSession(e){this.appSession=e}getAppSession(){return this.appSession}save(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}get(e){return localStorage.getItem(e+"_"+this.getAppSession())}remove(e){localStorage.removeItem(e+"_"+this.getAppSession())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lS=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.localStorage=r,this.navCtrl=s,this.authMode="default",this.changeKey=!1,this.casToken=null,this.coreUrl="",this.authUri="",this.user={},this.signatureRoles=[],this.authFailed=!1}cleanUrl(e){return this.localStorage.remove("MaarchCourrierUrl_"+e)}getToken(){return this.localStorage.get("MaarchParapheurToken")}setToken(e){this.localStorage.save("MaarchParapheurToken",e)}getRefreshToken(){return this.localStorage.get("MaarchParapheurRefreshToken")}setRefreshToken(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}clearTokens(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}refreshToken(){return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(Ib(e=>{this.setToken(e.token),this.updateUserInfo(e.token)}),mb(e=>(this.logout(),this.notificationService.error("lang.sessionExpired"),cv(!1))))}logout(e=!0,t=!1,n=!0){if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");["cas"].indexOf(this.authMode)>-1&&!t?this.SsoLogout(e):n&&this.http.get("../rest/authenticate/logout").subscribe(),this.http.get("../rest/authenticate/logout").pipe(Ib(()=>{this.clearTokens(),this.navCtrl.navigateRoot("/login")}),mb(e=>(this.notificationService.handleErrors(e),this.clearTokens(),this.navCtrl.navigateRoot("/login"),cv(!1)))).subscribe()}SsoLogout(e=!0){this.http.get("../rest/authenticate/logout").pipe(Ib(t=>{return n=this,void 0,r=function*(){this.redirectAfterLogout(e),window.location.href=t.logoutUrl},new((i=void 0)||(i=Promise))(function(e,t){function s(e){try{a(r.next(e))}catch(n){t(n)}}function o(e){try{a(r.throw(e))}catch(n){t(n)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(s,o)}a((r=r.apply(n,[])).next())});var n,i,r})).subscribe()}redirectAfterLogout(e=!0){null!==this.getToken()&&e&&this.cleanUrl(JSON.parse(atob(this.getToken().split(".")[1])).user.id),this.clearTokens()}saveTokens(e,t){this.setToken(e),this.setRefreshToken(t)}isAuth(){return null!==this.getToken()}updateUserInfo(e){const t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}updateUserInfoWithTokenRefresh(){this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:e=>{this.setToken(e.token),this.updateUserInfo(this.getToken())},error:e=>{this.notificationService.handleErrors(e)}})}setUser(e){this.user=e}getSignatureMode(e){return"visa"===e?"stamp":e}getWorkflowMode(e){return this.signatureRoles.filter(t=>t.id===e)[0].type}setCachedUrl(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}getCachedUrl(){return this.localStorage.get("MaarchParapheurCacheUrl")}cleanCachedUrl(){return this.localStorage.remove("MaarchParapheurCacheUrl")}getCasToken(){null!==window.location.search.match(/ticket=[.]*/g)&&(this.casToken=window.location.search.substring(1,window.location.search.length))}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(a_),fi(QC),fi(oS),fi(aS),fi(hx))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cS=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.authService=r,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Gv(null)}addAuthHeader(e){const t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}intercept(e,t){return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(mb(n=>{if(this.byPassHandleErrors.filter(t=>e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1).length>0)return t.handle(e);if(401===n.status)return this.handle401Error(e,t);if("Password expired : User must change his password"===n.error.errors)return this.router.navigate(["/password-modification"]);{let t;return"GET"===e.method&&this.frontUrl.forEach(i=>{if(e.url.indexOf(i)>-1)return"../rest/documents/"===i&&(this.signaturesService.mainDocumentId=null),t=new Pv({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}),t=new Pv({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}})))}handle401Error(e,t){return this.isRefreshing?this.refreshTokenSubject.pipe(dv(e=>null!=e),cb(1),sb(()=>(e=this.addAuthHeader(e),t.handle(e)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(sb(n=>(this.isRefreshing=!1,this.refreshTokenSubject.next(n.token),e=this.addAuthHeader(e),t.handle(e)))))}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(a_),fi(QC),fi(oS),fi(lS))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function uS(e,t){if(1&e){const e=Yo();Ho(0,"div",2),Ho(1,"div",3),Ho(2,"button",4),dn(),Ho(3,"svg",5),Wo(4,"path",6),Uo(),hn(),Ho(5,"span",7),Oa(6,"Presentation Mode"),Uo(),Uo(),Ho(7,"button",8),dn(),Ho(8,"svg",5),Wo(9,"path",9),Uo(),hn(),Ho(10,"span",10),Oa(11,"Open"),Uo(),Uo(),Ho(12,"button",11),dn(),Ho(13,"svg",5),Wo(14,"path",12),Uo(),hn(),Ho(15,"span",13),Oa(16,"Print"),Uo(),Uo(),Ho(17,"button",14),dn(),Ho(18,"svg",5),Wo(19,"path",15),Uo(),hn(),Ho(20,"span",16),Oa(21,"Download"),Uo(),Uo(),Ho(22,"a",17),dn(),Ho(23,"svg",5),Wo(24,"path",18),Uo(),hn(),Ho(25,"span",19),Oa(26,"Current View"),Uo(),Uo(),Ho(27,"button",20),dn(),Ho(28,"svg",21),Wo(29,"path",22),Uo(),hn(),Ho(30,"span",23),Oa(31,"Go to First Page"),Uo(),Uo(),Ho(32,"button",24),Xo("click",function(){return Lt(e),ia().previousPage()}),dn(),Ho(33,"svg",21),Wo(34,"path",25),Uo(),hn(),Ho(35,"span",26),Oa(36,"Go to Previous Page"),Uo(),Uo(),Ho(37,"button",27),Xo("click",function(){return Lt(e),ia().nextPage()}),dn(),Ho(38,"svg",21),Wo(39,"path",28),Uo(),hn(),Ho(40,"span",29),Oa(41,"Go to Next Page"),Uo(),Uo(),Ho(42,"button",30),dn(),Ho(43,"svg",21),Wo(44,"path",31),Uo(),hn(),Ho(45,"span",32),Oa(46,"Go to Last Page"),Uo(),Uo(),Ho(47,"button",33),dn(),Ho(48,"svg",5),Wo(49,"path",34),Uo(),hn(),Ho(50,"span",35),Oa(51,"Rotate Clockwise"),Uo(),Uo(),Ho(52,"button",36),dn(),Ho(53,"svg",5),Wo(54,"path",37),Uo(),hn(),Ho(55,"span",38),Oa(56,"Rotate Counterclockwise"),Uo(),Uo(),Ho(57,"button",39),dn(),Ho(58,"svg",5),Wo(59,"path",40),Uo(),hn(),Ho(60,"span",41),Oa(61,"Text Selection Tool"),Uo(),Uo(),Ho(62,"button",42),dn(),Ho(63,"svg",5),Wo(64,"path",43),Uo(),hn(),Ho(65,"span",44),Oa(66,"Hand Tool"),Uo(),Uo(),Ho(67,"button",45),dn(),Ho(68,"svg",46),Wo(69,"path",47),Uo(),hn(),Ho(70,"span",48),Oa(71,"Vertical Scrolling"),Uo(),Uo(),Ho(72,"button",49),dn(),Ho(73,"svg",46),Wo(74,"path",50),Uo(),hn(),Ho(75,"span",51),Oa(76,"Horizontal Scrolling"),Uo(),Uo(),Ho(77,"button",52),dn(),Ho(78,"svg",46),Wo(79,"path",53),Uo(),hn(),Ho(80,"span",54),Oa(81,"Wrapped Scrolling"),Uo(),Uo(),Ho(82,"button",55),Xo("click",function(){return Lt(e),ia().onSpreadChange("off")}),dn(),Ho(83,"svg",56),Wo(84,"path",57),Uo(),hn(),Ho(85,"span",58),Oa(86,"No Spreads"),Uo(),Uo(),Ho(87,"button",59),Xo("click",function(){return Lt(e),ia().onSpreadChange("odd")}),dn(),Ho(88,"svg",46),Wo(89,"path",60),Uo(),hn(),Ho(90,"span",61),Oa(91,"Odd Spreads"),Uo(),Uo(),Ho(92,"button",62),Xo("click",function(){return Lt(e),ia().onSpreadChange("even")}),dn(),Ho(93,"svg",46),Wo(94,"path",63),Uo(),hn(),Ho(95,"span",64),Oa(96,"Even Spreads"),Uo(),Uo(),Ho(97,"button",65),dn(),Ho(98,"svg",66),Wo(99,"path",67),Wo(100,"path",68),Wo(101,"circle",69),Uo(),hn(),Ho(102,"span",70),Oa(103,"Document Properties\u2026"),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();ma("top",e.secondaryToolbarTop)("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","right top"),is(2),va("invisible",!e.showPresentationModeButton),is(5),va("invisible",!e.showOpenFileButton),is(5),va("invisible",!e.showPrintButton),is(5),va("invisible",!e.showDownloadButton),is(5),va("invisible",!e.showBookmarkButton),is(5),va("invisible",!e.showPagingButtons),is(5),va("invisible",!e.showPagingButtons),zo("disabled",e.disablePreviousPage),is(5),va("invisible",!e.showPagingButtons),zo("disabled",e.disableNextPage),is(5),va("invisible",!e.showPagingButtons),is(5),va("invisible",!e.showRotateButton),is(5),va("invisible",!e.showRotateButton),is(5),va("invisible",!e.showHandToolButton),is(5),va("invisible",!e.showHandToolButton),is(5),va("invisible",!e.showScrollingButton),is(5),va("invisible",!e.showScrollingButton),is(5),va("invisible",!e.showScrollingButton),is(5),va("invisible",!e.showSpreadButton),is(5),va("invisible",!e.showSpreadButton),is(5),va("invisible",!e.showSpreadButton),is(5),va("invisible",!e.showPropertiesButton)}}function dS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function hS(e,t){if(1&e){const e=Yo();Ho(0,"div",2),Ho(1,"div",3),Wo(2,"pdf-sidebar-toolbar"),Uo(),Ho(3,"pdf-sidebar-content",4),Xo("thumbnailDrawn",function(t){return Lt(e),ia().thumbnailDrawn.emit(t)}),Uo(),Wo(4,"div",5),Uo()}if(2&e){const e=ia();ma("top",e.sidebarPositionTop),is(1),ma("display",e.hideSidebarToolbar?"none":""),is(2),zo("customThumbnail",e.customThumbnail)("hideSidebarToolbar",e.hideSidebarToolbar)}}const pS=["*"],gS=["root"],fS=["pdfSecondaryToolbarComponent"],mS=["pdfsidebar"];function vS(e,t){1&e&&Wo(0,"link",48)}function bS(e,t){1&e&&Wo(0,"pdf-dark-theme")}function yS(e,t){1&e&&Wo(0,"pdf-light-theme")}function wS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function _S(e,t){}function xS(e,t){if(1&e&&(Ho(0,"div",3),qo(1,0),Uo()),2&e){const e=ia(),t=No(4);ma("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",e.findbarLeft)("top",e.findbarTop),va("invisible",!e.showFindButton),is(1),zo("ngTemplateOutlet",e.customFindbarButtons?e.customFindbarButtons:t)}}function AS(e,t){1&e&&(Wo(0,"pdf-find-input-area",4),Wo(1,"pdf-findbar-options-one-container"),Wo(2,"pdf-findbar-options-two-container"),Wo(3,"pdf-findbar-options-three-container"),Wo(4,"pdf-findbar-message-container")),2&e&&zo("customFindbarInputArea",ia().customFindbarInputArea)}function CS(e,t){1&e&&(Ho(0,"div",2),Wo(1,"pdf-search-input-field"),Wo(2,"pdf-find-previous"),Wo(3,"pdf-find-next"),Uo())}const SS=["button"],kS="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",ES=["button1"],PS=["button2"],DS="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",OS="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function IS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function TS(e,t){if(1&e&&(Ho(0,"div",7),Ho(1,"div",8),Wo(2,"pdf-toggle-sidebar",9),Wo(3,"pdf-find-button",10),Wo(4,"pdf-paging-area",11),Uo(),Wo(5,"pdf-zoom-toolbar",12),Ho(6,"div",13),Wo(7,"pdf-hand-tool",14),Wo(8,"pdf-select-tool",15),Wo(9,"pdf-rotate-page",16),Wo(10,"pdf-presentation-mode",17),Wo(11,"pdf-open-file",18),Wo(12,"pdf-print",19),Wo(13,"pdf-download",20),Wo(14,"pdf-bookmark",21),Wo(15,"pdf-toggle-secondary-toolbar",22),Uo(),Uo()),2&e){const e=ia();is(2),zo("showSidebarButton",e.showSidebarButton),is(1),zo("showFindButton",e.showFindButton)("textLayer",e.textLayer),is(1),zo("showPagingButtons",e.showPagingButtons),is(1),zo("showZoomButtons",e.showZoomButtons)("zoomLevels",e.zoomLevels),is(2),zo("showHandToolButton",e.showHandToolButton),is(1),zo("showSelectToolButton",e.showHandToolButton),is(1),zo("showRotateButton",e.showRotateButton),is(1),zo("showPresentationModeButton",e.showPresentationModeButton),is(1),zo("showOpenFileButton",e.showOpenFileButton),is(1),zo("showPrintButton",e.showPrintButton),is(1),zo("showDownloadButton",e.showDownloadButton),is(1),zo("showBookmarkButton",e.showBookmarkButton),is(1),zo("showSecondaryToolbarButton",e.showSecondaryToolbarButton)}}const MS=["sizeSelector"];function BS(e,t){if(1&e&&(Ho(0,"option",5),Oa(1),Uo()),2&e){const e=t.$implicit;zo("id",e.id),Bo("value",e.value)("data-l10n-id",e.dataL10nId)("data-l10n-args",e.dataL10nArgs),is(1),Ta(" ",e.displayValue," ")}}const RS=["thumbnailViewTemplate"];function LS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function FS(e,t){1&e&&(Ho(0,"a",8),Ho(1,"div",9),Wo(2,"div",10),Uo(),Uo())}const NS="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,VS=/Edge\/\d./i.test(navigator.userAgent),zS="undefined"==typeof ReadableStream||void 0===Promise.allSettled;let jS={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:()=>"./"+jS.assetsFolder+"/cmaps/",disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:()=>NS||VS||zS?"./"+jS.assetsFolder+"/pdf.worker-es5.js":"./"+jS.assetsFolder+"/pdf.worker.js"};window.pdfDefaultOptions?jS=window.pdfDefaultOptions:window.pdfDefaultOptions=jS;const HS={ERRORS:0,WARNINGS:1,INFOS:5};HS[HS.ERRORS]="ERRORS",HS[HS.WARNINGS]="WARNINGS",HS[HS.INFOS]="INFOS";const US={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};US[US.FOUND]="FOUND",US[US.NOT_FOUND]="NOT_FOUND",US[US.WRAPPED]="WRAPPED",US[US.PENDING]="PENDING";const WS=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"];let $S=(()=>{class e{addMissingStandardWidgets(){this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];const e=this.dummyComponentsContainer;if(e)for(let t=0;t<e.children.length;t++){const t=e.firstChild;t&&e.removeChild(t)}if(WS.forEach(e=>{if(this.needsDummyWidget(e)){const t=document.createElement("span");t.id=e,t.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(t)}}),this.needsDummyWidget("scaleSelect")){const e=document.createElement("select");e.id="scaleSelect",e.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(e)}}needsDummyWidget(e){return!document.getElementById(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&Wo(0,"span",0)},encapsulation:2}),e})(),GS=(()=>{class e{constructor(){this.onPDFJSInit=new C,this.pdfjsVersion=new CC(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(()=>{this.pdfjsVersion.next(window.pdfjsLib.version)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),qS=(()=>{class e{constructor(e,t){this.element=e,this.notificationService=t,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new wc,this.secondaryMenuIsEmpty=new wc,this.disablePreviousPage=!0,this.disableNextPage=!0;const n=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),n.unsubscribe()})}onPdfJsInit(){const e=window.PDFViewerApplication;e.eventBus.on("pagechanging",()=>{this.updateUIState()}),e.eventBus.on("pagerendered",()=>{this.updateUIState()})}updateUIState(){setTimeout(()=>{const e=window.PDFViewerApplication,t=e.pdfViewer.currentPageNumber,n=document.getElementById("previousPage");n&&(this.disablePreviousPage=Number(t)<=1,n.disabled=this.disablePreviousPage);const i=document.getElementById("nextPage");i&&(this.disableNextPage=t===e.pagesCount,i.disabled=this.disableNextPage)})}onSpreadChange(e){this.spreadChange.emit(e)}ngOnChanges(e){setTimeout(()=>this.checkVisibility())}onResize(){setTimeout(()=>this.checkVisibility())}ngAfterViewInit(){setTimeout(()=>this.checkVisibility())}ngOnInit(){setTimeout(()=>this.checkVisibility())}checkVisibility(){let e=0;const t=this.element.nativeElement.children.item(0);if(t){const n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}checkVisibilityRecursively(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;let t=0;const n=e.children;if(n&&n.length)for(let i=0;i<n.length&&0===t;i++){const e=n.item(i);e&&e instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(e))}return t}previousPage(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}nextPage(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&Xo("resize",function(){return t.onResize()},!1,gr)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[dt],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&(qo(0,0),Fo(1,uS,104,48,"ng-template",null,1,Vc)),2&e){const e=No(2);zo("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:e)}},directives:[Jd],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),e})();const YS={SELECT:0,HAND:1,ZOOM:2};YS[YS.SELECT]="SELECT",YS[YS.HAND]="HAND",YS[YS.ZOOM]="ZOOM";class ZS{constructor(e){this._zone=e,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}isMobile(){return"ontouchstart"in document.documentElement}onViewerTouchStart(e){if(this.initialPinchDistance=0,2===e.touches.length){const t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}onViewerTouchMove(e){const t=window.PDFViewerApplicationOptions;if(this.initialPinchDistance<=0||2!==e.touches.length)return;1!==this.pinchScale&&e.preventDefault();const n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,r=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;let s=Number(t.get("minZoom"));s||(s=.1),this.pinchScale<s&&(this.pinchScale=s);let o=Number(t.get("maxZoom"));o||(o=10),this.pinchScale>o&&(this.pinchScale=o),this.viewer.style.transform=`scale(${this.pinchScale})`,this.viewer.style.transformOrigin=`${i}px ${r}px`,e.preventDefault(),e.stopPropagation()}onViewerTouchEnd(e){const t=window.PDFViewerApplication;if(this.initialPinchDistance<=0)return;this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;const n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}resetPinchZoomParams(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}initializePinchZoom(){this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(()=>{document.addEventListener("touchstart",this.onViewerTouchStart.bind(this)),document.addEventListener("touchmove",this.onViewerTouchMove.bind(this),{passive:!1}),document.addEventListener("touchend",this.onViewerTouchEnd.bind(this))})}destroyPinchZoom(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}let KS=(()=>{class e{constructor(e,t){this.elementRef=e,this.ref=t,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new wc,this.hideSidebarToolbar=!0}showToolbarWhenNecessary(){const e=this.elementRef.nativeElement.querySelectorAll("button");let t=0;e.forEach(e=>{e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml))},e.\u0275cmp=qe({type:e,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:pS,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(sa(),Ho(0,"div"),Fo(1,dS,1,0,"ng-content",0),Uo(),Fo(2,hS,5,6,"ng-template",null,1,Vc)),2&e){const e=No(3);is(1),zo("ngTemplateOutlet",t.customSidebar?t.customSidebar:e)}},directives:function(){return[Jd,Hk,jk]},styles:[""]}),e})(),QS=(()=>{class e{constructor(e,t,n,i){this.ngZone=e,this.platformId=t,this.notificationService=n,this.location=i,this.customFindbarButtons=void 0,this.srcChange=new wc,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new wc,this.beforePrint=new wc,this.currentZoomFactor=new wc,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=HS.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new wc,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+jS.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new wc,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new wc,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new wc,this.thumbnailDrawn=new wc,this._page=void 0,this.pageChange=new wc,this.pageLabel=void 0,this.pageLabelChange=new wc,this.pagesLoaded=new wc,this.pageRendered=new wc,this.pdfDownloaded=new wc,this.pdfLoaded=new wc,this.pdfLoadingFailed=new wc,this.textLayer=void 0,this.textlayerRendered=new wc,this.textLayerRendered=new wc,this.updateFindMatchesCount=new wc,this.updateFindState=new wc,this.zoom=void 0,this.zoomChange=new wc,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}set src(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}set base64Src(e){const t=window.atob(e),n=t.length,i=new Uint8Array(n);for(let r=0;r<n;r++)i[r]=t.charCodeAt(r);this.src=i.buffer}set height(e){this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(()=>{this.checkHeight()})}get height(){return this._height}get showSidebarButton(){return this._showSidebarButton}set showSidebarButton(e){this._showSidebarButton=e;let t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}get page(){return this._page}set page(e){this._page=e?Number(e):void 0}get mobileFriendlyZoom(){return this._mobileFriendlyZoom}set mobileFriendlyZoom(e){"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e;let t=1;String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}set mobileZoom(e){this.mobileFriendlyZoom=e}get sidebarPositionTop(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}calcViewerPositionTop(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){const e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}iOSVersionRequiresES5(){const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}loadViewer(){if(window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n=this.iOSVersionRequiresES5(),i="undefined"==typeof ReadableStream||void 0===Promise.allSettled,r=this.minifiedJSLibraries?".min.js":".js",s=document.createElement("script"),o=jS.assetsFolder;i&&console.log("Using the ES5 version of the PDF viewer."),s.src=this.location.normalize(e||t||n||i?o+"/viewer-es5"+r:o+"/viewer"+r),s.type="text/javascript",s.async=!0,document.getElementsByTagName("head")[0].appendChild(s)}else setTimeout(()=>this.loadViewer(),25)}ngOnInit(){if(this.onResize(),ph(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),r=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!jS.workerSrc().endsWith(".min.js")){const e=jS.workerSrc();jS.workerSrc=()=>e.replace(".js",".min.js")}const s=jS.assetsFolder,o=document.createElement("script");o.src=this.location.normalize(e||t||i||n?s+"/pdf-es5"+r:s+"/pdf"+r),o.type="text/javascript",o.async=!0,document.getElementsByTagName("head")[0].appendChild(o)}window.webViewerLoad||this.loadViewer()}}ngAfterViewInit(){this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(()=>this.ngAfterViewInit(),50))}assignTabindexes(){if(this.startTabindex){const e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);const t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);const n=t.sort((e,t)=>e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x);for(let i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}showElementsRecursively(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(let t=0;t<e.childElementCount;t++){const n=e.children.item(t);n&&this.showElementsRecursively(n)}}collectElementPositions(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){const i=e.getBoundingClientRect(),r={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(r)}else if(e.childElementCount>0)for(let i=0;i<e.childElementCount;i++){const r=e.children.item(i),s=t.children.item(i);r&&s&&(n=this.collectElementPositions(r,s,n))}return n}doInitPDFViewer(){const t=document.querySelectorAll('link[type="application/l10n"]');if(0===t.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){const e=t[0].attributes.origin;e&&"ngx-extended-pdf-viewer"!==e.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}const n=e=>{document.removeEventListener("localized",n),this.initTimeout=setTimeout(()=>{this.shuttingDown||(this.afterLibraryInit(),this.openPDF(),this.assignTabindexes())},this.delayFirstView)};window.addEventListener("afterprint",e=>{this.afterPrint.emit()}),window.addEventListener("beforeprint",e=>{this.beforePrint.emit()}),document.addEventListener("localized",n),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors.");const i=()=>{this.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",i),this.enablePinchOnMobile&&(this.pinchOnMobileSupport=new ZS(this.ngZone))};document.addEventListener("webviewerloaded",i),this.activateTextlayerIfNecessary(null),setTimeout(()=>{if(!this.shuttingDown){this.primaryMenuVisible=!0,this.hideKebabMenuForSecondaryToolbar&&!this.showSecondaryToolbarButton&&(this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1)),this.calcViewerPositionTop(),this.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();const e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=this.filenameForDownload;const t=window.PDFViewerApplicationOptions;t.set("locale",this.language),t.set("imageResourcesPath",this.imageResourcesPath),t.set("minZoom",this.minZoom),t.set("maxZoom",this.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);const n=document.getElementById("printContainer");n&&document.getElementsByTagName("body")[0].appendChild(n)}},0)}afterLibraryInit(){this.notificationService.onPDFJSInit.next()}checkHeight(){const e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){let t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}onSpreadChange(e){this.spreadChange.emit(e)}activateTextlayerIfNecessary(e){void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(()=>{this.showFindButton=!1}),this.logLevel>=HS.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=HS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=HS.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(()=>{this.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=HS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}overrideDefaultSettings(){const e=window.PDFViewerApplicationOptions;for(const i in jS)e.set(i,jS[i]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);let t=this.sidebarVisible;void 0===t&&(t=this.showSidebarOnLoad);const n=window.PDFViewerApplication;void 0!==t&&(n.sidebarViewOnLoad=t?1:0,n.appConfig&&(n.appConfig.sidebarViewOnLoad=t?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),n.pdfViewer&&(n.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),n.pdfViewer&&(n.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),n.pdfViewer&&(n.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}openPDF(){ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;const t=window.PDFViewerApplication;t.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(t.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),t.eventBus.on("textlayerrendered",e=>{this.textlayerRendered.emit(e),this.textLayerRendered.emit(e)}),t.eventBus.on("pagesloaded",e=>{if(this.pagesLoaded.emit(e),this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(t.pdfViewer.pagesRotation=e)}else t.pdfViewer.pagesRotation=0;setTimeout(()=>{this.shuttingDown||(this.nameddest?t.pdfLinkService.navigateTo(this.nameddest):this.page?t.page=Number(this.page):this.pageLabel&&(t.pdfViewer.currentPageLabel=this.pageLabel))}),this.setZoom()}),t.eventBus.on("pagerendered",e=>{this.ngZone.run(()=>{this.pageRendered.emit(e)})}),t.eventBus.on("download",e=>{this.ngZone.run(()=>{this.pdfDownloaded.emit(e)})}),t.eventBus.on("scalechanging",e=>{setTimeout(()=>{this.ngZone.run(()=>{this.currentZoomFactor.emit(e.scale);const t=this.root.nativeElement.querySelector("#scaleSelect");let n=this.zoom;t&&(n=t.value),"auto"!==n&&"page-fit"!==n&&"page-actual"!==n&&"page-width"!==n&&this.zoomChange.emit(100*e.scale)})})}),t.eventBus.on("rotationchanging",e=>{this.ngZone.run(()=>{this.rotationChange.emit(e.pagesRotation)})}),t.eventBus.on("fileinputchange",e=>{this.ngZone.run(()=>{const t=e.fileInput.value.replace("C:\\fakepath\\","");this.srcChange.emit(t)})}),t.eventBus.on("cursortoolchanged",e=>{this.ngZone.run(()=>{this.handToolChange.emit(e.tool===YS.HAND)})}),t.eventBus.on("sidebarviewchanged",e=>{this.ngZone.run(()=>{this.sidebarVisibleChange.emit(e.view>0),this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})});const n=()=>{this.ngZone.run(()=>{this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})};if(t.eventBus.on("outlineloaded",n),t.eventBus.on("attachmentsloaded",n),t.eventBus.on("layersloaded",n),t.eventBus.on("updatefindcontrolstate",e=>{this.updateFindMatchesCount&&(e.state===US.NOT_FOUND?this.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)),this.updateFindState&&this.updateFindState.emit(e.state)}),t.eventBus.on("updatefindmatchescount",e=>{this.updateFindMatchesCount&&e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)}),t.eventBus.on("pagechanging",e=>{this.shuttingDown||this.ngZone.run(()=>{const e=t.pdfViewer.currentPageNumber,n=t.pdfViewer.currentPageLabel;e!==this.page&&this.pageChange.emit(e),n!==this.pageLabel&&this.pageLabelChange.emit(n)})}),this.checkHeight(),this._src){const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),t.onError=e=>this.pdfLoadingFailed.emit(e),t.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:t.pagesCount}))}setTimeout(()=>{this.shuttingDown||this.page&&(t.page=Number(this.page))},100)}selectCursorTool(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}ngOnDestroy(){const t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();const e=t.eventBus;if(e){t.unbindEvents();for(const t in e._listeners)if(e._listeners[t]){const n=e._listeners[t];for(let e=0;e<n.length;e++)n[e]=void 0;e._listeners[t]=void 0}}t.eventBus=null}const n=document.getElementsByTagName("body");if(n[0]){const e=n[0].children;for(let t=e.length-1;t>=0;t--){const i=e.item(t);(i&&"printContainer"===i.id||i&&"fileInput"===i.id)&&n[0].removeChild(i)}}}isPrimaryMenuVisible(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}ngOnChanges(t){const n=window.PDFViewerApplication,i=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),n.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:n.pagesCount}),e=>this.pdfLoadingFailed.emit(e))}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&i.set("maxZoom",this.maxZoom),"minZoom"in t&&i.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=n.page&&(n.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==n.pdfViewer.currentPageLabel&&(n.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(n.pdfViewer.pagesRotation=e)}else n.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?n.pdfSidebar.open():n.pdfSidebar.close()),"filenameForDownload"in t&&(n.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&n.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(n.spreadModeOnLoad=2,n.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(n.spreadModeOnLoad=1,n.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(n.spreadModeOnLoad=0,n.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new ZS(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t){const e=i;e&&e.set("printResolution",this.printResolution)}if("ignoreKeyboard"in t&&i&&this.overrideDefaultSettings(),"ignoreKeys"in t&&i&&this.overrideDefaultSettings(),"acceptKeys"in t&&i&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&i){this.overrideDefaultSettings();const e=document.getElementById("viewer");this.showBorders?e.classList.remove("removePageBorders"):e.classList.add("removePageBorders"),n.pdfViewer&&(n.pdfViewer.removePageBorders=!this.showBorders);const t={source:e,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};n.eventBus.dispatch("scalechanging",t)}"showUnverifiedSignatures"in t&&n&&n.pdfDocument&&n.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(n.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}setZoom(){let e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");const t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}onResize(){const e=document.getElementsByClassName("html");if(e&&e.length>0){const e=document.getElementById("outerContainer");e&&(this.toolbarWidthInPixels=e.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}onContextMenu(){return this.contextMenuAllowed}onSecondaryMenuIsEmpty(e){this.hideKebabMenuForSecondaryToolbar=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(lu),Vo(qc),Vo(GS),Vo(id))},e.\u0275cmp=qe({type:e,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){if(1&e&&(Mc($S,1),Mc(gS,1),Mc(fS,1),Mc(mS,1)),2&e){let e;Tc(e=Rc())&&(t.dummyComponents=e.first),Tc(e=Rc())&&(t.root=e.first),Tc(e=Rc())&&(t.secondaryToolbarComponent=e.first),Tc(e=Rc())&&(t.sidebarComponent=e.first)}},hostBindings:function(e,t){1&e&&Xo("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[dt],ngContentSelectors:pS,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(sa(),Fo(0,vS,1,0,"link",0),Fo(1,bS,1,0,"pdf-dark-theme",1),Fo(2,yS,1,0,"pdf-light-theme",1),Wo(3,"pdf-dynamic-css",2),Ho(4,"div",3,4),Ho(6,"div",5),Ho(7,"div",6),Ho(8,"div",7),Xo("resize",function(){return t.onResize()},!1,gr),Ho(9,"div",8),Fo(10,wS,1,0,"ng-content",9),Uo(),Ho(11,"pdf-sidebar",10,11),Xo("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),Uo(),Ho(13,"div",12),Wo(14,"pdf-dummy-components"),Wo(15,"pdf-toolbar",13),Ho(16,"pdf-secondary-toolbar",14,15),Xo("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),Uo(),Wo(18,"pdf-findbar",16),Wo(19,"pdf-context-menu"),Ho(20,"div",17),Wo(21,"div",18),Uo(),Ho(22,"div",19),Ho(23,"div",20),Wo(24,"span",21),Ho(25,"button",22),Oa(26," More Information "),Uo(),Ho(27,"button",23),Oa(28," Less Information "),Uo(),Uo(),Ho(29,"div",24),Ho(30,"button",25),Oa(31,"Close"),Uo(),Uo(),Wo(32,"div",26),Wo(33,"textarea",27),Uo(),Uo(),Ho(34,"div",28),Ho(35,"div",29),Ho(36,"div",30),Ho(37,"div",31),Ho(38,"p",32),Oa(39," Enter the password to open this PDF file: "),Uo(),Uo(),Ho(40,"div",31),Wo(41,"input",33),Uo(),Ho(42,"div",34),Ho(43,"button",35),Ho(44,"span",36),Oa(45,"Cancel"),Uo(),Uo(),Ho(46,"button",37),Ho(47,"span",38),Oa(48,"OK"),Uo(),Uo(),Uo(),Uo(),Uo(),Wo(49,"pdf-document-properties-overlay",39),Ho(50,"div",40),Ho(51,"div",30),Ho(52,"div",31),Ho(53,"span",41),Oa(54,"Preparing document for printing\u2026"),Uo(),Uo(),Ho(55,"div",31),Wo(56,"progress",42),Ho(57,"span",43),Oa(58,"0%"),Uo(),Uo(),Ho(59,"div",34),Ho(60,"button",44),Ho(61,"span",45),Oa(62,"Cancel"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Wo(63,"div",46),Uo(),Uo(),Uo(),Fo(64,_S,0,0,"ng-template",null,47,Vc)),2&e){const e=No(65);zo("ngIf",t.useBrowserLocale),is(1),zo("ngIf","dark"===t.theme),is(1),zo("ngIf","light"===t.theme),is(1),zo("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),is(1),ma("height",t.height)("min-height",t.minHeight),is(3),ma("background-color",t.backgroundColor),is(3),zo("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:e),is(1),zo("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),is(4),zo("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),is(1),zo("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),is(2),zo("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),is(2),ma("top",t.viewerPositionTop),is(1),ma("background-color",t.backgroundColor)}},directives:function(){return[$d,zk,Jd,KS,$S,Bk,qS,rk,tk,nk,Wk,Uk]},encapsulation:2,changeDetection:0}),e.ngxExtendedPdfViewerInitialized=!1,e})(),XS=(()=>{class e{constructor(){}findMultiple(e,t={}){t=Object.assign({},t,{findMultipleSearchTexts:!0});const n=e.join("\n")+"\n";return this.find(n,t)}find(e,t={}){if(QS.ngxExtendedPdfViewerInitialized){const n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);const i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);const r=document.getElementById("findEntireWord");r&&(r.checked=t.wholeWords||!1);const s=document.getElementById("findIgnoreAccents");s&&(s.checked=t.ignoreAccents||!1);const o=t.findMultipleSearchTexts||e.includes("\n")||!1,a=document.getElementById("findMultipleSearchTexts");a&&(a.checked=o);const l=document.getElementById("individualWordsMode");l&&(l.checked=!1);const c=document.getElementById("findFuzzy");c&&(c.checked=t.fuzzySearch||!1);const u=o?document.getElementById("findInputMultiline"):document.getElementById("findInput");return u?(u instanceof HTMLTextAreaElement?(u.value=e,u.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):u instanceof HTMLInputElement&&(u.value=e,u.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),u.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}findNext(){if(QS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}findPrevious(){if(QS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}print(e){const t=window.PDFViewerApplication,n=!!window.isInPDFPrintRange&&!e;n||(e||(e={}),this.setPrintRange(e)),window.printPDF(),n||t.eventBus.on("afterprint",()=>{this.removePrintRange()})}removePrintRange(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}setPrintRange(e){const t=window.PDFViewerApplication;window.isInPDFPrintRange=t=>this.isInPDFPrintRange(t,e),window.filteredPageCount=this.filteredPageCount(t.pagesCount,e)}filteredPageCount(e,t){let n=0;for(let i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}isInPDFPrintRange(e,t){const n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(e=>e===n)||t.included&&!t.included.some(e=>e===n))}getPageAsText_preview(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{e.getTextContent().then(e=>t(this.convertTextInfoToText(e)))})}getPageAsText(e){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((t,n)=>{t(e.getTextContent())})).then(e=>new Promise((t,n)=>{t(this.convertTextInfoToText(e))}))}convertTextInfoToText(e){return e?e.items.map(e=>e.str).join(""):""}getPageAsImage_preview(e,t,n,i){window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{this.draw_preview(e,t,n,i)}).catch(e=>{i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}getPageAsImage(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((n,i)=>{n(this.draw(e,t))}))}draw(e,t){let n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);const i=e.getViewport({scale:n}),{ctx:r,canvas:s}=this.getPageDrawContext(i.width,i.height),o=i.clone();return e.render({canvasContext:r,viewport:o}).promise.then(()=>new Promise((e,t)=>{e(s.toDataURL())}))}draw_preview(e,t,n,i){let r=1;t.scale?r=t.scale:t.width?r=t.width/e.getViewport({scale:1}).width:t.height&&(r=t.height/e.getViewport({scale:1}).height);const s=e.getViewport({scale:r}),{ctx:o,canvas:a}=this.getPageDrawContext(s.width,s.height),l=s.clone();e.render({canvasContext:o,viewport:l}).promise.then(function(){const e=a.toDataURL();n(e)},function(e){i&&i(e)})}getPageDrawContext(e,t){const n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),JS=(()=>{class e{constructor(e){this.notificationService=e,this.showHandToolButton=!0,this.isSelected=!1;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===YS.HAND)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:YS.HAND})}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Xo("click",function(){return t.onClick()}),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Hand Tool"),Uo(),Uo()),2&e&&va("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),ek=(()=>{class e{constructor(){this.showBookmarkButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(Ho(0,"a",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Current View"),Uo(),Uo()),2&e&&va("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),tk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"div",1),Wo(2,"div",2),Wo(3,"div",3),Wo(4,"div",4),Uo())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),e})(),nk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(Ho(0,"div"),Ho(1,"div",0),Ho(2,"div",1),Ho(3,"span",2),Oa(4,"File name:"),Uo(),Ho(5,"p",3),Oa(6,"-"),Uo(),Uo(),Ho(7,"div",1),Ho(8,"span",4),Oa(9,"File size:"),Uo(),Ho(10,"p",5),Oa(11,"-"),Uo(),Uo(),Ho(12,"div",1),Ho(13,"span",6),Oa(14,"Title:"),Uo(),Ho(15,"p",7),Oa(16,"-"),Uo(),Uo(),Ho(17,"div",1),Ho(18,"span",8),Oa(19,"Author:"),Uo(),Ho(20,"p",9),Oa(21,"-"),Uo(),Uo(),Ho(22,"div",1),Ho(23,"span",10),Oa(24,"Subject:"),Uo(),Ho(25,"p",11),Oa(26,"-"),Uo(),Uo(),Ho(27,"div",1),Ho(28,"span",12),Oa(29,"Keywords:"),Uo(),Ho(30,"p",13),Oa(31,"-"),Uo(),Uo(),Ho(32,"div",1),Ho(33,"span",14),Oa(34,"Creation Date:"),Uo(),Ho(35,"p",15),Oa(36,"-"),Uo(),Uo(),Ho(37,"div",1),Ho(38,"span",16),Oa(39,"Modification Date:"),Uo(),Ho(40,"p",17),Oa(41,"-"),Uo(),Uo(),Ho(42,"div",1),Ho(43,"span",18),Oa(44,"Creator:"),Uo(),Ho(45,"p",19),Oa(46,"-"),Uo(),Uo(),Ho(47,"div",1),Ho(48,"span",20),Oa(49,"PDF Producer:"),Uo(),Ho(50,"p",21),Oa(51,"-"),Uo(),Uo(),Ho(52,"div",1),Ho(53,"span",22),Oa(54,"PDF Version:"),Uo(),Ho(55,"p",23),Oa(56,"-"),Uo(),Uo(),Ho(57,"div",1),Ho(58,"span",24),Oa(59,"Page Count:"),Uo(),Ho(60,"p",25),Oa(61,"-"),Uo(),Uo(),Ho(62,"div",1),Ho(63,"span",26),Oa(64,"Page Size:"),Uo(),Ho(65,"p",27),Oa(66,"-"),Uo(),Uo(),Wo(67,"div",28),Ho(68,"div",1),Ho(69,"span",29),Oa(70,"Fast Web View:"),Uo(),Ho(71,"p",30),Oa(72,"-"),Uo(),Uo(),Ho(73,"div",31),Ho(74,"button",32),Ho(75,"span",33),Oa(76,"Close"),Uo(),Uo(),Uo(),Uo(),Uo())},styles:[""]}),e})(),ik=(()=>{class e{constructor(){this.showDownloadButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Download"),Uo(),Uo()),2&e&&va("invisible",!t.showDownloadButton)},styles:[kS]}),e})(),rk=(()=>{class e{constructor(){this.showFindButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&(qo(0,0),Fo(1,xS,2,11,"ng-template",null,1,Vc),Fo(3,AS,5,1,"ng-template",null,2,Vc)),2&e){const e=No(2);zo("ngTemplateOutlet",t.customFindbar?t.customFindbar:e)}},directives:function(){return[Jd,gk,ok,lk,ak,sk]},styles:[""]}),e})(),sk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"span",1),Uo())},styles:[""]}),e})(),ok=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-find-highlight-all"),Wo(2,"pdf-find-match-case"),Uo())},directives:function(){return[hk,fk]},styles:[""]}),e})(),ak=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-find-ignore-accents"),Wo(2,"pdf-find-fuzzily"),Wo(3,"pdf-find-results-count"),Uo())},directives:function(){return[pk,dk,wk]},styles:[""]}),e})(),lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-find-entire-word"),Wo(2,"pdf-find-entire-phrase"),Uo())},directives:function(){return[uk,vk]},styles:[""]}),e})(),ck=(()=>{class e{constructor(){this.showFindButton=void 0,this.textLayer=void 0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Find"),Uo(),Uo()),2&e&&va("invisible",!t.showFindButton||!t.textLayer)},styles:[OS]}),e})(),uk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Whole words\n"),Uo())},styles:[""]}),e})(),dk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Fuzzy search\n"),Uo())},styles:[""]}),e})(),hk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Highlight all\n"),Uo())},styles:[""]}),e})(),pk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Ignore accents and diacritics\n"),Uo())},styles:[""]}),e})(),gk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(Fo(0,CS,4,0,"div",0),qo(1,1)),2&e&&(zo("ngIf",!t.customFindbarInputArea),is(1),zo("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[$d,Jd,Ik,yk,bk]},styles:[""]}),e})(),fk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Match case\n"),Uo())},styles:[""]}),e})(),mk=(()=>{class e{constructor(){this.individualWordsMode=!0,this.multipleSearchTexts=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),vk=(()=>{class e{constructor(e){this.pdfFindbarService=e}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(mk))},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ho(0,"input",0),Xo("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),Uo(),Ho(1,"label",1),Oa(2," multiple search texts\n"),Uo(),Ho(3,"input",2),Xo("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),Uo(),Ho(4,"label",3),Oa(5," separated by word boundaries\n"),Uo()),2&e&&(zo("ngModel",t.pdfFindbarService.multipleSearchTexts),is(3),va("hidden",!t.pdfFindbarService.multipleSearchTexts),zo("ngModel",t.pdfFindbarService.individualWordsMode),is(1),va("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[Of,am,Rm],styles:[""]}),e})(),bk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Next"),Uo(),Uo())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),yk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Previous"),Uo(),Uo())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),wk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&Wo(0,"span",0)},styles:[""]}),e})(),_k=(()=>{class e{constructor(e){this.notificationService=e,this.disableFirstPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-first-page"]],viewQuery:function(e,t){if(1&e&&Mc(SS,1),2&e){let e;Tc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(Ho(0,"button",0,1),Xo("click",function(){return t.firstPage()}),dn(),Ho(2,"svg",2),Wo(3,"path",3),Uo(),hn(),Ho(4,"span",4),Oa(5,"First page"),Uo(),Uo()),2&e&&zo("disabled",t.disableFirstPage)},styles:[""]}),e})(),xk=(()=>{class e{constructor(e){this.notificationService=e,this.disableLastPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}lastPage(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-last-page"]],viewQuery:function(e,t){if(1&e&&Mc(SS,1),2&e){let e;Tc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(Ho(0,"button",0,1),Xo("click",function(){return t.lastPage()}),dn(),Ho(2,"svg",2),Wo(3,"path",3),Uo(),hn(),Ho(4,"span",4),Oa(5,"Last page"),Uo(),Uo()),2&e&&zo("disabled",t.disableLastPage)},styles:[""]}),e})(),Ak=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Next"),Uo(),Uo())},styles:[""]}),e})(),Ck=(()=>{class e{constructor(){this.showOpenFileButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Open"),Uo(),Uo()),2&e&&va("invisible",!t.showOpenFileButton)},styles:[kS]}),e})(),Sk=(()=>{class e{constructor(){this.showPagingButtons=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(Wo(0,"input",0),Wo(1,"span",1)),2&e&&(va("invisible",!t.showPagingButtons),is(1),va("invisible",!t.showPagingButtons))},styles:[""]}),e})(),kk=(()=>{class e{constructor(){this.showPagingButtons=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-first-page",1),Wo(2,"pdf-previous-page",2),Uo(),Wo(3,"pdf-page-number",3),Ho(4,"div",4),Wo(5,"pdf-next-page",5),Wo(6,"pdf-last-page",2),Uo()),2&e&&(va("invisible",!t.showPagingButtons),is(3),zo("showPagingButtons",t.showPagingButtons),is(1),va("invisible",!t.showPagingButtons))},directives:function(){return[_k,Pk,Sk,Ak,xk]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),e})(),Ek=(()=>{class e{constructor(){this.showPresentationModeButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Presentation Mode"),Uo(),Uo()),2&e&&va("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),Pk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Previous"),Uo(),Uo())},styles:[""]}),e})(),Dk=(()=>{class e{constructor(){this.showPrintButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Print"),Uo(),Uo()),2&e&&va("invisible",!t.showPrintButton)},styles:[DS]}),e})(),Ok=(()=>{class e{constructor(e){this.notificationService=e,this.showRotateButton=!0,this.disableRotate=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}rotateCW(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}rotateCCW(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){if(1&e&&(Mc(ES,1),Mc(PS,1)),2&e){let e;Tc(e=Rc())&&(t.button1=e.first),Tc(e=Rc())&&(t.button2=e.first)}},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(Ho(0,"button",0,1),Xo("click",function(){return t.rotateCW()}),dn(),Ho(2,"svg",2),Wo(3,"path",3),Uo(),Uo(),hn(),Ho(4,"button",4,5),Xo("click",function(){return t.rotateCCW()}),dn(),Ho(6,"svg",2),Wo(7,"path",6),Uo(),Uo()),2&e&&(va("invisible",!t.showRotateButton),zo("disabled",t.disableRotate),is(4),va("invisible",!t.showRotateButton),zo("disabled",t.disableRotate))},styles:[DS]}),e})(),Ik=(()=>{class e{constructor(e){this.pdfFindbarService=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(mk))},e.\u0275cmp=qe({type:e,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(Wo(0,"input",0),Wo(1,"textarea",1)),2&e&&(va("hidden",!t.pdfFindbarService.individualWordsMode),zo("placeholder","Find in document\u2026"),is(1),va("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),e})(),Tk=(()=>{class e{constructor(){this.showSecondaryToolbarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Tools"),Uo(),Uo()),2&e&&va("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),Mk=(()=>{class e{constructor(){this.showSidebarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Toggle Sidebar"),Uo(),Uo()),2&e&&va("invisible",!t.showSidebarButton)},styles:[OS]}),e})(),Bk=(()=>{class e{constructor(){this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:pS,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(sa(),Ho(0,"div",0),Ho(1,"div",1),Fo(2,IS,1,0,"ng-content",2),Ho(3,"div",3),Ho(4,"div",4),Wo(5,"div",5),Uo(),Uo(),Uo(),Uo(),Fo(6,TS,16,15,"ng-template",null,6,Vc)),2&e){const e=No(7);va("invisible",!t.primaryMenuVisible),is(1),ma("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),is(1),zo("ngTemplateOutlet",t.customToolbar?t.customToolbar:e)}},directives:function(){return[Jd,Mk,ck,kk,Nk,JS,Vk,Ok,Ek,Ck,Dk,ik,ek,Tk]},styles:[""]}),e})(),Rk=(()=>{class e{constructor(){this._zoomLevels=[]}set zoomLevels(e){this._zoomLevels=e.map(e=>this.valueToZoomLevel(e))}ngOnInit(){}valueToZoomLevel(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);const t=Number(e);if(!t){const t=String(e);return{id:this.snakeToCamel(e+"Option"),value:t,dataL10nId:"page_scale_"+t.replace("page-",""),dataL10nArgs:void 0,displayValue:t}}const n=Math.round(100*t);return{id:"scale_"+n,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:`{ "scale": ${n} }`,displayValue:String(n)+"%"}}snakeToCamel(e){return e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){if(1&e&&Mc(MS,1),2&e){let e;Tc(e=Rc())&&(t.sizeSelector=e.first)}},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(Ho(0,"span",0),Ho(1,"select",1,2),Fo(3,BS,2,5,"option",3),Wo(4,"option",4),Uo(),Uo()),2&e&&(is(3),zo("ngForOf",t._zoomLevels))},directives:[Ud,Ym,Xm],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),e})(),Lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Oa(1," + "),Ho(2,"span",1),Oa(3,"Zoom In"),Uo(),Uo())},styles:[""]}),e})(),Fk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Oa(1," - "),Ho(2,"span",1),Oa(3,"Zoom Out"),Uo(),Uo())},styles:[""]}),e})(),Nk=(()=>{class e{constructor(){this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-zoom-out"),Wo(2,"pdf-zoom-in"),Wo(3,"pdf-zoom-dropdown",1),Uo()),2&e&&(va("invisible",!t.showZoomButtons),is(3),zo("zoomLevels",t.zoomLevels))},directives:[Fk,Lk,Rk],styles:[""]}),e})(),Vk=(()=>{class e{constructor(e){this.notificationService=e,this.showSelectToolButton=!0,this.isSelected=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===YS.SELECT)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:YS.SELECT})}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Xo("click",function(){return t.onClick()}),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Text selection tool"),Uo(),Uo()),2&e&&va("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),zk=(()=>{class e{constructor(e,t){this.renderer=e,this.document=t,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}get style(){return`\n@media all and (max-width: ${this.xl}px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ${this.lg}px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.sm}px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ${this.xl}px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ${this.xxl}px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  `}ngOnInit(){this.injectStyle()}ngOnChanges(){const e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;const t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}injectStyle(){const e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}ngOnDestroy(){const e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(ul),Vo(Hu))},e.\u0275cmp=qe({type:e,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[dt],decls:0,vars:0,template:function(e,t){},styles:[""]}),e})(),jk=(()=>{class e{constructor(){this.thumbnailDrawn=new wc,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=()=>this.pdfThumbnailGeneratorReady(),window.pdfThumbnailGenerator=(e,t,n,i,r)=>this.createThumbnail(e,t,n,i,r)}ngOnDestroy(){this.linkService=void 0}pdfThumbnailGeneratorReady(){if(!this.thumbnailViewTemplate)return!1;const e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}createThumbnail(e,t,n,i,r){this.linkService=t;const s=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),o=e.canvasWidth+2+"px",a=e.canvasHeight+2+"px",l=s.split("WIDTH_OF_RING").join(o).split("HEIGHT_OF_RING").join(a).split("PAGE_NUMBER").join(n),c=this.createElementFromHTML(l);c.classList.remove("pdf-viewer-template");const u=c;u.href=t.getAnchorUrl("#page="+n),r.then(e=>{u.title=e}),u.onclick=function(){return t.page=n,!1},e.anchor=u;const d=c.getElementsByClassName("image-container")[0];e.ring=d,e.div=c.getElementsByClassName("thumbnail")[0],i.appendChild(c),this.thumbnailDrawn.emit({thumbnail:c,container:i,pageId:n})}createElementFromHTML(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}onKeyDown(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}set hideSidebarToolbar(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){if(1&e&&Mc(RS,1),2&e){let e;Tc(e=Rc())&&(t.thumbnailViewTemplate=e.first)}},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:pS,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(sa(),Ho(0,"div",0),Ho(1,"div",null,1),Fo(3,LS,1,0,"ng-content",2),Uo(),Ho(4,"div",3),Xo("keydown",function(e){return t.onKeyDown(e)}),Uo(),Wo(5,"div",4),Wo(6,"div",5),Wo(7,"div",6),Uo(),Fo(8,FS,3,0,"ng-template",null,7,Vc)),2&e){const e=No(9);ma("top",t.top),is(3),zo("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:e)}},directives:[Jd],styles:[""]}),e})(),Hk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"button",1),Ho(2,"span",2),Oa(3,"Thumbnails"),Uo(),dn(),Ho(4,"svg",3),Wo(5,"path",4),Uo(),Uo(),hn(),Ho(6,"button",5),Ho(7,"span",6),Oa(8,"Document Outline"),Uo(),dn(),Ho(9,"svg",3),Wo(10,"path",7),Uo(),Uo(),hn(),Ho(11,"button",8),Ho(12,"span",9),Oa(13,"Attachments"),Uo(),dn(),Ho(14,"svg",3),Wo(15,"path",10),Uo(),Uo(),hn(),Ho(16,"button",11),Ho(17,"span",12),Oa(18,"Layers"),Uo(),dn(),Ho(19,"svg",13),Wo(20,"path",14),Uo(),Uo(),Uo())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),e})(),Uk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})(),Wk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})();function $k(e,t,n){return!e||e.some(e=>function(e,t,n){let i=0,r=0;return(e=e.toLowerCase()).includes("ctrl+")&&(i|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(i|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(i|=2,e=e.replace("alt+","")),e.includes("shift+")&&(i|=4,e=e.replace("shift+","")),e.includes("meta+")&&(i|=8,e=e.replace("meta+","")),r="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===i:r===n&&t===i}(e,t,n))}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){const n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),r=n.get("acceptKeys");return"WHEEL"===t?!!$k(i,e,"WHEEL")||!!(r&&r.length>0)&&!$k(r,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&$k(i,e,t))||!!(r&&r.length>0)&&!$k(r,e,t)});let Gk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[XS,GS,id,{provide:Xu,useClass:td}],imports:[[hh,ov]]}),e})();const qk=["contentRef"],Yk=["*"];let Zk=(()=>{let e=class{constructor(e){this.display="inline-block",this._dragDisabled=!1,this._elementRef=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}};return e.\u0275fac=function(t){return new(t||e)(Vo(al))},e.\u0275dir=Je({type:e,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&ma("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),e=O_([I_(0,yi(al)),T_("design:paramtypes",[al])],e),e})(),Kk=(()=>{let e=class{constructor(e,t,n){this._elementRef=e,this._renderer=t,this._document=n,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new wc,this.indexChanged=new wc,this.reachesLeftBound=new wc,this.reachesRightBound=new wc,this.snapAnimationFinished=new wc,this.dragStart=new wc,this.dragEnd=new wc,this.scrollbarWidth=this.getScrollbarWidth()+"px"}get isDragging(){return this._isDragging}get currIndex(){return this._index}set currIndex(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}get scrollbarHidden(){return this._scrollbarHidden}set scrollbarHidden(e){this._scrollbarHidden=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get xDisabled(){return this._xDisabled}set xDisabled(e){this._xDisabled=e}get yDisabled(){return this._yDisabled}set yDisabled(e){this._yDisabled=e}get xWheelEnabled(){return this._xWheelEnabled}set xWheelEnabled(e){this._xWheelEnabled=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}get snapDisabled(){return this._snapDisabled}set snapDisabled(e){this._snapDisabled=e}get snapOffset(){return this._snapOffset}set snapOffset(e){this._snapOffset=e}get snapDuration(){return this._snapDuration}set snapDuration(e){this._snapDuration=e}ngOnChanges(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}ngAfterViewInit(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",e=>{e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}ngAfterViewChecked(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}ngOnDestroy(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}onMouseMoveHandler(e){this.onMouseMove(e)}onMouseMove(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){const t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){const t=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-t+this.downY,this.downY=t}}}onMouseDownHandler(e){const t=this.locateDragScrollItem(e.target);if(t&&t.dragDisabled)return;this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;const n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}onScrollHandler(){this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isScrolling=!1,this.locateCurrentIndex(!0)},500))}onMouseUpHandler(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}moveLeft(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveRight(){const e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveTo(e){const t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}checkNavStatus(){setTimeout(()=>{const e=Boolean(this._children.length<=1),t=Boolean(this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth);e||t?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!0)):this.isScrollReachesRightEnd()?(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!0)):0===this._contentRef.nativeElement.scrollLeft&&this._contentRef.nativeElement.scrollWidth>this._contentRef.nativeElement.clientWidth?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!1)):(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!1))},0)}onWheel(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}onWindowResize(){this.refreshWrapperDimensions(),this.checkNavStatus()}_setIsDragging(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}_startGlobalListening(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}_stopGlobalListening(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}disableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}enableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}hideScrollbar(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width",`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"height",`calc(100% + ${this.scrollbarWidth})`),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}showScrollbar(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}checkScrollbar(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":`calc(100% + ${this.scrollbarWidth})`)}setScrollBar(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}getScrollbarWidth(){const e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);const t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");const n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);const i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}refreshWrapperDimensions(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}scrollTo(e,t,n){const i=this;i.isAnimating=!0;const r=e.scrollLeft,s=t-r-this.snapOffset;let o=0;const a=function(){var t,l,c;o+=20,e.scrollLeft=(t=o,l=r,c=s,(t/=n/2)<1?c/2*t*t+l:-c/2*(--t*(t-2)-1)+l),o<n?i.scrollToTimer=setTimeout(a,20):setTimeout(()=>{i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)};a()}locateCurrentIndex(e){this.currentChildWidth((t,n,i,r,s)=>{this._contentRef.nativeElement.scrollLeft>=i&&this._contentRef.nativeElement.scrollLeft<=n?(n-this._contentRef.nativeElement.scrollLeft>t/2&&!this.isScrollReachesRightEnd()?(this.isAnimating||(this.currIndex=r),e&&this.scrollTo(this._contentRef.nativeElement,i,this.snapDuration)):0!==this._contentRef.nativeElement.scrollLeft&&(this.isAnimating||(this.currIndex=r+1),e&&this.scrollTo(this._contentRef.nativeElement,i+t,this.snapDuration)),s()):r+1===this._children.length-1&&(this.isAnimating||(this.currIndex=r+1),s())})}currentChildWidth(e){let t=0,n=!1;const i=function(){n=!0},r=this._children.toArray();for(let s=0;s<r.length&&s!==r.length-1&&!n;s++){const n=r[s]._elementRef.nativeElement.clientWidth;e(n,t+r[s+1]._elementRef.nativeElement.clientWidth,t,s,i),t+=n}}toChildrenLocation(){let e=0;const t=this._children.toArray();for(let n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}locateDragScrollItem(e){let t=null;const n=this._children.toArray();for(let i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}markElDimension(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");const e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}maximumIndex(e,t){let n=0,i=0;for(let r=0;r<=t.length;r++){const s=t[t.length-1-r];if(!s)break;{const t=s._elementRef.nativeElement;let r=t.clientWidth;if(0===r&&t.firstElementChild&&(r=s._elementRef.nativeElement.firstElementChild.clientWidth),i+=r,!(i<e))break;n++}}return t.length-n}isScrollReachesRightEnd(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}adjustMarginToLastChild(){if(this._children&&this._children.length>0&&this.hideScrollbar){const e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}};return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ul),Vo(Hu))},e.\u0275cmp=qe({type:e,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){if(1&e&&Bc(n,Zk,0),2&e){let e;Tc(e=Rc())&&(t._children=e)}},viewQuery:function(e,t){if(1&e&&Mc(qk,3),2&e){let e;Tc(e=Rc())&&(t._contentRef=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&Xo("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,gr),2&e&&ma("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[dt],ngContentSelectors:Yk,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(sa(),Ho(0,"div",0,1),oa(2),Uo())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),e=O_([I_(0,yi(al)),I_(1,yi(ul)),I_(2,yi(Hu)),T_("design:paramtypes",[al,ul,Object])],e),e})(),Qk=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();class Xk{constructor(e,t){this.x=e,this.y=t}static fromEvent(e,t=null){if(this.isMouseEvent(e))return new Xk(e.clientX,e.clientY);if(null===t||1===e.changedTouches.length)return new Xk(e.changedTouches[0].clientX,e.changedTouches[0].clientY);for(let n=0;n<e.changedTouches.length;n++)if(e.changedTouches[n].target===t)return new Xk(e.changedTouches[n].clientX,e.changedTouches[n].clientY)}static isMouseEvent(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}static isIPosition(e){return!!e&&"x"in e&&"y"in e}static getCurrent(e){let t=new Xk(0,0);if(window){const n=window.getComputedStyle(e);if(n){let e=parseInt(n.getPropertyValue("left"),10),i=parseInt(n.getPropertyValue("top"),10);t.x=isNaN(e)?0:e,t.y=isNaN(i)?0:i}return t}return console.error("Not Supported!"),null}static copy(e){return new Xk(0,0).set(e)}get value(){return{x:this.x,y:this.y}}add(e){return this.x+=e.x,this.y+=e.y,this}subtract(e){return this.x-=e.x,this.y-=e.y,this}multiply(e){this.x*=e,this.y*=e}divide(e){this.x/=e,this.y/=e}reset(){return this.x=0,this.y=0,this}set(e){return this.x=e.x,this.y=e.y,this}}class Jk{constructor(e,t){this.parent=e,this.renderer=t,this._added=!1;let n=t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(n,"width","100%"),t.setStyle(n,"height","100%"),t.setStyle(n,"background-color","transparent"),t.setStyle(n,"top","0"),t.setStyle(n,"left","0"),this._helper=n}add(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}remove(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}dispose(){this._helper=null,this._added=!1}get el(){return this._helper}}let eE=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new Xk(0,0),this.tempTrans=new Xk(0,0),this.currTrans=new Xk(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new wc,this.stopped=new wc,this.edge=new wc,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new wc,this.endOffset=new wc,this._helperBlock=new Jk(e.nativeElement,t)}set zIndex(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}set ngDraggable(e){if(null!=e&&""!==e){this.allowDrag=!!e;let t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}ngOnInit(){if(this.allowDrag){let e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}ngOnDestroy(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}ngOnChanges(e){if(e.position&&!e.position.isFirstChange()){let t=e.position.currentValue;this.moving?this.needTransform=!0:(Xk.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}ngAfterViewInit(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}getDragEl(){return this.handle?this.handle:this.el.nativeElement}resetPosition(){Xk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}moveTo(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}transform(){let e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);let n=`translate(${Math.round(e)}px, ${Math.round(t)}px)`;this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}pickUp(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;const e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}subscribeEvents(){this.draggingSub=z_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(z_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(z_(document,"mouseup",{passive:!1}).subscribe(()=>this.putBack())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(z_(document,"mouseleave",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(z_(document,"touchend",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(z_(document,"touchcancel",{passive:!1}).subscribe(()=>this.putBack()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}boundsCheck(){if(this.bounds){let e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}getCurrentOffset(){return this.currTrans.value}putBack(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(Xk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();const e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}checkHandleTarget(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(let n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}onMouseDown(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=Xk.fromEvent(e,this.getDragEl()),this.pickUp())}onMouseMove(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(Xk.fromEvent(e,this.getDragEl())))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&Xo("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[dt]}),e})();class tE{constructor(e,t,n,i,r){this.parent=e,this.renderer=t,this.type=n,this.css=i,this.onMouseDown=r;let s=t.createElement("div");t.addClass(s,"ng-resizable-handle"),t.addClass(s,i),"se"===n&&t.addClass(s,"ng-resizable-diagonal"),this.parent&&e.appendChild(s),this._onResize=e=>{r(e,this)},s.addEventListener("mousedown",this._onResize,{passive:!1}),s.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=s}dispose(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}get el(){return this._handle}}class nE{constructor(e,t){this.width=e,this.height=t}static getCurrent(e){let t=new nE(0,0);if(window){const n=window.getComputedStyle(e);return n&&(t.width=parseInt(n.getPropertyValue("width"),10),t.height=parseInt(n.getPropertyValue("height"),10)),t}return console.error("Not Supported!"),null}static copy(e){return new nE(0,0).set(e)}set(e){return this.width=e.width,this.height=e.height,this}}let iE=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new wc,this.rzResizing=new wc,this.rzStop=new wc,this._helperBlock=new Jk(e.nativeElement,t)}set ngResizable(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}ngOnChanges(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}ngOnInit(){this.updateResizable()}ngOnDestroy(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}ngAfterViewInit(){const e=this.el.nativeElement;this._initSize=nE.getCurrent(e),this._initPos=Xk.getCurrent(e),this._currSize=nE.copy(this._initSize),this._currPos=Xk.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}resetSize(){this._currSize=nE.copy(this._initSize),this._currPos=Xk.copy(this._initPos),this.doResize()}getStatus(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}updateResizable(){const e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}updateAspectRatio(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{let e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}updateContainment(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}createHandles(){if(!this.rzHandles)return;let e;if("string"==typeof this.rzHandles){e="all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(",");for(let t of e){let e=this.createHandleByType(t,"ng-resizable-"+t);e&&(this._handleType.push(t),this._handles[t]=e)}}else{e=Object.keys(this.rzHandles);for(let t of e){let e=this.createHandleByType(t,this.rzHandles[t]);e&&(this._handleType.push(t),this._handles[t]=e)}}}createHandleByType(e,t){const n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new tE(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}removeHandles(){for(let e of this._handleType)this._handles[e].dispose();this._handleType=[],this._handles={}}onMouseDown(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=Xk.fromEvent(e),this.startResize(t),this.subscribeEvents()))}subscribeEvents(){this.draggingSub=z_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(z_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(z_(document,"mouseup",{passive:!1}).subscribe(()=>this.onMouseLeave())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(z_(document,"mouseleave",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(z_(document,"touchend",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(z_(document,"touchcancel",{passive:!1}).subscribe(()=>this.onMouseLeave()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}onMouseLeave(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}onMouseMove(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(Xk.fromEvent(e)),this.onResizing())}startResize(e){const t=this.el.nativeElement;this._origSize=nE.getCurrent(t),this._origPos=Xk.getCurrent(t),this._currSize=nE.copy(this._origSize),this._currPos=Xk.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}stopResize(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}onResizing(){this.rzResizing.emit(this.getResizingEvent())}getResizingEvent(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}updateDirection(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}resizeTo(e){e.subtract(this._origMousePos);const t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}doResize(){const e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}adjustByRatio(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){const e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{const e=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e}}checkBounds(){if(this._containment){const e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){const e=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){const t=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-t),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}}}}checkSize(){const e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}getBounding(){const e=this._containment,t=window.getComputedStyle(e);if(t){let n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}resetBounding(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}getGridSize(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[dt]}),e})(),rE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})();function sE(e,t){return function(n,i){t(n,i,e)}}let oE=(()=>{let e=class{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=ph(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(!this.documentIsAccessible||!this.check(e))return"";{e=encodeURIComponent(e);const n=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(n[1])}catch(t){return n[1]}}}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(t=>{const[n,i]=t.split("=");e[decodeURIComponent(n.replace(/^ /,""))]=decodeURIComponent(i)}),e}set(e,t,n,i,r,s,o="Lax"){if(!this.documentIsAccessible)return;let a=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(a+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(a+="path="+i+";"),r&&(a+="domain="+r+";"),!1===s&&"None"===o&&(s=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),s&&(a+="secure;"),a+="sameSite="+o+";",this.document.cookie=a}delete(e,t,n,i,r="Lax"){this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,r)}deleteAll(e,t,n,i="Lax"){if(!this.documentIsAccessible)return;const r=this.getAll();for(const s in r)r.hasOwnProperty(s)&&this.delete(s,e,t,n,i)}getCookieRegExp(e){const t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}};return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(qc))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(qc))},token:e,providedIn:"root"}),e=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}([sE(0,yi(Hu)),sE(1,yi(qc))],e),e})();function aE(e){return"string"==typeof e}let lE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),cE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),uE=(()=>{let e=class{transform(e,t=0,n="",i=!0){if(!aE(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"shorten",type:e,pure:!0}),e})(),dE=(()=>{let e=class{transform(e){return aE(e)?function(e){const[t,...n]=e.split(/\s/g);return[t.toLowerCase().split(/(?=['|-])/g).map(e=>e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)).join(""),...n].join(" ")}(e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"ucfirst",type:e,pure:!0}),e})(),hE=(()=>{let e=class{constructor(){this.latinMap={\u00c1:"A",\u0102:"A",\u1eae:"A",\u1eb6:"A",\u1eb0:"A",\u1eb2:"A",\u1eb4:"A",\u01cd:"A",\u00c2:"A",\u1ea4:"A",\u1eac:"A",\u1ea6:"A",\u1ea8:"A",\u1eaa:"A",\u00c4:"A",\u01de:"A",\u0226:"A",\u01e0:"A",\u1ea0:"A",\u0200:"A",\u00c0:"A",\u1ea2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00c5:"A",\u01fa:"A",\u1e00:"A",\u023a:"A",\u00c3:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY",\u1e02:"B",\u1e04:"B",\u0181:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0106:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0108:"C",\u010a:"C",\u0187:"C",\u023b:"C",\u010e:"D",\u1e10:"D",\u1e12:"D",\u1e0a:"D",\u1e0c:"D",\u018a:"D",\u1e0e:"D",\u01f2:"D",\u01c5:"D",\u0110:"D",\u018b:"D",\u01f1:"DZ",\u01c4:"DZ",\u00c9:"E",\u0114:"E",\u011a:"E",\u0228:"E",\u1e1c:"E",\u00ca:"E",\u1ebe:"E",\u1ec6:"E",\u1ec0:"E",\u1ec2:"E",\u1ec4:"E",\u1e18:"E",\u00cb:"E",\u0116:"E",\u1eb8:"E",\u0204:"E",\u00c8:"E",\u1eba:"E",\u0206:"E",\u0112:"E",\u1e16:"E",\u1e14:"E",\u0118:"E",\u0246:"E",\u1ebc:"E",\u1e1a:"E",\ua76a:"ET",\u1e1e:"F",\u0191:"F",\u01f4:"G",\u011e:"G",\u01e6:"G",\u0122:"G",\u011c:"G",\u0120:"G",\u0193:"G",\u1e20:"G",\u01e4:"G",\u1e2a:"H",\u021e:"H",\u1e28:"H",\u0124:"H",\u2c67:"H",\u1e26:"H",\u1e22:"H",\u1e24:"H",\u0126:"H",\u00cd:"I",\u012c:"I",\u01cf:"I",\u00ce:"I",\u00cf:"I",\u1e2e:"I",\u0130:"I",\u1eca:"I",\u0208:"I",\u00cc:"I",\u1ec8:"I",\u020a:"I",\u012a:"I",\u012e:"I",\u0197:"I",\u0128:"I",\u1e2c:"I",\ua779:"D",\ua77b:"F",\ua77d:"G",\ua782:"R",\ua784:"S",\ua786:"T",\ua76c:"IS",\u0134:"J",\u0248:"J",\u1e30:"K",\u01e8:"K",\u0136:"K",\u2c69:"K",\ua742:"K",\u1e32:"K",\u0198:"K",\u1e34:"K",\ua740:"K",\ua744:"K",\u0139:"L",\u023d:"L",\u013d:"L",\u013b:"L",\u1e3c:"L",\u1e36:"L",\u1e38:"L",\u2c60:"L",\ua748:"L",\u1e3a:"L",\u013f:"L",\u2c62:"L",\u01c8:"L",\u0141:"L",\u01c7:"LJ",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1e4a:"N",\u1e44:"N",\u1e46:"N",\u01f8:"N",\u019d:"N",\u1e48:"N",\u0220:"N",\u01cb:"N",\u00d1:"N",\u01ca:"NJ",\u00d3:"O",\u014e:"O",\u01d1:"O",\u00d4:"O",\u1ed0:"O",\u1ed8:"O",\u1ed2:"O",\u1ed4:"O",\u1ed6:"O",\u00d6:"O",\u022a:"O",\u022e:"O",\u0230:"O",\u1ecc:"O",\u0150:"O",\u020c:"O",\u00d2:"O",\u1ece:"O",\u01a0:"O",\u1eda:"O",\u1ee2:"O",\u1edc:"O",\u1ede:"O",\u1ee0:"O",\u020e:"O",\ua74a:"O",\ua74c:"O",\u014c:"O",\u1e52:"O",\u1e50:"O",\u019f:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u00d5:"O",\u1e4c:"O",\u1e4e:"O",\u022c:"O",\u01a2:"OI",\ua74e:"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1e54:"P",\u1e56:"P",\ua752:"P",\u01a4:"P",\ua754:"P",\u2c63:"P",\ua750:"P",\ua758:"Q",\ua756:"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1e58:"R",\u1e5a:"R",\u1e5c:"R",\u0210:"R",\u0212:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua73e:"C",\u018e:"E",\u015a:"S",\u1e64:"S",\u0160:"S",\u1e66:"S",\u015e:"S",\u015c:"S",\u0218:"S",\u1e60:"S",\u1e62:"S",\u1e68:"S",\u1e9e:"SS",\u0164:"T",\u0162:"T",\u1e70:"T",\u021a:"T",\u023e:"T",\u1e6a:"T",\u1e6c:"T",\u01ac:"T",\u1e6e:"T",\u01ae:"T",\u0166:"T",\u2c6f:"A",\ua780:"L",\u019c:"M",\u0245:"V",\ua728:"TZ",\u00da:"U",\u016c:"U",\u01d3:"U",\u00db:"U",\u1e76:"U",\u00dc:"U",\u01d7:"U",\u01d9:"U",\u01db:"U",\u01d5:"U",\u1e72:"U",\u1ee4:"U",\u0170:"U",\u0214:"U",\u00d9:"U",\u1ee6:"U",\u01af:"U",\u1ee8:"U",\u1ef0:"U",\u1eea:"U",\u1eec:"U",\u1eee:"U",\u0216:"U",\u016a:"U",\u1e7a:"U",\u0172:"U",\u016e:"U",\u0168:"U",\u1e78:"U",\u1e74:"U",\ua75e:"V",\u1e7e:"V",\u01b2:"V",\u1e7c:"V",\ua760:"VY",\u1e82:"W",\u0174:"W",\u1e84:"W",\u1e86:"W",\u1e88:"W",\u1e80:"W",\u2c72:"W",\u1e8c:"X",\u1e8a:"X",\u00dd:"Y",\u0176:"Y",\u0178:"Y",\u1e8e:"Y",\u1ef4:"Y",\u1ef2:"Y",\u01b3:"Y",\u1ef6:"Y",\u1efe:"Y",\u0232:"Y",\u024e:"Y",\u1ef8:"Y",\u0179:"Z",\u017d:"Z",\u1e90:"Z",\u2c6b:"Z",\u017b:"Z",\u1e92:"Z",\u0224:"Z",\u1e94:"Z",\u01b5:"Z",\u0132:"IJ",\u0152:"OE",\u1d00:"A",\u1d01:"AE",\u0299:"B",\u1d03:"B",\u1d04:"C",\u1d05:"D",\u1d07:"E",\ua730:"F",\u0262:"G",\u029b:"G",\u029c:"H",\u026a:"I",\u0281:"R",\u1d0a:"J",\u1d0b:"K",\u029f:"L",\u1d0c:"L",\u1d0d:"M",\u0274:"N",\u1d0f:"O",\u0276:"OE",\u1d10:"O",\u1d15:"OU",\u1d18:"P",\u0280:"R",\u1d0e:"N",\u1d19:"R",\ua731:"S",\u1d1b:"T",\u2c7b:"E",\u1d1a:"R",\u1d1c:"U",\u1d20:"V",\u1d21:"W",\u028f:"Y",\u1d22:"Z",\u00e1:"a",\u0103:"a",\u1eaf:"a",\u1eb7:"a",\u1eb1:"a",\u1eb3:"a",\u1eb5:"a",\u01ce:"a",\u00e2:"a",\u1ea5:"a",\u1ead:"a",\u1ea7:"a",\u1ea9:"a",\u1eab:"a",\u00e4:"a",\u01df:"a",\u0227:"a",\u01e1:"a",\u1ea1:"a",\u0201:"a",\u00e0:"a",\u1ea3:"a",\u0203:"a",\u0101:"a",\u0105:"a",\u1d8f:"a",\u1e9a:"a",\u00e5:"a",\u01fb:"a",\u1e01:"a",\u2c65:"a",\u00e3:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay",\u1e03:"b",\u1e05:"b",\u0253:"b",\u1e07:"b",\u1d6c:"b",\u1d80:"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0109:"c",\u0255:"c",\u010b:"c",\u0188:"c",\u023c:"c",\u010f:"d",\u1e11:"d",\u1e13:"d",\u0221:"d",\u1e0b:"d",\u1e0d:"d",\u0257:"d",\u1d91:"d",\u1e0f:"d",\u1d6d:"d",\u1d81:"d",\u0111:"d",\u0256:"d",\u018c:"d",\u0131:"i",\u0237:"j",\u025f:"j",\u0284:"j",\u01f3:"dz",\u01c6:"dz",\u00e9:"e",\u0115:"e",\u011b:"e",\u0229:"e",\u1e1d:"e",\u00ea:"e",\u1ebf:"e",\u1ec7:"e",\u1ec1:"e",\u1ec3:"e",\u1ec5:"e",\u1e19:"e",\u00eb:"e",\u0117:"e",\u1eb9:"e",\u0205:"e",\u00e8:"e",\u1ebb:"e",\u0207:"e",\u0113:"e",\u1e17:"e",\u1e15:"e",\u2c78:"e",\u0119:"e",\u1d92:"e",\u0247:"e",\u1ebd:"e",\u1e1b:"e",\ua76b:"et",\u1e1f:"f",\u0192:"f",\u1d6e:"f",\u1d82:"f",\u01f5:"g",\u011f:"g",\u01e7:"g",\u0123:"g",\u011d:"g",\u0121:"g",\u0260:"g",\u1e21:"g",\u1d83:"g",\u01e5:"g",\u1e2b:"h",\u021f:"h",\u1e29:"h",\u0125:"h",\u2c68:"h",\u1e27:"h",\u1e23:"h",\u1e25:"h",\u0266:"h",\u1e96:"h",\u0127:"h",\u0195:"hv",\u00ed:"i",\u012d:"i",\u01d0:"i",\u00ee:"i",\u00ef:"i",\u1e2f:"i",\u1ecb:"i",\u0209:"i",\u00ec:"i",\u1ec9:"i",\u020b:"i",\u012b:"i",\u012f:"i",\u1d96:"i",\u0268:"i",\u0129:"i",\u1e2d:"i",\ua77a:"d",\ua77c:"f",\u1d79:"g",\ua783:"r",\ua785:"s",\ua787:"t",\ua76d:"is",\u01f0:"j",\u0135:"j",\u029d:"j",\u0249:"j",\u1e31:"k",\u01e9:"k",\u0137:"k",\u2c6a:"k",\ua743:"k",\u1e33:"k",\u0199:"k",\u1e35:"k",\u1d84:"k",\ua741:"k",\ua745:"k",\u013a:"l",\u019a:"l",\u026c:"l",\u013e:"l",\u013c:"l",\u1e3d:"l",\u0234:"l",\u1e37:"l",\u1e39:"l",\u2c61:"l",\ua749:"l",\u1e3b:"l",\u0140:"l",\u026b:"l",\u1d85:"l",\u026d:"l",\u0142:"l",\u01c9:"lj",\u017f:"s",\u1e9c:"s",\u1e9b:"s",\u1e9d:"s",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u1d6f:"m",\u1d86:"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1e4b:"n",\u0235:"n",\u1e45:"n",\u1e47:"n",\u01f9:"n",\u0272:"n",\u1e49:"n",\u019e:"n",\u1d70:"n",\u1d87:"n",\u0273:"n",\u00f1:"n",\u01cc:"nj",\u00f3:"o",\u014f:"o",\u01d2:"o",\u00f4:"o",\u1ed1:"o",\u1ed9:"o",\u1ed3:"o",\u1ed5:"o",\u1ed7:"o",\u00f6:"o",\u022b:"o",\u022f:"o",\u0231:"o",\u1ecd:"o",\u0151:"o",\u020d:"o",\u00f2:"o",\u1ecf:"o",\u01a1:"o",\u1edb:"o",\u1ee3:"o",\u1edd:"o",\u1edf:"o",\u1ee1:"o",\u020f:"o",\ua74b:"o",\ua74d:"o",\u2c7a:"o",\u014d:"o",\u1e53:"o",\u1e51:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u00f5:"o",\u1e4d:"o",\u1e4f:"o",\u022d:"o",\u01a3:"oi",\ua74f:"oo",\u025b:"e",\u1d93:"e",\u0254:"o",\u1d97:"o",\u0223:"ou",\u1e55:"p",\u1e57:"p",\ua753:"p",\u01a5:"p",\u1d71:"p",\u1d88:"p",\ua755:"p",\u1d7d:"p",\ua751:"p",\ua759:"q",\u02a0:"q",\u024b:"q",\ua757:"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1e59:"r",\u1e5b:"r",\u1e5d:"r",\u0211:"r",\u027e:"r",\u1d73:"r",\u0213:"r",\u1e5f:"r",\u027c:"r",\u1d72:"r",\u1d89:"r",\u024d:"r",\u027d:"r",\u2184:"c",\ua73f:"c",\u0258:"e",\u027f:"r",\u015b:"s",\u1e65:"s",\u0161:"s",\u1e67:"s",\u015f:"s",\u015d:"s",\u0219:"s",\u1e61:"s",\u1e63:"s",\u1e69:"s",\u0282:"s",\u1d74:"s",\u1d8a:"s",\u023f:"s",\u0261:"g",\u00df:"ss",\u1d11:"o",\u1d13:"o",\u1d1d:"u",\u0165:"t",\u0163:"t",\u1e71:"t",\u021b:"t",\u0236:"t",\u1e97:"t",\u2c66:"t",\u1e6b:"t",\u1e6d:"t",\u01ad:"t",\u1e6f:"t",\u1d75:"t",\u01ab:"t",\u0288:"t",\u0167:"t",\u1d7a:"th",\u0250:"a",\u1d02:"ae",\u01dd:"e",\u1d77:"g",\u0265:"h",\u02ae:"h",\u02af:"h",\u1d09:"i",\u029e:"k",\ua781:"l",\u026f:"m",\u0270:"m",\u1d14:"oe",\u0279:"r",\u027b:"r",\u027a:"r",\u2c79:"r",\u0287:"t",\u028c:"v",\u028d:"w",\u028e:"y",\ua729:"tz",\u00fa:"u",\u016d:"u",\u01d4:"u",\u00fb:"u",\u1e77:"u",\u00fc:"u",\u01d8:"u",\u01da:"u",\u01dc:"u",\u01d6:"u",\u1e73:"u",\u1ee5:"u",\u0171:"u",\u0215:"u",\u00f9:"u",\u1ee7:"u",\u01b0:"u",\u1ee9:"u",\u1ef1:"u",\u1eeb:"u",\u1eed:"u",\u1eef:"u",\u0217:"u",\u016b:"u",\u1e7b:"u",\u0173:"u",\u1d99:"u",\u016f:"u",\u0169:"u",\u1e79:"u",\u1e75:"u",\u1d6b:"ue",\ua778:"um",\u2c74:"v",\ua75f:"v",\u1e7f:"v",\u028b:"v",\u1d8c:"v",\u2c71:"v",\u1e7d:"v",\ua761:"vy",\u1e83:"w",\u0175:"w",\u1e85:"w",\u1e87:"w",\u1e89:"w",\u1e81:"w",\u2c73:"w",\u1e98:"w",\u1e8d:"x",\u1e8b:"x",\u1d8d:"x",\u00fd:"y",\u0177:"y",\u00ff:"y",\u1e8f:"y",\u1ef5:"y",\u1ef3:"y",\u01b4:"y",\u1ef7:"y",\u1eff:"y",\u0233:"y",\u1e99:"y",\u024f:"y",\u1ef9:"y",\u017a:"z",\u017e:"z",\u1e91:"z",\u0291:"z",\u2c6c:"z",\u017c:"z",\u1e93:"z",\u0225:"z",\u1e95:"z",\u1d76:"z",\u1d8e:"z",\u0290:"z",\u01b6:"z",\u0240:"z",\ufb00:"ff",\ufb03:"ffi",\ufb04:"ffl",\ufb01:"fi",\ufb02:"fl",\u0133:"ij",\u0153:"oe",\ufb06:"st",\u2090:"a",\u2091:"e",\u1d62:"i",\u2c7c:"j",\u2092:"o",\u1d63:"r",\u1d64:"u",\u1d65:"v",\u2093:"x"}}transform(e,t="\\s"){return aE(e)?e.replace(/[^A-Za-z0-9]/g,e=>this.latinMap[e]||e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"latinise",type:e,pure:!0}),e})(),pE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),gE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),fE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),mE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),vE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[lE,pE,gE,fE,cE,mE]}),e})();function bE(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}const yE=new mC(pC);function wE(e,t=yE){return n=>n.lift(new _E(e,t))}class _E{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new xE(e,this.dueTime,this.scheduler))}}class xE extends f{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(AE,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 AE(e){e.debouncedNext()}function CE(e){return null!=e&&""+e!="false"}function SE(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function kE(e){return Array.isArray(e)?e:[e]}function EE(e){return null==e?"":"string"==typeof e?e:e+"px"}function PE(e){return e instanceof al?e.nativeElement:e}let DE;try{DE="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(NK){DE=!1}let OE,IE,TE,ME=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ph(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!DE)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(fi(qc))},e.\u0275prov=ge({factory:function(){return new e(fi(qc))},token:e,providedIn:"root"}),e})(),BE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();function RE(e){return function(){if(null==OE&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>OE=!0}))}finally{OE=OE||!1}return OE}()?e:!!e.capture}function LE(){if(null==IE){if("object"!=typeof document||!document)return IE=!1,IE;if("scrollBehavior"in document.documentElement.style)IE=!0;else{const e=Element.prototype.scrollTo;IE=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return IE}function FE(e){if(function(){if(null==TE){const e="undefined"!=typeof document?document.head:null;TE=!(!e||!e.createShadowRoot&&!e.attachShadow)}return TE}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}let NE=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),VE=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=PE(e);return new y(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new C,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(fi(NE))},e.\u0275prov=ge({factory:function(){return new e(fi(NE))},token:e,providedIn:"root"}),e})(),zE=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new wc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=CE(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=SE(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(wE(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(VE),Vo(al),Vo(lu))},e.\u0275dir=Je({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),jE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[NE]}),e})();function HE(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}let UE=0;const WE=new Map;let $E=null,GE=(()=>{class e{constructor(e){this._document=e}describe(e,t,n){if(!this._canBeDescribed(e,t))return;const i=qE(t,n);"string"!=typeof t?(YE(t),WE.set(i,{messageElement:t,referenceCount:0})):WE.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;const i=qE(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){const e=WE.get(i);e&&0===e.referenceCount&&this._deleteMessageElement(i)}$E&&0===$E.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll("[cdk-describedby-host]");for(let t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");$E&&this._deleteMessagesContainer(),WE.clear()}_createMessageElement(e,t){const n=this._document.createElement("div");YE(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),$E.appendChild(n),WE.set(qE(e,t),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){const t=WE.get(e),n=t&&t.messageElement;$E&&n&&$E.removeChild(n),WE.delete(e)}_createMessagesContainer(){if(!$E){const e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),$E=this._document.createElement("div"),$E.id="cdk-describedby-message-container",$E.style.visibility="hidden",$E.classList.add("cdk-visually-hidden"),this._document.body.appendChild($E)}}_deleteMessagesContainer(){$E&&$E.parentNode&&($E.parentNode.removeChild($E),$E=null)}_removeCdkDescribedByReferenceIds(e){const t=HE(e,"aria-describedby").filter(e=>0!=e.indexOf("cdk-describedby-message"));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const n=WE.get(t);!function(e,t,n){const i=HE(e,t);i.some(e=>e.trim()==n.trim())||(i.push(n.trim()),e.setAttribute(t,i.join(" ")))}(e,"aria-describedby",n.messageElement.id),e.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(e,t){const n=WE.get(t);n.referenceCount--,function(e,t,n){const i=HE(e,t).filter(e=>e!=n.trim());i.length?e.setAttribute(t,i.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",n.messageElement.id),e.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(e,t){const n=HE(e,"aria-describedby"),i=WE.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu))},token:e,providedIn:"root"}),e})();function qE(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function YE(e){e.id||(e.id="cdk-describedby-message-"+UE++)}class ZE{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,e instanceof xc&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ib(e=>this._pressedLetters.push(e)),wE(e),dv(()=>this._pressedLetters.length>0),E(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,r=t[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||bE(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof xc?this._items.toArray():this._items}}class KE extends ZE{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class QE extends ZE{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let XE=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(NK){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){if(-1===eP(t))return!1;if(!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),r=eP(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||JE(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(ME))},token:e,providedIn:"root"}),e})();function JE(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function eP(e){if(!JE(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class tP{constructor(e,t,n,i,r=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(cb(1)).subscribe(e)}}let nP=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new tP(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(fi(XE),fi(lu),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(XE),fi(lu),fi(Hu))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&&Element;const iP=new Xn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),rP=new Xn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let sP=(()=>{class e{constructor(e,t,n,i){this._ngZone=t,this._defaultOptions=i,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){const n=this._defaultOptions;let i,r;return 1===t.length&&"number"==typeof t[0]?r=t[0]:[i,r]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}return e.\u0275fac=function(t){return new(t||e)(fi(iP,8),fi(lu),fi(Hu),fi(rP,8))},e.\u0275prov=ge({factory:function(){return new e(fi(iP,8),fi(lu),fi(Hu),fi(rP,8))},token:e,providedIn:"root"}),e})();function oP(e){return 0===e.buttons}function aP(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const lP=new Xn("cdk-focus-monitor-default-options"),cP=RE({passive:!0,capture:!0});let uP=(()=>{class e{constructor(e,t,n,i){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=oP(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{aP(e)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=dP(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=dP(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let i=t;i;i=i.parentElement)n.call(this,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(e,t=!1){const n=PE(e);if(!this._platform.isBrowser||1!==n.nodeType)return cv(null);const i=FE(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;const s={checkChildren:t,subject:new C,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=PE(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const i=PE(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=dP(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===dP(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,cP),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,cP)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,cP),e.addEventListener("mousedown",this._documentMousedownListener,cP),e.addEventListener("touchstart",this._documentTouchstartListener,cP),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cP),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cP),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,cP),e.removeEventListener("mousedown",this._documentMousedownListener,cP),e.removeEventListener("touchstart",this._documentTouchstartListener,cP),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,i)=>{(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(ME),fi(Hu,8),fi(lP,8))},e.\u0275prov=ge({factory:function(){return new e(fi(lu),fi(ME),fi(Hu,8),fi(lP,8))},token:e,providedIn:"root"}),e})();function dP(e){return e.composedPath?e.composedPath()[0]:e.target}let hP=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(fi(ME),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(ME),fi(Hu))},token:e,providedIn:"root"}),e})(),pP=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275fac=function(t){return new(t||e)(fi(hP))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[BE,jE]]}),e})();const gP=new Xn("cdk-dir-doc",{providedIn:"root",factory:function(){return mi(Hu)}});let fP=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new wc,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(fi(gP,8))},e.\u0275prov=ge({factory:function(){return new e(fi(gP,8))},token:e,providedIn:"root"}),e})(),mP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();const vP=new pl("11.2.5");function bP(e,t){if(1&e&&Wo(0,"mat-pseudo-checkbox",4),2&e){const e=ia();zo("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function yP(e,t){if(1&e&&(Ho(0,"span",5),Oa(1),Uo()),2&e){const e=ia();is(1),Ta("(",e.group.label,")")}}const wP=["*"];let _P=(()=>{class e{}return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e})(),xP=(()=>{class e{}return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e})();const AP=new pl("11.2.5"),CP=new Xn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let SP,kP=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return xu()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&AP.full!==vP.full&&console.warn("The Angular Material version ("+AP.full+") does not match the Angular CDK version ("+vP.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275fac=function(t){return new(t||e)(fi(hP),fi(CP,8),fi(Hu))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[mP],mP]}),e})();function EP(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=CE(e)}}}function PP(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}}function DP(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=CE(e)}}}function OP(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?SE(e):this.defaultTabIndex}}}function IP(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new C}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}function TP(e){return class extends e{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}try{SP="undefined"!=typeof Intl}catch(NK){SP=!1}let MP=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),BP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})();class RP{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const LP={enterDuration:450,exitDuration:400},FP=RE({passive:!0}),NP=["mousedown","touchstart"],VP=["mouseup","mouseleave","touchend","touchcancel"];class zP{constructor(e,t,n,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=PE(n))}fadeInRipple(e,t,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},LP),n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const s=n.radius||function(e,t,n){const i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,i),o=e-i.left,a=t-i.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-s+"px",c.style.top=a-s+"px",c.style.height=2*s+"px",c.style.width=2*s+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new RP(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const e=u===this._mostRecentTransientRipple;u.state=1,n.persistent||e&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,i=Object.assign(Object.assign({},LP),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=PE(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(NP))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(VP),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=oP(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!aP(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,FP)})})}_removeTriggerEvents(){this._triggerElement&&(NP.forEach(e=>{this._triggerElement.removeEventListener(e,this,FP)}),this._pointerUpEventsRegistered&&VP.forEach(e=>{this._triggerElement.removeEventListener(e,this,FP)}))}}const jP=new Xn("mat-ripple-global-options");let HP=(()=>{class e{constructor(e,t,n,i,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new zP(this,t,e,n)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(lu),Vo(ME),Vo(jP,8),Vo(xf,8))},e.\u0275dir=Je({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&va("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),UP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP,BE],kP]}),e})(),WP=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(Vo(xf,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&va("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),$P=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP]]}),e})();const GP=new Xn("MAT_OPTION_PARENT_COMPONENT");class qP{}const YP=EP(qP);let ZP=0,KP=(()=>{class e extends YP{constructor(e){var t;super(),this._labelId="mat-optgroup-label-"+ZP++,this._inert=null!==(t=null==e?void 0:e.inertGroups)&&void 0!==t&&t}}return e.\u0275fac=function(t){return new(t||e)(Vo(GP,8))},e.\u0275dir=Je({type:e,inputs:{label:"label"},features:[yo]}),e})();const QP=new Xn("MatOptgroup");let XP=0;class JP{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let eD=(()=>{class e{constructor(e,t,n,i){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+XP++,this.onSelectionChange=new wc,this._stateChanges=new C}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=CE(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){13!==e.keyCode&&32!==e.keyCode||bE(e)||(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new JP(this,e))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(void 0),Vo(KP))},e.\u0275dir=Je({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e})(),tD=(()=>{class e extends eD{constructor(e,t,n,i){super(e,t,n,i)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(GP,8),Vo(QP,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xo("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Fa("id",t.id),Bo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),va("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[yo],ngContentSelectors:wP,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(sa(),Fo(0,bP,1,2,"mat-pseudo-checkbox",0),Ho(1,"span",1),oa(2),Uo(),Fo(3,yP,2,1,"span",2),Wo(4,"div",3)),2&e&&(zo("ngIf",t.multiple),is(3),zo("ngIf",t.group&&t.group._inert),is(1),zo("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[$d,HP,WP],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function nD(e,t,n){if(n.length){let i=t.toArray(),r=n.toArray(),s=0;for(let t=0;t<e+1;t++)i[t].group&&i[t].group===r[s]&&s++;return s}return 0}let iD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[UP,hh,kP,$P]]}),e})();class rD extends pC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class sD extends mC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const oD=new sD(rD);let aD=1;const lD=(()=>Promise.resolve())(),cD={};function uD(e){return e in cD&&(delete cD[e],!0)}const dD={setImmediate(e){const t=aD++;return cD[t]=!0,lD.then(()=>uD(t)&&e()),t},clearImmediate(e){uD(e)}};class hD extends pC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=dD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(dD.clearImmediate(t),e.scheduled=void 0)}}class pD extends mC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const gD=new pD(hD);class fD{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new mD(e,this.durationSelector))}}class mD extends V{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=z(n,new N(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function vD(e){return!c(e)&&e-parseFloat(e)+1>=0}function bD(e=0,t,n){let i=-1;return vD(t)?i=Number(t)<1?1:Number(t):k(t)&&(n=t),k(n)||(n=yE),new y(t=>{const r=vD(e)?e:+e-n.now();return n.schedule(yD,r,{index:0,period:i,subscriber:t})})}function yD(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function wD(e,t=yE){return n=()=>bD(e,t),function(e){return e.lift(new fD(n))};var n}function _D(e){return t=>t.lift(new xD(e))}class xD{constructor(e){this.notifier=e}call(e,t){const n=new AD(e),i=z(this.notifier,new N(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class AD extends V{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class CD{constructor(e=!1,t,n=!0){this._multiple=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new C,t&&t.length&&(e?t.forEach(e=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let SD=(()=>{class e{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new y(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(wD(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):cv()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(dv(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=PE(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>z_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(ME),fi(Hu,8))},e.\u0275prov=ge({factory:function(){return new e(fi(lu),fi(ME),fi(Hu,8))},token:e,providedIn:"root"}),e})(),kD=(()=>{class e{constructor(e,t,n){this._platform=e,this._change=new C,this._changeListener=e=>{this._change.next(e)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(wD(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(fi(ME),fi(lu),fi(Hu,8))},e.\u0275prov=ge({factory:function(){return new e(fi(ME),fi(lu),fi(Hu,8))},token:e,providedIn:"root"}),e})(),ED=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),PD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[mP,BE,ED],mP,ED]}),e})();class DD{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new OD(e,this.predicate,this.inclusive))}}class OD extends f{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}const ID=LE();class TD{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=EE(-this._previousScrollPosition.left),e.style.top=EE(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ID&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ID&&(t.scrollBehavior=i,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class MD{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class BD{enable(){}disable(){}attach(){}}function RD(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function LD(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class FD{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();RD(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ND=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new BD,this.close=e=>new MD(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new TD(this._viewportRuler,this._document),this.reposition=e=>new FD(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(fi(SD),fi(kD),fi(lu),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(SD),fi(kD),fi(lu),fi(Hu))},token:e,providedIn:"root"}),e})();class VD{constructor(e){if(this.scrollStrategy=new BD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class zD{constructor(e,t,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class jD{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let HD=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu))},token:e,providedIn:"root"}),e})(),UD=(()=>{class e extends HD{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu))},token:e,providedIn:"root"}),e})(),WD=(()=>{class e extends HD{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(t))break;r._outsidePointerEvents.next(e)}}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(ME))},token:e,providedIn:"root"}),e})();const $D=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let GD=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||$D){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),$D?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(ME))},token:e,providedIn:"root"}),e})();class qD{constructor(e,t,n,i,r,s,o,a,l){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new C,this._attachments=new C,this._detachments=new C,this._locationChanges=h.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEvents=new C,this._outsidePointerEvents=new C,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(cb(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=EE(this._config.width),e.height=EE(this._config.height),e.minWidth=EE(this._config.minWidth),e.minHeight=EE(this._config.minHeight),e.maxWidth=EE(this._config.maxWidth),e.maxHeight=EE(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;kE(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(_D(q(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const YD=/([A-Za-z%]+)$/;class ZD{constructor(e,t,n,i,r){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(e,s),a=this._getOverlayPoint(o,t,s),l=this._getOverlayFit(a,t,n,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:s,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:a,originPoint:o,position:s,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&KD(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}_getOverlayFit(e,t,n,i){const r=XD(t);let{x:s,y:o}=e,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(s+=a),l&&(o+=l);let c=0-o,u=o+r.height-n.height,d=this._subtractOverflows(r.width,0-s,s+r.width-n.width),h=this._subtractOverflows(r.height,c,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,r=n.right-t.x,s=QD(this._overlayRef.getConfig().minHeight),o=QD(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=XD(t),r=this._viewportRect,s=Math.max(e.x+i.width-r.width,0),o=Math.max(e.y+i.height-r.height,0),a=Math.max(r.top-n.top-e.y,0),l=Math.max(r.left-n.left-e.x,0);let c=0,u=0;return c=i.width<=r.width?l||-s:e.x<this._viewportMargin?r.left-n.left-e.x:0,u=i.height<=r.height?a||-o:e.y<this._viewportMargin?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:u},{x:e.x+c,y:e.y+u}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new jD(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,l,c;if("top"===t.overlayY)s=e.y,r=n.height-s+this._viewportMargin;else if("bottom"===t.overlayY)o=n.height-e.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;r=2*t,s=e.y-t,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)c=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)l=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-i/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=EE(n.height),i.top=EE(n.top),i.bottom=EE(n.bottom),i.width=EE(n.width),i.left=EE(n.left),i.right=EE(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=EE(e)),r&&(i.maxWidth=EE(r))}this._lastBoundingBoxSize=n,KD(this._boundingBox.style,i)}_resetBoundingBoxStyles(){KD(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){KD(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();KD(n,this._getExactOverlayY(t,e,i)),KD(n,this._getExactOverlayX(t,e,i))}else n.position="static";let o="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=EE(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=EE(s.maxWidth):r&&(n.maxWidth="")),KD(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=EE(r.y),i}_getExactOverlayX(e,t,n){let i,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=EE(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:LD(e,n),isOriginOutsideView:RD(e,n),isOverlayClipped:LD(t,n),isOverlayOutsideView:RD(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&kE(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof al)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function KD(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function QD(e){if("number"!=typeof e&&null!=e){const[t,n]=e.split(YD);return n&&"px"!==n?null:parseFloat(t)}return e||null}function XD(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class JD{constructor(e,t,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new ZD(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const r=new zD(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class eO{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let tO=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new eO}connectedTo(e,t,n){return new JD(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new ZD(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(fi(kD),fi(Hu),fi(ME),fi(GD))},e.\u0275prov=ge({factory:function(){return new e(fi(kD),fi(Hu),fi(ME),fi(GD))},token:e,providedIn:"root"}),e})(),nO=0,iO=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new VD(e);return r.direction=r.direction||this._directionality.value,new qD(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+nO++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Du)),new iS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(fi(ND),fi(GD),fi(il),fi(tO),fi(UD),fi(vo),fi(lu),fi(Hu),fi(fP),fi(id),fi(WD))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const rO=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],sO=new Xn("cdk-connected-overlay-scroll-strategy");let oO=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(al))},e.\u0275dir=Je({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),aO=(()=>{class e{constructor(e,t,n,i,r){this._overlay=e,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new wc,this.positionChange=new wc,this.attach=new wc,this.detach=new wc,this.overlayKeydown=new wc,this.overlayOutsideClick=new wc,this._templatePortal=new eS(t,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=CE(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=CE(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=CE(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=CE(e)}get push(){return this._push}set push(e){this._push=CE(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=rO);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27!==e.keyCode||this.disableClose||bE(e)||(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new VD({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return n=>n.lift(new DD(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(Vl),Vo(Gl),Vo(sO),Vo(fP,8))},e.\u0275dir=Je({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[dt]}),e})();const lO={provide:sO,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let cO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[iO,lO],imports:[[mP,sS,PD],PD]}),e})();const uO=["underline"],dO=["connectionContainer"],hO=["inputContainer"],pO=["label"];function gO(e,t){1&e&&($o(0),Ho(1,"div",14),Wo(2,"div",15),Wo(3,"div",16),Wo(4,"div",17),Uo(),Ho(5,"div",18),Wo(6,"div",15),Wo(7,"div",16),Wo(8,"div",17),Uo(),Go())}function fO(e,t){1&e&&(Ho(0,"div",19),oa(1,1),Uo())}function mO(e,t){if(1&e&&($o(0),oa(1,2),Ho(2,"span"),Oa(3),Uo(),Go()),2&e){const e=ia(2);is(3),Ia(e._control.placeholder)}}function vO(e,t){1&e&&oa(0,3,["*ngSwitchCase","true"])}function bO(e,t){1&e&&(Ho(0,"span",23),Oa(1," *"),Uo())}function yO(e,t){if(1&e){const e=Yo();Ho(0,"label",20,21),Xo("cdkObserveContent",function(){return Lt(e),ia().updateOutlineGap()}),Fo(2,mO,4,1,"ng-container",12),Fo(3,vO,1,0,"ng-content",12),Fo(4,bO,2,0,"span",22),Uo()}if(2&e){const e=ia();va("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),zo("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Bo("for",e._control.id)("aria-owns",e._control.id),is(2),zo("ngSwitchCase",!1),is(1),zo("ngSwitchCase",!0),is(1),zo("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function wO(e,t){1&e&&(Ho(0,"div",24),oa(1,4),Uo())}function _O(e,t){if(1&e&&(Ho(0,"div",25,26),Wo(2,"span",27),Uo()),2&e){const e=ia();is(2),va("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function xO(e,t){1&e&&(Ho(0,"div"),oa(1,5),Uo()),2&e&&zo("@transitionMessages",ia()._subscriptAnimationState)}function AO(e,t){if(1&e&&(Ho(0,"div",31),Oa(1),Uo()),2&e){const e=ia(2);zo("id",e._hintLabelId),is(1),Ia(e.hintLabel)}}function CO(e,t){if(1&e&&(Ho(0,"div",28),Fo(1,AO,2,2,"div",29),oa(2,6),Wo(3,"div",30),oa(4,7),Uo()),2&e){const e=ia();zo("@transitionMessages",e._subscriptAnimationState),is(1),zo("ngIf",e.hintLabel)}}const SO=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kO=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],EO=new Xn("MatError"),PO={transitionMessages:ep("transitionMessages",[rp("enter",ip({opacity:1,transform:"translateY(0%)"})),op("void => enter",[ip({opacity:0,transform:"translateY(-5px)"}),tp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let DO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e}),e})();const OO=new Xn("MatHint");let IO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["mat-label"]]}),e})(),TO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["mat-placeholder"]]}),e})();const MO=new Xn("MatPrefix"),BO=new Xn("MatSuffix");let RO=0;class LO{constructor(e){this._elementRef=e}}const FO=PP(LO,"primary"),NO=new Xn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),VO=new Xn("MatFormField");let zO=(()=>{class e extends FO{constructor(e,t,n,i,r,s,o,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+RO++,this._labelId="mat-form-field-label-"+RO++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=CE(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(hb(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_D(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(_D(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),q(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hb(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hb(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(_D(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,z_(this._label.nativeElement,"transitionend").pipe(cb(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=e.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let e=0;e<o.length;e++)l+=o[e].offsetWidth;t=Math.abs(a-s)-5,n=l>0?.75*l+10:0}for(let o=0;o<r.length;o++)r[o].style.width=t+"px";for(let o=0;o<s.length;o++)s[o].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(al),Vo(fP,8),Vo(NO,8),Vo(ME),Vo(lu),Vo(xf,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,DO,1),Bc(n,DO,3),Bc(n,IO,1),Bc(n,IO,3),Bc(n,TO,1),Bc(n,EO,1),Bc(n,OO,1),Bc(n,MO,1),Bc(n,BO,1)),2&e){let e;Tc(e=Rc())&&(t._controlNonStatic=e.first),Tc(e=Rc())&&(t._controlStatic=e.first),Tc(e=Rc())&&(t._labelChildNonStatic=e.first),Tc(e=Rc())&&(t._labelChildStatic=e.first),Tc(e=Rc())&&(t._placeholderChild=e.first),Tc(e=Rc())&&(t._errorChildren=e),Tc(e=Rc())&&(t._hintChildren=e),Tc(e=Rc())&&(t._prefixChildren=e),Tc(e=Rc())&&(t._suffixChildren=e)}},viewQuery:function(e,t){if(1&e&&(Mc(uO,1),Mc(dO,3),Mc(hO,1),Mc(pO,1)),2&e){let e;Tc(e=Rc())&&(t.underlineRef=e.first),Tc(e=Rc())&&(t._connectionContainerRef=e.first),Tc(e=Rc())&&(t._inputContainerRef=e.first),Tc(e=Rc())&&(t._label=e.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&va("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[el([{provide:VO,useExisting:e}]),yo],ngContentSelectors:kO,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(sa(SO),Ho(0,"div",0),Ho(1,"div",1,2),Xo("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),Fo(3,gO,9,0,"ng-container",3),Fo(4,fO,2,0,"div",4),Ho(5,"div",5,6),oa(7),Ho(8,"span",7),Fo(9,yO,5,16,"label",8),Uo(),Uo(),Fo(10,wO,2,0,"div",9),Uo(),Fo(11,_O,3,4,"div",10),Ho(12,"div",11),Fo(13,xO,2,1,"div",12),Fo(14,CO,5,2,"div",13),Uo(),Uo()),2&e&&(is(3),zo("ngIf","outline"==t.appearance),is(1),zo("ngIf",t._prefixChildren.length),is(5),zo("ngIf",t._hasFloatingLabel()),is(1),zo("ngIf",t._suffixChildren.length),is(1),zo("ngIf","outline"!=t.appearance),is(1),zo("ngSwitch",t._getDisplayedMessages()),is(1),zo("ngSwitchCase","error"),is(1),zo("ngSwitchCase","hint"))},directives:[$d,Zd,Kd,zE],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[PO.transitionMessages]},changeDetection:0}),e})(),jO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,jE],kP]}),e})();function HO(e,t=yE){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new UO(i,t))}class UO{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new WO(e,this.delay,this.scheduler))}}class WO extends f{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,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(WO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new $O(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(_C.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(_C.createComplete()),this.unsubscribe()}}class $O{constructor(e,t){this.time=e,this.notification=t}}const GO={provide:new Xn("mat-autocomplete-scroll-strategy"),deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let qO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[GO],imports:[[cO,iD,kP,hh],ED,iD,kP]}),e})(),YO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[pP,kP],kP]}),e})();class ZO{constructor(e){this.total=e}call(e,t){return t.subscribe(new KO(e,this.total))}}class KO extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}const QO=new Set;let XO,JO=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):eI}matchMedia(e){return this._platform.WEBKIT&&function(e){if(!QO.has(e))try{XO||(XO=document.createElement("style"),XO.setAttribute("type","text/css"),document.head.appendChild(XO)),XO.sheet&&(XO.sheet.insertRule(`@media ${e} {.fx-query-test{ }}`,0),QO.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(ME))},token:e,providedIn:"root"}),e})();function eI(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let tI=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return nI(kE(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=Qv(nI(kE(e)).map(e=>this._registerQuery(e).observable));return t=tb(t.pipe(cb(1)),t.pipe(e=>e.lift(new ZO(1)),wE(0))),t.pipe(E(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:n})=>{t.matches=t.matches||e,t.breakpoints[n]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),n={observable:new y(e=>{const n=t=>this._zone.run(()=>e.next(t));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(hb(t),E(({matches:t})=>({query:e,matches:t})),_D(this._destroySubject)),mql:t};return this._queries.set(e,n),n}}return e.\u0275fac=function(t){return new(t||e)(fi(JO),fi(lu))},e.\u0275prov=ge({factory:function(){return new e(fi(JO),fi(lu))},token:e,providedIn:"root"}),e})();function nI(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function iI(e,t){}const rI=new Xn("MatBottomSheetData");class sI{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}}const oI={bottomSheetState:ep("state",[rp("void, hidden",ip({transform:"translateY(100%)"})),rp("visible",ip({transform:"translateY(0%)"})),op("visible => void, visible => hidden",tp(`${xP.COMPLEX} ${_P.ACCELERATION_CURVE}`)),op("void => visible",tp(`${xP.EXITING} ${_P.DECELERATION_CURVE}`))])};let aI=(()=>{class e extends nS{constructor(e,t,n,i,r,s){super(),this._elementRef=e,this._changeDetectorRef=t,this._focusTrapFactory=n,this.bottomSheetConfig=s,this._animationState="void",this._animationStateChanged=new wc,this._elementFocusedBeforeOpened=null,this.attachDomPortal=e=>(this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(e)),this._document=r,this._breakpointSubscription=i.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",i.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),this._toggleClass("mat-bottom-sheet-container-large",i.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),this._toggleClass("mat-bottom-sheet-container-xlarge",i.isMatched("(min-width: 1920px)"))})}attachComponentPortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_toggleClass(e,t){const n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}_validatePortalAttached(){this._portalOutlet.hasAttached()}_setPanelClass(){const e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(t=>e.classList.add(t)):t&&e.classList.add(t)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus())}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(nP),Vo(tI),Vo(Hu,8),Vo(sI))},e.\u0275cmp=qe({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){if(1&e&&Mc(rS,3),2&e){let e;Tc(e=Rc())&&(t._portalOutlet=e.first)}},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Jo("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(Bo("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),Na("@state",t._animationState))},features:[yo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fo(0,iI,0,0,"ng-template",0)},directives:[rS],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[oI.bottomSheetState]}}),e})(),lI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[cO,kP,sS],kP]}),e})();class cI{constructor(e,t){this._overlayRef=t,this._afterDismissed=new C,this._afterOpened=new C,this.containerInstance=e,this.disableClose=e.bottomSheetConfig.disableClose,e._animationStateChanged.pipe(dv(e=>"done"===e.phaseName&&"visible"===e.toState),cb(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(dv(e=>"done"===e.phaseName&&"hidden"===e.toState),cb(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),t.dispose()}),t.detachments().pipe(cb(1)).subscribe(()=>{this._afterDismissed.next(this._result),this._afterDismissed.complete()}),q(t.backdropClick(),t.keydownEvents().pipe(dv(e=>27===e.keyCode))).subscribe(e=>{this.disableClose||"keydown"===e.type&&bE(e)||(e.preventDefault(),this.dismiss())})}dismiss(e){this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(dv(e=>"start"===e.phaseName),cb(1)).subscribe(e=>{this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100),this._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}afterDismissed(){return this._afterDismissed}afterOpened(){return this._afterOpened}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}}const uI=new Xn("mat-bottom-sheet-default-options");let dI=(()=>{class e{constructor(e,t,n,i){this._overlay=e,this._injector=t,this._parentBottomSheet=n,this._defaultOptions=i,this._bottomSheetRefAtThisLevel=null}get _openedBottomSheetRef(){const e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}open(e,t){const n=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new sI,t),i=this._createOverlay(n),r=this._attachContainer(i,n),s=new cI(r,i);if(e instanceof Vl)r.attachTemplatePortal(new eS(e,null,{$implicit:n.data,bottomSheetRef:s}));else{const t=new JC(e,void 0,this._createInjector(n,s)),i=r.attachComponentPortal(t);s.instance=i.instance}return s.afterDismissed().subscribe(()=>{this._openedBottomSheetRef==s&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>s.containerInstance.enter()),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}_attachContainer(e,t){const n=vo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:sI,useValue:t}]}),i=new JC(aI,t.viewContainerRef,n);return e.attach(i).instance}_createOverlay(e){const t=new VD({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}_createInjector(e,t){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:cI,useValue:t},{provide:rI,useValue:e.data}];return!e.direction||n&&n.get(fP,null)||i.push({provide:fP,useValue:{value:e.direction,change:cv()}}),vo.create({parent:n||this._injector,providers:i})}}return e.\u0275fac=function(t){return new(t||e)(fi(iO),fi(vo),fi(e,12),fi(uI,8))},e.\u0275prov=ge({factory:function(){return new e(fi(iO),fi(eo),fi(e,12),fi(uI,8))},token:e,providedIn:lI}),e})();const hI=["mat-button",""],pI=["*"],gI=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class fI{constructor(e){this._elementRef=e}}const mI=PP(EP(DP(fI)));let vI=(()=>{class e extends mI{constructor(e,t,n){super(e),this._focusMonitor=t,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of gI)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(uP),Vo(xf,8))},e.\u0275cmp=qe({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&Mc(HP,1),2&e){let e;Tc(e=Rc())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(Bo("disabled",t.disabled||null),va("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[yo],attrs:hI,ngContentSelectors:pI,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(sa(),Ho(0,"span",0),oa(1),Uo(),Wo(2,"span",1),Wo(3,"span",2)),2&e&&(is(2),va("mat-button-ripple-round",t.isRoundButton||t.isIconButton),zo("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[HP],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e})(),bI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[UP,kP],kP]}),e})(),yI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})(),wI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),_I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[UP,kP,jE,wI],kP,wI]}),e})();function xI(e,t){}class AI{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const CI={dialogContainer:ep("dialogContainer",[rp("void, exit",ip({opacity:0,transform:"scale(0.7)"})),rp("enter",ip({transform:"none"})),op("* => enter",tp("150ms cubic-bezier(0, 0, 0.2, 1)",ip({transform:"none",opacity:1}))),op("* => void, * => exit",tp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ip({opacity:0})))])};let SI=(()=>{class e extends nS{constructor(e,t,n,i,r,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=r,this._focusMonitor=s,this._animationStateChanged=new wc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(nP),Vo(Ml),Vo(Hu,8),Vo(AI),Vo(uP))},e.\u0275dir=Je({type:e,viewQuery:function(e,t){if(1&e&&Mc(rS,3),2&e){let e;Tc(e=Rc())&&(t._portalOutlet=e.first)}},features:[yo]}),e})(),kI=(()=>{class e extends SI{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return EI(t||e)},e.\u0275cmp=qe({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Jo("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Fa("id",t._id),Bo("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Na("@dialogContainer",t._state))},features:[yo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fo(0,xI,0,0,"ng-template",0)},directives:[rS],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[CI.dialogContainer]}}),e})();const EI=qn(kI);let PI=0;class DI{constructor(e,t,n="mat-dialog-"+PI++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new C,this._afterClosed=new C,this._beforeClosed=new C,this._state=0,t._id=n,t._animationStateChanged.pipe(dv(e=>"opened"===e.state),cb(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(dv(e=>"closed"===e.state),cb(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(dv(e=>27===e.keyCode&&!this.disableClose&&!bE(e))).subscribe(e=>{e.preventDefault(),OI(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():OI(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(dv(e=>"closing"===e.state),cb(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function OI(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const II=new Xn("MatDialogData"),TI=new Xn("mat-dialog-default-options"),MI=new Xn("mat-dialog-scroll-strategy"),BI={provide:MI,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.block()}};let RI=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new C,this._afterOpenedAtThisLevel=new C,this._ariaHiddenElements=new Map,this.afterAllClosed=rb(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hb(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new AI)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new VD({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=vo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:AI,useValue:t}]}),i=new JC(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof Vl)t.attachTemplatePortal(new eS(e,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,t),s=t.attachComponentPortal(new JC(e,i.viewContainerRef,n));r.componentInstance=s.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(fP,null)||r.push({provide:fP,useValue:{value:e.direction,change:cv()}}),vo.create({parent:i||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(vo),Vo(void 0),Vo(void 0),Vo(GD),Vo(void 0),Vo(ei),Vo(ei),Vo(Xn))},e.\u0275dir=Je({type:e}),e})(),LI=(()=>{class e extends RI{constructor(e,t,n,i,r,s,o){super(e,t,i,s,o,r,DI,kI,II)}}return e.\u0275fac=function(t){return new(t||e)(fi(iO),fi(vo),fi(id,8),fi(TI,8),fi(MI),fi(e,12),fi(GD))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),FI=0,NI=(()=>{class e{constructor(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+FI++}ngOnInit(){this._dialogRef||(this._dialogRef=function(e,t){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(e=>e.id===n.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(DI,8),Vo(al),Vo(LI))},e.\u0275dir=Je({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Fa("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),VI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),zI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})(),jI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[LI,BI],imports:[[cO,sS,kP],kP]}),e})(),HI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),UI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,HI,sS]]}),e})();const WI=["*"];function $I(e){return Error(`Unable to find icon with the name "${e}"`)}function GI(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function qI(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class YI{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let ZI=(()=>{class e{constructor(e,t,n,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,i){return this._addSvgIconConfig(e,t,new YI(n,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,i){const r=this._sanitizer.sanitize(rr.HTML,n);if(!r)throw qI(n);return this._addSvgIconConfig(e,t,new YI("",r,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new YI(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){const i=this._sanitizer.sanitize(rr.HTML,t);if(!i)throw qI(t);return this._addSvgIconSetConfig(e,new YI("",i,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(rr.RESOURCE_URL,e);if(!t)throw GI(e);const n=this._cachedIconsByUrl.get(t);return n?cv(KI(n)):this._loadSvgIconFromConfig(new YI(e,null)).pipe(Ib(e=>this._cachedIconsByUrl.set(t,e)),E(e=>KI(e)))}getNamedSvgIcon(e,t=""){const n=QI(t,e);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):yC($I(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?cv(KI(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(E(e=>KI(e)))}_getSvgFromIconSetConfigs(e,t){const n=this._extractIconWithNameFromAnySet(e,t);return n?cv(n):Sf(t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe(mb(t=>{const n=this._sanitizer.sanitize(rr.RESOURCE_URL,e.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${t.message}`)),cv(null)})))).pipe(E(()=>{const n=this._extractIconWithNameFromAnySet(e,t);if(!n)throw $I(e);return n}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){const t=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(t,e,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ib(t=>e.svgText=t),E(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?cv(null):this._fetchIcon(e).pipe(Ib(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){const i=e.querySelector(`[id="${t}"]`);if(!i)return null;const r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const s=this._svgElementFromString("<svg></svg>");return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(e){const t=this._svgElementFromString("<svg></svg>"),n=e.attributes;for(let i=0;i<n.length;i++){const{name:e,value:r}=n[i];"id"!==e&&t.setAttribute(e,r)}for(let i=0;i<e.childNodes.length;i++)e.childNodes[i].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[i].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){var t;const{url:n,options:i}=e,r=null!==(t=null==i?void 0:i.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const s=this._sanitizer.sanitize(rr.RESOURCE_URL,n);if(!s)throw GI(n);const o=this._inProgressUrlFetches.get(s);if(o)return o;const a=this._httpClient.get(s,{responseType:"text",withCredentials:r}).pipe(Bb(()=>this._inProgressUrlFetches.delete(s)),te());return this._inProgressUrlFetches.set(s,a),a}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(QI(e,t),n),this}_addSvgIconSetConfig(e,t){const n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){const r=this._resolvers[i](t,e);if(r)return(n=r).url&&n.options?new YI(r.url,null,r.options):new YI(r,null)}var n}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov,8),fi(Yh),fi(Hu,8),fi(dr))},e.\u0275prov=ge({factory:function(){return new e(fi(Ov,8),fi(Yh),fi(Hu,8),fi(dr))},token:e,providedIn:"root"}),e})();function KI(e){return e.cloneNode(!0)}function QI(e,t){return e+":"+t}class XI{constructor(e){this._elementRef=e}}const JI=PP(XI),eT=new Xn("mat-icon-location",{providedIn:"root",factory:function(){const e=mi(Hu),t=e?e.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),tT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nT=tT.map(e=>`[${e}]`).join(", "),iT=/^url\(['"]?#(.*?)['"]?\)$/;let rT=(()=>{class e extends JI{constructor(e,t,n,i,r){super(e),this._iconRegistry=t,this._location=i,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.EMPTY,n||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=CE(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let i=0;i<t.length;i++)t[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((t,n)=>{t.forEach(t=>{n.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(nT),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<t.length;i++)tT.forEach(e=>{const r=t[i],s=r.getAttribute(e),o=s?s.match(iT):null;if(o){let t=n.get(r);t||(t=[],n.set(r,t)),t.push({name:e,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(cb(1)).subscribe(e=>this._setSvgElement(e),e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${n}! ${e.message}`))})}}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ZI),Zn("aria-hidden"),Vo(eT),Vo(dr))},e.\u0275cmp=qe({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(Bo("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),va("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[yo],ngContentSelectors:WI,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),sT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})(),oT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[BE]]}),e})(),aT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[MP],imports:[[oT,jO,kP],oT,jO]}),e})(),lT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})(),cT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[BP,UP,kP,$P,hh],BP,kP,$P,lT]}),e})();const uT=["trigger"],dT=["panel"];function hT(e,t){if(1&e&&(Ho(0,"span",8),Oa(1),Uo()),2&e){const e=ia();is(1),Ia(e.placeholder)}}function pT(e,t){if(1&e&&(Ho(0,"span",12),Oa(1),Uo()),2&e){const e=ia(2);is(1),Ia(e.triggerValue)}}function gT(e,t){1&e&&oa(0,0,["*ngSwitchCase","true"])}function fT(e,t){1&e&&(Ho(0,"span",9),Fo(1,pT,2,1,"span",10),Fo(2,gT,1,0,"ng-content",11),Uo()),2&e&&(zo("ngSwitch",!!ia().customTrigger),is(2),zo("ngSwitchCase",!0))}function mT(e,t){if(1&e){const e=Yo();Ho(0,"div",13),Ho(1,"div",14,15),Xo("@transformPanel.done",function(t){return Lt(e),ia()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return Lt(e),ia()._handleKeydown(t)}),oa(3,1),Uo(),Uo()}if(2&e){const e=ia();zo("@transformPanelWrap",void 0),is(1),La("mat-select-panel ",e._getPanelTheme(),""),ma("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),zo("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Bo("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const vT=[[["mat-select-trigger"]],"*"],bT=["mat-select-trigger","*"],yT={transformPanelWrap:ep("transformPanelWrap",[op("* => void",lp("@transformPanel",[ap()],{optional:!0}))]),transformPanel:ep("transformPanel",[rp("void",ip({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),rp("showing",ip({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),rp("showing-multiple",ip({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),op("void => *",tp("120ms cubic-bezier(0, 0, 0.2, 1)")),op("* => void",tp("100ms 25ms linear",ip({opacity:0})))])};let wT=0;const _T=new Xn("mat-select-scroll-strategy"),xT=new Xn("MAT_SELECT_CONFIG"),AT={provide:_T,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class CT{constructor(e,t){this.source=e,this.value=t}}class ST{constructor(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const kT=DP(OP(EP(IP(ST)))),ET=new Xn("MatSelectTrigger");let PT=(()=>{class e extends kT{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h,p){var g,f,m;super(r,i,o,a,c),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=n,this._dir=s,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+wT++,this._triggerAriaLabelledBy=null,this._destroy=new C,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+wT++,this._panelDoneAnimatingStream=new C,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=rb(()=>{const e=this.options;return e?e.changes.pipe(hb(e),sb(()=>q(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(cb(1),sb(()=>this.optionSelectionChanges))}),this.openedChange=new wc,this._openedStream=this.openedChange.pipe(dv(e=>e),E(()=>{})),this._closedStream=this.openedChange.pipe(dv(e=>!e),E(()=>{})),this.selectionChange=new wc,this.valueChange=new wc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=CE(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=CE(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=CE(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=SE(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new CD(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(H_(),_D(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(_D(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(hb(null),_D(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!bE(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;r.onKeydown(e);const n=this.selected;n&&t!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||bE(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const n=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==n&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(cb(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{if(this._selectionModel.isSelected(t))return!1;try{return null!=t.value&&this._compareWith(t.value,e)}catch(n){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new KE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(_D(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(_D(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=q(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(_D(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),q(...this.options.map(e=>e._stateChanges)).pipe(_D(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return e.\u0275fac=function(t){return new(t||e)(Vo(kD),Vo(Ml),Vo(lu),Vo(MP),Vo(al),Vo(fP,8),Vo(Tm,8),Vo(Hm,8),Vo(VO,8),Vo(sm,10),Zn("tabindex"),Vo(_T),Vo(sP),Vo(xT,8))},e.\u0275dir=Je({type:e,viewQuery:function(e,t){if(1&e&&(Mc(uT,1),Mc(dT,1),Mc(aO,1)),2&e){let e;Tc(e=Rc())&&(t.trigger=e.first),Tc(e=Rc())&&(t.panel=e.first),Tc(e=Rc())&&(t.overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[yo,dt]}),e})(),DT=(()=>{class e extends PT{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(_D(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(cb(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(e){const t=nD(e,this.options,this.optionGroups),n=this._getItemHeight();var i,r,s;this.panel.nativeElement.scrollTop=(r=n,256,(i=(e+t)*n)<(s=this.panel.nativeElement.scrollTop)?i:i+r>s+256?Math.max(0,i-256+r):s)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new CT(this,e)}_calculateOverlayOffsetX(){const e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let e=this._selectionModel.selected[0]||this.options.first;r=e&&e.group?32:16}n||(r*=-1);const s=0-(e.left+r-(n?i:0)),o=e.right+r-t.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,s=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,i,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,n){const i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=nD(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(t){return OT(t||e)},e.\u0275cmp=qe({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,ET,1),Bc(n,tD,1),Bc(n,QP,1)),2&e){let e;Tc(e=Rc())&&(t.customTrigger=e.first),Tc(e=Rc())&&(t.options=e),Tc(e=Rc())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xo("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Bo("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),va("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[el([{provide:DO,useExisting:e},{provide:GP,useExisting:e}]),yo],ngContentSelectors:bT,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(sa(vT),Ho(0,"div",0,1),Xo("click",function(){return t.toggle()}),Ho(3,"div",2),Fo(4,hT,2,1,"span",3),Fo(5,fT,3,2,"span",4),Uo(),Ho(6,"div",5),Wo(7,"div",6),Uo(),Uo(),Fo(8,mT,4,14,"ng-template",7),Xo("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=No(1);Bo("aria-owns",t.panelOpen?t.id+"-panel":null),is(3),zo("ngSwitch",t.empty),Bo("id",t._valueId),is(1),zo("ngSwitchCase",!0),is(1),zo("ngSwitchCase",!1),is(3),zo("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[oO,Zd,Kd,aO,Qd,jd],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[yT.transformPanelWrap,yT.transformPanel]},changeDetection:0}),e})();const OT=qn(DT);let IT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[AT],imports:[[hh,cO,iD,kP],ED,jO,iD,kP]}),e})();const TT={tooltipState:ep("state",[rp("initial, void, hidden",ip({opacity:0,transform:"scale(0)"})),rp("visible",ip({transform:"scale(1)"})),op("* => visible",tp("200ms cubic-bezier(0, 0, 0.2, 1)",sp([ip({opacity:0,transform:"scale(0)",offset:0}),ip({opacity:.5,transform:"scale(0.99)",offset:.5}),ip({opacity:1,transform:"scale(1)",offset:1})]))),op("* => hidden",tp("100ms cubic-bezier(0, 0, 0.2, 1)",ip({opacity:0})))])},MT=RE({passive:!0}),BT=new Xn("mat-tooltip-scroll-strategy"),RT={provide:BT,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},LT=new Xn("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let FT=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new C,this._handleKeydown=e=>{this._isTooltipVisible()&&27===e.keyCode&&!bE(e)&&(e.preventDefault(),e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),r.runOutsideAngular(()=>{t.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=CE(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_D(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,MT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new JC(NT,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(_D(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return t.positionChanges.pipe(_D(this._destroyed)).subscribe(e=>{this._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(_D(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t||"below"==t?n={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={originX:"end",originY:"center"});const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t?n={overlayX:"center",overlayY:"bottom"}:"below"==t?n={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(cb(1),_D(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([e,t])=>{this._elementRef.nativeElement.addEventListener(e,t,MT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(al),Vo(SD),Vo(Gl),Vo(lu),Vo(ME),Vo(GE),Vo(uP),Vo(BT),Vo(fP,8),Vo(LT,8),Vo(Hu))},e.\u0275dir=Je({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),e})(),NT=(()=>{class e{constructor(e,t){this._changeDetectorRef=e,this._breakpointObserver=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new C,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(e){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},e)}hide(e){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(tI))},e.\u0275cmp=qe({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xo("click",function(){return t._handleBodyInteraction()},!1,fr)("auxclick",function(){return t._handleBodyInteraction()},!1,fr),2&e&&ma("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ho(0,"div",0),Xo("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),pc(1,"async"),Oa(2),Uo()),2&e){let e=null;va("mat-tooltip-handset",null==(e=gc(1,5,t._isHandset))?null:e.matches),zo("ngClass",t.tooltipClass)("@state",t._visibility),is(2),Ia(t.message)}},directives:[jd],pipes:[sh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[TT.tooltipState]},changeDetection:0}),e})(),VT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[RT],imports:[[pP,hh,cO,kP],kP,ED]}),e})();function zT(e,t){if(1&e&&(Ho(0,"mat-option",19),Oa(1),Uo()),2&e){const e=t.$implicit;zo("value",e),is(1),Ta(" ",e," ")}}function jT(e,t){if(1&e){const e=Yo();Ho(0,"mat-form-field",16),Ho(1,"mat-select",17),Xo("selectionChange",function(t){return Lt(e),ia(2)._changePageSize(t.value)}),Fo(2,zT,2,2,"mat-option",18),Uo(),Uo()}if(2&e){const e=ia(2);zo("appearance",e._formFieldAppearance)("color",e.color),is(1),zo("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),is(1),zo("ngForOf",e._displayedPageSizeOptions)}}function HT(e,t){if(1&e&&(Ho(0,"div",20),Oa(1),Uo()),2&e){const e=ia(2);is(1),Ia(e.pageSize)}}function UT(e,t){if(1&e&&(Ho(0,"div",12),Ho(1,"div",13),Oa(2),Uo(),Fo(3,jT,3,6,"mat-form-field",14),Fo(4,HT,2,1,"div",15),Uo()),2&e){const e=ia();is(2),Ta(" ",e._intl.itemsPerPageLabel," "),is(1),zo("ngIf",e._displayedPageSizeOptions.length>1),is(1),zo("ngIf",e._displayedPageSizeOptions.length<=1)}}function WT(e,t){if(1&e){const e=Yo();Ho(0,"button",21),Xo("click",function(){return Lt(e),ia().firstPage()}),dn(),Ho(1,"svg",7),Wo(2,"path",22),Uo(),Uo()}if(2&e){const e=ia();zo("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Bo("aria-label",e._intl.firstPageLabel)}}function $T(e,t){if(1&e){const e=Yo();dn(),hn(),Ho(0,"button",23),Xo("click",function(){return Lt(e),ia().lastPage()}),dn(),Ho(1,"svg",7),Wo(2,"path",24),Uo(),Uo()}if(2&e){const e=ia();zo("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Bo("aria-label",e._intl.lastPageLabel)}}let GT=(()=>{class e{constructor(){this.changes=new C,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,n)=>{if(0==n||0==t)return"0 of "+n;const i=e*t;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+t,n):i+t} of ${n}`}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();const qT={provide:GT,deps:[[new wi,new _i,GT]],useFactory:function(e){return e||new GT}},YT=new Xn("MAT_PAGINATOR_DEFAULT_OPTIONS");class ZT{}const KT=EP(TP(ZT));let QT=(()=>{class e extends KT{constructor(e,t,n){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new wc,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:e,pageSizeOptions:t,hidePageSize:i,showFirstLastButtons:r}=n;null!=e&&(this._pageSize=e),null!=t&&(this._pageSizeOptions=t),null!=i&&(this._hidePageSize=i),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(SE(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=SE(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(SE(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(e=>SE(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=CE(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=CE(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){const t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,t)=>e-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return e.\u0275fac=function(t){return new(t||e)(Vo(GT),Vo(Ml),Vo(void 0))},e.\u0275dir=Je({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[yo]}),e})(),XT=(()=>{class e extends QT{constructor(e,t,n){super(e,t,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return e.\u0275fac=function(t){return new(t||e)(Vo(GT),Vo(Ml),Vo(YT,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[yo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"div",1),Fo(2,UT,5,3,"div",2),Ho(3,"div",3),Ho(4,"div",4),Oa(5),Uo(),Fo(6,WT,3,5,"button",5),Ho(7,"button",6),Xo("click",function(){return t.previousPage()}),dn(),Ho(8,"svg",7),Wo(9,"path",8),Uo(),Uo(),hn(),Ho(10,"button",9),Xo("click",function(){return t.nextPage()}),dn(),Ho(11,"svg",7),Wo(12,"path",10),Uo(),Uo(),Fo(13,$T,3,5,"button",11),Uo(),Uo(),Uo()),2&e&&(is(2),zo("ngIf",!t.hidePageSize),is(3),Ta(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),is(1),zo("ngIf",t.showFirstLastButtons),is(1),zo("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Bo("aria-label",t._intl.previousPageLabel),is(3),zo("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Bo("aria-label",t._intl.nextPageLabel),is(3),zo("ngIf",t.showFirstLastButtons))},directives:[$d,vI,FT,zO,DT,Ud,tD],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),e})(),JT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[qT],imports:[[hh,bI,IT,VT,kP]]}),e})(),eM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP,hh],kP]}),e})(),tM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,BE,ED],ED,kP]}),e})(),nM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),iM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[nM,UP,kP,jE],nM,kP]}),e})(),rM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP],kP]}),e})(),sM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[cO,sS,hh,bI,kP],kP]}),e})();const oM=["mat-sort-header",""];function aM(e,t){if(1&e){const e=Yo();Ho(0,"div",3),Xo("@arrowPosition.start",function(){return Lt(e),ia()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Lt(e),ia()._disableViewStateAnimation=!1}),Wo(1,"div",4),Ho(2,"div",5),Wo(3,"div",6),Wo(4,"div",7),Wo(5,"div",8),Uo(),Uo()}if(2&e){const e=ia();zo("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),is(2),zo("@indicator",e._getArrowDirectionState()),is(1),zo("@leftPointer",e._getArrowDirectionState()),is(1),zo("@rightPointer",e._getArrowDirectionState())}}const lM=["*"],cM=new Xn("MAT_SORT_DEFAULT_OPTIONS");class uM{}const dM=TP(EP(uM));let hM=(()=>{class e extends dM{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new C,this.start="asc",this._direction="",this.sortChange=new wc}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=CE(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,n,i;if(!e)return"";const r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear);let s=function(e,t){let n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Vo(cM,8))},e.\u0275dir=Je({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[yo,dt]}),e})();const pM=xP.ENTERING+" "+_P.STANDARD_CURVE,gM={indicator:ep("indicator",[rp("active-asc, asc",ip({transform:"translateY(0px)"})),rp("active-desc, desc",ip({transform:"translateY(10px)"})),op("active-asc <=> active-desc",tp(pM))]),leftPointer:ep("leftPointer",[rp("active-asc, asc",ip({transform:"rotate(-45deg)"})),rp("active-desc, desc",ip({transform:"rotate(45deg)"})),op("active-asc <=> active-desc",tp(pM))]),rightPointer:ep("rightPointer",[rp("active-asc, asc",ip({transform:"rotate(45deg)"})),rp("active-desc, desc",ip({transform:"rotate(-45deg)"})),op("active-asc <=> active-desc",tp(pM))]),arrowOpacity:ep("arrowOpacity",[rp("desc-to-active, asc-to-active, active",ip({opacity:1})),rp("desc-to-hint, asc-to-hint, hint",ip({opacity:.54})),rp("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ip({opacity:0})),op("* => asc, * => desc, * => active, * => hint, * => void",tp("0ms")),op("* <=> *",tp(pM))]),arrowPosition:ep("arrowPosition",[op("* => desc-to-hint, * => desc-to-active",tp(pM,sp([ip({transform:"translateY(-25%)"}),ip({transform:"translateY(0)"})]))),op("* => hint-to-desc, * => active-to-desc",tp(pM,sp([ip({transform:"translateY(0)"}),ip({transform:"translateY(25%)"})]))),op("* => asc-to-hint, * => asc-to-active",tp(pM,sp([ip({transform:"translateY(25%)"}),ip({transform:"translateY(0)"})]))),op("* => hint-to-asc, * => active-to-asc",tp(pM,sp([ip({transform:"translateY(0)"}),ip({transform:"translateY(-25%)"})]))),rp("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ip({transform:"translateY(0)"})),rp("hint-to-desc, active-to-desc, desc",ip({transform:"translateY(-25%)"})),rp("hint-to-asc, active-to-asc, asc",ip({transform:"translateY(25%)"}))]),allowChildren:ep("allowChildren",[op("* <=> *",[lp("@*",ap(),{optional:!0})])])};let fM=(()=>{class e{constructor(){this.changes=new C,this.sortButtonLabel=e=>"Change sorting for "+e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();const mM={provide:fM,deps:[[new wi,new _i,fM]],useFactory:function(e){return e||new fM}};class vM{}const bM=EP(vM);let yM=(()=>{class e extends bM{constructor(e,t,n,i,r,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=n,this._columnDef=i,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=CE(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=q(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(fM),Vo(Ml),Vo(hM,8),Vo("MAT_SORT_HEADER_COLUMN_DEF",8),Vo(uP),Vo(al))},e.\u0275cmp=qe({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xo("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Bo("aria-sort",t._getAriaSortAttribute()),va("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[yo],attrs:oM,ngContentSelectors:lM,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(sa(),Ho(0,"div",0),Ho(1,"div",1),oa(2),Uo(),Fo(3,aM,6,6,"div",2),Uo()),2&e&&(va("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Bo("tabindex",t._isDisabled()?null:0),is(3),zo("ngIf",t._renderArrow()))},directives:[$d],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[gM.indicator,gM.leftPointer,gM.rightPointer,gM.arrowOpacity,gM.arrowPosition,gM.allowChildren]},changeDetection:0}),e})(),wM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[mM],imports:[[hh,kP]]}),e})(),_M=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[PD]]}),e})(),xM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[_M,kP],kP]}),e})(),AM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,sS,UP,jE,pP],kP]}),e})();const CM=["mat-menu-item",""],SM=["*"];function kM(e,t){if(1&e){const e=Yo();Ho(0,"div",0),Xo("keydown",function(t){return Lt(e),ia()._handleKeydown(t)})("click",function(){return Lt(e),ia().closed.emit("click")})("@transformMenu.start",function(t){return Lt(e),ia()._onAnimationStart(t)})("@transformMenu.done",function(t){return Lt(e),ia()._onAnimationDone(t)}),Ho(1,"div",1),oa(2),Uo(),Uo()}if(2&e){const e=ia();zo("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Bo("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const EM={transformMenu:ep("transformMenu",[rp("void",ip({opacity:0,transform:"scale(0.8)"})),op("void => enter",tp("120ms cubic-bezier(0, 0, 0.2, 1)",ip({opacity:1,transform:"scale(1)"}))),op("* => void",tp("100ms 25ms linear",ip({opacity:0})))]),fadeInItems:ep("fadeInItems",[rp("showing",ip({opacity:1})),op("void => *",[ip({opacity:0}),tp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},PM=new Xn("MatMenuContent"),DM=new Xn("MAT_MENU_PANEL");class OM{}const IM=DP(EP(OM));let TM=(()=>{class e extends IM{constructor(e,t,n,i){super(),this._elementRef=e,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new C,this._focused=new C,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,t;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++){const t=i[r];null===(e=t.parentNode)||void 0===e||e.removeChild(t)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Hu),Vo(uP),Vo(DM,8))},e.\u0275cmp=qe({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&Xo("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(Bo("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),va("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[yo],attrs:CM,ngContentSelectors:SM,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(sa(),oa(0),Wo(1,"div",0)),2&e&&(is(1),zo("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[HP],encapsulation:2,changeDetection:0}),e})();const MM=new Xn("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let BM=0,RM=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._ngZone=t,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xc,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new C,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new wc,this.close=this.closed,this.panelId="mat-menu-panel-"+BM++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=CE(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=CE(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new QE(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hb(this._directDescendantItems),sb(e=>q(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(hb(this._directDescendantItems),sb(e=>q(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,n=this._keyManager;switch(t){case 27:bE(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(cb(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(e=>e.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}setPositionClasses(e=this.xPosition,t=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(hb(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(lu),Vo(MM))},e.\u0275dir=Je({type:e,contentQueries:function(e,t,n){if(1&e&&(Bc(n,PM,1),Bc(n,TM,1),Bc(n,TM,0)),2&e){let e;Tc(e=Rc())&&(t.lazyContent=e.first),Tc(e=Rc())&&(t._allItems=e),Tc(e=Rc())&&(t.items=e)}},viewQuery:function(e,t){if(1&e&&Mc(Vl,1),2&e){let e;Tc(e=Rc())&&(t.templateRef=e.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),LM=(()=>{class e extends RM{constructor(e,t,n){super(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(lu),Vo(MM))},e.\u0275cmp=qe({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Bo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[el([{provide:DM,useExisting:e}]),yo],ngContentSelectors:SM,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(sa(),Fo(0,kM,3,6,"ng-template"))},directives:[jd],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[EM.transformMenu,EM.fadeInItems]},changeDetection:0}),e})();const FM=new Xn("mat-menu-scroll-strategy"),NM={provide:FM,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},VM=RE({passive:!0});let zM=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this._overlay=e,this._element=t,this._viewContainerRef=n,this._menuItemInstance=s,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=e=>{aP(e)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new wc,this.onMenuOpen=this.menuOpened,this.menuClosed=new wc,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof RM?r:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,VM),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(e=>{this._destroyMenu(e),"click"!==e&&"tab"!==e||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,VM),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof RM&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,t instanceof RM?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(dv(e=>"void"===e.toState),cb(1),_D(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new VD({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[i,r],[a,l]=[t,n],c=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",n=a="end"===t?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:s,overlayX:l,overlayY:i,offsetY:c},{originX:t,originY:o,overlayX:a,overlayY:r,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:r,offsetY:-c}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return q(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:cv(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(dv(e=>e!==this._menuItemInstance),dv(()=>this._menuOpen)):cv(),t)}_handleMousedown(e){oP(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(dv(e=>e===this._menuItemInstance&&!e.disabled),HO(0,gD)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof RM&&this.menu._isAnimating?this.menu._animationDone.pipe(cb(1),HO(0,gD),_D(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new eS(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(al),Vo(Gl),Vo(FM),Vo(DM,8),Vo(TM,10),Vo(fP,8),Vo(uP))},e.\u0275dir=Je({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xo("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Bo("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e})(),jM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[NM],imports:[kP]}),e})(),HM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[NM],imports:[[hh,kP,UP,cO,jM],ED,kP,jM]}),e})();function UM(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function WM(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function $M(e,t){const n=t?"":"none";WM(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function GM(e,t){const n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function qM(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function YM(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function ZM(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function KM(e,t,n){const{top:i,bottom:r,left:s,right:o}=e;return n>=i&&n<=r&&t>=s&&t<=o}function QM(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function XM(e,t,n,i){const{top:r,right:s,bottom:o,left:a,width:l,height:c}=e,u=l*t,d=c*t;return i>r-d&&i<o+d&&n>a-u&&n<s+u}class JM{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ZM(e)})})}handleScroll(e){const t=e.target,n=this.positions.get(t);if(!n)return null;const i=t===this._document?t.documentElement:t,r=n.scrollPosition;let s,o;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();s=e.top,o=e.left}else s=t.scrollTop,o=t.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((e,n)=>{e.clientRect&&t!==n&&i.contains(n)&&QM(e.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}}function eB(e){const t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?rB(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||iB(e,t),tB("canvas",e,t,rB),tB("input, textarea, select",e,t,iB),t}function tB(e,t,n,i){const r=t.querySelectorAll(e);if(r.length){const t=n.querySelectorAll(e);for(let e=0;e<r.length;e++)i(r[e],t[e])}}let nB=0;function iB(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${nB++}`)}function rB(e,t){const n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(NK){}}const sB=RE({passive:!0}),oB=RE({passive:!1});class aB{constructor(e,t,n,i,r,s){this._config=t,this._document=n,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new C,this._pointerMoveSubscription=h.EMPTY,this._pointerUpSubscription=h.EMPTY,this._scrollSubscription=h.EMPTY,this._resizeSubscription=h.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new C,this.started=new C,this.released=new C,this.ended=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.moved=this._moveEvents,this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const n=e.target;return!!n&&(n===t||t.contains(n))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),n=this._dropContainer;if(!t)return void this._endDragSequence(e);n&&(n.isDragging()||n.isReceiving())||(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),e.preventDefault();const n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{const e=this._activeTransform;e.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new JM(n,r),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=CE(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>$M(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>PE(e)),this._handles.forEach(e=>$M(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=PE(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,oB),t.addEventListener("touchstart",this._pointerDown,sB)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?PE(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&uB(this._rootElement),uB(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),$M(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),$M(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&uB(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&uB(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(e){dB(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,n=e.parentNode,i=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();n.insertBefore(s,e),GM(e,!1),this._document.body.appendChild(n.replaceChild(r,e)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,o).appendChild(i),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const n=this.isDragging(),i=dB(t),r=!i&&0!==t.button,s=this._rootElement,o=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),n||r||o)return;this._handles.length&&(this._rootElementTapHighlight=s.style.webkitTapHighlightColor||"",s.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{this._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=ZM(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){GM(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const t=this._dropContainer,n=t.getItemIndex(this),i=this._getPointerPositionOnPage(e),r=this._getDragDistance(this._getPointerPositionOnPage(e)),s=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:r}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r}),t.drop(this,n,this._initialIndex,this._initialContainer,s,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:i}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._preview.style.transform=lB(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y)}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,n=e?e.template:null;let i;if(n&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,r=e.viewContainer.createEmbeddedView(n,e.context);r.detectChanges(),i=hB(r,this._document),this._previewRef=r,e.matchSize?pB(i,t):i.style.transform=lB(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;i=eB(e),pB(i,e.getBoundingClientRect())}return WM(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),$M(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>i.classList.add(e)):i.classList.add(t)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=lB(e.left,e.top);const t=function(e){const t=getComputedStyle(e),n=YM(t,"transition-property"),i=n.find(e=>"transform"===e||"all"===e);if(!i)return 0;const r=n.indexOf(i),s=YM(t,"transition-duration"),o=YM(t,"transition-delay");return qM(s[r])+qM(o[r])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const n=t=>{(!t||t.target===this._preview&&"transform"===t.propertyName)&&(this._preview.removeEventListener("transitionend",n),e(),clearTimeout(i))},i=setTimeout(n,1.5*t);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=hB(this._placeholderRef,this._document)):n=eB(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t){const n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,s=dB(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-n.left+(s.pageX-r.left-o.left),y:r.top-n.top+(s.pageY-r.top-o.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),n=dB(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=i,t.y=r,t.matrixTransform(e.inverse())}}return{x:i,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,r=this._boundaryRect,s=this._previewRect,o=r.top+t,a=r.bottom-(s.height-t);n=cB(n,r.left+e,r.right-(s.width-e)),i=cB(i,o,a)}return{x:n,y:i}}_updatePointerDirectionDelta(e){const{x:t,y:n}=e,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),o=Math.abs(n-r.y);return s>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,$M(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,oB),e.removeEventListener("touchstart",this._pointerDown,sB)}_applyRootElementTransform(e,t){const n=lB(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const r=n.left-i.left,s=i.right-n.right,o=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(r>0&&(e+=r),s>0&&(e-=s)):e=0,n.height>i.height?(o>0&&(t+=o),a>0&&(t-=a)):t=0,e===this._passiveTransform.x&&t===this._passiveTransform.y||this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:dB(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&QM(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=FE(this._rootElement)),this._cachedShadowRoot}}function lB(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function cB(e,t,n){return Math.max(t,Math.min(n,e))}function uB(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function dB(e){return"t"===e.type[0]}function hB(e,t){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];const i=t.createElement("div");return n.forEach(e=>i.appendChild(e)),i}function pB(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=lB(t.left,t.top)}function gB(e,t){return Math.max(0,Math.min(t,e))}class fB{constructor(e,t,n,i,r){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.sorted=new C,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new C,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=yE){return(!vD(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=yE),new y(n=>(n.add(t.schedule(UM,e,{subscriber:n,counter:0,period:e})),n))}(0,oD).pipe(_D(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?vB(e,-t):2===this._verticalScrollDirection&&vB(e,t),1===this._horizontalScrollDirection?bB(e,-t):2===this._horizontalScrollDirection&&bB(e,t)})},this.element=PE(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new JM(n,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,n,i){let r;this._draggingStarted(),null==i?(r=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(e,t,n))):r=i;const s=this._activeDraggables,o=s.indexOf(e),a=e.getPlaceholderElement();let l=s[r];if(l===e&&(l=s[r+1]),o>-1&&s.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(a,t),s.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){const t=s[0].getRootElement();t.parentNode.insertBefore(a,t),s.unshift(e)}else PE(this.element).appendChild(a),s.push(e);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,i,r,s){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:s})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=PE(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?mB("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,i){if(this.sortingDisabled||!this._clientRect||!XM(this._clientRect,.05,t,n))return;const r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,n,i);if(-1===s&&r.length>0)return;const o="horizontal"===this._orientation,a=mB(r,t=>t.drag===e),l=r[s],c=l.clientRect,u=a>s?1:-1,d=this._getItemOffsetPx(r[a].clientRect,c,u),h=this._getSiblingOffsetPx(a,r,u),p=r.slice();!function(e,t,n){const i=gB(t,e.length-1),r=gB(n,e.length-1);if(i===r)return;const s=e[i],o=r<i?-1:1;for(let a=i;a!==r;a+=o)e[a]=e[a+o];e[r]=s}(r,a,s),this.sorted.next({previousIndex:a,currentIndex:s,container:this,item:e}),r.forEach((t,n)=>{if(p[n]===t)return;const i=t.drag===e,r=i?d:h,s=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(s.style.transform=`translate3d(${Math.round(t.offset)}px, 0, 0)`,QM(t.clientRect,0,r)):(s.style.transform=`translate3d(0, ${Math.round(t.offset)}px, 0)`,QM(t.clientRect,r,0))}),this._previousSwap.overlaps=KM(c,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,i=0,r=0;if(this._parentPositions.positions.forEach((s,o)=>{o!==this._document&&s.clientRect&&!n&&XM(s.clientRect,.05,e,t)&&([i,r]=function(e,t,n,i){const r=yB(t,i),s=wB(t,n);let o=0,a=0;if(r){const t=e.scrollTop;1===r?t>0&&(o=1):e.scrollHeight-t>e.clientHeight&&(o=2)}if(s){const t=e.scrollLeft;1===s?t>0&&(a=1):e.scrollWidth-t>e.clientWidth&&(a=2)}return[o,a]}(o,s.clientRect,e,t),(i||r)&&(n=o))}),!i&&!r){const{width:s,height:o}=this._viewportRuler.getViewportSize(),a={width:s,height:o,top:0,right:s,bottom:o,left:0};i=yB(a,t),r=wB(a,e),n=window}!n||i===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=r,this._scrollNode=n,(i||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=PE(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=PE(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,clientRect:ZM(t)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const e=PE(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{const t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,n){const i="horizontal"===this._orientation,r=t[e].clientRect,s=t[e+-1*n];let o=r[i?"width":"height"]*n;if(s){const e=i?"left":"top",t=i?"right":"bottom";-1===n?o-=s.clientRect[e]-r[t]:o+=r[e]-s.clientRect[t]}return o}_getItemOffsetPx(e,t,n){const i="horizontal"===this._orientation;let r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}{const r=n[0].clientRect;return i?e<=r.left:t<=r.top}}_getItemIndexFromPointerPosition(e,t,n,i){const r="horizontal"===this._orientation,s=mB(this._itemPositions,({drag:s,clientRect:o},a,l)=>{if(s===e)return l.length<2;if(i){const e=r?i.x:i.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return r?t>=Math.floor(o.left)&&t<Math.floor(o.right):n>=Math.floor(o.top)&&n<Math.floor(o.bottom)});return-1!==s&&this.sortPredicate(s,e,this)?s:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&KM(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(i=>i._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._clientRect||!KM(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;const i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;const r=PE(this.element);return i===r||r.contains(i)}_startReceiving(e,t){const n=this._activeSiblings;!n.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{QM(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=FE(PE(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function mB(e,t){for(let n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function vB(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function bB(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function yB(e,t){const{top:n,bottom:i,height:r}=e,s=.05*r;return t>=n-s&&t<=n+s?1:t>=i-s&&t<=i+s?2:0}function wB(e,t){const{left:n,right:i,width:r}=e,s=.05*r;return t>=n-s&&t<=n+s?1:t>=i-s&&t<=i+s?2:0}const _B=RE({passive:!1,capture:!0});let xB=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new C,this.pointerUp=new C,this.scroll=new C,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_B)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_B)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_B}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:_B}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(lu),fi(Hu))},token:e,providedIn:"root"}),e})();const AB={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let CB=(()=>{class e{constructor(e,t,n,i){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(e,t=AB){return new aB(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new fB(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(lu),fi(kD),fi(xB))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(lu),fi(kD),fi(xB))},token:e,providedIn:"root"}),e})();const SB=new Xn("CDK_DRAG_PARENT"),kB=new Xn("CDK_DRAG_CONFIG"),EB=new Xn("CdkDropList"),PB=new Xn("CdkDragHandle"),DB=new Xn("CdkDragPlaceholder"),OB=new Xn("CdkDragPreview");let IB=(()=>{class e{constructor(t,n,i,r,s,o,a,l,c,u,d){this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=s,this._dir=a,this._changeDetectorRef=c,this._selfHandle=u,this._parentDrag=d,this._destroyed=new C,this.started=new wc,this.released=new wc,this.ended=new wc,this.entered=new wc,this.exited=new wc,this.dropped=new wc,this.moved=new y(e=>{const t=this._dragRef.moved.pipe(E(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5,zIndex:null==o?void 0:o.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),o&&this._assignDefaults(o),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=CE(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(cb(1),_D(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(hb(this._handles),Ib(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),sb(e=>q(...e.map(e=>e._stateChanges.pipe(hb(e))))),_D(this._destroyed)).subscribe(e=>{const t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(e){const t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?TB(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?TB(this.element.nativeElement,e):PE(e):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:SE(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(r),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(cb(1)).subscribe(()=>{var n,i;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(null===(n=r.classList)||void 0===n?void 0:n.contains("cdk-drag")){t.withParent((null===(i=e._dragInstances.find(e=>e.element.nativeElement===r))||void 0===i?void 0:i._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:n,constrainPosition:i,previewClass:r,boundaryElement:s,draggingDisabled:o,rootElementSelector:a}=e;this.disabled=null!=o&&o,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),s&&(this.boundaryElement=s),a&&(this.rootElementSelector=a)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(EB,12),Vo(Hu),Vo(lu),Vo(Gl),Vo(kB,8),Vo(fP,8),Vo(CB),Vo(Ml),Vo(PB,10),Vo(SB,12))},e.\u0275dir=Je({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,OB,1),Bc(n,DB,1),Bc(n,PB,1)),2&e){let e;Tc(e=Rc())&&(t._previewTemplate=e.first),Tc(e=Rc())&&(t._placeholderTemplate=e.first),Tc(e=Rc())&&(t._handles=e)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&va("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[el([{provide:SB,useExisting:e}]),dt]}),e._dragInstances=[],e})();function TB(e,t){let n=e.parentElement;for(;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}let MB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[CB],imports:[ED]}),e})();const BB=(e,t,n)=>{if(0===n||0===t)return"";const i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),`${e+1} / ${Math.ceil(n/t)}`};function RB(){const e=new GT;return e.itemsPerPageLabel="Afficher:",e.nextPageLabel="Page suivante",e.previousPageLabel="Page pr\xe9c\xe9dente",e.getRangeLabel=BB,e}let LB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[{provide:GT,useValue:RB()}],imports:[[tM,cT,jI,lI,UP,MB,sM,bI,sT,eM,yI,aT,UI,HM,AM,rM,IT,iM,YO,xM,JT,wM,qO,_I],tM,cT,jI,lI,UP,MB,sM,bI,sT,eM,yI,aT,UI,HM,AM,rM,IT,iM,YO,xM,JT,wM,qO,_I]}),e})(),FB=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(II),Vo(DI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(Ho(0,"div"),Ho(1,"h1",0),Oa(2),pc(3,"translate"),Uo(),Wo(4,"div",1),pc(5,"translate"),Ho(6,"div",2),Ho(7,"button",3),Xo("click",function(){return t.dialogRef.close()}),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo()),2&e&&(La("modalContent ",t.data.mode,""),is(2),Ia(gc(3,6,t.data.title)),is(2),zo("innerHTML",gc(5,8,t.data.msg),sr),is(4),Ia(gc(9,10,"lang.ok")))},directives:[NI,VI,zI,vI],pipes:[YC],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})(),NB=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this.translate=e,this.http=t,this.router=n,this.signaturesService=i,this.cookieService=r,this.authService=s,this.localStorage=o,this.dialog=a,this.menu=l}canActivate(e,t){if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):this.http.get("../rest/authenticationInformations").pipe(E(e=>(this.authService.authMode=e.connection,this.authService.changeKey=e.changeKey,this.authService.coreUrl=e.coreUrl,this.authService.authUri=e.authUri,this.localStorage.setAppSession(e.instanceId),!0)));if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");let e=this.authService.getToken();if(null===e||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(E(n=>(this.authService.authMode=n.connection,this.authService.changeKey=n.changeKey,this.authService.coreUrl=n.coreUrl,this.authService.authUri=n.authUri,this.localStorage.setAppSession(n.instanceId),e=this.authService.getToken(),null!==e?(this.authService.user=JSON.parse(atob(e.split(".")[1])).user,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData(),this.authService.changeKey&&this.dialog.open(FB,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(this.authService.setCachedUrl(t.url.replace(/^\//g,"")),this.authService.logout(),!1))));if(void 0===this.authService.user.id){const t=JSON.parse(atob(e.split(".")[1]));this.authService.user=t.user,this.authService.authMode=t.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}setData(){0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(e=>{this.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],this.authService.signatureRoles=this.authService.signatureRoles.concat(e.map(e=>Object.assign(Object.assign({},e),{type:"sign"})))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(e=>{this.signaturesService.signaturesList=e.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture})}}return e.\u0275fac=function(t){return new(t||e)(fi(qC),fi(Ov),fi(a_),fi(oS),fi(oE),fi(lS),fi(aS),fi(LI),fi(eC))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function VB(e,t){if(1&e&&(Ho(0,"ion-col"),Ho(1,"ion-button",7),Ho(2,"div",8),Wo(3,"ion-icon",9),Ho(4,"ion-label",10),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-note",11),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Uo()),2&e){const e=t.$implicit;is(1),zo("routerLink",e.route),is(2),zo("name",e.icon),is(2),Ia(gc(6,4,"lang."+e.id)),is(3),Ta(" ",gc(9,6,"lang."+e.id+"Desc"),"")}}const zB=function(e){return[e]};let jB=(()=>{class e{constructor(e,t,n){this.signaturesService=e,this.authService=t,this.menu=n}ngOnInit(){this.menu.enable(!1,"right-menu")}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(lS),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content",null,4),Ho(9,"ion-grid"),Ho(10,"ion-row",5),Fo(11,VB,10,8,"ion-col",6),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,4,"lang.administration")),is(5),zo("ngClass",lc(6,zB,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),is(1),zo("ngForOf",t.authService.user.administrativePrivileges))},directives:[zx,wA,Sx,eA,bA,Mx,Vx,lA,jd,Ud,Tx,Cx,WA,l_,jx,Kx,nA],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),e})();function HB(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function UB(e,t){if(1&e&&($o(0),Fo(1,HB,3,4,"div",14),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function WB(e,t){if(1&e){const e=Yo();Ho(0,"div",16),Ho(1,"ion-searchbar",17),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(2,"translate"),Uo(),Uo()}2&e&&(is(1),zo("placeholder",gc(2,1,"lang.filter")))}function $B(e,t){if(1&e&&(Ho(0,"div",16),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function GB(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",7),Ho(1,"ion-label",18),Fo(2,$B,2,1,"div",19),Uo(),Ho(3,"ion-button",20),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.delete(i)}),pc(4,"translate"),Wo(5,"ion-icon",21),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia();is(1),la("routerLink","/administration/users/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,4,"lang.delete")),zo("disabled",e.id===n.authService.user.id)}}let qB=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=r,this.notificationService=s,this.authService=o,this.alertController=a,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/users?mode=all").pipe(E(e=>e.users),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.userList=e,this.sortedData=this.userList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/users/"+e.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:t=>{const n=this.userList.findIndex(t=>t.id===e.id);this.userList.splice(n,1),this.sortedData=this.userList.slice(),this.notificationService.success("lang.userDeleted")},error:e=>{this.notificationService.handleErrors(e)}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(oS),Vo(QC),Vo(lS),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),pc(8,"translate"),Uo(),Uo(),Ho(9,"ion-toolbar",1),Ho(10,"ion-buttons",2),Ho(11,"ion-button",4),Oa(12),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-title",5),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Ho(17,"ion-content",null,6),Ho(19,"ion-list"),Ho(20,"ion-item",7),Ho(21,"ion-label",8),Xo("matSortChange",function(e){return t.sortData(e)}),Fo(22,UB,2,1,"ng-container",9),Fo(23,WB,3,3,"div",10),Uo(),Ho(24,"ion-button",11),Wo(25,"ion-icon"),Uo(),Uo(),Ho(26,"ion-virtual-scroll",12),Fo(27,GB,6,6,"ion-item",13),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ma("",gc(7,10,"lang.administration")," ",gc(8,12,"lang.manage_usersAlt"),""),is(6),Ta(" ",gc(13,14,"lang.userCreation")," "),is(3),Ma("",t.userList.length," ",gc(16,16,"lang.manage_usersAlt"),""),is(6),zo("matSortActive",t.displayedColumns[1]),is(1),zo("ngForOf",t.displayedColumns),is(1),zo("ngIf",t.displayedColumns.indexOf("actions")>-1),is(3),zo("items",t.sortedData))},directives:[zx,wA,Sx,eA,xx,UA,bA,Cx,WA,l_,Mx,Qx,Gx,Kx,hM,Ud,$d,jx,YA,qA,yM,cA,lx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function YB(e,t){1&e&&(Wo(0,"div",5),pc(1,"translate")),2&e&&zo("innerHTML",gc(1,1,ia().data.msg),sr)}let ZB=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(II),Vo(DI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(Ho(0,"div"),Ho(1,"h1",0),Oa(2),pc(3,"translate"),Uo(),Fo(4,YB,2,3,"div",1),Ho(5,"div",2),Ho(6,"button",3),Xo("click",function(){return t.dialogRef.close("yes")}),Oa(7),pc(8,"translate"),Uo(),Ho(9,"button",4),Xo("click",function(){return t.dialogRef.close("no")}),Oa(10),pc(11,"translate"),Uo(),Uo(),Uo()),2&e&&(La("modalContent ",t.data.mode,""),is(2),Ia(gc(3,7,t.data.title)),is(2),zo("ngIf",null!==t.data.msg),is(3),Ia(gc(8,9,"lang.yes")),is(3),Ia(gc(11,11,"lang.no")))},directives:[NI,$d,zI,vI,VI],pipes:[YC],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})();function KB(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Ho(4,"ion-checkbox",27),Xo("ionChange",function(t){Lt(e);const n=ia().$implicit;return ia(2).toggleSignMode(n,t.detail.checked)}),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia(2);is(1),ma("color",e.color),is(1),Ia(gc(3,5,"lang."+e.id)),is(2),zo("checked",t.user.signatureModes.indexOf(e.id)>-1)("disabled","stamp"===e.id)}}function QB(e,t){if(1&e&&($o(0),Fo(1,KB,5,7,"ion-item",11),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","visa"!==e.id)}}function XB(e,t){if(1&e&&(Ho(0,"ion-note",33),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(3);is(1),Ta(" ",gc(2,1,e.handlePassword.errorMsg),"")}}function JB(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",28),Ho(1,"ion-button",29),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPassword=!t.hideNewPassword}),Wo(2,"ion-icon",30),Uo(),Ho(3,"ion-label",14),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-input",31),Xo("ngModelChange",function(t){return Lt(e),ia(2).passwordRest.newPassword=t})("ionChange",function(){Lt(e);const t=ia(2);return t.checkPasswordValidity(t.passwordRest.newPassword)}),Uo(),Fo(7,XB,3,3,"ion-note",32),Uo()}if(2&e){const e=ia(2);is(2),zo("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),is(2),Ia(gc(5,5,"lang.newPassword")),is(2),zo("type",e.hideNewPassword?"password":"text")("ngModel",e.passwordRest.newPassword),is(1),zo("ngIf",e.handlePassword.error&&e.passwordRest.newPassword.length>0)}}function eR(e,t){1&e&&(Ho(0,"ion-note",33),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.passwordNotMatch"),""))}function tR(e,t){1&e&&(Ho(0,"ion-note",36),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.samePassword"),""))}function nR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",28),Ho(1,"ion-button",29),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Wo(2,"ion-icon",30),Uo(),Ho(3,"ion-label",14),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-input",34),Xo("ngModelChange",function(t){return Lt(e),ia(2).passwordRest.passwordConfirmation=t}),Uo(),Fo(7,eR,3,3,"ion-note",32),Fo(8,tR,3,3,"ion-note",35),Uo()}if(2&e){const e=ia(2);is(2),zo("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),is(2),Ia(gc(5,6,"lang.passwordConfirmation")),is(2),zo("type",e.hideNewPasswordConfirm?"password":"text")("ngModel",e.passwordRest.passwordConfirmation),is(1),zo("ngIf",e.passwordRest.passwordConfirmation!==e.passwordRest.newPassword&&e.passwordRest.passwordConfirmation.length>0),is(1),zo("ngIf",e.passwordRest.passwordConfirmation===e.passwordRest.newPassword&&e.passwordRest.newPassword.length>0&&e.passwordRest.passwordConfirmation.length>0&&!e.handlePassword.error)}}function iR(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"form",12,13),Xo("ngSubmit",function(){return Lt(e),ia().onSubmit()}),Ho(3,"ion-content"),Ho(4,"ion-item"),Ho(5,"ion-label",14),Oa(6),pc(7,"translate"),Uo(),Ho(8,"ion-input",15),Xo("ngModelChange",function(t){return Lt(e),ia().user.login=t}),Uo(),Uo(),Ho(9,"ion-item"),Ho(10,"ion-label",14),Oa(11),pc(12,"translate"),Uo(),Ho(13,"ion-input",16),Xo("ngModelChange",function(t){return Lt(e),ia().user.firstname=t}),Uo(),Uo(),Ho(14,"ion-item"),Ho(15,"ion-label",14),Oa(16),pc(17,"translate"),Uo(),Ho(18,"ion-input",17),Xo("ngModelChange",function(t){return Lt(e),ia().user.lastname=t}),Uo(),Uo(),Ho(19,"ion-item"),Ho(20,"ion-label",14),Oa(21),pc(22,"translate"),Uo(),Ho(23,"ion-input",18),Xo("ngModelChange",function(t){return Lt(e),ia().user.email=t}),Uo(),Uo(),Ho(24,"ion-item"),Ho(25,"ion-label"),Oa(26),pc(27,"translate"),Uo(),Ho(28,"ion-toggle",19),Xo("ngModelChange",function(t){return Lt(e),ia().user.isRest=t})("ionChange",function(t){return Lt(e),ia().getPassRules(t)}),Uo(),Uo(),Ho(29,"ion-list"),Ho(30,"ion-list-header"),Ho(31,"ion-label",20),Oa(32),pc(33,"translate"),Uo(),Uo(),Fo(34,QB,2,1,"ng-container",21),Uo(),Fo(35,JB,8,7,"ion-item",22),Fo(36,nR,9,8,"ion-item",22),Ho(37,"ion-item",23),Ho(38,"div",24),Ho(39,"ion-button",25),Ho(40,"ion-label",26),Oa(41),pc(42,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Go()}if(2&e){const e=No(2),t=ia();is(6),Ta("",gc(7,23,"lang.login")," *"),is(2),zo("maxlength",128)("readonly",!t.creationMode)("ngModel",t.user.login),is(3),Ta("",gc(12,25,"lang.firstname")," *"),is(2),zo("maxlength",128)("ngModel",t.user.firstname),is(3),Ta("",gc(17,27,"lang.lastname")," *"),is(2),zo("maxlength",128)("ngModel",t.user.lastname),is(3),Ta("",gc(22,29,"lang.email")," *"),is(2),zo("maxlength",128)("ngModel",t.user.email),is(3),Ia(gc(27,31,"lang.restUser")),is(2),zo("disabled",!t.creationMode)("ngModel",t.user.isRest)("checked",t.user.isRest),is(4),Ia(gc(33,33,"lang.signatureModes")),is(2),zo("ngForOf",t.authService.signatureRoles),is(1),zo("ngIf",t.user.isRest),is(1),zo("ngIf",t.user.isRest),is(3),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(42,35,"lang.validate"))}}function rR(e,t){if(1&e&&(Ho(0,"ion-item"),Ho(1,"ion-label"),Oa(2),Uo(),Uo()),2&e){const e=t.$implicit;is(2),Ia(e.label)}}function sR(e,t){if(1&e&&(Ho(0,"ion-list"),Fo(1,rR,3,1,"ion-item",21),Uo()),2&e){const e=ia(2);is(1),zo("ngForOf",e.user.groups)}}function oR(e,t){1&e&&(Ho(0,"ion-list",38),Ho(1,"ion-item",39),Ho(2,"ion-label",40),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.noAssociatedGroup")))}function aR(e,t){if(1&e&&($o(0),Ho(1,"ion-content"),Fo(2,sR,2,1,"ion-list",11),Fo(3,oR,5,3,"ion-list",37),Uo(),Go()),2&e){const e=ia();is(2),zo("ngIf",e.user.groups.length>0),is(1),zo("ngIf",0===e.user.groups.length)}}let lR=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.userCreation"),this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},this.loading=!1):(this.creationMode=!1,this.http.get("../rest/users/"+e.id).pipe(E(e=>e.user),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.user=e,this.userClone=JSON.parse(JSON.stringify(this.user)),this.title=this.user.firstname+" "+this.user.lastname,this.user.isRest&&this.getPassRules({detail:{checked:!0}})}}))})}canValidate(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}onSubmit(){this.creationMode?this.createUser():this.modifyUser()}modifyUser(){this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(Bb(()=>this.loading=!1),Ib(()=>{this.authService.user.id===this.user.id&&this.authService.updateUserInfoWithTokenRefresh(),""!==this.passwordRest.newPassword&&this.updateRestUser(),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userUpdated")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}updateRestUser(){const e=new mv({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:e}).subscribe(()=>{this.passwordRest.newPassword="",this.passwordRest.passwordConfirmation=""},e=>{this.notificationService.handleErrors(e)})}createUser(){this.loading=!0,this.http.post("../rest/users",this.user).pipe(Bb(()=>this.loading=!1),Ib(e=>{this.user.isRest&&(this.user.id=e.id,this.updateRestUser()),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userAdded")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}delete(){this.dialog.open(ZB,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/users/"+this.user.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userDeleted")}}))})}cancel(){this.router.navigate(["/administration/users"])}getPassRules(e){e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)}))}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}toggleSignMode(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(t=>t!==e.id)}initTab(e){this.currentTool=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Ho(7,"ion-avatar",4),Wo(8,"img",5),Uo(),Uo(),Uo(),Ho(9,"ion-header"),Ho(10,"ion-toolbar"),Ho(11,"ion-segment",6),Xo("ionChange",function(e){return t.initTab(e.detail.value)}),Ho(12,"ion-segment-button",7),Ho(13,"ion-label"),Oa(14),pc(15,"translate"),Uo(),Wo(16,"ion-icon",8),Uo(),Ho(17,"ion-segment-button",9),Ho(18,"ion-label"),Oa(19),pc(20,"translate"),Uo(),Wo(21,"ion-icon",10),Uo(),Uo(),Uo(),Uo(),Fo(22,iR,43,37,"ng-container",11),Fo(23,aR,4,2,"ng-container",11)),2&e&&(zo("translucent",!0),is(6),Ia(t.title),is(2),zo("src",t.user.picture,or),is(3),zo("value",t.currentTool),is(3),Ia(gc(15,9,"lang.informations")),is(3),zo("disabled",t.creationMode),is(2),Ia(gc(20,11,"lang.manage_groups")),is(3),zo("ngIf","info"===t.currentTool),is(1),zo("ngIf","groups"===t.currentTool))},directives:[zx,wA,Sx,eA,xx,UA,bA,_x,uA,ox,dA,Kx,jx,$d,Lm,lm,Tm,Mx,Gx,$x,lx,ev,rv,nv,am,Rm,yA,ex,Qx,Xx,Ud,Cx,Ox,nA],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),e})();function cR(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function uR(e,t){if(1&e&&($o(0),Fo(1,cR,3,4,"div",14),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function dR(e,t){if(1&e){const e=Yo();Ho(0,"div",16),Ho(1,"ion-searchbar",17),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(2,"translate"),Uo(),Uo()}2&e&&(is(1),zo("placeholder",gc(2,1,"lang.filter")))}function hR(e,t){if(1&e&&(Ho(0,"div",16),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function pR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",7),Ho(1,"ion-label",18),Fo(2,hR,2,1,"div",19),Uo(),Ho(3,"ion-button",20),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.delete(i)}),pc(4,"translate"),Wo(5,"ion-icon",21),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia();is(1),la("routerLink","/administration/groups/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,3,"lang.delete"))}}let gR=(()=>{class e{constructor(e,t,n,i,r,s,o){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=r,this.notificationService=s,this.alertController=o,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/groups").pipe(E(e=>e.groups),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.groupList=e,this.sortedData=this.groupList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+e.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:t=>{const n=this.groupList.findIndex(t=>t.id===e.id);this.groupList.splice(n,1),this.sortedData=this.groupList.slice(),this.notificationService.success("lang.groupDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(oS),Vo(QC),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){if(1&e&&(Mc(XT,3),Mc(hM,3)),2&e){let e;Tc(e=Rc())&&(t.paginator=e.first),Tc(e=Rc())&&(t.sort=e.first)}},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),pc(8,"translate"),Uo(),Uo(),Ho(9,"ion-toolbar",1),Ho(10,"ion-buttons",2),Ho(11,"ion-button",4),Oa(12),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-title",5),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Ho(17,"ion-content",null,6),Ho(19,"ion-list"),Ho(20,"ion-item",7),Ho(21,"ion-label",8),Xo("matSortChange",function(e){return t.sortData(e)}),Fo(22,uR,2,1,"ng-container",9),Fo(23,dR,3,3,"div",10),Uo(),Ho(24,"ion-button",11),Wo(25,"ion-icon"),Uo(),Uo(),Ho(26,"ion-virtual-scroll",12),Fo(27,pR,6,5,"ion-item",13),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ma("",gc(7,10,"lang.administration")," ",gc(8,12,"lang.manage_groupsAlt"),""),is(6),Ta(" ",gc(13,14,"lang.groupCreation")," "),is(3),Ma("",t.groupList.length," ",gc(16,16,"lang.manage_groupsAlt"),""),is(6),zo("matSortActive",t.displayedColumns[0]),is(1),zo("ngForOf",t.displayedColumns),is(1),zo("ngIf",t.displayedColumns.indexOf("actions")>-1),is(3),zo("items",t.sortedData))},directives:[zx,wA,Sx,eA,xx,UA,bA,Cx,WA,l_,Mx,Qx,Gx,Kx,hM,Ud,$d,jx,YA,qA,yM,cA,lx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function fR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",6),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).selectUser(n)}),Ho(1,"ion-label"),Oa(2),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ma(" ",e.firstname," ",e.lastname," ")}}function mR(e,t){if(1&e&&(Ho(0,"ion-list"),Ho(1,"ion-virtual-scroll",4),Fo(2,fR,3,2,"ion-item",5),Uo(),Uo()),2&e){const e=ia();is(1),zo("items",e.usersList)}}function vR(e,t){1&e&&(Ho(0,"ion-item",7),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.emptyUsers")))}let bR=(()=>{class e{constructor(e,t){this.http=e,this.modalController=t,this.usersList=[]}ngOnInit(){this.http.get("../rest/users?mode=all").pipe(E(e=>e.users)).subscribe({next:e=>{this.usersList=e.filter(e=>-1===this.users.findIndex(t=>t.id===e.id))}})}selectUser(e){this.modalController.dismiss(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-users"]],inputs:{users:"users"},decls:8,vars:6,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 35%;",4,"ngIf"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","35%"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo(),Ho(5,"ion-content"),Fo(6,mR,3,1,"ion-list",2),Fo(7,vR,4,3,"ion-item",3),Uo()),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,4,"lang.users")),is(3),zo("ngIf",t.usersList.length>0),is(1),zo("ngIf",0===t.usersList.length))},directives:[zx,wA,bA,Mx,$d,Qx,YA,qA,Gx,Kx],pipes:[YC],encapsulation:2}),e})();var yR=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function wR(e,t){1&e&&(Ho(0,"ion-item",18),Ho(1,"ion-label",19),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ta("",gc(3,1,"lang.privileges")," :"))}function _R(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",20),Ho(1,"ion-toggle",21),Xo("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){Lt(e);const n=t.$implicit;return ia().togglePrivilege(n,!0)}),Uo(),Ho(2,"ion-label",22),Xo("click",function(){Lt(e);const n=t.$implicit;return ia().togglePrivilege(n,!1)}),Oa(3),pc(4,"translate"),Uo(),Uo()}if(2&e){const e=t.$implicit;is(1),zo("name",e.id)("checked",e.checked)("ngModel",e.checked),is(2),Ia(gc(4,4,"lang."+e.id+"Admin"))}}function xR(e,t){1&e&&(Ho(0,"ion-item",18),Ho(1,"ion-label",19),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ta("",gc(3,1,"lang.linkedUsers")," :"))}function AR(e,t){if(1&e&&(Ho(0,"div",34),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function CR(e,t){if(1&e&&($o(0),Fo(1,AR,3,4,"div",33),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function SR(e,t){if(1&e){const e=Yo();Ho(0,"div",35),Ho(1,"ion-button",36),Xo("click",function(){return Lt(e),ia(2).openUserList()}),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ta(" ",gc(3,1,"lang.add")," "))}function kR(e,t){if(1&e&&(Ho(0,"div",42),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function ER(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",37),Ho(1,"ion-label",38),Fo(2,kR,2,1,"div",39),Uo(),Ho(3,"ion-button",40),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia(2);return n.stopPropagation(),r.unlinkUser(i)}),pc(4,"translate"),Wo(5,"ion-icon",41),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia(2);is(1),la("routerLink","/administration/users/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,3,"lang.unlinkUser"))}}function PR(e,t){if(1&e){const e=Yo();Ho(0,"ion-infinite-scroll",43),Xo("ionInfinite",function(t){return Lt(e),ia(2).loadData(t)}),Wo(1,"ion-infinite-scroll-content",44),pc(2,"translate"),Uo()}2&e&&(is(1),zo("loadingText",gc(2,1,"lang.loadingMoreData")))}function DR(e,t){1&e&&(Ho(0,"ion-item",45),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.emptyGroupUsers")))}function OR(e,t){if(1&e){const e=Yo();Ho(0,"ion-content",23),Ho(1,"ion-list"),Ho(2,"ion-item",24),$o(3,14),Ho(4,"ion-label",25),Xo("matSortChange",function(t){return Lt(e),ia().sortData(t)}),Fo(5,CR,2,1,"ng-container",26),Fo(6,SR,4,3,"div",27),Uo(),Go(),Ho(7,"ion-button",28),Wo(8,"ion-icon"),Uo(),Uo(),Ho(9,"ion-virtual-scroll",29),Fo(10,ER,6,5,"ion-item",30),Uo(),Fo(11,PR,3,3,"ion-infinite-scroll",31),Uo(),Fo(12,DR,4,3,"ion-item",32),Uo()}if(2&e){const e=ia();is(4),zo("matSortActive",e.displayedColumns[1]),is(1),zo("ngForOf",e.displayedColumns),is(1),zo("ngIf",e.displayedColumns.indexOf("actions")>-1),is(3),zo("items",e.sortedData),is(2),zo("ngIf",e.group.users.length>7),is(1),zo("ngIf",0===e.group.users.length)}}function IR(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",46),Xo("click",function(){return Lt(e),ia().deleteGroup()}),Ho(1,"ion-label",16),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ia(gc(3,1,"lang.delete")))}let TR=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.popoverController=l,this.modalController=c,this.alertController=u,this.latinisePipe=d,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.groupCreation"),this.loading=!1,this.groupClone=JSON.parse(JSON.stringify(this.group))):(this.creationMode=!1,this.usersList=[],this.http.get("../rest/groups/"+e.id).pipe(E(e=>e.group),Bb(()=>{this.loading=!1})).subscribe({next:e=>{this.group=e,this.groupClone=JSON.parse(JSON.stringify(this.group)),this.title=this.group.label,this.updateDataTable()}}),this.http.get("../rest/users?mode=all").pipe(E(e=>e.users)).subscribe({next:e=>{this.usersList=e}}))})}updateDataTable(){this.sortedData=this.group.users.slice()}openUserList(e){return yR(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:bR,componentProps:{users:this.group.users}});yield e.present();const{data:t}=yield e.onWillDismiss();void 0!==t&&this.linkUser(t)})}canValidate(){return this.group.label!==this.groupClone.label}onSubmit(){this.creationMode?this.createGroup():this.modifyGroup()}linkUser(e){this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:()=>{this.group.users.push(e),this.updateDataTable(),this.notificationService.success("lang.userAdded")}})}unlinkUser(e){return yR(this,void 0,void 0,function*(){if(e.id===this.authService.user.id){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.deleteUser(e)}}]});yield t.present()}else this.deleteUser(e)})}deleteUser(e){this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:()=>{const t=this.group.users.findIndex(t=>t.id===e.id);this.group.users.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.userDeleted")}})}modifyGroup(){this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupUpdated")}})}createGroup(){this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:e=>{this.router.navigate(["/administration/groups/"+e.id]),this.notificationService.success("lang.groupAdded")}})}deleteGroup(){return yR(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+this.group.id).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupDeleted")}})}}]});yield e.present()})}togglePrivilege(e,t){return yR(this,void 0,void 0,function*(){if("manage_groups"===e.id&&e.checked){t||(e.checked=!e.checked);const n=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:()=>{this.updatePrivilege(e)}}]});yield n.present()}else t||(e.checked=!e.checked),setTimeout(()=>{this.updatePrivilege(e)},200)})}updatePrivilege(e){this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:()=>{this.notificationService.success("lang.privilegeUpdated"),this.authService.updateUserInfoWithTokenRefresh()}})}cancel(){this.router.navigate(["/administration/groups"])}sortData(e){const t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.group.users.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}loadData(e){this.http.get("../rest/groups/"+this.group.id).pipe(Ib(t=>{this.group.users=t.group.users,e.target.complete(),e.target.disabled=!0})).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(nC),Vo(tC),Vo(XA),Vo(hE))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-group"]],viewQuery:function(e,t){if(1&e&&(Mc(XT,1),Mc(hM,1)),2&e){let e;Tc(e=Rc())&&(t.paginator=e.first),Tc(e=Rc())&&(t.sort=e.first)}},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],[2,"margin-left","4x","display","flex","width","50%",3,"placeholder","ionChange"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 5px;",4,"ngIf"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","5px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Ho(7,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-content"),Ho(10,"ion-item"),Ho(11,"ion-label",6),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",7),Xo("ngModelChange",function(e){return t.group.label=e}),Uo(),Uo(),Fo(15,wR,4,3,"ion-item",8),Ho(16,"div",9),Fo(17,_R,5,6,"ion-item",10),Uo(),Fo(18,xR,4,3,"ion-item",8),Ho(19,"ion-searchbar",11),Xo("ionChange",function(e){return t.applyFilter(e.detail.value)}),pc(20,"translate"),Uo(),Fo(21,OR,13,6,"ion-content",12),Ho(22,"ion-item",13),Ho(23,"div",14),Ho(24,"ion-button",15),Ho(25,"ion-label",16),Oa(26),pc(27,"translate"),Uo(),Uo(),Fo(28,IR,4,3,"ion-button",17),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(6),Ia(t.title),is(6),Ta("",gc(13,17,"lang.label")," *"),is(2),zo("maxlength",128)("ngModel",t.group.label),is(1),zo("ngIf",!t.creationMode),is(1),va("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),is(1),zo("ngForOf",t.group.privileges),is(1),zo("ngIf",!t.creationMode),is(1),zo("placeholder",gc(20,19,"lang.filter")),is(2),zo("ngIf",!t.creationMode),is(3),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(27,21,"lang.validate")),is(2),zo("ngIf",!t.creationMode)}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,nv,am,Rm,$d,Ud,cA,Cx,yA,ex,Qx,hM,jx,YA,qA,yM,WA,l_,Ux,Wx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),e})();function MR(e,t){if(1&e&&(Ho(0,"ion-select-option",10),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e.id)("disabled",!e.allowed),is(1),Ta(" ",gc(2,3,"lang."+e.id+"Connection"),"")}}function BR(e,t){if(1&e){const e=Yo();Ho(0,"ion-select",8),Xo("ionChange",function(t){return Lt(e),ia().changeConnection(t.detail.value)}),pc(1,"translate"),Fo(2,MR,3,5,"ion-select-option",9),Uo()}if(2&e){const e=ia();aa("cancelText",gc(1,3,"lang.cancel")),zo("value",e.currentConnection.id),is(2),zo("ngForOf",e.connectionList)}}function RR(e,t){if(1&e&&(Ho(0,"ion-col"),Ho(1,"ion-button",11),Ho(2,"div",12),Wo(3,"ion-icon",13),Ho(4,"ion-label",14),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-note",15),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Uo()),2&e){const e=t.$implicit;is(1),zo("routerLink",e.route),is(2),zo("name",e.icon),is(2),Ta("",gc(6,4,"lang."+e.id)," "),is(3),Ta(" ",gc(9,6,"lang."+e.id+"Desc"),"")}}let LR=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.signaturesService=t,this.notificationService=n,this.alertController=i,this.authService=r,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"},{id:"manage_cas_configuration",icon:"server-sharp",route:"/administration/connections/cas"}],this.id=0,this.label="",this.connectionList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(Bb(()=>this.loading=!1)).subscribe({next:e=>{this.label=e.configurations.label,this.id=e.configurations.id,this.connectionList=e.configurations.availableConnections;const t=this.connectionList.findIndex(t=>t.id===e.configurations.value);this.currentConnection=void 0!==this.connectionList[t]?this.connectionList[t]:this.connectionList[0]}})}changeConnection(e){return t=this,void 0,i=function*(){this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.connectionModeUpdated"),this.authService.authMode=e}})},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(QC),Vo(XA),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"ion-content",null,4),Ho(10,"ion-item"),Ho(11,"ion-label",5),Oa(12),pc(13,"translate"),Uo(),Fo(14,BR,3,5,"ion-select",6),Uo(),Ho(15,"ion-grid"),Ho(16,"ion-row"),Fo(17,RR,10,8,"ion-col",7),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,5,"lang.manage_connections")),is(6),Ia(gc(13,7,"lang.connectionMode")),is(2),zo("ngIf",t.currentConnection),is(3),zo("ngForOf",t.privileges))},directives:[zx,wA,Sx,eA,xx,UA,bA,Mx,Gx,Kx,$d,Vx,lA,Ud,hA,ox,pA,Tx,Cx,WA,l_,jx,nA],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),e})();function FR(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function NR(e,t){if(1&e&&($o(0),Fo(1,FR,3,4,"div",14),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function VR(e,t){if(1&e){const e=Yo();Ho(0,"div",16),Ho(1,"ion-searchbar",17),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(2,"translate"),Uo(),Uo()}2&e&&(is(1),zo("placeholder",gc(2,1,"lang.filter")))}function zR(e,t){if(1&e&&(Ho(0,"div",16),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function jR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",7),Ho(1,"ion-label",18),Fo(2,zR,2,1,"div",19),Uo(),Ho(3,"ion-button",20),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.delete(i)}),pc(4,"translate"),Wo(5,"ion-icon",21),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia();is(1),la("routerLink","/administration/connections/ldaps/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,3,"lang.delete"))}}let HR=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=r,this.notificationService=s,this.authService=o,this.alertController=a,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}updateDataTable(){this.sortedData=this.ldapList.slice()}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ngOnInit(){}ionViewWillEnter(){this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(Bb(()=>this.loading=!1)).subscribe({next:e=>{this.ldapList=e.configurations,this.updateDataTable()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/configurations/"+e.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{const t=this.ldapList.findIndex(t=>t.id===e.id);this.ldapList.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.ldapDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(oS),Vo(QC),Vo(lS),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),pc(8,"translate"),Uo(),Uo(),Ho(9,"ion-toolbar",1),Ho(10,"ion-buttons",2),Ho(11,"ion-button",4),Oa(12),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-title",5),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Ho(17,"ion-content",null,6),Ho(19,"ion-list"),Ho(20,"ion-item",7),Ho(21,"ion-label",8),Xo("matSortChange",function(e){return t.sortData(e)}),Fo(22,NR,2,1,"ng-container",9),Fo(23,VR,3,3,"div",10),Uo(),Ho(24,"ion-button",11),Wo(25,"ion-icon"),Uo(),Uo(),Ho(26,"ion-virtual-scroll",12),Fo(27,jR,6,5,"ion-item",13),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ma("",gc(7,10,"lang.administration")," ",gc(8,12,"lang.manage_ldap_configurationsAlt")," "),is(6),Ta(" ",gc(13,14,"lang.ldapCreation")," "),is(3),Ma("",t.ldapList.length," ",gc(16,16,"lang.manage_ldap_configurationsAlt"),""),is(6),zo("matSortActive",t.displayedColumns[0]),is(1),zo("ngForOf",t.displayedColumns),is(1),zo("ngIf",t.displayedColumns.indexOf("actions")>-1),is(3),zo("items",t.sortedData))},directives:[zx,wA,Sx,eA,xx,UA,bA,Cx,WA,l_,Mx,Qx,Gx,Kx,hM,Ud,$d,jx,YA,qA,yM,cA,lx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function UR(e,t){return t?n=>n.pipe(UR((n,i)=>F(e(n,i)).pipe(E((e,r)=>t(n,e,i,r))))):t=>t.lift(new WR(e))}class WR{constructor(e){this.project=e}call(e,t){return t.subscribe(new $R(e,this.project))}}class $R extends V{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new N(this),n=this.destination;n.add(t);const i=z(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function GR(e,t){1&e&&($o(0),Oa(1),pc(2,"translate"),Go()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.connectionInProgress"),"... "))}function qR(e,t){if(1&e&&($o(0),Oa(1),Go()),2&e){const e=ia(2);is(1),Ta(" ",e.ldapTest.result," ")}}function YR(e,t){if(1&e&&(Ho(0,"div",16),Fo(1,GR,3,3,"ng-container",17),Fo(2,qR,2,1,"ng-container",17),Uo()),2&e){const e=ia();is(1),zo("ngIf",e.loadingTest),is(1),zo("ngIf",""!==e.ldapTest.result)}}let ZR=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.notificationService=r,this.alertController=s,this.loadingTest=!1}ngOnInit(){}testLdap(){this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Ib(()=>{this.notificationService.success("lang.ldapUpdated")}),UR(()=>this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}})),Ib(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Bb(()=>this.loadingTest=!1),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(Ib(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Bb(()=>this.loadingTest=!1),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(QC),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"form",3,4),Xo("ngSubmit",function(){return t.testLdap()}),Ho(9,"ion-content",null,5),Ho(11,"ion-item"),Ho(12,"ion-label",6),Oa(13),pc(14,"translate"),Uo(),Ho(15,"ion-input",7),Xo("ngModelChange",function(e){return t.ldapTest.login=e}),Uo(),Uo(),Ho(16,"ion-item"),Ho(17,"ion-label",6),Oa(18),pc(19,"translate"),Uo(),Ho(20,"ion-input",8),Xo("ngModelChange",function(e){return t.ldapTest.password=e}),Uo(),Uo(),Ho(21,"ion-card"),Ho(22,"ion-card-header"),Ho(23,"ion-card-subtitle",9),Oa(24),pc(25,"translate"),Uo(),Uo(),Ho(26,"ion-card-content"),Ho(27,"ion-item"),Ho(28,"ion-label",1),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-input",10),Xo("ngModelChange",function(e){return t.ldap.value.uri=e}),Uo(),Uo(),Ho(32,"ion-item"),Ho(33,"ion-label",1),Oa(34),pc(35,"translate"),Uo(),Wo(36,"ion-input",11),Uo(),Fo(37,YR,3,2,"div",12),Uo(),Uo(),Uo(),Ho(38,"ion-footer",13),Ho(39,"ion-toolbar"),Ho(40,"ion-buttons",14),Ho(41,"ion-button",15),Ho(42,"ion-label"),Oa(43),pc(44,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(5),Ia(gc(6,14,"lang.connectionTest")),is(8),Ta("",gc(14,16,"lang.login")," *"),is(2),zo("ngModel",t.ldapTest.login),is(3),Ta("",gc(19,18,"lang.password")," *"),is(2),zo("ngModel",t.ldapTest.password),is(4),Ta("",gc(25,20,"lang.ldapInformations")," :"),is(5),Ta("",gc(30,22,"lang.uri")," :"),is(2),zo("ngModel",t.ldap.value.uri),is(3),Ta("",gc(35,24,"lang.login")," :"),is(2),zo("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),is(1),zo("ngIf",""!==t.ldapTest.result||t.loadingTest),is(4),zo("disabled",!e.form.valid||t.loadingTest),is(2),Ia(gc(44,26,"lang.connectionTest"))}},directives:[zx,wA,Sx,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,am,Rm,kx,Px,Dx,Ex,$d,Nx,Cx],pipes:[YC],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function KR(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",18),Xo("click",function(){return Lt(e),ia().checkConnection()}),Ho(1,"ion-label",15),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ia(gc(3,1,"lang.connectionTest")))}function QR(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",19),Xo("click",function(){return Lt(e),ia().delete()}),Ho(1,"ion-label",15),Oa(2),pc(3,"translate"),Uo(),Uo()}if(2&e){const e=ia();zo("disabled","ldap"===e.authService.authMode&&1===e.ldap.count),is(2),Ia(gc(3,2,"lang.delete"))}}let XR=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.modalController=l,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}ngOnInit(){this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.ldapCreation"),this.loading=!1):(this.creationMode=!1,this.http.get("../rest/configurations/"+e.id).pipe(E(e=>e.configuration),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.ldap=e,this.ldapClone=JSON.parse(JSON.stringify(this.ldap)),this.title=this.ldap.label}}))})}canValidate(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}onSubmit(){this.creationMode?this.createLdap():this.modifyLdap()}modifyLdap(){this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapUpdated")}})}createLdap(){this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapAdded")}})}delete(){this.dialog.open(ZB,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/configurations/"+this.ldap.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapDeleted")}}))})}cancel(){this.router.navigate(["/administration/connections/ldaps"])}checkConnection(e){return t=this,void 0,i=function*(){const e=yield this.modalController.create({component:ZR,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});yield e.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Ho(7,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-content"),Ho(10,"ion-item"),Ho(11,"ion-label",6),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",7),Xo("ngModelChange",function(e){return t.ldap.label=e}),Uo(),Uo(),Ho(15,"ion-item"),Ho(16,"ion-label",6),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-input",8),Xo("ngModelChange",function(e){return t.ldap.value.uri=e}),Uo(),Uo(),Ho(20,"ion-item"),Ho(21,"ion-label",6),Oa(22),pc(23,"translate"),Uo(),Ho(24,"ion-input",9),Xo("ngModelChange",function(e){return t.ldap.value.baseDN=e}),Uo(),Ho(25,"ion-note"),Oa(26,"ex: dc=maarch,dc=com"),Uo(),Uo(),Ho(27,"ion-item"),Ho(28,"ion-label",6),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-input",10),Xo("ngModelChange",function(e){return t.ldap.value.prefix=e}),Uo(),Ho(32,"ion-note"),Oa(33,"ex: MAARCH"),Uo(),Uo(),Ho(34,"ion-item"),Ho(35,"ion-label",6),Oa(36),pc(37,"translate"),Uo(),Ho(38,"ion-input",11),Xo("ngModelChange",function(e){return t.ldap.value.suffix=e}),Uo(),Ho(39,"ion-note"),Oa(40,"ex: @maarch.com"),Uo(),Uo(),Ho(41,"ion-item",12),Ho(42,"div",13),Ho(43,"ion-button",14),Ho(44,"ion-label",15),Oa(45),pc(46,"translate"),Uo(),Uo(),Fo(47,KR,4,3,"ion-button",16),Fo(48,QR,4,4,"ion-button",17),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(6),Ia(t.title),is(6),Ta("",gc(13,16,"lang.label")," *"),is(2),zo("ngModel",t.ldap.label),is(3),Ta("",gc(18,18,"lang.uri")," *"),is(2),zo("ngModel",t.ldap.value.uri),is(3),Ia(gc(23,20,"lang.baseDN")),is(2),zo("ngModel",t.ldap.value.baseDN),is(5),Ia(gc(30,22,"lang.prefix")),is(2),zo("ngModel",t.ldap.value.prefix),is(5),Ia(gc(37,24,"lang.suffix")),is(2),zo("ngModel",t.ldap.value.suffix),is(5),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(46,26,"lang.validate")),is(2),zo("ngIf",!t.creationMode),is(1),zo("ngIf",!t.creationMode)}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,am,Rm,nA,Cx,$d],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function JR(e,t){if(1&e&&(Ho(0,"ion-item"),Wo(1,"ion-icon",13),Ho(2,"ion-label",14),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e){const e=ia();is(1),zo("color","close-outline"===e.emailSendResult.icon?"danger":"primary")("name",e.emailSendResult.icon),is(1),zo("color","close-outline"===e.emailSendResult.icon?"danger":"primary"),is(1),Ia(gc(4,4,e.emailSendResult.msg))}}function eL(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),Uo()),2&e){const e=ia();is(1),Ta(" ",e.emailSendResult.debug," ")}}let tL=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.translate=t,this.dialog=n,this.notificationService=i,this.alertController=r,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}ngOnInit(){}testEmailSend(){this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};const e={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",e).pipe(Ib(e=>{this.emailSendResult=e.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:e.informations,error:!0}}),Bb(()=>this.emailSendLoading=!1)).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(LI),Vo(QC),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"form",3,4),Xo("ngSubmit",function(){return t.testEmailSend()}),Ho(9,"ion-content",null,5),Ho(11,"ion-item"),Ho(12,"ion-label",6),Oa(13),pc(14,"translate"),Uo(),Ho(15,"ion-input",7),Xo("ngModelChange",function(e){return t.recipientTest=e}),Uo(),Uo(),Fo(16,JR,5,6,"ion-item",8),Fo(17,eL,2,1,"div",9),Uo(),Ho(18,"ion-footer",10),Ho(19,"ion-toolbar"),Ho(20,"ion-buttons",11),Ho(21,"ion-button",12),Ho(22,"ion-label"),Oa(23),pc(24,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(5),Ia(gc(6,9,"lang.emailSendTest")),is(8),Ta("",gc(14,11,"lang.mailTo")," *"),is(2),zo("ngModel",t.recipientTest)("disabled",t.emailSendLoading),is(1),zo("ngIf",""!=t.emailSendResult.msg),is(1),zo("ngIf",t.emailSendResult.error),is(4),zo("disabled",!e.form.valid||t.emailSendLoading),is(2),Ia(gc(24,13,"lang.connectionTest"))}},directives:[zx,wA,Sx,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,rv,am,Rm,$d,Nx,Cx,jx],pipes:[YC],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function nL(e,t){if(1&e&&(Ho(0,"ion-select-option",27),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e.id),is(1),Ta("",gc(2,2,e.label)," ")}}function iL(e,t){if(1&e&&(Ho(0,"ion-select-option",27),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e.id),is(1),Ta(" ",gc(2,2,e.label)," ")}}function rL(e,t){if(1&e){const e=Yo();Ho(0,"form",5,6),Xo("ngSubmit",function(){return Lt(e),ia().onSubmit()}),Ho(2,"ion-content"),Ho(3,"ion-item"),Ho(4,"ion-label",7),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-select",8),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.type=t}),Fo(8,nL,3,4,"ion-select-option",9),Uo(),Uo(),Ho(9,"ion-grid"),Ho(10,"ion-row"),Ho(11,"ion-col",10),Ho(12,"ion-item"),Ho(13,"ion-label",7),Oa(14),pc(15,"translate"),Uo(),Ho(16,"ion-select",11),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.secure=t}),Fo(17,iL,3,4,"ion-select-option",9),Uo(),Uo(),Uo(),Ho(18,"ion-col",12),Ho(19,"ion-item"),Ho(20,"ion-label",7),Oa(21),pc(22,"translate"),Uo(),Ho(23,"ion-input",13),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.host=t}),Uo(),Uo(),Uo(),Ho(24,"ion-col",10),Ho(25,"ion-item"),Ho(26,"ion-label",7),Oa(27),pc(28,"translate"),Uo(),Ho(29,"ion-input",14),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.port=t}),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(30,"ion-item"),Ho(31,"ion-toggle",15),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.auth=t})("ngModelChange",function(){return Lt(e),ia().cleanAuthInfo()}),Uo(),Ho(32,"ion-label"),Oa(33),pc(34,"translate"),Uo(),Uo(),Ho(35,"ion-item"),Ho(36,"ion-label",7),Oa(37),pc(38,"translate"),Uo(),Ho(39,"ion-input",16),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.user=t}),Uo(),Uo(),Ho(40,"ion-item",17),Ho(41,"ion-button",18),Xo("click",function(){Lt(e);const t=ia();return t.hidePassword=!t.hidePassword}),Wo(42,"ion-icon",19),Uo(),Ho(43,"ion-label",7),Oa(44),Uo(),Ho(45,"ion-input",20),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.password=t}),Uo(),Uo(),Ho(46,"ion-item"),Ho(47,"ion-label",7),Oa(48),pc(49,"translate"),Uo(),Ho(50,"ion-input",21),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.from=t}),Uo(),Uo(),Ho(51,"ion-item",22),Ho(52,"div",23),Ho(53,"ion-button",24),Xo("click",function(){return Lt(e),ia().checkConnection()}),Ho(54,"ion-label",25),Oa(55),pc(56,"translate"),Uo(),Uo(),Ho(57,"ion-button",26),Ho(58,"ion-label",25),Oa(59),pc(60,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=No(1),t=ia();is(5),Ta("",gc(6,34,"lang.configurationType")," *"),is(2),zo("ngModel",t.sendmail.type),is(1),zo("ngForOf",t.smtpTypeList),is(6),Ta("",gc(15,36,"lang.smtpAuth")," * "),is(2),zo("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.secure)("value",t.sendmail.secure),is(1),zo("ngForOf",t.smtpSecList),is(4),Ta("",gc(22,38,"lang.host")," *"),is(2),zo("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.host),is(4),Ta("",gc(28,40,"lang.port")," *"),is(2),zo("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.port),is(2),zo("ngModel",t.sendmail.auth)("checked",t.sendmail.auth)("disabled","smtp"!=t.sendmail.type),is(2),Ia(gc(34,42,"lang.enableAuth")),is(4),Ta("",gc(38,44,"lang.id")," *"),is(2),zo("ngModel",t.sendmail.user)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type),is(3),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(2),Ma("",t.passwordLanguage," ",t.sendmail.passwordAlreadyExists?"":"*",""),is(1),zo("type",t.hidePassword?"password":"text")("ngModel",t.sendmail.password)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type)("required",!t.sendmail.passwordAlreadyExists),is(3),Ia(gc(49,46,"lang.mailFrom")),is(2),zo("ngModel",t.sendmail.from)("disabled","smtp"!=t.sendmail.type),is(5),Ia(gc(56,48,"lang.connectionTest")),is(2),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(60,50,"lang.validate"))}}let sL=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.route=n,this.signaturesService=i,this.notificationService=r,this.dialog=s,this.authService=o,this.modalController=a,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}ngOnInit(){this.route.params.subscribe(()=>{this.http.get("../rest/configurations/1").pipe(E(e=>e.configuration),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.sendmail=e.value,this.sendmailLabel=e.label,this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.title=this.translate.instant("lang.manage_email_configuration"),this.passwordLanguage=this.translate.instant(this.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}canValidate(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}onSubmit(){this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.notificationService.success("lang.emailConfigurationUpdated")}})}cleanAuthInfo(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}checkConnection(e){return t=this,void 0,i=function*(){const e=JSON.parse(JSON.stringify(this.authService.user));JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit();const t=yield this.modalController.create({component:tL,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:e.email}});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Fo(7,rL,61,52,"form",4)),2&e&&(zo("translucent",!0),is(6),Ia(t.title),is(1),zo("ngIf",!t.loading))},directives:[zx,wA,Sx,eA,xx,UA,bA,$d,Lm,lm,Tm,Mx,Gx,Kx,hA,ox,ev,am,Rm,Ud,Vx,lA,Tx,$x,lx,nx,yA,ex,Cx,jx,rv,pA],pipes:[YC],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),e})();function oL(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function aL(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function lL(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,r,s,o=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),o=null,s=e.apply(i,r),o||(i=r=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var u=t-(c-a);return i=this,r=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),a=c,s=e.apply(i,r),o||(i=r=null)):o||!1===n.trailing||(o=setTimeout(l,u)),s}}(lL.prototype._strokeUpdate,this.throttle):lL.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}oL.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},oL.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},oL.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},aL.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,s=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),o=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var a=s-t,l=o-n;e+=Math.sqrt(a*a+l*l)}t=s,n=o}return e},aL.prototype._point=function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e},lL.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},lL.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,s=n.width||this._canvas.width/r,o=n.height||this._canvas.height/r;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,s,o)},this._isEmpty=!1},lL.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},lL.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},lL.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},lL.prototype.isEmpty=function(){return this._isEmpty},lL.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},lL.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],r=i&&t.distanceTo(i)<this.minDistance;if(!i||!r){var s=this._addPoint(t),o=s.curve,a=s.widths;o&&a&&this._drawCurve(o,a.start,a.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},lL.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},lL.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},lL.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},lL.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},lL.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new oL(e-i.left,t-i.top,n||(new Date).getTime())},lL.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var r=new aL(t[1],i,n.c1,t[2]),s=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:s}}return{}},lL.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,r=e.y-t.y,s=t.x-n.x,o=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,c=(t.x+n.x)/2,u=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),h=Math.sqrt(s*s+o*o),p=h/(d+h),g=t.x-(c+(a-c)*p),f=t.y-(u+(l-u)*p);return{c1:new oL(a+g,l+f),c2:new oL(c+g,u+f)}},lL.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},lL.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},lL.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},lL.prototype._drawCurve=function(e,t,n){var i=this._ctx,r=n-t,s=Math.floor(e.length());i.beginPath();for(var o=0;o<s;o+=1){var a=o/s,l=a*a,c=l*a,u=1-a,d=u*u,h=d*u,p=h*e.startPoint.x;p+=3*d*a*e.control1.x,p+=3*u*l*e.control2.x;var g=h*e.startPoint.y;g+=3*d*a*e.control1.y,g+=3*u*l*e.control2.y,this._drawPoint(p+=c*e.endPoint.x,g+=c*e.endPoint.y,t+c*r)}i.closePath(),i.fill()},lL.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},lL.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var r=e[i];if(r.length>1)for(var s=0;s<r.length;s+=1){var o=r[s],a=new oL(o.x,o.y,o.time),l=o.color;if(0===s)this.penColor=l,this._reset(),this._addPoint(a);else if(s!==r.length-1){var c=this._addPoint(a),u=c.curve,d=c.widths;u&&d&&t(u,d,l)}}else this._reset(),n(r[0])}},lL.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,s=n.height/i,o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"width",n.width),o.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),o.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),o.appendChild(n)});var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+s+'" width="'+r+'" height="'+s+'">',l=o.innerHTML;if(void 0===l){var c=document.createElement("dummy"),u=o.childNodes;c.innerHTML="";for(var d=0;d<u.length;d+=1)c.appendChild(u[d].cloneNode(!0));l=c.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},lL.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},lL.prototype.toData=function(){return this._data};var cL=lL;let uL=(()=>{class e{constructor(e){this.elementRef=e,this.options=this.options||{},this.onBeginEvent=new wc,this.onEndEvent=new wc}ngAfterContentInit(){const e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new cL(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}ngOnDestroy(){const e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}resizeCanvas(){const e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}toData(){return this.signaturePad?this.signaturePad.toData():[]}fromData(e){this.signaturePad.fromData(e)}toDataURL(e,t){return this.signaturePad.toDataURL(e,t)}fromDataURL(e,t={}){!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}clear(){this.signaturePad.clear()}isEmpty(){return this.signaturePad.isEmpty()}off(){this.signaturePad.off()}on(){this.signaturePad.on()}set(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}onBegin(){this.onBeginEvent.emit(!0)}onEnd(){this.onEndEvent.emit(!0)}queryPad(){return this.signaturePad}}return e.\u0275fac=function(t){return new(t||e)(Vo(al))},e.\u0275cmp=qe({type:e,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&Wo(0,"canvas")},encapsulation:2}),e})(),dL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})();const hL=["signaturePad"],pL=function(e,t){return{"border-color":e,"background-color":t}};function gL(e,t){if(1&e){const e=Yo();$o(0,20),Ho(1,"input",21),Xo("change",function(){Lt(e);const n=t.$implicit;return ia().onColorChange(n)}),Uo(),Go()}if(2&e){const e=t.$implicit,n=ia();is(1),zo("checked",0===n.idx)("value",e.id)("ngStyle",cc(3,pL,e.id,e.id))}}let fL=(()=>{class e{constructor(e,t,n,i,r,s,o){this.translate=e,this.http=t,this.signaturesService=n,this.notificationService=i,this.authService=r,this.localStorage=s,this.modalController=o,this.reloaded=new wc,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}ngAfterViewInit(){this.localStorage.get("signature")}onColorChange(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}onDotChange(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}drawComplete(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}drawClear(){this.signaturePad.clear(),this.haveSigned=!1}closePad(){this.modalController.dismiss("cancel")}saveSignature(){this.disableState=!0,this.haveSigned=!0;const e=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(e));const t={id:0,encodedSignature:e,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",t).pipe(Bb(()=>{this.disableState=!1})).subscribe(e=>{t.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:t.id,encodedSignature:t.encodedSignature}),this.modalController.dismiss("reload"),this.notificationService.success("lang.signatureRegistered")})}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Ov),Vo(oS),Vo(QC),Vo(lS),Vo(aS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-pad"]],viewQuery:function(e,t){if(1&e&&Mc(hL,1),2&e){let e;Tc(e=Rc())&&(t.signaturePad=e.first)}},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",2,"margin-top","10px",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.closePad()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-header",0),Ho(9,"ion-toolbar",5),Ho(10,"section",6),Ho(11,"div",7),Fo(12,gL,2,6,"ng-container",8),Uo(),Ho(13,"button",9),Xo("click",function(){return t.drawClear()}),Oa(14),pc(15,"translate"),Uo(),Ho(16,"div",7),Ho(17,"input",10),Xo("input",function(e){return t.onDotChange(e.target.value)}),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(18,"ion-content",null,11),Ho(20,"article",12),Ho(21,"section",13),Ho(22,"signature-pad",14,15),Xo("onEndEvent",function(){return t.drawComplete()}),Uo(),Uo(),Wo(24,"div",16),Uo(),Uo(),Ho(25,"ion-footer",17),Ho(26,"ion-button",18),Xo("click",function(){return t.closePad()}),Ho(27,"ion-label"),Oa(28),pc(29,"translate"),Uo(),Uo(),Ho(30,"ion-button",19),Xo("click",function(){return t.saveSignature()}),Ho(31,"ion-label"),Oa(32),pc(33,"translate"),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,8,"lang.createNewSignature")),is(5),zo("translucent",!0),is(4),zo("ngForOf",t.penColors),is(2),Ia(gc(15,10,"lang.erase")),is(8),zo("options",t.signaturePadOptions),is(6),Ia(gc(29,12,"lang.cancel")),is(4),Ia(gc(33,14,"lang.save")))},directives:[zx,wA,bA,Sx,Cx,jx,Ud,Mx,uL,Nx,Kx,Xd],pipes:[YC],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})();var mL=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const vL=["slides"];function bL(e,t){if(1&e&&(Ho(0,"small",10),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2);is(1),Ma("",e.currentWorflow.signaturePositions.length," ",gc(2,2,"lang.prePositionings"),"")}}function yL(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",4),Ho(1,"ion-toolbar",5),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Fo(5,bL,3,4,"small",6),Uo(),Ho(6,"ion-buttons",7),Ho(7,"ion-button",8),Xo("click",function(){return Lt(e),ia().dismissModal()}),Wo(8,"ion-icon",9),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(3),Ta("",gc(4,3,"lang.signatures")," "),is(2),zo("ngIf",e.signPosMode)}}function wL(e,t){1&e&&(Ho(0,"ion-item",26),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.emptySignList")))}function _L(e,t){1&e&&(Ho(0,"ion-label",37),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.substitutedSignature")))}function xL(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",38),Ho(1,"ion-button",39),Xo("click",function(){Lt(e);const t=ia().$implicit;return ia(4).selectSignature(t)}),pc(2,"translate"),Wo(3,"ion-icon",40),Uo(),Uo()}2&e&&(is(1),zo("title",gc(2,1,"lang.selectSignature")))}function AL(e,t){if(1&e){const e=Yo();Ho(0,"ion-card",30),Ho(1,"img",31),Xo("click",function(){Lt(e);const n=t.$implicit,i=ia(4);return"document"===i.target?i.selectSignature(n):""}),Uo(),Ho(2,"ion-toolbar",32),Fo(3,_L,3,3,"ion-label",33),Fo(4,xL,4,3,"ion-buttons",34),Ho(5,"ion-buttons",7),Ho(6,"ion-button",35),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(4).removeSignature(n)}),pc(7,"translate"),Wo(8,"ion-icon",36),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=ia(4);is(1),la("id","imgSign_",n,""),zo("src",i.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),or),is(2),zo("ngIf",e.substituted),is(1),zo("ngIf","document"===i.target),is(2),zo("title",gc(7,5,"lang.removeSignature"))}}function CL(e,t){if(1&e&&(Ho(0,"ion-slide",27),Ho(1,"div",28),Fo(2,AL,9,7,"ion-card",29),Uo(),Uo()),2&e){const e=t.$implicit;is(2),zo("ngForOf",e)}}function SL(e,t){if(1&e&&(Ho(0,"ion-slides",22,23),Fo(2,wL,4,3,"ion-item",24),Fo(3,CL,3,1,"ion-slide",25),Uo()),2&e){const e=ia(2);va("hideSwiper",0===e.signaturesList.length),zo("options",e.slideOpts),is(2),zo("ngIf",0===e.signaturesList.length),is(1),zo("ngForOf",e.signaturesList)}}function kL(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",17),Xo("click",function(){return Lt(e),ia(2).addNewDate()}),pc(1,"translate"),Wo(2,"ion-icon",41),Uo()}2&e&&zo("title",gc(1,1,"lang.addNewDate"))}function EL(e,t){if(1&e){const e=Yo();$o(0),Fo(1,SL,4,5,"ion-slides",11),Ho(2,"ion-fab",12),Ho(3,"ion-fab-button",13),Wo(4,"ion-icon",14),Uo(),Ho(5,"ion-fab-list",15),Fo(6,kL,3,3,"ion-fab-button",16),Ho(7,"ion-fab-button",17),Xo("click",function(){return Lt(e),No(14).click()}),pc(8,"translate"),Wo(9,"ion-icon",18),Uo(),Ho(10,"ion-fab-button",17),Xo("click",function(){return Lt(e),ia().openSignatures()}),pc(11,"translate"),Wo(12,"ion-icon",19),Uo(),Uo(),Uo(),Ho(13,"input",20,21),Xo("change",function(t){return Lt(e),ia().handleFileInput(t.target.files)}),Uo(),Go()}if(2&e){const e=ia();is(1),zo("ngIf",!e.loading),is(5),zo("ngIf","document"===e.target),is(1),zo("title",gc(8,4,"lang.importNewSignature")),is(3),zo("title",gc(11,6,"lang.createNewSignature"))}}function PL(e,t){1&e&&(Ho(0,"div",42),Wo(1,"ion-icon",43),Ho(2,"div"),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ta(" ",gc(4,1,"lang.certifiedDocumentMsg")," "))}let DL=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u){this.http=e,this.signaturesService=t,this.notificationService=n,this.authService=i,this.modalController=r,this.translate=s,this.localStorage=o,this.alertController=a,this.bottomSheetRef=l,this.sanitization=c,this.renderer=u,this.target="document",this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}dismissModal(){this.modalController.dismiss("cancel")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}ngOnInit(){this.initSignatures(),"document"===this.target?(this.getImgDimensions(this.content),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns()):this.loading=!1}initSignatures(){this.signaturesList=[];let e=[],t=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(n=>{6===t?(this.signaturesList.push(e),e=[n],t=0):(e.push(n),t++)}),e.length>0&&this.signaturesList.push(e)}ionViewDidEnter(){this.loading=!1}openSignatures(){return mL(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:fL,cssClass:"my-custom-class"});yield e.present();const{data:t}=yield e.onWillDismiss();"reload"===t&&this.initSignatures()})}mustPrePosSignature(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}selectSignature(e){const t=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=t.naturalWidth;let n=25;this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,n=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=n;const i=this.currentWorflow.signaturePositions.filter(e=>e.page===this.signaturesService.currentPage),r=this.currentWorflow.signaturePositions.filter(e=>e.page!==this.signaturesService.currentPage);this.mustPrePosSignature(i,r)?(i.length>0&&(e.positionX=i[0].positionX,e.positionY=i[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),r.length>0&&r.forEach(t=>{e.positionX=t.positionX,e.positionY=t.positionY,this.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===i.length&&r.length>0?{redirectPage:r[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}addNewDate(){const e=this.currentWorflow.datePositions.filter(e=>e.page===this.signaturesService.currentPage),t=this.currentWorflow.datePositions.filter(e=>e.page!==this.signaturesService.currentPage);if(0===e.length&&0===t.length){const e={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};e.positionX=60,e.positionY=80,this.storeDate(e,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else e.length>0&&this.storeDate({width:e[0].width,height:e[0].height,positionX:e[0].positionX,positionY:e[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),t.forEach(e=>{this.storeDate({width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},e.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===e.length&&t.length>0?{redirectPage:t[0].page}:"success")}storeSignature(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}storeDate(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}removeSignature(e){return mL(this,void 0,void 0,function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.wantDeleteSignature"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/users/"+this.authService.user.id+"/signatures/"+e.id).subscribe(()=>{this.signaturesService.signaturesList=this.signaturesService.signaturesList.filter(t=>t.id!==e.id),this.notificationService.success("lang.signatureDeleted"),this.initSignatures()},e=>{this.notificationService.error(e.error.errors)})}}]});yield t.present()})}toggleAllPage(){this.inAllPage=!this.inAllPage}tapEvent(e,t,n){this.count++,setTimeout(()=>{1===this.count?this.count=0:this.count>1&&(this.count=0,this.selectSignature(e))},250)}handleFileInput(e){const t=e.item(0);if(t.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=n=>{const i=e.result.toString().replace("data:"+t.type+";base64,","");this.localStorage.save("signature",JSON.stringify(i));const r={id:0,encodedSignature:i,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",r).subscribe(e=>{r.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:r.id,encodedSignature:r.encodedSignature}),this.initSignatures(),this.notificationService.success("lang.signatureRegistered")})},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}getImgDimensions(e){const t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,e=>e.charCodeAt(0)),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(QC),Vo(lS),Vo(tC),Vo(qC),Vo(aS),Vo(XA),Vo(dI),Vo(Yh),Vo(ul))},e.\u0275cmp=qe({type:e,selectors:[["app-signatures"]],viewQuery:function(e,t){if(1&e&&Mc(vL,1),2&e){let e;Tc(e=Rc())&&(t.slides=e.first)}},inputs:{currentWorflow:"currentWorflow",content:"content",target:"target"},decls:5,vars:3,consts:[[3,"translucent",4,"ngIf"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[1,"secondary"],["pager","true",3,"options","hideSwiper",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click",4,"ngIf"],["color","light",3,"title","click"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["class","emptySignList","lines","none",4,"ngIf"],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],["lines","none",1,"emptySignList"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],["color","default",2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start",4,"ngIf"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["name","calendar-outline"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(Fo(0,yL,9,5,"ion-header",0),Ho(1,"ion-content",1),Xo("wheel",function(e){return t.signaturesService.stampLock?null:t.scroll(e)}),Fo(2,EL,15,8,"ng-container",2),Fo(3,PL,5,3,"ng-template",null,3,Vc),Uo()),2&e){const e=No(4);zo("ngIf","document"===t.target),is(2),zo("ngIf",!t.signaturesService.stampLock)("ngIfElse",e)}},directives:[$d,Mx,zx,wA,bA,Sx,Cx,jx,Rx,Lx,Fx,fA,Ud,Gx,Kx,gA,kx],pipes:[YC],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}.emptySignList[_ngcontent-%COMP%]{text-align:center;display:inherit;height:100%!important;font-size:30px;opacity:.5}.hideSwiper[_ngcontent-%COMP%]{--bullet-background-active:none}"]}),e})();const OL=["mainContent"],IL=["canvas"],TL=["img"],ML=["nav"],BL=function(e,t){return{"border-color":e,"background-color":t}};function RL(e,t){if(1&e&&($o(0,28),Wo(1,"input",29),Go()),2&e){const e=t.$implicit,n=ia(2);is(1),zo("checked",0===n.idx)("value",e.id)("ngStyle",cc(3,BL,e.id,e.id))}}function LL(e,t){if(1&e){const e=Yo();Ho(0,"ion-content",null,8),Ho(2,"div",9),Fo(3,RL,2,6,"ng-container",10),Wo(4,"hr"),Ho(5,"i",11),Xo("click",function(){return Lt(e),ia().undo()}),Uo(),Uo(),Ho(6,"ion-fab",12),Ho(7,"ion-fab-button",13),Wo(8,"ion-icon",14),Uo(),Ho(9,"ion-fab-list",15),Ho(10,"ion-fab-button",16),Xo("click",function(t){Lt(e);const n=ia();return t.stopPropagation(),n.editMode=!n.editMode}),pc(11,"translate"),pc(12,"translate"),Wo(13,"ion-icon",17),Uo(),Ho(14,"ion-fab-button",18),Xo("click",function(t){Lt(e);const n=ia();return t.stopPropagation(),n.getImageDimensions(!n.originalSize)}),pc(15,"translate"),pc(16,"translate"),Wo(17,"ion-icon",17),Uo(),Uo(),Uo(),Ho(18,"div",19),Ho(19,"drag-scroll",20,21),Ho(21,"div",22,23),Ho(23,"ion-img",24,25),Xo("ionImgDidLoad",function(t){return Lt(e),ia().imageLoaded(t)}),Uo(),Wo(25,"canvas",26,27),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(3),zo("ngForOf",e.penColors),is(7),zo("color",e.editMode?"danger":"success")("title",e.editMode?gc(11,19,"lang.lockEdition"):gc(12,21,"lang.unlockEdition")),is(3),zo("name",e.editMode?"lock-closed-outline":"lock-open-outline"),is(1),zo("title",e.originalSize?gc(15,23,"lang.originalSize"):gc(16,25,"lang.screenSize")),is(3),zo("name",e.originalSize?"scan-outline":"crop-outline"),is(2),ma("max-width",e.areaWidth,"px"),is(2),ma("width",e.areaWidth,"px")("height",e.areaHeight,"px"),is(2),ma("width",e.areaWidth,"px")("height",e.areaHeight,"px"),zo("src",e.content),is(2),ma("display",e.editMode?"initial":"none")}}let FL=(()=>{class e{constructor(e,t,n,i,r){this.signaturesService=e,this.notificationService=t,this.authService=n,this.localStorage=i,this.modalController=r,this.triggerEvent=new wc,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}ngOnInit(){setTimeout(()=>{this.loading=!1},100)}imageLoaded(e){this.getImageDimensions(!1)}getImageDimensions(e=!1){this.originalSize=e;const t=new Image;t.onload=n=>{this.areaWidth=n.target.naturalWidth,this.areaHeight=n.target.naturalHeight,e||this.getAreaDimension(),this.editMode&&setTimeout(()=>{const e=$("#myBounds").offset();let n,i,r;n=1===Math.sign(e.top)||this.precentScrollTop<=Math.abs(e.top)?this.precentScrollTop-e.top:-1===Math.sign(e.top)&&this.precentScrollTop<=-Math.sign(e.top)?2*(this.precentScrollTop-e.top):100*(this.precentScrollTop-e.top);const s=this.precentScrollLeft-e.left;i=this.precentScrollLeft-document.documentElement.offsetLeft,r=this.precentScrollTop-document.documentElement.offsetTop,i=i/this.areaWidth*100,r=r/this.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(s,n),t.style.transform="translate(-"+i+"%,-"+r+"%) scale(2)",this.initPad()},200)},t.src=this.content}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}dismissModal(){this.modalController.dismiss("cancel")}initPad(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}validateAnnotation(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}undo(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(QC),Vo(lS),Vo(aS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){if(1&e&&(Mc(OL,1),Mc(IL,1),Mc(TL,1),Mc(ML,1,Kk)),2&e){let e;Tc(e=Rc())&&(t.mainContent=e.first),Tc(e=Rc())&&(t.canvas=e.first),Tc(e=Rc())&&(t.img=e.first),Tc(e=Rc())&&(t.ds=e.first)}},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo(),Fo(5,LL,27,27,"ion-content",2),Ho(6,"ion-footer",3),Ho(7,"div",4),Ho(8,"ion-button",5),Xo("click",function(){return t.dismissModal()}),Ho(9,"ion-label",6),Oa(10),pc(11,"translate"),Uo(),Uo(),Ho(12,"ion-button",7),Xo("click",function(){return t.validateAnnotation()}),Ho(13,"ion-label",6),Oa(14),pc(15,"translate"),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,5,"lang.annotateDocument")),is(2),zo("ngIf",!t.loading),is(5),Ia(gc(11,7,"lang.cancel")),is(4),Ia(gc(15,9,"lang.save")))},directives:[zx,wA,bA,$d,Nx,Cx,Kx,Mx,Ud,Rx,Lx,jx,Fx,Kk,Hx,Xd],pipes:[YC],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})(),NL=(()=>{class e{constructor(e,t,n){this.http=e,this.signaturesService=t,this.router=n,this.currentIndex=0,this.offset=0,this.limit=10}resfreshDocuments(e=!1){this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(t=>{this.signaturesService.documentsList=t.documents,this.signaturesService.documentsListCount=t.count,e&&this.router.navigate(void 0!==this.signaturesService.documentsList[this.currentIndex]?["/documents/"+this.signaturesService.documentsList[this.currentIndex].id]:this.signaturesService.documentsList.length>0?["/documents/"+this.signaturesService.documentsList[0].id]:["/home"])})}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(oS),fi(a_))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),VL=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(NL),Vo(lS),Vo(cI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"h1"),Wo(2,"i",1),Uo(),Ho(3,"p"),Oa(4),pc(5,"translate"),Uo(),Ho(6,"p",2),Oa(7),Uo(),Ho(8,"p",3),Oa(9),pc(10,"translate"),pc(11,"date"),pc(12,"translate"),pc(13,"date"),Uo(),Uo()),2&e&&(is(4),Ia(gc(5,7,"lang.documentRefusedAs")),is(3),Ma("",t.authService.user.firstname," ",t.authService.user.lastname,""),is(2),Ra("",gc(10,9,"lang.onRange")," ",fc(11,11,t.date,"dd/MM/yyyy")," ",gc(12,14,"lang.atRange")," ",fc(13,16,t.date,"HH:mm"),""))},pipes:[YC,ch],styles:[""]}),e})();const zL=["slides"];function jL(e,t){1&e&&(Ho(0,"span",16),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta("(",gc(2,1,"lang.mainDocument"),")"))}function HL(e,t){1&e&&(Ho(0,"span",16),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta("(",gc(2,1,"lang.attachment"),")"))}const UL=function(e){return{background:e}};function WL(e,t){if(1&e){const e=Yo();Ho(0,"ion-slide"),Ho(1,"div",12),Ho(2,"div",13),Xo("click",function(){Lt(e);const n=t.index;return ia(2).loadDoc(n)}),Uo(),Ho(3,"div",14),Oa(4),Fo(5,jL,3,3,"span",15),Fo(6,HL,3,3,"span",15),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=ia(2);is(2),va("current",n==i.currentDocId),zo("ngStyle",lc(6,UL,"url("+e.imgContent[1]+") no-repeat scroll center center / contain")),is(2),Ta(" ",e.title,"\xa0"),is(1),zo("ngIf",0==n),is(1),zo("ngIf",n>0)}}function $L(e,t){if(1&e&&(Ho(0,"ion-slides",9,10),Fo(2,WL,7,8,"ion-slide",11),Uo()),2&e){const e=ia();zo("options",e.slideOpts),is(2),zo("ngForOf",e.docList)}}let GL=(()=>{class e{constructor(e,t,n,i){this.http=e,this.signaturesService=t,this.sanitizer=n,this.menu=i,this.triggerEvent=new wc,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}ngOnInit(){this.docList.forEach((e,t)=>{void 0===e.imgContent[1]&&t>0&&this.http.get("../rest/attachments/"+e.id+"/thumbnails/1").subscribe(t=>{e.imgContent[1]="data:image/png;base64,"+t.fileContent})})}ngAfterViewInit(){this.loading=!1}loadDoc(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(Yh),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-list"]],viewQuery:function(e,t){if(1&e&&Mc(zL,1),2&e){let e;Tc(e=Rc())&&(t.slides=e.first)}},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Ho(6,"b",6),Oa(7),Uo(),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Ho(10,"ion-content",7),Xo("wheel",function(e){return t.scroll(e)}),Fo(11,$L,3,2,"ion-slides",8),Uo()),2&e&&(zo("translucent",!0),is(7),Ia(t.docList.length),is(1),Ta("\xa0",gc(9,4,"lang.attachedElements"),""),is(3),zo("ngIf",!t.loading))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,$d,fA,Ud,gA,Xd],pipes:[YC],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),e})(),qL=(()=>{class e{constructor(e,t){this.translate=e,this.latinisePipe=t}empty(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}isDate(e){return e instanceof Date&&!isNaN(e.valueOf())}formatFrenchDateToTechnicalDate(e){if(this.empty(e))return e;{let t=e.split("-");return t=t.concat(t[t.length-1].split(" ")),t.splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),`${t[2]}-${t[1]}-${t[0]} ${t[3]}`}}formatFrenchDateToObjectDate(e,t="-"){if(this.empty(e))return e;{let n=e.split(t);return n=n.concat(n[n.length-1].split(" ")),n.splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date(`${n[2]}-${n[1]}-${n[0]} ${n[3]}`)}}formatDateObjectToDateString(e,t=!1,n="dd-mm-yyyy"){if(null!==e){const i=[];n.split("-").forEach(t=>{if("dd"===t){let t=e.getDate();t=("00"+t).slice(-2),i.push(t)}else if("mm"===t){let t=e.getMonth()+1;t=("00"+t).slice(-2),i.push(t)}else if("yyyy"===t){const t=e.getFullYear();i.push(t)}});let r="";return t&&(r=" 23:59:59"),`${i.join("-")}${r}`}return e}formatSerializedDateToDateString(e){return this.formatDateObjectToDateString(new Date(e))}listSortingDataAccessor(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}filterUnSensitive(e,t,n){let i=!1;return t=this.latinisePipe.transform(t),n.forEach(n=>{let r=e[n];"string"!=typeof e[n]&&(r=void 0===r?"":JSON.stringify(r)),i=i||this.latinisePipe.transform(r.toLowerCase()).includes(t)}),i}formatBytes(e,t=2){if("number"==typeof e){if(0===e)return"0 Octet";const n=1024,i=t<0?0:t,r=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],s=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,s)).toFixed(i))+" "+r[s]}return e}}return e.\u0275fac=function(t){return new(t||e)(fi(qC),fi(hE))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var YL=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let ZL=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.translate=t,this.notificationService=n,this.signaturesService=i,this.functionsService=r,this.alertController=s}sendDocument(e,t,n=null,i=null,r=null,s=null){return new Promise(o=>YL(this,void 0,void 0,function*(){let a={};this.signaturesService.currentAction>0?(a.signatures=null===s?yield this.getElementsFromDoc():s,null!==n&&(a=Object.assign(Object.assign({},a),n),a.step="hashCertificate"),null!==t&&(a.note=t),null!==i&&(a.signatureLength=i),this.functionsService.empty(r)||(a.tmpUniqueId=r),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,a).pipe(Ib(e=>{o(null===n||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),mb(e=>(this.notificationService.handleErrors(e),o(403===e.status&&null),cv(!1)))).subscribe()):o(!1)}))}getElementsFromDoc(){return YL(this,void 0,void 0,function*(){return new Promise(e=>YL(this,void 0,void 0,function*(){const t=[];for(let e=1;e<=this.signaturesService.totalPage;e++){if(this.signaturesService.datesContent[e])for(let n=0;n<this.signaturesService.datesContent[e].length;n++){const i=this.signaturesService.datesContent[e][n],r=yield this.getSvgContent(n);t.push({encodedImage:r.replace("data:image/svg+xml;base64,",""),width:i.width,height:i.height,positionX:i.positionX,positionY:i.positionY,type:"SVG",page:e})}this.signaturesService.signaturesContent[e]&&this.signaturesService.signaturesContent[e].forEach(n=>{t.push({encodedImage:n.encodedSignature,width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})}),this.signaturesService.notesContent[e]&&this.signaturesService.notesContent[e].forEach(n=>{t.push({encodedImage:n.fullPath.replace("data:image/png;base64,",""),width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})})}e(t)}))})}getSvgContent(e){return new Promise(t=>{const n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),r=new Blob([i],{type:"image/svg+xml"}),s=new FileReader;s.readAsDataURL(r),s.onloadend=()=>{t(s.result)}})}checkGroupMail(e,t){return new Promise(n=>YL(this,void 0,void 0,function*(){this.functionsService.empty(e.mailingId)?n([this.signaturesService.mainDocumentId]):this.http.get(`../rest/documents/${this.signaturesService.mainDocumentId}/linkedMailing`).pipe(Ib(e=>YL(this,void 0,void 0,function*(){if(e.documents.length>1){const i=yield this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:()=>{n(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:()=>{n([this.signaturesService.mainDocumentId])}}]});yield i.present()}else n([this.signaturesService.mainDocumentId])})),mb(e=>(this.notificationService.handleErrors(e),n([]),cv(!1)))).subscribe()}))}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(qC),fi(QC),fi(oS),fi(qL),fi(XA))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value(e,t){return new Uint8Array(Array.prototype.slice.call(this,e,t))}});var KL=/iPhone/i,QL=/iPod/i,XL=/iPad/i,JL=/\biOS-universal(?:.+)Mac\b/i,eF=/\bAndroid(?:.+)Mobile\b/i,tF=/Android/i,nF=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,iF=/Silk/i,rF=/Windows Phone/i,sF=/\bWindows(?:.+)ARM\b/i,oF=/BlackBerry/i,aF=/BB10/i,lF=/Opera Mini/i,cF=/\b(CriOS|Chrome)(?:.+)Mobile/i,uF=/Mobile(?:.+)Firefox\b/i,dF=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream},hF=n("OmFT");function pF(e,t){let n=0;if(1===e.length)return e[0];for(let i=e.length-1;i>=0;i--)n+=e[e.length-1-i]*Math.pow(2,t*i);return n}function gF(e,t,n=-1){const i=n;let r=e,s=0,o=Math.pow(2,t);for(let a=1;a<8;a++){if(e<o){let e;if(i<0)e=new ArrayBuffer(a),s=a;else{if(i<a)return new ArrayBuffer(0);e=new ArrayBuffer(i),s=i}const n=new Uint8Array(e);for(let i=a-1;i>=0;i--){const e=Math.pow(2,i*t);n[s-i-1]=Math.floor(r/e),r-=n[s-i-1]*e}return e}o*=Math.pow(2,t)}return new ArrayBuffer(0)}function fF(...e){let t=0,n=0;for(const s of e)t+=s.length;const i=new ArrayBuffer(t),r=new Uint8Array(i);for(const s of e)r.set(s,n),n+=s.length;return r}function mF(){const e=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){const t=0===e[0]&&0==(128&e[1]);(255===e[0]&&128&e[1]||t)&&this.warnings.push("Needlessly long format")}const t=new ArrayBuffer(this.valueHex.byteLength),n=new Uint8Array(t);for(let o=0;o<this.valueHex.byteLength;o++)n[o]=0;n[0]=128&e[0];const i=pF(n,8),r=new ArrayBuffer(this.valueHex.byteLength),s=new Uint8Array(r);for(let o=0;o<this.valueHex.byteLength;o++)s[o]=e[o];return s[0]&=127,pF(s,8)-i}function vF(e,t){const n=e.toString(10);if(t<n.length)return"";const i=t-n.length,r=new Array(i);for(let s=0;s<i;s++)r[s]="0";return r.join("").concat(n)}function bF(){if("undefined"==typeof BigInt)throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function yF(e){let t=0,n=0;for(let r=0;r<e.length;r++)t+=e[r].byteLength;const i=new Uint8Array(t);for(let r=0;r<e.length;r++){const t=e[r];i.set(new Uint8Array(t),n),n+=t.byteLength}return i.buffer}function wF(e,t,n,i){return t instanceof Uint8Array?t.byteLength?n<0?(e.error="Wrong parameter: inputOffset less than zero",!1):i<0?(e.error="Wrong parameter: inputLength less than zero",!1):!(t.byteLength-n-i<0&&(e.error="End of input reached before message was fully decoded (inconsistent offset and length values)",1)):(e.error="Wrong parameter: inputBuffer has zero length",!1):(e.error="Wrong parameter: inputBuffer must be 'Uint8Array'",!1)}n("mNvP"),Math.log(2);class _F{constructor(){this.items=[]}write(e){this.items.push(e)}final(){return yF(this.items)}}const xF=[new Uint8Array([1])],AF=new ArrayBuffer(0),CF=new Uint8Array(0);function SF(e){var t;return(t=class extends e{constructor(...e){var t;super(...e);const n=e[0]||{};this.isHexOnly=null!==(t=n.isHexOnly)&&void 0!==t&&t,this.valueHexView=n.valueHex?hF.BufferSourceConverter.toUint8Array(n.valueHex):CF}get valueHex(){return this.valueHexView.slice().buffer}set valueHex(e){this.valueHexView=new Uint8Array(e)}fromBER(e,t,n){const i=e instanceof ArrayBuffer?new Uint8Array(e):e;if(!wF(this,i,t,n))return-1;const r=t+n;return this.valueHexView=i.subarray(t,r),this.valueHexView.length?(this.blockLength=n,r):(this.warnings.push("Zero buffer length"),t)}toBER(e=!1){return this.isHexOnly?e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer:(this.error="Flag 'isHexOnly' is not set, abort",AF)}toJSON(){return{...super.toJSON(),isHexOnly:this.isHexOnly,valueHex:hF.Convert.ToHex(this.valueHexView)}}}).NAME="hexBlock",t}class kF{constructor({blockLength:e=0,error:t="",warnings:n=[],valueBeforeDecode:i=CF}={}){this.blockLength=e,this.error=t,this.warnings=n,this.valueBeforeDecodeView=hF.BufferSourceConverter.toUint8Array(i)}static blockName(){return this.NAME}get valueBeforeDecode(){return this.valueBeforeDecodeView.slice().buffer}set valueBeforeDecode(e){this.valueBeforeDecodeView=new Uint8Array(e)}toJSON(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:hF.Convert.ToHex(this.valueBeforeDecodeView)}}}kF.NAME="baseBlock";class EF extends kF{fromBER(e,t,n){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}toBER(e,t){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}EF.NAME="valueBlock";class PF extends(SF(kF)){constructor({idBlock:e={}}={}){var t,n,i,r;super(),e?(this.isHexOnly=null!==(t=e.isHexOnly)&&void 0!==t&&t,this.valueHexView=e.valueHex?hF.BufferSourceConverter.toUint8Array(e.valueHex):CF,this.tagClass=null!==(n=e.tagClass)&&void 0!==n?n:-1,this.tagNumber=null!==(i=e.tagNumber)&&void 0!==i?i:-1,this.isConstructed=null!==(r=e.isConstructed)&&void 0!==r&&r):(this.tagClass=-1,this.tagNumber=-1,this.isConstructed=!1)}toBER(e=!1){let t=0;switch(this.tagClass){case 1:t|=0;break;case 2:t|=64;break;case 3:t|=128;break;case 4:t|=192;break;default:return this.error="Unknown tag class",AF}if(this.isConstructed&&(t|=32),this.tagNumber<31&&!this.isHexOnly){const n=new Uint8Array(1);if(!e){let e=this.tagNumber;e&=31,t|=e,n[0]=t}return n.buffer}if(!this.isHexOnly){const n=gF(this.tagNumber,7),i=new Uint8Array(n),r=n.byteLength,s=new Uint8Array(r+1);if(s[0]=31|t,!e){for(let e=0;e<r-1;e++)s[e+1]=128|i[e];s[r]=i[r-1]}return s.buffer}const n=new Uint8Array(this.valueHexView.byteLength+1);if(n[0]=31|t,!e){const e=this.valueHexView;for(let t=0;t<e.length-1;t++)n[t+1]=128|e[t];n[this.valueHexView.byteLength]=e[e.length-1]}return n.buffer}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;switch(192&r[0]){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:return this.error="Unknown tag class",-1}this.isConstructed=32==(32&r[0]),this.isHexOnly=!1;const s=31&r[0];if(31!==s)this.tagNumber=s,this.blockLength=1;else{let e=1,t=this.valueHexView=new Uint8Array(255),n=255;for(;128&r[e];){if(t[e-1]=127&r[e],e++,e>=r.length)return this.error="End of input reached before message was fully decoded",-1;if(e===n){n+=255;const e=new Uint8Array(n);for(let n=0;n<t.length;n++)e[n]=t[n];t=this.valueHexView=new Uint8Array(n)}}this.blockLength=e+1,t[e-1]=127&r[e];const i=new Uint8Array(e);for(let r=0;r<e;r++)i[r]=t[r];t=this.valueHexView=new Uint8Array(e),t.set(i),this.blockLength<=9?this.tagNumber=pF(t,7):(this.isHexOnly=!0,this.warnings.push("Tag too long, represented as hex-coded"))}if(1===this.tagClass&&this.isConstructed)switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:return this.error="Constructed encoding used for primitive type",-1}return t+this.blockLength}toJSON(){return{...super.toJSON(),tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed}}}PF.NAME="identificationBlock";class DF extends kF{constructor({lenBlock:e={}}={}){var t,n,i;super(),this.isIndefiniteForm=null!==(t=e.isIndefiniteForm)&&void 0!==t&&t,this.longFormUsed=null!==(n=e.longFormUsed)&&void 0!==n&&n,this.length=null!==(i=e.length)&&void 0!==i?i:0}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;if(255===r[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===r[0],this.isIndefiniteForm)return this.blockLength=1,t+this.blockLength;if(this.longFormUsed=!!(128&r[0]),!1===this.longFormUsed)return this.length=r[0],this.blockLength=1,t+this.blockLength;const s=127&r[0];if(s>8)return this.error="Too big integer",-1;if(s+1>r.length)return this.error="End of input reached before message was fully decoded",-1;const o=t+1,a=i.subarray(o,o+s);return 0===a[s-1]&&this.warnings.push("Needlessly long encoded length"),this.length=pF(a,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=s+1,t+this.blockLength}toBER(e=!1){let t,n;if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return t=new ArrayBuffer(1),!1===e&&(n=new Uint8Array(t),n[0]=128),t;if(this.longFormUsed){const i=gF(this.length,8);if(i.byteLength>127)return this.error="Too big length",AF;if(t=new ArrayBuffer(i.byteLength+1),e)return t;const r=new Uint8Array(i);n=new Uint8Array(t),n[0]=128|i.byteLength;for(let e=0;e<i.byteLength;e++)n[e+1]=r[e];return t}return t=new ArrayBuffer(1),!1===e&&(n=new Uint8Array(t),n[0]=this.length),t}toJSON(){return{...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length}}}DF.NAME="lengthBlock";const OF={};class IF extends kF{constructor({name:e="",optional:t=!1,primitiveSchema:n,...i}={},r){super(i),this.name=e,this.optional=t,n&&(this.primitiveSchema=n),this.idBlock=new PF(i),this.lenBlock=new DF(i),this.valueBlock=r?new r(i):new EF(i)}fromBER(e,t,n){const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}toBER(e,t){const n=t||new _F;t||TF(this);const i=this.idBlock.toBER(e);if(n.write(i),this.lenBlock.isIndefiniteForm)n.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(e,n),n.write(new ArrayBuffer(2));else{const t=this.valueBlock.toBER(e);this.lenBlock.length=t.byteLength;const i=this.lenBlock.toBER(e);n.write(i),n.write(t)}return t?AF:n.final()}toJSON(){const e={...super.toJSON(),idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional};return this.primitiveSchema&&(e.primitiveSchema=this.primitiveSchema.toJSON()),e}toString(e="ascii"){return"ascii"===e?this.onAsciiEncoding():hF.Convert.ToHex(this.toBER())}onAsciiEncoding(){return`${this.constructor.NAME} : ${hF.Convert.ToHex(this.valueBlock.valueBeforeDecodeView)}`}isEqual(e){return this===e||e instanceof this.constructor&&function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),i=new Uint8Array(t);for(let r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}(this.toBER(),e.toBER())}}function TF(e){if(e instanceof OF.Constructed)for(const t of e.valueBlock.value)TF(t)&&(e.lenBlock.isIndefiniteForm=!0);return!!e.lenBlock.isIndefiniteForm}IF.NAME="BaseBlock";class MF extends IF{constructor({value:e="",...t}={},n){super(t,n),e&&this.fromString(e)}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}fromBER(e,t,n){const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}onAsciiEncoding(){return`${this.constructor.NAME} : '${this.valueBlock.value}'`}}MF.NAME="BaseStringBlock";class BF extends(SF(EF)){constructor({isHexOnly:e=!0,...t}={}){super(t),this.isHexOnly=e}}var RF,LF,FF;BF.NAME="PrimitiveValueBlock";class NF extends IF{constructor(e={}){super(e,BF),this.idBlock.isConstructed=!1}}function VF(e,t=0,n=e.length){const i=t;let r=new IF({},EF);const s=new kF;if(!wF(s,e,t,n))return r.error=s.error,{offset:-1,result:r};if(!e.subarray(t,t+n).length)return r.error="Zero buffer length",{offset:-1,result:r};let o=r.idBlock.fromBER(e,t,n);if(r.idBlock.warnings.length&&r.warnings.concat(r.idBlock.warnings),-1===o)return r.error=r.idBlock.error,{offset:-1,result:r};if(o=r.lenBlock.fromBER(e,t=o,n-=r.idBlock.blockLength),r.lenBlock.warnings.length&&r.warnings.concat(r.lenBlock.warnings),-1===o)return r.error=r.lenBlock.error,{offset:-1,result:r};if(t=o,n-=r.lenBlock.blockLength,!r.idBlock.isConstructed&&r.lenBlock.isIndefiniteForm)return r.error="Indefinite length form used for primitive encoding form",{offset:-1,result:r};let a=IF;switch(r.idBlock.tagClass){case 1:if(r.idBlock.tagNumber>=37&&!1===r.idBlock.isHexOnly)return r.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:r};switch(r.idBlock.tagNumber){case 0:if(r.idBlock.isConstructed&&r.lenBlock.length>0)return r.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:r};a=OF.EndOfContent;break;case 1:a=OF.Boolean;break;case 2:a=OF.Integer;break;case 3:a=OF.BitString;break;case 4:a=OF.OctetString;break;case 5:a=OF.Null;break;case 6:a=OF.ObjectIdentifier;break;case 10:a=OF.Enumerated;break;case 12:a=OF.Utf8String;break;case 13:a=OF.RelativeObjectIdentifier;break;case 14:a=OF.TIME;break;case 15:return r.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:r};case 16:a=OF.Sequence;break;case 17:a=OF.Set;break;case 18:a=OF.NumericString;break;case 19:a=OF.PrintableString;break;case 20:a=OF.TeletexString;break;case 21:a=OF.VideotexString;break;case 22:a=OF.IA5String;break;case 23:a=OF.UTCTime;break;case 24:a=OF.GeneralizedTime;break;case 25:a=OF.GraphicString;break;case 26:a=OF.VisibleString;break;case 27:a=OF.GeneralString;break;case 28:a=OF.UniversalString;break;case 29:a=OF.CharacterString;break;case 30:a=OF.BmpString;break;case 31:a=OF.DATE;break;case 32:a=OF.TimeOfDay;break;case 33:a=OF.DateTime;break;case 34:a=OF.Duration;break;default:{const e=r.idBlock.isConstructed?new OF.Constructed:new OF.Primitive;e.idBlock=r.idBlock,e.lenBlock=r.lenBlock,e.warnings=r.warnings,r=e}}break;case 2:case 3:case 4:default:a=r.idBlock.isConstructed?OF.Constructed:OF.Primitive}return r=function(e,t){if(e instanceof t)return e;const n=new t;return n.idBlock=e.idBlock,n.lenBlock=e.lenBlock,n.warnings=e.warnings,n.valueBeforeDecodeView=e.valueBeforeDecodeView,n}(r,a),o=r.fromBER(e,t,r.lenBlock.isIndefiniteForm?n:r.lenBlock.length),r.valueBeforeDecodeView=e.subarray(i,i+r.blockLength),{offset:o,result:r}}function zF(e){if(!e.byteLength){const e=new IF({},EF);return e.error="Input buffer has zero length",{offset:-1,result:e}}return VF(hF.BufferSourceConverter.toUint8Array(e).slice(),0,e.byteLength)}OF.Primitive=NF,NF.NAME="PRIMITIVE";class jF extends EF{constructor({value:e=[],isIndefiniteForm:t=!1,...n}={}){super(n),this.value=e,this.isIndefiniteForm=t}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;if(this.valueBeforeDecodeView=i.subarray(t,t+n),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),t;let r=t;for(;(this.isIndefiniteForm?1:n)>0;){const e=VF(i,r,n);if(-1===e.offset)return this.error=e.result.error,this.warnings.concat(e.result.warnings),-1;if(r=e.offset,this.blockLength+=e.result.blockLength,n-=e.result.blockLength,this.value.push(e.result),this.isIndefiniteForm&&"EndOfContent"===e.result.constructor.NAME)break}return this.isIndefiniteForm&&("EndOfContent"===this.value[this.value.length-1].constructor.NAME?this.value.pop():this.warnings.push("No EndOfContent block encoded")),r}toBER(e,t){const n=t||new _F;for(let i=0;i<this.value.length;i++)this.value[i].toBER(e,n);return t?AF:n.final()}toJSON(){const e={...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,value:[]};for(const t of this.value)e.value.push(t.toJSON());return e}}jF.NAME="ConstructedValueBlock";class HF extends IF{constructor(e={}){super(e,jF),this.idBlock.isConstructed=!0}fromBER(e,t,n){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}onAsciiEncoding(){const e=[];for(const n of this.valueBlock.value)e.push(n.toString("ascii").split("\n").map(e=>"  "+e).join("\n"));const t=3===this.idBlock.tagClass?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return e.length?`${t} :\n${e.join("\n")}`:t+" :"}}OF.Constructed=HF,HF.NAME="CONSTRUCTED";class UF extends EF{fromBER(e,t,n){return t}toBER(e){return AF}}UF.override="EndOfContentValueBlock";class WF extends IF{constructor(e={}){super(e,UF),this.idBlock.tagClass=1,this.idBlock.tagNumber=0}}OF.EndOfContent=WF,WF.NAME="EndOfContent";class $F extends IF{constructor(e={}){super(e,EF),this.idBlock.tagClass=1,this.idBlock.tagNumber=5}fromBER(e,t,n){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=n,t+n>e.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+n}toBER(e,t){const n=new ArrayBuffer(2);if(!e){const e=new Uint8Array(n);e[0]=5,e[1]=0}return t&&t.write(n),n}onAsciiEncoding(){return""+this.constructor.NAME}}OF.Null=$F,$F.NAME="NULL";class GF extends(SF(EF)){constructor({value:e,...t}={}){super(t),this.valueHexView=t.valueHex?hF.BufferSourceConverter.toUint8Array(t.valueHex):new Uint8Array(1),e&&(this.value=e)}get value(){for(const e of this.valueHexView)if(e>0)return!0;return!1}set value(e){this.valueHexView[0]=e?255:0}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);return wF(this,i,t,n)?(this.valueHexView=i.subarray(t,t+n),n>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,mF.call(this),this.blockLength=n,t+n):-1}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}GF.NAME="BooleanValueBlock";class qF extends IF{constructor(e={}){super(e,GF),this.idBlock.tagClass=1,this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}OF.Boolean=qF,qF.NAME="BOOLEAN";class YF extends(SF(jF)){constructor({isConstructed:e=!1,...t}={}){super(t),this.isConstructed=e}fromBER(e,t,n){let i=0;if(this.isConstructed){if(this.isHexOnly=!1,i=jF.prototype.fromBER.call(this,e,t,n),-1===i)return i;for(let e=0;e<this.value.length;e++){const t=this.value[e].constructor.NAME;if("EndOfContent"===t){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only",-1}if("OCTET STRING"!==t)return this.error="OCTET STRING may consists of OCTET STRINGs only",-1}}else this.isHexOnly=!0,i=super.fromBER(e,t,n),this.blockLength=n;return i}toBER(e,t){return this.isConstructed?jF.prototype.toBER.call(this,e,t):e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),isConstructed:this.isConstructed}}}YF.NAME="OctetStringValueBlock";class ZF extends IF{constructor({idBlock:e={},lenBlock:t={},...n}={}){var i,r;null!==(i=n.isConstructed)&&void 0!==i||(n.isConstructed=!!(null===(r=n.value)||void 0===r?void 0:r.length)),super({idBlock:{isConstructed:n.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!n.isIndefiniteForm},...n},YF),this.idBlock.tagClass=1,this.idBlock.tagNumber=4}fromBER(e,t,n){if(this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,0===n)return 0===this.idBlock.error.length&&(this.blockLength+=this.idBlock.blockLength),0===this.lenBlock.error.length&&(this.blockLength+=this.lenBlock.blockLength),t;if(!this.valueBlock.isConstructed){const r=(e instanceof ArrayBuffer?new Uint8Array(e):e).subarray(t,t+n);try{if(r.byteLength){const e=VF(r,0,r.byteLength);-1!==e.offset&&e.offset===n&&(this.valueBlock.value=[e.result])}}catch(i){}}return super.fromBER(e,t,n)}onAsciiEncoding(){return this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length?HF.prototype.onAsciiEncoding.call(this):`${this.constructor.NAME} : ${hF.Convert.ToHex(this.valueBlock.valueHexView)}`}getValue(){if(!this.idBlock.isConstructed)return this.valueBlock.valueHexView.slice().buffer;const e=[];for(const t of this.valueBlock.value)t instanceof ZF&&e.push(t.valueBlock.valueHexView);return hF.BufferSourceConverter.concat(e)}}OF.OctetString=ZF,ZF.NAME="OCTET STRING";class KF extends(SF(jF)){constructor({unusedBits:e=0,isConstructed:t=!1,...n}={}){super(n),this.unusedBits=e,this.isConstructed=t,this.blockLength=this.valueHexView.byteLength}fromBER(e,t,n){if(!n)return t;let i=-1;if(this.isConstructed){if(i=jF.prototype.fromBER.call(this,e,t,n),-1===i)return i;for(const e of this.value){const t=e.constructor.NAME;if("EndOfContent"===t){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if("BIT STRING"!==t)return this.error="BIT STRING may consists of BIT STRINGs only",-1;const n=e.valueBlock;if(this.unusedBits>0&&n.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=n.unusedBits}return i}const r=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,r,t,n))return-1;const s=r.subarray(t,t+n);if(this.unusedBits=s[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){const e=s.subarray(1);try{if(e.byteLength){const t=VF(e,0,e.byteLength);-1!==t.offset&&t.offset===n-1&&(this.value=[t.result])}}catch(o){}}return this.valueHexView=s.subarray(1),this.blockLength=s.length,t+n}toBER(e,t){if(this.isConstructed)return jF.prototype.toBER.call(this,e,t);if(e)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return AF;const n=new Uint8Array(this.valueHexView.length+1);return n[0]=this.unusedBits,n.set(this.valueHexView,1),n.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}KF.NAME="BitStringValueBlock";class QF extends IF{constructor({idBlock:e={},lenBlock:t={},...n}={}){var i,r;null!==(i=n.isConstructed)&&void 0!==i||(n.isConstructed=!!(null===(r=n.value)||void 0===r?void 0:r.length)),super({idBlock:{isConstructed:n.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!n.isIndefiniteForm},...n},KF),this.idBlock.tagClass=1,this.idBlock.tagNumber=3}fromBER(e,t,n){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,super.fromBER(e,t,n)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return HF.prototype.onAsciiEncoding.call(this);{const e=[],t=this.valueBlock.valueHexView;for(const i of t)e.push(i.toString(2).padStart(8,"0"));const n=e.join("");return`${this.constructor.NAME} : ${n.substring(0,n.length-this.valueBlock.unusedBits)}`}}}function XF(e,t){const n=new Uint8Array([0]),i=new Uint8Array(e),r=new Uint8Array(t);let s=i.slice(0);const o=s.length-1,a=r.slice(0),l=a.length-1;let c=0,u=0;for(let d=l<o?o:l;d>=0;d--,u++){switch(!0){case u<a.length:c=s[o-u]+a[l-u]+n[0];break;default:c=s[o-u]+n[0]}switch(n[0]=c/10,!0){case u>=s.length:s=fF(new Uint8Array([c%10]),s);break;default:s[o-u]=c%10}}return n[0]>0&&(s=fF(n,s)),s}function JF(e){if(e>=xF.length)for(let t=xF.length;t<=e;t++){const e=new Uint8Array([0]);let n=xF[t-1].slice(0);for(let t=n.length-1;t>=0;t--){const i=new Uint8Array([(n[t]<<1)+e[0]]);e[0]=i[0]/10,n[t]=i[0]%10}e[0]>0&&(n=fF(e,n)),xF.push(n)}return xF[e]}function eN(e,t){let n=0;const i=new Uint8Array(e),r=new Uint8Array(t),s=i.slice(0),o=s.length-1,a=r.slice(0),l=a.length-1;let c,u=0;for(let d=l;d>=0;d--,u++)switch(c=s[o-u]-a[l-u]-n,!0){case c<0:n=1,s[o-u]=c+10;break;default:n=0,s[o-u]=c}if(n>0)for(let d=o-l+1;d>=0;d--,u++){if(c=s[o-u]-n,!(c<0)){n=0,s[o-u]=c;break}n=1,s[o-u]=c+10}return s.slice()}OF.BitString=QF,QF.NAME="BIT STRING";class tN extends(SF(EF)){constructor({value:e,...t}={}){super(t),this._valueDec=0,t.valueHex&&this.setValueHex(),void 0!==e&&(this.valueDec=e)}setValueHex(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=mF.call(this)))}set valueDec(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function(e){const t=e<0?-1*e:e;let n=128;for(let i=1;i<8;i++){if(t<=n){if(e<0){const e=gF(n-t,8,i);return new Uint8Array(e)[0]|=128,e}let r=gF(t,8,i),s=new Uint8Array(r);if(128&s[0]){const e=r.slice(0),t=new Uint8Array(e);r=new ArrayBuffer(r.byteLength+1),s=new Uint8Array(r);for(let n=0;n<e.byteLength;n++)s[n+1]=t[n];s[0]=0}return r}n*=Math.pow(2,8)}return new ArrayBuffer(0)}(e))}get valueDec(){return this._valueDec}fromDER(e,t,n,i=0){const r=this.fromBER(e,t,n);if(-1===r)return r;const s=this.valueHexView;return 0===s[0]&&0!=(128&s[1])?this.valueHexView=s.subarray(1):0!==i&&s.length<i&&(i-s.length>1&&(i=s.length+1),this.valueHexView=s.subarray(i-s.length)),r}toDER(e=!1){const t=this.valueHexView;switch(!0){case 0!=(128&t[0]):{const e=new Uint8Array(this.valueHexView.length+1);e[0]=0,e.set(t,1),this.valueHexView=e}break;case 0===t[0]&&0==(128&t[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}fromBER(e,t,n){const i=super.fromBER(e,t,n);return-1===i||this.setValueHex(),i}toBER(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const e=8*this.valueHexView.length-1;let t,n=new Uint8Array(8*this.valueHexView.length/3),i=0;const r=this.valueHexView;let s="",o=!1;for(let a=r.byteLength-1;a>=0;a--){t=r[a];for(let r=0;r<8;r++){if(1==(1&t))switch(i){case e:n=eN(JF(i),n),s="-";break;default:n=XF(n,JF(i))}i++,t>>=1}}for(let a=0;a<n.length;a++)n[a]&&(o=!0),o&&(s+="0123456789".charAt(n[a]));return!1===o&&(s+="0123456789".charAt(0)),s}}RF=tN,tN.NAME="IntegerValueBlock",Object.defineProperty(RF.prototype,"valueHex",{set:function(e){this.valueHexView=new Uint8Array(e),this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}});class nN extends IF{constructor(e={}){super(e,tN),this.idBlock.tagClass=1,this.idBlock.tagNumber=2}toBigInt(){return bF(),BigInt(this.valueBlock.toString())}static fromBigInt(e){bF();const t=BigInt(e),n=new _F,i=t.toString(16).replace(/^-/,""),r=new Uint8Array(hF.Convert.FromHex(i));if(t<0){const e=new Uint8Array(r.length+(128&r[0]?1:0));e[0]|=128;const i=BigInt("0x"+hF.Convert.ToHex(e)),s=hF.BufferSourceConverter.toUint8Array(hF.Convert.FromHex((i+t).toString(16)));s[0]|=128,n.write(s)}else 128&r[0]&&n.write(new Uint8Array([0])),n.write(r);return new nN({valueHex:n.final()})}convertToDER(){const e=new nN({valueHex:this.valueBlock.valueHexView});return e.valueBlock.toDER(),e}convertFromDER(){return new nN({valueHex:0===this.valueBlock.valueHexView[0]?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()}`}}OF.Integer=nN,nN.NAME="INTEGER";class iN extends nN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=10}}OF.Enumerated=iN,iN.NAME="ENUMERATED";class rN extends(SF(EF)){constructor({valueDec:e=-1,isFirstSid:t=!1,...n}={}){super(n),this.valueDec=e,this.isFirstSid=t}fromBER(e,t,n){if(!n)return t;const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(let o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);const s=new Uint8Array(this.blockLength);for(let o=0;o<this.blockLength;o++)s[o]=this.valueHexView[o];return this.valueHexView=s,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=pF(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}set valueBigInt(e){bF();let t=BigInt(e).toString(2);for(;t.length%7;)t="0"+t;const n=new Uint8Array(t.length/7);for(let i=0;i<n.length;i++)n[i]=parseInt(t.slice(7*i,7*i+7),2)+(i+1<n.length?128:0);this.fromBER(n.buffer,0,n.length)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);const t=this.valueHexView,n=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)n[e]=128|t[e];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}const t=gF(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",AF;const n=new Uint8Array(t.byteLength);if(!e){const e=new Uint8Array(t),i=t.byteLength-1;for(let t=0;t<i;t++)n[t]=128|e[t];n[i]=e[i]}return n}toString(){let e="";if(this.isHexOnly)e=hF.Convert.ToHex(this.valueHexView);else if(this.isFirstSid){let t=this.valueDec;this.valueDec<=39?e="0.":this.valueDec<=79?(e="1.",t-=40):(e="2.",t-=80),e+=t.toString()}else e=this.valueDec.toString();return e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec,isFirstSid:this.isFirstSid}}}rN.NAME="sidBlock";class sN extends EF{constructor({value:e="",...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,n){let i=t;for(;n>0;){const t=new rN;if(i=t.fromBER(e,i,n),-1===i)return this.blockLength=0,this.error=t.error,i;0===this.value.length&&(t.isFirstSid=!0),this.blockLength+=t.blockLength,n-=t.blockLength,this.value.push(t)}return i}toBER(e){const t=[];for(let n=0;n<this.value.length;n++){const i=this.value[n].toBER(e);if(0===i.byteLength)return this.error=this.value[n].error,AF;t.push(i)}return yF(t)}fromString(e){this.value=[];let t=0,n=0,i="",r=!1;do{if(n=e.indexOf(".",t),i=-1===n?e.substring(t):e.substring(t,n),t=n+1,r){const e=this.value[0];let t=0;switch(e.valueDec){case 0:break;case 1:t=40;break;case 2:t=80;break;default:return void(this.value=[])}const n=parseInt(i,10);if(isNaN(n))return;e.valueDec=n+t,r=!1}else{const e=new rN;if(i>Number.MAX_SAFE_INTEGER){bF();const t=BigInt(i);e.valueBigInt=t}else if(e.valueDec=parseInt(i,10),isNaN(e.valueDec))return;this.value.length||(e.isFirstSid=!0,r=!0),this.value.push(e)}}while(-1!==n)}toString(){let e="",t=!1;for(let n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;let i=this.value[n].toString();0!==n&&(e+="."),t?(i=`{${i}}`,this.value[n].isFirstSid?e=`2.{${i} - 80}`:e+=i):e+=i}return e}toJSON(){const e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}sN.NAME="ObjectIdentifierValueBlock";class oN extends IF{constructor(e={}){super(e,sN),this.idBlock.tagClass=1,this.idBlock.tagNumber=6}getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}OF.ObjectIdentifier=oN,oN.NAME="OBJECT IDENTIFIER";class aN extends(SF(kF)){constructor({valueDec:e=0,...t}={}){super(t),this.valueDec=e}fromBER(e,t,n){if(0===n)return t;const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(let o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);const s=new Uint8Array(this.blockLength);for(let o=0;o<this.blockLength;o++)s[o]=this.valueHexView[o];return this.valueHexView=s,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=pF(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);const t=this.valueHexView,n=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)n[e]=128|t[e];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}const t=gF(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",AF;const n=new Uint8Array(t.byteLength);if(!e){const e=new Uint8Array(t),i=t.byteLength-1;for(let t=0;t<i;t++)n[t]=128|e[t];n[i]=e[i]}return n.buffer}toString(){let e="";return e=this.isHexOnly?hF.Convert.ToHex(this.valueHexView):this.valueDec.toString(),e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}}aN.NAME="relativeSidBlock";class lN extends EF{constructor({value:e="",...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,n){let i=t;for(;n>0;){const t=new aN;if(i=t.fromBER(e,i,n),-1===i)return this.blockLength=0,this.error=t.error,i;this.blockLength+=t.blockLength,n-=t.blockLength,this.value.push(t)}return i}toBER(e,t){const n=[];for(let i=0;i<this.value.length;i++){const t=this.value[i].toBER(e);if(0===t.byteLength)return this.error=this.value[i].error,AF;n.push(t)}return yF(n)}fromString(e){this.value=[];let t=0,n=0,i="";do{n=e.indexOf(".",t),i=-1===n?e.substring(t):e.substring(t,n),t=n+1;const r=new aN;if(r.valueDec=parseInt(i,10),isNaN(r.valueDec))return!0;this.value.push(r)}while(-1!==n);return!0}toString(){let e="",t=!1;for(let n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;let i=this.value[n].toString();0!==n&&(e+="."),t?(i=`{${i}}`,e+=i):e+=i}return e}toJSON(){const e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}lN.NAME="RelativeObjectIdentifierValueBlock";class cN extends IF{constructor(e={}){super(e,lN),this.idBlock.tagClass=1,this.idBlock.tagNumber=13}getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}OF.RelativeObjectIdentifier=cN,cN.NAME="RelativeObjectIdentifier";class uN extends HF{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=16}}OF.Sequence=uN,uN.NAME="SEQUENCE";class dN extends HF{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=17}}OF.Set=dN,dN.NAME="SET";class hN extends(SF(EF)){constructor({...e}={}){super(e),this.isHexOnly=!0,this.value=""}toJSON(){return{...super.toJSON(),value:this.value}}}hN.NAME="StringValueBlock";class pN extends hN{}pN.NAME="SimpleStringValueBlock";class gN extends MF{constructor({...e}={}){super(e,pN)}fromBuffer(e){this.valueBlock.value=String.fromCharCode.apply(null,hF.BufferSourceConverter.toUint8Array(e))}fromString(e){const t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e.charCodeAt(i);this.valueBlock.value=e}}gN.NAME="SIMPLE STRING";class fN extends gN{fromBuffer(e){this.valueBlock.valueHexView=hF.BufferSourceConverter.toUint8Array(e);try{this.valueBlock.value=hF.Convert.ToUtf8String(e)}catch(t){this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`),this.valueBlock.value=hF.Convert.ToBinary(e)}}fromString(e){this.valueBlock.valueHexView=new Uint8Array(hF.Convert.FromUtf8String(e)),this.valueBlock.value=e}}fN.NAME="Utf8StringValueBlock";class mN extends fN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=12}}OF.Utf8String=mN,mN.NAME="UTF8String";class vN extends gN{fromBuffer(e){this.valueBlock.value=hF.Convert.ToUtf16String(e),this.valueBlock.valueHexView=hF.BufferSourceConverter.toUint8Array(e)}fromString(e){this.valueBlock.value=e,this.valueBlock.valueHexView=new Uint8Array(hF.Convert.FromUtf16String(e))}}vN.NAME="BmpStringValueBlock";class bN extends vN{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=30}}OF.BmpString=bN,bN.NAME="BMPString";class yN extends gN{fromBuffer(e){const t=ArrayBuffer.isView(e)?e.slice().buffer:e.slice(0),n=new Uint8Array(t);for(let i=0;i<n.length;i+=4)n[i]=n[i+3],n[i+1]=n[i+2],n[i+2]=0,n[i+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(t))}fromString(e){const t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(4*t);for(let i=0;i<t;i++){const t=gF(e.charCodeAt(i),8),r=new Uint8Array(t);if(r.length>4)continue;const s=4-r.length;for(let e=r.length-1;e>=0;e--)n[4*i+e+s]=r[e]}this.valueBlock.value=e}}yN.NAME="UniversalStringValueBlock";class wN extends yN{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=28}}OF.UniversalString=wN,wN.NAME="UniversalString";class _N extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=18}}OF.NumericString=_N,_N.NAME="NumericString";class xN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=19}}OF.PrintableString=xN,xN.NAME="PrintableString";class AN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=20}}OF.TeletexString=AN,AN.NAME="TeletexString";class CN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=21}}OF.VideotexString=CN,CN.NAME="VideotexString";class SN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=22}}OF.IA5String=SN,SN.NAME="IA5String";class kN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=25}}OF.GraphicString=kN,kN.NAME="GraphicString";class EN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=26}}OF.VisibleString=EN,EN.NAME="VisibleString";class PN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=27}}OF.GeneralString=PN,PN.NAME="GeneralString";class DN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=29}}OF.CharacterString=DN,DN.NAME="CharacterString";class ON extends EN{constructor({value:e,valueDate:t,...n}={}){if(super(n),this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,e){this.fromString(e),this.valueBlock.valueHexView=new Uint8Array(e.length);for(let t=0;t<e.length;t++)this.valueBlock.valueHexView[t]=e.charCodeAt(t)}t&&(this.fromDate(t),this.valueBlock.valueHexView=new Uint8Array(this.toBuffer())),this.idBlock.tagClass=1,this.idBlock.tagNumber=23}fromBuffer(e){this.fromString(String.fromCharCode.apply(null,hF.BufferSourceConverter.toUint8Array(e)))}toBuffer(){const e=this.toString(),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return t}fromDate(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))}fromString(e){const t=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi.exec(e);if(null===t)return void(this.error="Wrong input string for conversion");const n=parseInt(t[1],10);this.year=n>=50?1900+n:2e3+n,this.month=parseInt(t[2],10),this.day=parseInt(t[3],10),this.hour=parseInt(t[4],10),this.minute=parseInt(t[5],10),this.second=parseInt(t[6],10)}toString(e="iso"){if("iso"===e){const e=new Array(7);return e[0]=vF(this.year<2e3?this.year-1900:this.year-2e3,2),e[1]=vF(this.month,2),e[2]=vF(this.day,2),e[3]=vF(this.hour,2),e[4]=vF(this.minute,2),e[5]=vF(this.second,2),e[6]="Z",e.join("")}return super.toString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}OF.UTCTime=ON,ON.NAME="UTCTime";class IN extends ON{constructor(e={}){var t;super(e),null!==(t=this.millisecond)&&void 0!==t||(this.millisecond=0),this.idBlock.tagClass=1,this.idBlock.tagNumber=24}fromDate(e){super.fromDate(e),this.millisecond=e.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(e){let t,n=!1,i="",r="",s=0,o=0,a=0;if("Z"===e[e.length-1])i=e.substring(0,e.length-1),n=!0;else{const t=new Number(e[e.length-1]);if(isNaN(t.valueOf()))throw new Error("Wrong input string for conversion");i=e}if(n){if(-1!==i.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==i.indexOf("-"))throw new Error("Wrong input string for conversion")}else{let e=1,t=i.indexOf("+"),n="";if(-1===t&&(t=i.indexOf("-"),e=-1),-1!==t){if(n=i.substring(t+1),i=i.substring(0,t),2!==n.length&&4!==n.length)throw new Error("Wrong input string for conversion");let r=parseInt(n.substring(0,2),10);if(isNaN(r.valueOf()))throw new Error("Wrong input string for conversion");if(o=e*r,4===n.length){if(r=parseInt(n.substring(2,4),10),isNaN(r.valueOf()))throw new Error("Wrong input string for conversion");a=e*r}}}let l=i.indexOf(".");if(-1===l&&(l=i.indexOf(",")),-1!==l){const e=new Number("0"+i.substring(l));if(isNaN(e.valueOf()))throw new Error("Wrong input string for conversion");s=e.valueOf(),r=i.substring(0,l)}else r=i;switch(!0){case 8===r.length:if(t=/(\d{4})(\d{2})(\d{2})/gi,-1!==l)throw new Error("Wrong input string for conversion");break;case 10===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==l){let e=60*s;this.minute=Math.floor(e),e=60*(e-this.minute),this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 12===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==l){let e=60*s;this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 14===r.length:t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==l&&(this.millisecond=Math.floor(1e3*s));break;default:throw new Error("Wrong input string for conversion")}const c=t.exec(r);if(null===c)throw new Error("Wrong input string for conversion");for(let u=1;u<c.length;u++)switch(u){case 1:this.year=parseInt(c[u],10);break;case 2:this.month=parseInt(c[u],10);break;case 3:this.day=parseInt(c[u],10);break;case 4:this.hour=parseInt(c[u],10)+o;break;case 5:this.minute=parseInt(c[u],10)+a;break;case 6:this.second=parseInt(c[u],10);break;default:throw new Error("Wrong input string for conversion")}if(!1===n){const e=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=e.getUTCFullYear(),this.month=e.getUTCMonth(),this.day=e.getUTCDay(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds(),this.millisecond=e.getUTCMilliseconds()}}toString(e="iso"){if("iso"===e){const e=[];return e.push(vF(this.year,4)),e.push(vF(this.month,2)),e.push(vF(this.day,2)),e.push(vF(this.hour,2)),e.push(vF(this.minute,2)),e.push(vF(this.second,2)),0!==this.millisecond&&(e.push("."),e.push(vF(this.millisecond,3))),e.push("Z"),e.join("")}return super.toString(e)}toJSON(){return{...super.toJSON(),millisecond:this.millisecond}}}OF.GeneralizedTime=IN,IN.NAME="GeneralizedTime";class TN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=31}}OF.DATE=TN,TN.NAME="DATE";class MN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=32}}OF.TimeOfDay=MN,MN.NAME="TimeOfDay";class BN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=33}}OF.DateTime=BN,BN.NAME="DateTime";class RN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=34}}OF.Duration=RN,RN.NAME="Duration";class LN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=14}}OF.TIME=LN,LN.NAME="TIME";class FN{constructor({name:e="",optional:t=!1}={}){this.name=e,this.optional=t}}class NN extends FN{constructor({value:e=[],...t}={}){super(t),this.value=e}}class VN extends FN{constructor({value:e=new FN,local:t=!1,...n}={}){super(n),this.value=e,this.local=t}}class zN{constructor({data:e=CF}={}){this.dataView=hF.BufferSourceConverter.toUint8Array(e)}get data(){return this.dataView.slice().buffer}set data(e){this.dataView=hF.BufferSourceConverter.toUint8Array(e)}fromBER(e,t,n){const i=t+n;return this.dataView=hF.BufferSourceConverter.toUint8Array(e).subarray(t,i),i}toBER(e){return this.dataView.slice().buffer}}function jN(e,t,n){if(n instanceof NN){for(let i=0;i<n.value.length;i++)if(jN(e,t,n.value[i]).verified)return{verified:!0,result:e};{const e={verified:!1,result:{error:"Wrong values for Choice type"}};return n.hasOwnProperty("name")&&(e.name=n.name),e}}if(n instanceof FN)return n.hasOwnProperty("name")&&(e[n.name]=t),{verified:!0,result:e};if(e instanceof Object==0)return{verified:!1,result:{error:"Wrong root object"}};if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 data"}};if(n instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("idBlock"in n==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("fromBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("toBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};const i=n.idBlock.toBER(!1);if(0===i.byteLength)return{verified:!1,result:{error:"Error encoding idBlock for ASN.1 schema"}};if(-1===n.idBlock.fromBER(i,0,i.byteLength))return{verified:!1,result:{error:"Error decoding idBlock for ASN.1 schema"}};if(!1===n.idBlock.hasOwnProperty("tagClass"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagClass!==t.idBlock.tagClass)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("tagNumber"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagNumber!==t.idBlock.tagNumber)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("isConstructed"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isConstructed!==t.idBlock.isConstructed)return{verified:!1,result:e};if(!("isHexOnly"in n.idBlock))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isHexOnly!==t.idBlock.isHexOnly)return{verified:!1,result:e};if(n.idBlock.isHexOnly){if("valueHexView"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};const i=n.idBlock.valueHexView,r=t.idBlock.valueHexView;if(i.length!==r.length)return{verified:!1,result:e};for(let t=0;t<i.length;t++)if(i[t]!==r[1])return{verified:!1,result:e}}if(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(e[n.name]=t)),n instanceof OF.Constructed){let i=0,r={verified:!1,result:{error:"Unknown error"}},s=n.valueBlock.value.length;if(s>0&&n.valueBlock.value[0]instanceof VN&&(s=t.valueBlock.value.length),0===s)return{verified:!0,result:e};if(0===t.valueBlock.value.length&&0!==n.valueBlock.value.length){let t=!0;for(let e=0;e<n.valueBlock.value.length;e++)t=t&&(n.valueBlock.value[e].optional||!1);return t?{verified:!0,result:e}:(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),e.error="Inconsistent object length",{verified:!1,result:e})}for(let o=0;o<s;o++)if(o-i>=t.valueBlock.value.length){if(!1===n.valueBlock.value[o].optional){const t={verified:!1,result:e};return e.error="Inconsistent length between ASN.1 data and schema",n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],t.name=n.name)),t}}else if(n.valueBlock.value[0]instanceof VN){if(r=jN(e,t.valueBlock.value[o],n.valueBlock.value[0].value),!1===r.verified){if(!n.valueBlock.value[0].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),r;i++}if("name"in n.valueBlock.value[0]&&n.valueBlock.value[0].name.length>0){let i={};i="local"in n.valueBlock.value[0]&&n.valueBlock.value[0].local?t:e,void 0===i[n.valueBlock.value[0].name]&&(i[n.valueBlock.value[0].name]=[]),i[n.valueBlock.value[0].name].push(t.valueBlock.value[o])}}else if(r=jN(e,t.valueBlock.value[o-i],n.valueBlock.value[o]),!1===r.verified){if(!n.valueBlock.value[o].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),r;i++}if(!1===r.verified){const t={verified:!1,result:e};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],t.name=n.name)),t}return{verified:!0,result:e}}if(n.primitiveSchema&&"valueHexView"in t.valueBlock){const i=VF(t.valueBlock.valueHexView);if(-1===i.offset){const t={verified:!1,result:i.result};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],t.name=n.name)),t}return jN(e,i.result,n.primitiveSchema)}return{verified:!0,result:e}}function HN(e,t){if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};const n=VF(hF.BufferSourceConverter.toUint8Array(e));return-1===n.offset?{verified:!1,result:n.result}:jN(n.result,n.result,t)}!function(e){e[e.Sequence=0]="Sequence",e[e.Set=1]="Set",e[e.Choice=2]="Choice"}(LF||(LF={})),function(e){e[e.Any=1]="Any",e[e.Boolean=2]="Boolean",e[e.OctetString=3]="OctetString",e[e.BitString=4]="BitString",e[e.Integer=5]="Integer",e[e.Enumerated=6]="Enumerated",e[e.ObjectIdentifier=7]="ObjectIdentifier",e[e.Utf8String=8]="Utf8String",e[e.BmpString=9]="BmpString",e[e.UniversalString=10]="UniversalString",e[e.NumericString=11]="NumericString",e[e.PrintableString=12]="PrintableString",e[e.TeletexString=13]="TeletexString",e[e.VideotexString=14]="VideotexString",e[e.IA5String=15]="IA5String",e[e.GraphicString=16]="GraphicString",e[e.VisibleString=17]="VisibleString",e[e.GeneralString=18]="GeneralString",e[e.CharacterString=19]="CharacterString",e[e.UTCTime=20]="UTCTime",e[e.GeneralizedTime=21]="GeneralizedTime",e[e.DATE=22]="DATE",e[e.TimeOfDay=23]="TimeOfDay",e[e.DateTime=24]="DateTime",e[e.Duration=25]="Duration",e[e.TIME=26]="TIME",e[e.Null=27]="Null"}(FF||(FF={}));class UN{constructor(e,t=0){if(this.unusedBits=0,this.value=new ArrayBuffer(0),e)if("number"==typeof e)this.fromNumber(e);else{if(!hF.BufferSourceConverter.isBufferSource(e))throw TypeError("Unsupported type of 'params' argument for BitString");this.unusedBits=t,this.value=hF.BufferSourceConverter.toArrayBuffer(e)}}fromASN(e){if(!(e instanceof QF))throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");return this.unusedBits=e.valueBlock.unusedBits,this.value=e.valueBlock.valueHex,this}toASN(){return new QF({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(e){return new QF({name:e})}toNumber(){let e="";const t=new Uint8Array(this.value);for(const n of t)e+=n.toString(2).padStart(8,"0");return e=e.split("").reverse().join(""),this.unusedBits&&(e=e.slice(this.unusedBits).padStart(this.unusedBits,"0")),parseInt(e,2)}fromNumber(e){let t=e.toString(2);const n=t.length+7>>3;this.unusedBits=(n<<3)-t.length;const i=new Uint8Array(n);t=t.padStart(n<<3,"0").split("").reverse().join("");let r=0;for(;r<n;)i[r]=parseInt(t.slice(r<<3,8+(r<<3)),2),r++;this.value=i.buffer}}class WN{constructor(e){this.buffer="number"==typeof e?new ArrayBuffer(e):hF.BufferSourceConverter.isBufferSource(e)?hF.BufferSourceConverter.toArrayBuffer(e):Array.isArray(e)?new Uint8Array(e):new ArrayBuffer(0)}get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}fromASN(e){if(!(e instanceof ZF))throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");return this.buffer=e.valueBlock.valueHex,this}toASN(){return new ZF({valueHex:this.buffer})}toSchema(e){return new ZF({name:e})}}const $N={fromASN:e=>e instanceof $F?null:e.valueBeforeDecodeView,toASN:e=>{if(null===e)return new $F;const t=zF(e);if(t.result.error)throw new Error(t.result.error);return t.result}},GN={fromASN:e=>e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec,toASN:e=>new nN({value:+e})},qN={fromASN:e=>e.valueBlock.valueDec,toASN:e=>new iN({value:e})},YN={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new nN({valueHex:e})},ZN={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new QF({valueHex:e})},KN={fromASN:e=>e.valueBlock.toString(),toASN:e=>new oN({value:e})},QN={fromASN:e=>e.valueBlock.value,toASN:e=>new qF({value:e})},XN={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new ZF({valueHex:e})},JN={fromASN:e=>new WN(e.getValue()),toASN:e=>e.toASN()};function eV(e){return{fromASN:e=>e.valueBlock.value,toASN:t=>new e({value:t})}}const tV=eV(mN),nV=eV(bN),iV=eV(wN),rV=eV(_N),sV=eV(xN),oV=eV(AN),aV=eV(CN),lV=eV(SN),cV=eV(kN),uV=eV(EN),dV=eV(PN),hV=eV(DN),pV={fromASN:e=>e.toDate(),toASN:e=>new ON({valueDate:e})},gV={fromASN:e=>e.toDate(),toASN:e=>new IN({valueDate:e})},fV={fromASN:()=>null,toASN:()=>new $F};function mV(e){switch(e){case FF.Any:return $N;case FF.BitString:return ZN;case FF.BmpString:return nV;case FF.Boolean:return QN;case FF.CharacterString:return hV;case FF.Enumerated:return qN;case FF.GeneralString:return dV;case FF.GeneralizedTime:return gV;case FF.GraphicString:return cV;case FF.IA5String:return lV;case FF.Integer:return GN;case FF.Null:return fV;case FF.NumericString:return rV;case FF.ObjectIdentifier:return KN;case FF.OctetString:return XN;case FF.PrintableString:return sV;case FF.TeletexString:return oV;case FF.UTCTime:return pV;case FF.UniversalString:return iV;case FF.Utf8String:return tV;case FF.VideotexString:return aV;case FF.VisibleString:return uV;default:return null}}function vV(e){return"function"==typeof e&&e.prototype?!(!e.prototype.toASN||!e.prototype.fromASN)||vV(e.prototype):!!(e&&"object"==typeof e&&"toASN"in e&&"fromASN"in e)}function bV(e){var t;if(e){const n=Object.getPrototypeOf(e);return(null===(t=null==n?void 0:n.prototype)||void 0===t?void 0:t.constructor)===Array||bV(n)}return!1}function yV(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}const wV=new class{constructor(){this.items=new WeakMap}has(e){return this.items.has(e)}get(e,t=!1){const n=this.items.get(e);if(!n)throw new Error(`Cannot get schema for '${e.prototype.constructor.name}' target`);if(t&&!n.schema)throw new Error(`Schema '${e.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`);return n}cache(e){const t=this.get(e);t.schema||(t.schema=this.create(e,!0))}createDefault(e){const t={type:LF.Sequence,items:{}},n=this.findParentSchema(e);return n&&(Object.assign(t,n),t.items=Object.assign({},t.items,n.items)),t}create(e,t){const n=this.items.get(e)||this.createDefault(e),r=[];for(const s in n.items){const e=n.items[s],o=t?s:"";let a;if("number"==typeof e.type){const t=FF[e.type],n=i[t];if(!n)throw new Error(`Cannot get ASN1 class by name '${t}'`);a=new n({name:o})}else vV(e.type)?a=(new e.type).toSchema(o):e.optional?this.get(e.type).type===LF.Choice?a=new FN({name:o}):(a=this.create(e.type,!1),a.name=o):a=new FN({name:o});const l=!!e.optional||void 0!==e.defaultValue;if(e.repeated&&(a.name="",a=new("set"===e.repeated?dN:uN)({name:"",value:[new VN({name:o,value:a})]})),null!=e.context)if(e.implicit)if("number"==typeof e.type||vV(e.type))r.push(new(e.repeated?HF:NF)({name:o,optional:l,idBlock:{tagClass:3,tagNumber:e.context}}));else{this.cache(e.type);const t=!!e.repeated;let n=t?a:this.get(e.type,!0).schema;n="valueBlock"in n?n.valueBlock.value:n.value,r.push(new HF({name:t?"":o,optional:l,idBlock:{tagClass:3,tagNumber:e.context},value:n}))}else r.push(new HF({optional:l,idBlock:{tagClass:3,tagNumber:e.context},value:[a]}));else a.optional=l,r.push(a)}switch(n.type){case LF.Sequence:return new uN({value:r,name:""});case LF.Set:return new dN({value:r,name:""});case LF.Choice:return new NN({value:r,name:""});default:throw new Error("Unsupported ASN1 type in use")}}set(e,t){return this.items.set(e,t),this}findParentSchema(e){const t=Object.getPrototypeOf(e);return t?this.items.get(t)||this.findParentSchema(t):null}},_V=e=>t=>{let n;wV.has(t)?n=wV.get(t):(n=wV.createDefault(t),wV.set(t,n)),Object.assign(n,e)},xV=e=>(t,n)=>{let i;wV.has(t.constructor)?i=wV.get(t.constructor):(i=wV.createDefault(t.constructor),wV.set(t.constructor,i));const r=Object.assign({},e);if("number"==typeof r.type&&!r.converter){const i=mV(e.type);if(!i)throw new Error(`Cannot get default converter for property '${n}' of ${t.constructor.name}`);r.converter=i}i.items[n]=r};class AV extends Error{constructor(){super(...arguments),this.schemas=[]}}class CV{static parse(e,t){const n=zF(e);if(n.result.error)throw new Error(n.result.error);return this.fromASN(n.result,t)}static fromASN(e,t){var n;try{if(vV(t))return(new t).fromASN(e);const r=wV.get(t);wV.cache(t);let s=r.schema;if(e.constructor===HF&&r.type!==LF.Choice){s=new HF({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:r.schema.valueBlock.value});for(const t in r.items)delete e[t]}const o=jN({},e,s);if(!o.verified)throw new AV(`Data does not match to ${t.name} ASN1 schema. ${o.result.error}`);const a=new t;if(bV(t)){if(!("value"in e.valueBlock)||!Array.isArray(e.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");const n=r.itemType;if("number"==typeof n){const i=mV(n);if(!i)throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);return t.from(e.valueBlock.value,e=>i.fromASN(e))}return t.from(e.valueBlock.value,e=>this.fromASN(e,n))}for(const e in r.items){const t=o.result[e];if(!t)continue;const s=r.items[e],l=s.type;if("number"==typeof l||vV(l)){const r=null!==(n=s.converter)&&void 0!==n?n:vV(l)?new l:null;if(!r)throw new Error("Converter is empty");if(s.repeated)if(s.implicit){const n=new("sequence"===s.repeated?uN:dN);n.valueBlock=t.valueBlock;const i=zF(n.toBER(!1));if(-1===i.offset)throw new Error("Cannot parse the child item. "+i.result.error);if(!("value"in i.result.valueBlock)||!Array.isArray(i.result.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");a[e]=Array.from(i.result.valueBlock.value,e=>r.fromASN(e))}else a[e]=Array.from(t,e=>r.fromASN(e));else{let n=t;if(s.implicit){let e;if(vV(l))e=(new l).toSchema("");else{const t=FF[l],n=i[t];if(!n)throw new Error(`Cannot get '${t}' class from asn1js module`);e=new n}e.valueBlock=n.valueBlock,n=zF(e.toBER(!1)).result}a[e]=r.fromASN(n)}}else if(s.repeated){if(!Array.isArray(t))throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");a[e]=Array.from(t,e=>this.fromASN(e,l))}else a[e]=this.fromASN(t,l)}return a}catch(r){throw r instanceof AV&&r.schemas.push(t.name),r}}}class SV{static serialize(e){return e instanceof IF?e.toBER(!1):this.toASN(e).toBER(!1)}static toASN(e){if(e&&"object"==typeof e&&vV(e))return e.toASN();if(!e||"object"!=typeof e)throw new TypeError("Parameter 1 should be type of Object.");const t=e.constructor,n=wV.get(t);wV.cache(t);let i,r=[];if(n.itemType){if(!Array.isArray(e))throw new TypeError("Parameter 1 should be type of Array.");if("number"==typeof n.itemType){const i=mV(n.itemType);if(!i)throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);r=e.map(e=>i.toASN(e))}else r=e.map(e=>this.toAsnItem({type:n.itemType},"[]",t,e))}else for(const s in n.items){const i=n.items[s],o=e[s];if(void 0===o||i.defaultValue===o||"object"==typeof i.defaultValue&&"object"==typeof o&&yV(this.serialize(i.defaultValue),this.serialize(o)))continue;const a=SV.toAsnItem(i,s,t,o);if("number"==typeof i.context)if(i.implicit)if(i.repeated||"number"!=typeof i.type&&!vV(i.type))r.push(new HF({optional:i.optional,idBlock:{tagClass:3,tagNumber:i.context},value:a.valueBlock.value}));else{const e={};e.valueHex=a instanceof $F?a.valueBeforeDecodeView:a.valueBlock.toBER(),r.push(new NF({optional:i.optional,idBlock:{tagClass:3,tagNumber:i.context},...e}))}else r.push(new HF({optional:i.optional,idBlock:{tagClass:3,tagNumber:i.context},value:[a]}));else i.repeated?r=r.concat(a):r.push(a)}switch(n.type){case LF.Sequence:i=new uN({value:r});break;case LF.Set:i=new dN({value:r});break;case LF.Choice:if(!r[0])throw new Error(`Schema '${t.name}' has wrong data. Choice cannot be empty.`);i=r[0]}return i}static toAsnItem(e,t,n,i){let r;if("number"==typeof e.type){const s=e.converter;if(!s)throw new Error(`Property '${t}' doesn't have converter for type ${FF[e.type]} in schema '${n.name}'`);if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");const t=Array.from(i,e=>s.toASN(e));r=new("sequence"===e.repeated?uN:dN)({value:t})}else r=s.toASN(i)}else if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");const t=Array.from(i,e=>this.toASN(e));r=new("sequence"===e.repeated?uN:dN)({value:t})}else r=this.toASN(i);return r}}class kV extends Array{constructor(e=[]){if("number"==typeof e)super(e);else{super();for(const t of e)this.push(t)}}}class EV{static serialize(e){return SV.serialize(e)}static parse(e,t){return CV.parse(e,t)}static toString(e){const t=zF(hF.BufferSourceConverter.isBufferSource(e)?hF.BufferSourceConverter.toArrayBuffer(e):EV.serialize(e));if(-1===t.offset)throw new Error("Cannot decode ASN.1 data. "+t.result.error);return t.result.toString()}}function PV(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}var DV,OV,IV,TV=n("3oEA");class MV{static decodeIP(e){if(64===e.length&&0===parseInt(e,16))return"::/0";if(16!==e.length)return e;const t=parseInt(e.slice(8),16).toString(2).split("").reduce((e,t)=>e+ +t,0);let n=e.slice(0,8).replace(/(.{2})/g,e=>parseInt(e,16)+".");return n=n.slice(0,-1),`${n}/${t}`}static toString(e){if(4===e.byteLength||16===e.byteLength){const t=new Uint8Array(e);return TV.fromByteArray(Array.from(t)).toString()}return this.decodeIP(hF.Convert.ToHex(e))}static fromString(e){const t=TV.parse(e);return new Uint8Array(t.toByteArray()).buffer}}let BV=class{constructor(e={}){Object.assign(this,e)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};PV([xV({type:FF.TeletexString})],BV.prototype,"teletexString",void 0),PV([xV({type:FF.PrintableString})],BV.prototype,"printableString",void 0),PV([xV({type:FF.UniversalString})],BV.prototype,"universalString",void 0),PV([xV({type:FF.Utf8String})],BV.prototype,"utf8String",void 0),PV([xV({type:FF.BmpString})],BV.prototype,"bmpString",void 0),BV=PV([_V({type:LF.Choice})],BV);let RV=class extends BV{constructor(e={}){super(e),Object.assign(this,e)}toString(){return this.ia5String||(this.anyValue?hF.Convert.ToHex(this.anyValue):super.toString())}};PV([xV({type:FF.IA5String})],RV.prototype,"ia5String",void 0),PV([xV({type:FF.Any})],RV.prototype,"anyValue",void 0),RV=PV([_V({type:LF.Choice})],RV);class LV{constructor(e={}){this.type="",this.value=new RV,Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],LV.prototype,"type",void 0),PV([xV({type:RV})],LV.prototype,"value",void 0);let FV=DV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,DV.prototype)}};FV=DV=PV([_V({type:LF.Set,itemType:LV})],FV);let NV=OV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,OV.prototype)}};NV=OV=PV([_V({type:LF.Sequence,itemType:FV})],NV);let VV=IV=class extends NV{constructor(e){super(e),Object.setPrototypeOf(this,IV.prototype)}};VV=IV=PV([_V({type:LF.Sequence})],VV);const zV={fromASN:e=>MV.toString(XN.fromASN(e)),toASN:e=>XN.toASN(MV.fromString(e))};class jV{constructor(e={}){this.typeId="",this.value=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],jV.prototype,"typeId",void 0),PV([xV({type:FF.Any,context:0})],jV.prototype,"value",void 0);class HV{constructor(e={}){this.partyName=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:BV,optional:!0,context:0,implicit:!0})],HV.prototype,"nameAssigner",void 0),PV([xV({type:BV,context:1,implicit:!0})],HV.prototype,"partyName",void 0);let UV=class{constructor(e={}){Object.assign(this,e)}};var WV;PV([xV({type:jV,context:0,implicit:!0})],UV.prototype,"otherName",void 0),PV([xV({type:FF.IA5String,context:1,implicit:!0})],UV.prototype,"rfc822Name",void 0),PV([xV({type:FF.IA5String,context:2,implicit:!0})],UV.prototype,"dNSName",void 0),PV([xV({type:FF.Any,context:3,implicit:!0})],UV.prototype,"x400Address",void 0),PV([xV({type:VV,context:4,implicit:!1})],UV.prototype,"directoryName",void 0),PV([xV({type:HV,context:5})],UV.prototype,"ediPartyName",void 0),PV([xV({type:FF.IA5String,context:6,implicit:!0})],UV.prototype,"uniformResourceIdentifier",void 0),PV([xV({type:FF.OctetString,context:7,implicit:!0,converter:zV})],UV.prototype,"iPAddress",void 0),PV([xV({type:FF.ObjectIdentifier,context:8,implicit:!0})],UV.prototype,"registeredID",void 0),UV=PV([_V({type:LF.Choice})],UV);class $V{constructor(e={}){this.accessMethod="",this.accessLocation=new UV,Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],$V.prototype,"accessMethod",void 0),PV([xV({type:UV})],$V.prototype,"accessLocation",void 0);let GV=WV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,WV.prototype)}};GV=WV=PV([_V({type:LF.Sequence,itemType:$V})],GV);class qV extends WN{}class YV{constructor(e={}){e&&Object.assign(this,e)}}PV([xV({type:qV,context:0,optional:!0,implicit:!0})],YV.prototype,"keyIdentifier",void 0),PV([xV({type:UV,context:1,optional:!0,implicit:!0,repeated:"sequence"})],YV.prototype,"authorityCertIssuer",void 0),PV([xV({type:FF.Integer,context:2,optional:!0,implicit:!0,converter:YN})],YV.prototype,"authorityCertSerialNumber",void 0);class ZV{constructor(e={}){this.cA=!1,Object.assign(this,e)}}var KV;PV([xV({type:FF.Boolean,defaultValue:!1})],ZV.prototype,"cA",void 0),PV([xV({type:FF.Integer,optional:!0})],ZV.prototype,"pathLenConstraint",void 0);let QV=KV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,KV.prototype)}};var XV;QV=KV=PV([_V({type:LF.Sequence,itemType:UV})],QV);let JV=XV=class extends QV{constructor(e){super(e),Object.setPrototypeOf(this,XV.prototype)}};var ez;JV=XV=PV([_V({type:LF.Sequence})],JV);let tz=class{constructor(e={}){Object.assign(this,e)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};PV([xV({type:FF.IA5String})],tz.prototype,"ia5String",void 0),PV([xV({type:FF.VisibleString})],tz.prototype,"visibleString",void 0),PV([xV({type:FF.BmpString})],tz.prototype,"bmpString",void 0),PV([xV({type:FF.Utf8String})],tz.prototype,"utf8String",void 0),tz=PV([_V({type:LF.Choice})],tz);class nz{constructor(e={}){this.organization=new tz,this.noticeNumbers=[],Object.assign(this,e)}}PV([xV({type:tz})],nz.prototype,"organization",void 0),PV([xV({type:FF.Integer,repeated:"sequence"})],nz.prototype,"noticeNumbers",void 0);class iz{constructor(e={}){Object.assign(this,e)}}PV([xV({type:nz,optional:!0})],iz.prototype,"noticeRef",void 0),PV([xV({type:tz,optional:!0})],iz.prototype,"explicitText",void 0);let rz=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:FF.IA5String})],rz.prototype,"cPSuri",void 0),PV([xV({type:iz})],rz.prototype,"userNotice",void 0),rz=PV([_V({type:LF.Choice})],rz);class sz{constructor(e={}){this.policyQualifierId="",this.qualifier=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],sz.prototype,"policyQualifierId",void 0),PV([xV({type:FF.Any})],sz.prototype,"qualifier",void 0);class oz{constructor(e={}){this.policyIdentifier="",Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],oz.prototype,"policyIdentifier",void 0),PV([xV({type:sz,repeated:"sequence",optional:!0})],oz.prototype,"policyQualifiers",void 0);let az=ez=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,ez.prototype)}};az=ez=PV([_V({type:LF.Sequence,itemType:oz})],az);let lz=class{constructor(e=0){this.value=e}};PV([xV({type:FF.Integer})],lz.prototype,"value",void 0),lz=PV([_V({type:LF.Choice})],lz);let cz=class extends lz{};var uz,dz;cz=PV([_V({type:LF.Choice})],cz),function(e){e[e.unused=1]="unused",e[e.keyCompromise=2]="keyCompromise",e[e.cACompromise=4]="cACompromise",e[e.affiliationChanged=8]="affiliationChanged",e[e.superseded=16]="superseded",e[e.cessationOfOperation=32]="cessationOfOperation",e[e.certificateHold=64]="certificateHold",e[e.privilegeWithdrawn=128]="privilegeWithdrawn",e[e.aACompromise=256]="aACompromise"}(dz||(dz={}));class hz extends UN{toJSON(){const e=[],t=this.toNumber();return t&dz.aACompromise&&e.push("aACompromise"),t&dz.affiliationChanged&&e.push("affiliationChanged"),t&dz.cACompromise&&e.push("cACompromise"),t&dz.certificateHold&&e.push("certificateHold"),t&dz.cessationOfOperation&&e.push("cessationOfOperation"),t&dz.keyCompromise&&e.push("keyCompromise"),t&dz.privilegeWithdrawn&&e.push("privilegeWithdrawn"),t&dz.superseded&&e.push("superseded"),t&dz.unused&&e.push("unused"),e}toString(){return`[${this.toJSON().join(", ")}]`}}let pz=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:UV,context:0,repeated:"sequence",implicit:!0})],pz.prototype,"fullName",void 0),PV([xV({type:FV,context:1,implicit:!0})],pz.prototype,"nameRelativeToCRLIssuer",void 0),pz=PV([_V({type:LF.Choice})],pz);class gz{constructor(e={}){Object.assign(this,e)}}PV([xV({type:pz,context:0,optional:!0})],gz.prototype,"distributionPoint",void 0),PV([xV({type:hz,context:1,optional:!0,implicit:!0})],gz.prototype,"reasons",void 0),PV([xV({type:UV,context:2,optional:!0,repeated:"sequence",implicit:!0})],gz.prototype,"cRLIssuer",void 0);let fz=uz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,uz.prototype)}};var mz;fz=uz=PV([_V({type:LF.Sequence,itemType:gz})],fz);let vz=mz=class extends fz{constructor(e){super(e),Object.setPrototypeOf(this,mz.prototype)}};vz=mz=PV([_V({type:LF.Sequence,itemType:gz})],vz);class bz{constructor(e={}){this.onlyContainsUserCerts=bz.ONLY,this.onlyContainsCACerts=bz.ONLY,this.indirectCRL=bz.ONLY,this.onlyContainsAttributeCerts=bz.ONLY,Object.assign(this,e)}}var yz;bz.ONLY=!1,PV([xV({type:pz,context:0,optional:!0})],bz.prototype,"distributionPoint",void 0),PV([xV({type:FF.Boolean,context:1,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"onlyContainsUserCerts",void 0),PV([xV({type:FF.Boolean,context:2,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"onlyContainsCACerts",void 0),PV([xV({type:hz,context:3,optional:!0,implicit:!0})],bz.prototype,"onlySomeReasons",void 0),PV([xV({type:FF.Boolean,context:4,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"indirectCRL",void 0),PV([xV({type:FF.Boolean,context:5,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"onlyContainsAttributeCerts",void 0),function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(yz||(yz={}));let wz=class{constructor(e=yz.unspecified){this.reason=yz.unspecified,this.reason=e}toJSON(){return yz[this.reason]}toString(){return this.toJSON()}};var _z;PV([xV({type:FF.Enumerated})],wz.prototype,"reason",void 0),wz=PV([_V({type:LF.Choice})],wz);let xz=_z=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,_z.prototype)}};xz=_z=PV([_V({type:LF.Sequence,itemType:FF.ObjectIdentifier})],xz);let Az=class{constructor(e=new ArrayBuffer(0)){this.value=e}};PV([xV({type:FF.Integer,converter:YN})],Az.prototype,"value",void 0),Az=PV([_V({type:LF.Choice})],Az);let Cz=class{constructor(e){this.value=new Date,e&&(this.value=e)}};var Sz;PV([xV({type:FF.GeneralizedTime})],Cz.prototype,"value",void 0),Cz=PV([_V({type:LF.Choice})],Cz);let kz=Sz=class extends QV{constructor(e){super(e),Object.setPrototypeOf(this,Sz.prototype)}};var Ez,Pz;kz=Sz=PV([_V({type:LF.Sequence})],kz),function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(Ez||(Ez={}));class Dz extends UN{toJSON(){const e=this.toNumber(),t=[];return e&Ez.cRLSign&&t.push("crlSign"),e&Ez.dataEncipherment&&t.push("dataEncipherment"),e&Ez.decipherOnly&&t.push("decipherOnly"),e&Ez.digitalSignature&&t.push("digitalSignature"),e&Ez.encipherOnly&&t.push("encipherOnly"),e&Ez.keyAgreement&&t.push("keyAgreement"),e&Ez.keyCertSign&&t.push("keyCertSign"),e&Ez.keyEncipherment&&t.push("keyEncipherment"),e&Ez.nonRepudiation&&t.push("nonRepudiation"),t}toString(){return`[${this.toJSON().join(", ")}]`}}class Oz{constructor(e={}){this.base=new UV,this.minimum=0,Object.assign(this,e)}}PV([xV({type:UV})],Oz.prototype,"base",void 0),PV([xV({type:FF.Integer,context:0,defaultValue:0,implicit:!0})],Oz.prototype,"minimum",void 0),PV([xV({type:FF.Integer,context:1,optional:!0,implicit:!0})],Oz.prototype,"maximum",void 0);let Iz=Pz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Pz.prototype)}};Iz=Pz=PV([_V({type:LF.Sequence,itemType:Oz})],Iz);class Tz{constructor(e={}){Object.assign(this,e)}}PV([xV({type:Iz,context:0,optional:!0,implicit:!0})],Tz.prototype,"permittedSubtrees",void 0),PV([xV({type:Iz,context:1,optional:!0,implicit:!0})],Tz.prototype,"excludedSubtrees",void 0);class Mz{constructor(e={}){Object.assign(this,e)}}var Bz;PV([xV({type:FF.Integer,context:0,implicit:!0,optional:!0,converter:YN})],Mz.prototype,"requireExplicitPolicy",void 0),PV([xV({type:FF.Integer,context:1,implicit:!0,optional:!0,converter:YN})],Mz.prototype,"inhibitPolicyMapping",void 0);class Rz{constructor(e={}){this.issuerDomainPolicy="",this.subjectDomainPolicy="",Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Rz.prototype,"issuerDomainPolicy",void 0),PV([xV({type:FF.ObjectIdentifier})],Rz.prototype,"subjectDomainPolicy",void 0);let Lz=Bz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Bz.prototype)}};var Fz;Lz=Bz=PV([_V({type:LF.Sequence,itemType:Rz})],Lz);let Nz=Fz=class extends QV{constructor(e){super(e),Object.setPrototypeOf(this,Fz.prototype)}};Nz=Fz=PV([_V({type:LF.Sequence})],Nz);class Vz{constructor(e={}){this.type="",this.values=[],Object.assign(this,e)}}var zz;PV([xV({type:FF.ObjectIdentifier})],Vz.prototype,"type",void 0),PV([xV({type:FF.Any,repeated:"set"})],Vz.prototype,"values",void 0);let jz=zz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,zz.prototype)}};jz=zz=PV([_V({type:LF.Sequence,itemType:Vz})],jz);class Hz extends qV{}class Uz{constructor(e={}){Object.assign(this,e)}}var Wz,$z;PV([xV({type:FF.GeneralizedTime,context:0,implicit:!0,optional:!0})],Uz.prototype,"notBefore",void 0),PV([xV({type:FF.GeneralizedTime,context:1,implicit:!0,optional:!0})],Uz.prototype,"notAfter",void 0),function(e){e[e.keyUpdateAllowed=1]="keyUpdateAllowed",e[e.newExtensions=2]="newExtensions",e[e.pKIXCertificate=4]="pKIXCertificate"}(Wz||(Wz={}));class Gz extends UN{toJSON(){const e=[],t=this.toNumber();return t&Wz.pKIXCertificate&&e.push("pKIXCertificate"),t&Wz.newExtensions&&e.push("newExtensions"),t&Wz.keyUpdateAllowed&&e.push("keyUpdateAllowed"),e}toString(){return`[${this.toJSON().join(", ")}]`}}class qz{constructor(e={}){this.entrustVers="",this.entrustInfoFlags=new Gz,Object.assign(this,e)}}PV([xV({type:FF.GeneralString})],qz.prototype,"entrustVers",void 0),PV([xV({type:Gz})],qz.prototype,"entrustInfoFlags",void 0);let Yz=$z=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,$z.prototype)}};Yz=$z=PV([_V({type:LF.Sequence,itemType:$V})],Yz);class Zz{constructor(e={}){this.algorithm="",Object.assign(this,e)}isEqual(e){return e instanceof Zz&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&hF.isEqual(e.parameters,this.parameters)||e.parameters===this.parameters)}}PV([xV({type:FF.ObjectIdentifier})],Zz.prototype,"algorithm",void 0),PV([xV({type:FF.Any,optional:!0})],Zz.prototype,"parameters",void 0);class Kz{constructor(e={}){this.algorithm=new Zz,this.subjectPublicKey=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:Zz})],Kz.prototype,"algorithm",void 0),PV([xV({type:FF.BitString})],Kz.prototype,"subjectPublicKey",void 0);let Qz=class{constructor(e){if(e)if("string"==typeof e||"number"==typeof e||e instanceof Date){const t=new Date(e);t.getUTCFullYear()>2049?this.generalTime=t:this.utcTime=t}else Object.assign(this,e)}getTime(){const e=this.utcTime||this.generalTime;if(!e)throw new Error("Cannot get time from CHOICE object");return e}};PV([xV({type:FF.UTCTime})],Qz.prototype,"utcTime",void 0),PV([xV({type:FF.GeneralizedTime})],Qz.prototype,"generalTime",void 0),Qz=PV([_V({type:LF.Choice})],Qz);class Xz{constructor(e){this.notBefore=new Qz(new Date),this.notAfter=new Qz(new Date),e&&(this.notBefore=new Qz(e.notBefore),this.notAfter=new Qz(e.notAfter))}}var Jz;PV([xV({type:Qz})],Xz.prototype,"notBefore",void 0),PV([xV({type:Qz})],Xz.prototype,"notAfter",void 0);class ej{constructor(e={}){this.extnID="",this.critical=ej.CRITICAL,this.extnValue=new WN,Object.assign(this,e)}}ej.CRITICAL=!1,PV([xV({type:FF.ObjectIdentifier})],ej.prototype,"extnID",void 0),PV([xV({type:FF.Boolean,defaultValue:ej.CRITICAL})],ej.prototype,"critical",void 0),PV([xV({type:WN})],ej.prototype,"extnValue",void 0);let tj=Jz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Jz.prototype)}};var nj,ij;tj=Jz=PV([_V({type:LF.Sequence,itemType:ej})],tj),function(e){e[e.v1=0]="v1",e[e.v2=1]="v2",e[e.v3=2]="v3"}(nj||(nj={}));class rj{constructor(e={}){this.version=nj.v1,this.serialNumber=new ArrayBuffer(0),this.signature=new Zz,this.issuer=new VV,this.validity=new Xz,this.subject=new VV,this.subjectPublicKeyInfo=new Kz,Object.assign(this,e)}}PV([xV({type:FF.Integer,context:0,defaultValue:nj.v1})],rj.prototype,"version",void 0),PV([xV({type:FF.Integer,converter:YN})],rj.prototype,"serialNumber",void 0),PV([xV({type:Zz})],rj.prototype,"signature",void 0),PV([xV({type:VV})],rj.prototype,"issuer",void 0),PV([xV({type:Xz})],rj.prototype,"validity",void 0),PV([xV({type:VV})],rj.prototype,"subject",void 0),PV([xV({type:Kz})],rj.prototype,"subjectPublicKeyInfo",void 0),PV([xV({type:FF.BitString,context:1,implicit:!0,optional:!0})],rj.prototype,"issuerUniqueID",void 0),PV([xV({type:FF.BitString,context:2,implicit:!0,optional:!0})],rj.prototype,"subjectUniqueID",void 0),PV([xV({type:tj,context:3,optional:!0})],rj.prototype,"extensions",void 0);class sj{constructor(e={}){this.tbsCertificate=new rj,this.signatureAlgorithm=new Zz,this.signatureValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:rj})],sj.prototype,"tbsCertificate",void 0),PV([xV({type:Zz})],sj.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],sj.prototype,"signatureValue",void 0);class oj{constructor(e={}){this.userCertificate=new ArrayBuffer(0),this.revocationDate=new Qz,Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],oj.prototype,"userCertificate",void 0),PV([xV({type:Qz})],oj.prototype,"revocationDate",void 0),PV([xV({type:ej,optional:!0,repeated:"sequence"})],oj.prototype,"crlEntryExtensions",void 0);class aj{constructor(e={}){this.signature=new Zz,this.issuer=new VV,this.thisUpdate=new Qz,Object.assign(this,e)}}PV([xV({type:FF.Integer,optional:!0})],aj.prototype,"version",void 0),PV([xV({type:Zz})],aj.prototype,"signature",void 0),PV([xV({type:VV})],aj.prototype,"issuer",void 0),PV([xV({type:Qz})],aj.prototype,"thisUpdate",void 0),PV([xV({type:Qz,optional:!0})],aj.prototype,"nextUpdate",void 0),PV([xV({type:oj,repeated:"sequence",optional:!0})],aj.prototype,"revokedCertificates",void 0),PV([xV({type:ej,optional:!0,context:0,repeated:"sequence"})],aj.prototype,"crlExtensions",void 0);class lj{constructor(e={}){this.tbsCertList=new aj,this.signatureAlgorithm=new Zz,this.signature=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:aj})],lj.prototype,"tbsCertList",void 0),PV([xV({type:Zz})],lj.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],lj.prototype,"signature",void 0);class cj{constructor(e={}){this.attrType="",this.attrValues=[],Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],cj.prototype,"attrType",void 0),PV([xV({type:FF.Any,repeated:"set"})],cj.prototype,"attrValues",void 0);class uj{constructor(e={}){this.acIssuer=new UV,this.acSerial=0,this.attrs=[],Object.assign(this,e)}}PV([xV({type:UV})],uj.prototype,"acIssuer",void 0),PV([xV({type:FF.Integer})],uj.prototype,"acSerial",void 0),PV([xV({type:Vz,repeated:"sequence"})],uj.prototype,"attrs",void 0);let dj=ij=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,ij.prototype)}};dj=ij=PV([_V({type:LF.Sequence,itemType:FF.ObjectIdentifier})],dj);class hj{constructor(e={}){this.permitUnSpecified=!0,Object.assign(this,e)}}PV([xV({type:FF.Integer,optional:!0})],hj.prototype,"pathLenConstraint",void 0),PV([xV({type:dj,implicit:!0,context:0,optional:!0})],hj.prototype,"permittedAttrs",void 0),PV([xV({type:dj,implicit:!0,context:1,optional:!0})],hj.prototype,"excludedAttrs",void 0),PV([xV({type:FF.Boolean,defaultValue:!0})],hj.prototype,"permitUnSpecified",void 0);class pj{constructor(e={}){this.issuer=new QV,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,e)}}var gj;PV([xV({type:QV})],pj.prototype,"issuer",void 0),PV([xV({type:FF.Integer,converter:YN})],pj.prototype,"serial",void 0),PV([xV({type:FF.BitString,optional:!0})],pj.prototype,"issuerUID",void 0),function(e){e[e.publicKey=0]="publicKey",e[e.publicKeyCert=1]="publicKeyCert",e[e.otherObjectTypes=2]="otherObjectTypes"}(gj||(gj={}));class fj{constructor(e={}){this.digestedObjectType=gj.publicKey,this.digestAlgorithm=new Zz,this.objectDigest=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Enumerated})],fj.prototype,"digestedObjectType",void 0),PV([xV({type:FF.ObjectIdentifier,optional:!0})],fj.prototype,"otherObjectTypeID",void 0),PV([xV({type:Zz})],fj.prototype,"digestAlgorithm",void 0),PV([xV({type:FF.BitString})],fj.prototype,"objectDigest",void 0);class mj{constructor(e={}){Object.assign(this,e)}}PV([xV({type:QV,optional:!0})],mj.prototype,"issuerName",void 0),PV([xV({type:pj,context:0,implicit:!0,optional:!0})],mj.prototype,"baseCertificateID",void 0),PV([xV({type:fj,context:1,implicit:!0,optional:!0})],mj.prototype,"objectDigestInfo",void 0);let vj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:UV,repeated:"sequence"})],vj.prototype,"v1Form",void 0),PV([xV({type:mj,context:0,implicit:!0})],vj.prototype,"v2Form",void 0),vj=PV([_V({type:LF.Choice})],vj);class bj{constructor(e={}){this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,e)}}PV([xV({type:FF.GeneralizedTime})],bj.prototype,"notBeforeTime",void 0),PV([xV({type:FF.GeneralizedTime})],bj.prototype,"notAfterTime",void 0);class yj{constructor(e={}){Object.assign(this,e)}}var wj,_j,xj;PV([xV({type:pj,implicit:!0,context:0,optional:!0})],yj.prototype,"baseCertificateID",void 0),PV([xV({type:QV,implicit:!0,context:1,optional:!0})],yj.prototype,"entityName",void 0),PV([xV({type:fj,implicit:!0,context:2,optional:!0})],yj.prototype,"objectDigestInfo",void 0),function(e){e[e.v2=1]="v2"}(wj||(wj={}));class Aj{constructor(e={}){this.version=wj.v2,this.holder=new yj,this.issuer=new vj,this.signature=new Zz,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new bj,this.attributes=[],Object.assign(this,e)}}PV([xV({type:FF.Integer})],Aj.prototype,"version",void 0),PV([xV({type:yj})],Aj.prototype,"holder",void 0),PV([xV({type:vj})],Aj.prototype,"issuer",void 0),PV([xV({type:Zz})],Aj.prototype,"signature",void 0),PV([xV({type:FF.Integer,converter:YN})],Aj.prototype,"serialNumber",void 0),PV([xV({type:bj})],Aj.prototype,"attrCertValidityPeriod",void 0),PV([xV({type:Vz,repeated:"sequence"})],Aj.prototype,"attributes",void 0),PV([xV({type:FF.BitString,optional:!0})],Aj.prototype,"issuerUniqueID",void 0),PV([xV({type:tj,optional:!0})],Aj.prototype,"extensions",void 0);class Cj{constructor(e={}){this.acinfo=new Aj,this.signatureAlgorithm=new Zz,this.signatureValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:Aj})],Cj.prototype,"acinfo",void 0),PV([xV({type:Zz})],Cj.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],Cj.prototype,"signatureValue",void 0),function(e){e[e.unmarked=1]="unmarked",e[e.unclassified=2]="unclassified",e[e.restricted=4]="restricted",e[e.confidential=8]="confidential",e[e.secret=16]="secret",e[e.topSecret=32]="topSecret"}(_j||(_j={}));class Sj extends UN{}class kj{constructor(e={}){this.type="",this.value=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier,implicit:!0,context:0})],kj.prototype,"type",void 0),PV([xV({type:FF.Any,implicit:!0,context:1})],kj.prototype,"value",void 0);class Ej{constructor(e={}){this.policyId="",this.classList=new Sj(_j.unclassified),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Ej.prototype,"policyId",void 0),PV([xV({type:Sj,defaultValue:new Sj(_j.unclassified)})],Ej.prototype,"classList",void 0),PV([xV({type:kj,repeated:"set"})],Ej.prototype,"securityCategories",void 0);class Pj{constructor(e={}){Object.assign(this,e)}}PV([xV({type:WN})],Pj.prototype,"cotets",void 0),PV([xV({type:FF.ObjectIdentifier})],Pj.prototype,"oid",void 0),PV([xV({type:FF.Utf8String})],Pj.prototype,"string",void 0);class Dj{constructor(e={}){this.values=[],Object.assign(this,e)}}PV([xV({type:QV,implicit:!0,context:0,optional:!0})],Dj.prototype,"policyAuthority",void 0),PV([xV({type:Pj,repeated:"sequence"})],Dj.prototype,"values",void 0);class Oj{constructor(e={}){this.targetCertificate=new pj,Object.assign(this,e)}}PV([xV({type:pj})],Oj.prototype,"targetCertificate",void 0),PV([xV({type:UV,optional:!0})],Oj.prototype,"targetName",void 0),PV([xV({type:fj,optional:!0})],Oj.prototype,"certDigestInfo",void 0);let Ij=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:UV,context:0,implicit:!0})],Ij.prototype,"targetName",void 0),PV([xV({type:UV,context:1,implicit:!0})],Ij.prototype,"targetGroup",void 0),PV([xV({type:Oj,context:2,implicit:!0})],Ij.prototype,"targetCert",void 0),Ij=PV([_V({type:LF.Choice})],Ij);let Tj=xj=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,xj.prototype)}};var Mj;Tj=xj=PV([_V({type:LF.Sequence,itemType:Ij})],Tj);let Bj=Mj=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Mj.prototype)}};Bj=Mj=PV([_V({type:LF.Sequence,itemType:Tj})],Bj);class Rj{constructor(e={}){Object.assign(this,e)}}PV([xV({type:QV,implicit:!0,context:0,optional:!0})],Rj.prototype,"roleAuthority",void 0),PV([xV({type:UV,implicit:!0,context:1})],Rj.prototype,"roleName",void 0);class Lj{constructor(e={}){this.service=new UV,this.ident=new UV,Object.assign(this,e)}}var Fj;PV([xV({type:UV})],Lj.prototype,"service",void 0),PV([xV({type:UV})],Lj.prototype,"ident",void 0),PV([xV({type:WN,optional:!0})],Lj.prototype,"authInfo",void 0);class Nj{constructor(e={}){this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Nj.prototype,"otherCertFormat",void 0),PV([xV({type:FF.Any})],Nj.prototype,"otherCert",void 0);let Vj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:sj})],Vj.prototype,"certificate",void 0),PV([xV({type:Cj,context:2,implicit:!0})],Vj.prototype,"v2AttrCert",void 0),PV([xV({type:Nj,context:3,implicit:!0})],Vj.prototype,"other",void 0),Vj=PV([_V({type:LF.Choice})],Vj);let zj=Fj=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Fj.prototype)}};zj=Fj=PV([_V({type:LF.Set,itemType:Vj})],zj);class jj{constructor(e={}){this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],jj.prototype,"contentType",void 0),PV([xV({type:FF.Any,context:0})],jj.prototype,"content",void 0);let Hj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:WN})],Hj.prototype,"single",void 0),PV([xV({type:FF.Any})],Hj.prototype,"any",void 0),Hj=PV([_V({type:LF.Choice})],Hj);class Uj{constructor(e={}){this.eContentType="",Object.assign(this,e)}}var Wj;PV([xV({type:FF.ObjectIdentifier})],Uj.prototype,"eContentType",void 0),PV([xV({type:Hj,context:0,optional:!0})],Uj.prototype,"eContent",void 0),function(e){e[e.v0=0]="v0",e[e.v1=1]="v1",e[e.v2=2]="v2",e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v5=5]="v5"}(Wj||(Wj={}));let $j=class extends Zz{};$j=PV([_V({type:LF.Sequence})],$j);let Gj=class extends Zz{};Gj=PV([_V({type:LF.Sequence})],Gj);let qj=class extends Zz{};qj=PV([_V({type:LF.Sequence})],qj);let Yj=class extends Zz{};Yj=PV([_V({type:LF.Sequence})],Yj);let Zj=class extends Zz{};Zj=PV([_V({type:LF.Sequence})],Zj);let Kj=class extends Zz{};Kj=PV([_V({type:LF.Sequence})],Kj);let Qj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:WN,context:0,implicit:!0,optional:!0})],Qj.prototype,"value",void 0),PV([xV({type:WN,converter:JN,context:0,implicit:!0,optional:!0,repeated:"sequence"})],Qj.prototype,"constructedValue",void 0),Qj=PV([_V({type:LF.Choice})],Qj);class Xj{constructor(e={}){this.contentType="",this.contentEncryptionAlgorithm=new Yj,Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Xj.prototype,"contentType",void 0),PV([xV({type:Yj})],Xj.prototype,"contentEncryptionAlgorithm",void 0),PV([xV({type:Qj,optional:!0})],Xj.prototype,"encryptedContent",void 0);class Jj{constructor(e={}){this.issuer=new VV,this.serialNumber=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:VV})],Jj.prototype,"issuer",void 0),PV([xV({type:FF.Integer,converter:YN})],Jj.prototype,"serialNumber",void 0);class eH{constructor(e={}){this.keyAttrId="",Object.assign(this,e)}}var tH;PV([xV({type:FF.ObjectIdentifier})],eH.prototype,"keyAttrId",void 0),PV([xV({type:FF.Any,optional:!0})],eH.prototype,"keyAttr",void 0);class nH{constructor(e={}){this.subjectKeyIdentifier=new Hz,Object.assign(this,e)}}PV([xV({type:Hz})],nH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:FF.GeneralizedTime,optional:!0})],nH.prototype,"date",void 0),PV([xV({type:eH,optional:!0})],nH.prototype,"other",void 0);let iH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:nH,context:0,implicit:!0,optional:!0})],iH.prototype,"rKeyId",void 0),PV([xV({type:Jj,optional:!0})],iH.prototype,"issuerAndSerialNumber",void 0),iH=PV([_V({type:LF.Choice})],iH);class rH{constructor(e={}){this.rid=new iH,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:iH})],rH.prototype,"rid",void 0),PV([xV({type:WN})],rH.prototype,"encryptedKey",void 0);let sH=tH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,tH.prototype)}};sH=tH=PV([_V({type:LF.Sequence,itemType:rH})],sH);class oH{constructor(e={}){this.algorithm=new Zz,this.publicKey=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:Zz})],oH.prototype,"algorithm",void 0),PV([xV({type:FF.BitString})],oH.prototype,"publicKey",void 0);let aH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:Hz,context:0,implicit:!0,optional:!0})],aH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:oH,context:1,implicit:!0,optional:!0})],aH.prototype,"originatorKey",void 0),PV([xV({type:Jj,optional:!0})],aH.prototype,"issuerAndSerialNumber",void 0),aH=PV([_V({type:LF.Choice})],aH);class lH{constructor(e={}){this.version=Wj.v3,this.originator=new aH,this.keyEncryptionAlgorithm=new qj,this.recipientEncryptedKeys=new sH,Object.assign(this,e)}}PV([xV({type:FF.Integer})],lH.prototype,"version",void 0),PV([xV({type:aH,context:0})],lH.prototype,"originator",void 0),PV([xV({type:WN,context:1,optional:!0})],lH.prototype,"ukm",void 0),PV([xV({type:qj})],lH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:sH})],lH.prototype,"recipientEncryptedKeys",void 0);let cH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:Hz,context:0,implicit:!0})],cH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:Jj})],cH.prototype,"issuerAndSerialNumber",void 0),cH=PV([_V({type:LF.Choice})],cH);class uH{constructor(e={}){this.version=Wj.v0,this.rid=new cH,this.keyEncryptionAlgorithm=new qj,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],uH.prototype,"version",void 0),PV([xV({type:cH})],uH.prototype,"rid",void 0),PV([xV({type:qj})],uH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:WN})],uH.prototype,"encryptedKey",void 0);class dH{constructor(e={}){this.keyIdentifier=new WN,Object.assign(this,e)}}PV([xV({type:WN})],dH.prototype,"keyIdentifier",void 0),PV([xV({type:FF.GeneralizedTime,optional:!0})],dH.prototype,"date",void 0),PV([xV({type:eH,optional:!0})],dH.prototype,"other",void 0);class hH{constructor(e={}){this.version=Wj.v4,this.kekid=new dH,this.keyEncryptionAlgorithm=new qj,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],hH.prototype,"version",void 0),PV([xV({type:dH})],hH.prototype,"kekid",void 0),PV([xV({type:qj})],hH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:WN})],hH.prototype,"encryptedKey",void 0);class pH{constructor(e={}){this.version=Wj.v0,this.keyEncryptionAlgorithm=new qj,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],pH.prototype,"version",void 0),PV([xV({type:Kj,context:0,optional:!0})],pH.prototype,"keyDerivationAlgorithm",void 0),PV([xV({type:qj})],pH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:WN})],pH.prototype,"encryptedKey",void 0);class gH{constructor(e={}){this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],gH.prototype,"oriType",void 0),PV([xV({type:FF.Any})],gH.prototype,"oriValue",void 0);let fH=class{constructor(e={}){Object.assign(this,e)}};var mH;PV([xV({type:uH,optional:!0})],fH.prototype,"ktri",void 0),PV([xV({type:lH,context:1,implicit:!0,optional:!0})],fH.prototype,"kari",void 0),PV([xV({type:hH,context:2,implicit:!0,optional:!0})],fH.prototype,"kekri",void 0),PV([xV({type:pH,context:3,implicit:!0,optional:!0})],fH.prototype,"pwri",void 0),PV([xV({type:gH,context:4,implicit:!0,optional:!0})],fH.prototype,"ori",void 0),fH=PV([_V({type:LF.Choice})],fH);let vH=mH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,mH.prototype)}};var bH;vH=mH=PV([_V({type:LF.Set,itemType:fH})],vH);class yH{constructor(e={}){this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],yH.prototype,"otherRevInfoFormat",void 0),PV([xV({type:FF.Any})],yH.prototype,"otherRevInfo",void 0);let wH=class{constructor(e={}){this.other=new yH,Object.assign(this,e)}};PV([xV({type:yH,context:1,implicit:!0})],wH.prototype,"other",void 0),wH=PV([_V({type:LF.Choice})],wH);let _H=bH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,bH.prototype)}};_H=bH=PV([_V({type:LF.Set,itemType:wH})],_H);class xH{constructor(e={}){Object.assign(this,e)}}var AH;PV([xV({type:zj,context:0,implicit:!0,optional:!0})],xH.prototype,"certs",void 0),PV([xV({type:_H,context:1,implicit:!0,optional:!0})],xH.prototype,"crls",void 0);let CH=AH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,AH.prototype)}};CH=AH=PV([_V({type:LF.Set,itemType:cj})],CH);class SH{constructor(e={}){this.version=Wj.v0,this.recipientInfos=new vH,this.encryptedContentInfo=new Xj,Object.assign(this,e)}}PV([xV({type:FF.Integer})],SH.prototype,"version",void 0),PV([xV({type:xH,context:0,implicit:!0,optional:!0})],SH.prototype,"originatorInfo",void 0),PV([xV({type:vH})],SH.prototype,"recipientInfos",void 0),PV([xV({type:Xj})],SH.prototype,"encryptedContentInfo",void 0),PV([xV({type:CH,context:1,implicit:!0,optional:!0})],SH.prototype,"unprotectedAttrs",void 0);let kH=class{constructor(e={}){Object.assign(this,e)}};var EH;PV([xV({type:Hz,context:0,implicit:!0})],kH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:Jj})],kH.prototype,"issuerAndSerialNumber",void 0),kH=PV([_V({type:LF.Choice})],kH);class PH{constructor(e={}){this.version=Wj.v0,this.sid=new kH,this.digestAlgorithm=new $j,this.signatureAlgorithm=new Gj,this.signature=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],PH.prototype,"version",void 0),PV([xV({type:kH})],PH.prototype,"sid",void 0),PV([xV({type:$j})],PH.prototype,"digestAlgorithm",void 0),PV([xV({type:cj,repeated:"set",context:0,implicit:!0,optional:!0})],PH.prototype,"signedAttrs",void 0),PV([xV({type:Gj})],PH.prototype,"signatureAlgorithm",void 0),PV([xV({type:WN})],PH.prototype,"signature",void 0),PV([xV({type:cj,repeated:"set",context:1,implicit:!0,optional:!0})],PH.prototype,"unsignedAttrs",void 0);let DH=EH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,EH.prototype)}};var OH;DH=EH=PV([_V({type:LF.Set,itemType:PH})],DH);let IH=OH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,OH.prototype)}};IH=OH=PV([_V({type:LF.Set,itemType:$j})],IH);class TH{constructor(e={}){this.version=Wj.v0,this.digestAlgorithms=new IH,this.encapContentInfo=new Uj,this.signerInfos=new DH,Object.assign(this,e)}}function MH(e){return new Zz({algorithm:e})}PV([xV({type:FF.Integer})],TH.prototype,"version",void 0),PV([xV({type:IH})],TH.prototype,"digestAlgorithms",void 0),PV([xV({type:Uj})],TH.prototype,"encapContentInfo",void 0),PV([xV({type:zj,context:0,implicit:!0,optional:!0})],TH.prototype,"certificates",void 0),PV([xV({type:wH,context:1,implicit:!0,optional:!0})],TH.prototype,"crls",void 0),PV([xV({type:DH})],TH.prototype,"signerInfos",void 0);const BH=MH("1.2.840.10045.4.1"),RH=(MH("1.2.840.10045.4.3.1"),MH("1.2.840.10045.4.3.2")),LH=MH("1.2.840.10045.4.3.3"),FH=MH("1.2.840.10045.4.3.4");let NH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:FF.ObjectIdentifier})],NH.prototype,"namedCurve",void 0),NH=PV([_V({type:LF.Choice})],NH);class VH{constructor(e={}){this.version=1,this.privateKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],VH.prototype,"version",void 0),PV([xV({type:WN})],VH.prototype,"privateKey",void 0),PV([xV({type:NH,context:0,optional:!0})],VH.prototype,"parameters",void 0),PV([xV({type:FF.BitString,context:1,optional:!0})],VH.prototype,"publicKey",void 0);class zH{constructor(e={}){this.r=new ArrayBuffer(0),this.s=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],zH.prototype,"r",void 0),PV([xV({type:FF.Integer,converter:YN})],zH.prototype,"s",void 0);const jH="1.2.840.113549.1.1.8";function HH(e){return new Zz({algorithm:e,parameters:null})}HH("1.2.840.113549.2.2"),HH("1.2.840.113549.2.5");const UH=HH("1.3.14.3.2.26"),WH=(HH("2.16.840.1.101.3.4.2.4"),HH("2.16.840.1.101.3.4.2.1"),HH("2.16.840.1.101.3.4.2.2"),HH("2.16.840.1.101.3.4.2.3"),HH("2.16.840.1.101.3.4.2.5"),HH("2.16.840.1.101.3.4.2.6"),new Zz({algorithm:jH,parameters:EV.serialize(UH)})),$H=new Zz({algorithm:"1.2.840.113549.1.1.9",parameters:EV.serialize(XN.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});HH("1.2.840.113549.1.1.1"),HH("1.2.840.113549.1.1.2"),HH("1.2.840.113549.1.1.4"),HH("1.2.840.113549.1.1.5"),HH("1.2.840.113549.1.1.15"),HH("1.2.840.113549.1.1.16"),HH("1.2.840.113549.1.1.12"),HH("1.2.840.113549.1.1.13"),HH("1.2.840.113549.1.1.15"),HH("1.2.840.113549.1.1.16");class GH{constructor(e={}){this.hashAlgorithm=new Zz(UH),this.maskGenAlgorithm=new Zz({algorithm:jH,parameters:EV.serialize(UH)}),this.pSourceAlgorithm=new Zz($H),Object.assign(this,e)}}PV([xV({type:Zz,context:0,defaultValue:UH})],GH.prototype,"hashAlgorithm",void 0),PV([xV({type:Zz,context:1,defaultValue:WH})],GH.prototype,"maskGenAlgorithm",void 0),PV([xV({type:Zz,context:2,defaultValue:$H})],GH.prototype,"pSourceAlgorithm",void 0),new Zz({algorithm:"1.2.840.113549.1.1.7",parameters:EV.serialize(new GH)});class qH{constructor(e={}){this.hashAlgorithm=new Zz(UH),this.maskGenAlgorithm=new Zz({algorithm:jH,parameters:EV.serialize(UH)}),this.saltLength=20,this.trailerField=1,Object.assign(this,e)}}PV([xV({type:Zz,context:0,defaultValue:UH})],qH.prototype,"hashAlgorithm",void 0),PV([xV({type:Zz,context:1,defaultValue:WH})],qH.prototype,"maskGenAlgorithm",void 0),PV([xV({type:FF.Integer,context:2,defaultValue:20})],qH.prototype,"saltLength",void 0),PV([xV({type:FF.Integer,context:3,defaultValue:1})],qH.prototype,"trailerField",void 0),new Zz({algorithm:"1.2.840.113549.1.1.10",parameters:EV.serialize(new qH)});class YH{constructor(e={}){this.digestAlgorithm=new Zz,this.digest=new WN,Object.assign(this,e)}}var ZH;PV([xV({type:Zz})],YH.prototype,"digestAlgorithm",void 0),PV([xV({type:WN})],YH.prototype,"digest",void 0);class KH{constructor(e={}){this.prime=new ArrayBuffer(0),this.exponent=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],KH.prototype,"prime",void 0),PV([xV({type:FF.Integer,converter:YN})],KH.prototype,"exponent",void 0),PV([xV({type:FF.Integer,converter:YN})],KH.prototype,"coefficient",void 0);let QH=ZH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,ZH.prototype)}};QH=ZH=PV([_V({type:LF.Sequence,itemType:KH})],QH);class XH{constructor(e={}){this.version=0,this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),this.privateExponent=new ArrayBuffer(0),this.prime1=new ArrayBuffer(0),this.prime2=new ArrayBuffer(0),this.exponent1=new ArrayBuffer(0),this.exponent2=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer})],XH.prototype,"version",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"modulus",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"publicExponent",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"privateExponent",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"prime1",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"prime2",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"exponent1",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"exponent2",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"coefficient",void 0),PV([xV({type:QH,optional:!0})],XH.prototype,"otherPrimeInfos",void 0);class JH{constructor(e={}){this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],JH.prototype,"modulus",void 0),PV([xV({type:FF.Integer,converter:YN})],JH.prototype,"publicExponent",void 0);var eU=function(e){return e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped",e}({});function tU(e){return!!e.useClass}function nU(e){return!!e.useFactory}class iU{constructor(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}createProxy(e){let t,n=!1;return new Proxy({},this.createHandler(()=>(n||(t=e(this.wrap()),n=!0),t)))}createHandler(e){const t={};return this.reflectMethods.forEach(n=>{t[n]=(...t)=>(t[0]=e(),(0,Reflect[n])(...t))}),t}}function rU(e){return"string"==typeof e||"symbol"==typeof e}function sU(e){return"object"==typeof e&&"token"in e&&"transform"in e}function oU(e){return!!e.useToken}function aU(e){return null!=e.useValue}class lU{constructor(){this._registryMap=new Map}entries(){return this._registryMap.entries()}getAll(e){return this.ensure(e),this._registryMap.get(e)}get(e){this.ensure(e);const t=this._registryMap.get(e);return t[t.length-1]||null}set(e,t){this.ensure(e),this._registryMap.get(e).push(t)}setAll(e,t){this._registryMap.set(e,t)}has(e){return this.ensure(e),this._registryMap.get(e).length>0}clear(){this._registryMap.clear()}ensure(e){this._registryMap.has(e)||this._registryMap.set(e,[])}}class cU extends lU{}class uU{constructor(){this.scopedResolutions=new Map}}class dU extends lU{}class hU extends lU{}class pU{constructor(){this.preResolution=new dU,this.postResolution=new hU}}const gU=new Map;class fU{constructor(e){this.parent=e,this._registry=new cU,this.interceptors=new pU,this.disposed=!1,this.disposables=new Set}register(e,t,n={lifecycle:eU.Transient}){let i;if(this.ensureNotDisposed(),i=function(e){return tU(e)||aU(e)||oU(e)||nU(e)}(t)?t:{useClass:t},oU(i)){const t=[e];let n=i;for(;null!=n;){const e=n.useToken;if(t.includes(e))throw new Error("Token registration cycle detected! "+[...t,e].join(" -> "));t.push(e);const i=this._registry.get(e);n=i&&oU(i.provider)?i.provider:null}}if((n.lifecycle===eU.Singleton||n.lifecycle==eU.ContainerScoped||n.lifecycle==eU.ResolutionScoped)&&(aU(i)||nU(i)))throw new Error(`Cannot use lifecycle "${eU[n.lifecycle]}" with ValueProviders or FactoryProviders`);return this._registry.set(e,{provider:i,options:n}),this}registerType(e,t){return this.ensureNotDisposed(),rU(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}registerInstance(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}registerSingleton(e,t){if(this.ensureNotDisposed(),rU(e)){if(rU(t))return this.register(e,{useToken:t},{lifecycle:eU.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:eU.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}let n=e;return t&&!rU(t)&&(n=t),this.register(e,{useClass:n},{lifecycle:eU.Singleton})}resolve(e,t=new uU){this.ensureNotDisposed();const n=this.getRegistration(e);if(!n&&rU(e))throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`);if(this.executePreResolutionInterceptor(e,"Single"),n){const i=this.resolveRegistration(n,t);return this.executePostResolutionInterceptor(e,i,"Single"),i}if(function(e){return"function"==typeof e||e instanceof iU}(e)){const n=this.construct(e,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}executePreResolutionInterceptor(e,t){if(this.interceptors.preResolution.has(e)){const n=[];for(const i of this.interceptors.preResolution.getAll(e))"Once"!=i.options.frequency&&n.push(i),i.callback(e,t);this.interceptors.preResolution.setAll(e,n)}}executePostResolutionInterceptor(e,t,n){if(this.interceptors.postResolution.has(e)){const i=[];for(const r of this.interceptors.postResolution.getAll(e))"Once"!=r.options.frequency&&i.push(r),r.callback(e,t,n);this.interceptors.postResolution.setAll(e,i)}}resolveRegistration(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===eU.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);const n=e.options.lifecycle===eU.Singleton||e.options.lifecycle===eU.ContainerScoped;let i;return i=aU(e.provider)?e.provider.useValue:oU(e.provider)?n?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):tU(e.provider)?n?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):nU(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===eU.ResolutionScoped&&t.scopedResolutions.set(e,i),i}resolveAll(e,t=new uU){this.ensureNotDisposed();const n=this.getAllRegistrations(e);if(!n&&rU(e))throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`);if(this.executePreResolutionInterceptor(e,"All"),n){const i=n.map(e=>this.resolveRegistration(e,t));return this.executePostResolutionInterceptor(e,i,"All"),i}const i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i}isRegistered(e,t=!1){return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}reset(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}clearInstances(){this.ensureNotDisposed();for(const[e,t]of this._registry.entries())this._registry.setAll(e,t.filter(e=>!aU(e.provider)).map(e=>(e.instance=void 0,e)))}createChildContainer(){this.ensureNotDisposed();const e=new fU(this);for(const[t,n]of this._registry.entries())n.some(({options:e})=>e.lifecycle===eU.ContainerScoped)&&e._registry.setAll(t,n.map(e=>e.options.lifecycle===eU.ContainerScoped?{provider:e.provider,options:e.options}:e));return e}beforeResolution(e,t,n={frequency:"Always"}){this.interceptors.preResolution.set(e,{callback:t,options:n})}afterResolution(e,t,n={frequency:"Always"}){this.interceptors.postResolution.set(e,{callback:t,options:n})}dispose(){return M_(this,void 0,void 0,function*(){this.disposed=!0;const e=[];this.disposables.forEach(t=>{const n=t.dispose();n&&e.push(n)}),yield Promise.all(e)})}getRegistration(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}getAllRegistrations(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}construct(e,t){if(e instanceof iU)return e.createProxy(e=>this.resolve(e,t));const n=(()=>{const n=gU.get(e);if(!n||0===n.length){if(0===e.length)return new e;throw new Error(`TypeInfo not known for "${e.name}"`)}const i=n.map(this.resolveParams(t,e));return new e(...i)})();var i;return"function"!=typeof(i=n).dispose||i.dispose.length>0||this.disposables.add(n),n}resolveParams(e,t){return(n,i)=>{try{return"object"==typeof(r=n)&&"token"in r&&"multiple"in r?sU(n)?n.multiple?this.resolve(n.transform).transform(this.resolveAll(n.token),...n.transformArgs):this.resolve(n.transform).transform(this.resolve(n.token,e),...n.transformArgs):n.multiple?this.resolveAll(n.token):this.resolve(n.token,e):sU(n)?this.resolve(n.transform,e).transform(this.resolve(n.token,e),...n.transformArgs):this.resolve(n,e)}catch(s){throw new Error(function(e,t,n){const[,i=null]=e.toString().match(/constructor\(([\w, ]+)\)/)||[];return function(e,t,n="    "){return[e,...t.message.split("\n").map(e=>n+e)].join("\n")}(`Cannot inject the dependency ${function(e,t){return null===e?"at position #"+t:`"${e.split(",")[t].trim()}" at position #${t}`}(i,t)} of "${e.name}" constructor. Reason:`,n)}(t,i,s))}var r}}ensureNotDisposed(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}}const mU=new fU;var vU,bU=function(){return function(e){gU.set(e,function(e){const t=Reflect.getMetadata("design:paramtypes",e)||[],n=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(n).forEach(e=>{t[+e]=n[e]}),t}(e))}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");class yU{constructor(e={}){this.attrId="",this.attrValues=[],Object.assign(e)}}PV([xV({type:FF.ObjectIdentifier})],yU.prototype,"attrId",void 0),PV([xV({type:FF.Any,repeated:"set"})],yU.prototype,"attrValues",void 0);let wU=vU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,vU.prototype)}};var _U;wU=vU=PV([_V({type:LF.Sequence,itemType:yU})],wU);let xU=_U=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,_U.prototype)}};xU=_U=PV([_V({type:LF.Sequence,itemType:jj})],xU);class AU{constructor(e={}){this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],AU.prototype,"certId",void 0),PV([xV({type:FF.Any,context:0})],AU.prototype,"certValue",void 0);class CU{constructor(e={}){this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],CU.prototype,"crlId",void 0),PV([xV({type:FF.Any,context:0})],CU.prototype,"crltValue",void 0);class SU extends WN{}class kU{constructor(e={}){this.encryptionAlgorithm=new Zz,this.encryptedData=new SU,Object.assign(this,e)}}var EU,PU;PV([xV({type:Zz})],kU.prototype,"encryptionAlgorithm",void 0),PV([xV({type:SU})],kU.prototype,"encryptedData",void 0),function(e){e[e.v1=0]="v1"}(PU||(PU={}));class DU extends WN{}let OU=EU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,EU.prototype)}};OU=EU=PV([_V({type:LF.Sequence,itemType:Vz})],OU);class IU{constructor(e={}){this.version=PU.v1,this.privateKeyAlgorithm=new Zz,this.privateKey=new DU,Object.assign(this,e)}}PV([xV({type:FF.Integer})],IU.prototype,"version",void 0),PV([xV({type:Zz})],IU.prototype,"privateKeyAlgorithm",void 0),PV([xV({type:DU})],IU.prototype,"privateKey",void 0),PV([xV({type:OU,implicit:!0,context:0,optional:!0})],IU.prototype,"attributes",void 0);let TU=class extends IU{};TU=PV([_V({type:LF.Sequence})],TU);let MU=class extends kU{};MU=PV([_V({type:LF.Sequence})],MU);class BU{constructor(e={}){this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],BU.prototype,"secretTypeId",void 0),PV([xV({type:FF.Any,context:0})],BU.prototype,"secretValue",void 0);class RU{constructor(e={}){this.mac=new YH,this.macSalt=new WN,this.iterations=1,Object.assign(this,e)}}PV([xV({type:YH})],RU.prototype,"mac",void 0),PV([xV({type:WN})],RU.prototype,"macSalt",void 0),PV([xV({type:FF.Integer,defaultValue:1})],RU.prototype,"iterations",void 0);class LU{constructor(e={}){this.version=3,this.authSafe=new jj,this.macData=new RU,Object.assign(this,e)}}var FU;PV([xV({type:FF.Integer})],LU.prototype,"version",void 0),PV([xV({type:jj})],LU.prototype,"authSafe",void 0),PV([xV({type:RU,optional:!0})],LU.prototype,"macData",void 0);class NU{constructor(e={}){this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],NU.prototype,"bagId",void 0),PV([xV({type:FF.Any,context:0})],NU.prototype,"bagValue",void 0),PV([xV({type:yU,repeated:"set",optional:!0})],NU.prototype,"bagAttributes",void 0);let VU=FU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,FU.prototype)}};var zU,jU,HU;VU=FU=PV([_V({type:LF.Sequence,itemType:NU})],VU);let UU=class extends BV{constructor(e={}){super(e)}toString(){return{}.toString(),this.ia5String||super.toString()}};PV([xV({type:FF.IA5String})],UU.prototype,"ia5String",void 0),UU=PV([_V({type:LF.Choice})],UU);let WU=class extends jj{};WU=PV([_V({type:LF.Sequence})],WU);let $U=class extends LU{};$U=PV([_V({type:LF.Sequence})],$U);let GU=class extends kU{};GU=PV([_V({type:LF.Sequence})],GU);let qU=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.IA5String})],qU.prototype,"value",void 0),qU=PV([_V({type:LF.Choice})],qU);let YU=class extends UU{};YU=PV([_V({type:LF.Choice})],YU);let ZU=class extends BV{};ZU=PV([_V({type:LF.Choice})],ZU);let KU=class{constructor(e=new Date){this.value=e}};PV([xV({type:FF.GeneralizedTime})],KU.prototype,"value",void 0),KU=PV([_V({type:LF.Choice})],KU);let QU=class extends BV{};QU=PV([_V({type:LF.Choice})],QU);let XU=class{constructor(e="M"){this.value=e}toString(){return this.value}};PV([xV({type:FF.PrintableString})],XU.prototype,"value",void 0),XU=PV([_V({type:LF.Choice})],XU);let JU=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.PrintableString})],JU.prototype,"value",void 0),JU=PV([_V({type:LF.Choice})],JU);let eW=class extends JU{};eW=PV([_V({type:LF.Choice})],eW);let tW=class extends BV{};tW=PV([_V({type:LF.Choice})],tW);let nW=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.ObjectIdentifier})],nW.prototype,"value",void 0),nW=PV([_V({type:LF.Choice})],nW);let iW=class extends Qz{};iW=PV([_V({type:LF.Choice})],iW);let rW=class{constructor(e=0){this.value=e}toString(){return this.value.toString()}};PV([xV({type:FF.Integer})],rW.prototype,"value",void 0),rW=PV([_V({type:LF.Choice})],rW);let sW=class extends PH{};sW=PV([_V({type:LF.Sequence})],sW);let oW=class extends BV{};oW=PV([_V({type:LF.Choice})],oW);let aW=zU=class extends tj{constructor(e){super(e),Object.setPrototypeOf(this,zU.prototype)}};aW=zU=PV([_V({type:LF.Sequence})],aW);let lW=jU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,jU.prototype)}};lW=jU=PV([_V({type:LF.Set,itemType:cj})],lW);let cW=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.BmpString})],cW.prototype,"value",void 0),cW=PV([_V({type:LF.Choice})],cW);let uW=class extends Zz{};uW=PV([_V({type:LF.Sequence})],uW);let dW=HU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,HU.prototype)}};var hW;dW=HU=PV([_V({type:LF.Sequence,itemType:uW})],dW);let pW=hW=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,hW.prototype)}};pW=hW=PV([_V({type:LF.Sequence,itemType:Vz})],pW);class gW{constructor(e={}){this.version=0,this.subject=new VV,this.subjectPKInfo=new Kz,this.attributes=new pW,Object.assign(this,e)}}PV([xV({type:FF.Integer})],gW.prototype,"version",void 0),PV([xV({type:VV})],gW.prototype,"subject",void 0),PV([xV({type:Kz})],gW.prototype,"subjectPKInfo",void 0),PV([xV({type:pW,implicit:!0,context:0})],gW.prototype,"attributes",void 0);class fW{constructor(e={}){this.certificationRequestInfo=new gW,this.signatureAlgorithm=new Zz,this.signature=new ArrayBuffer(0),Object.assign(this,e)}}var mW;PV([xV({type:gW})],fW.prototype,"certificationRequestInfo",void 0),PV([xV({type:Zz})],fW.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],fW.prototype,"signature",void 0),mU.registerSingleton("crypto.algorithmProvider",class{getAlgorithms(){return mU.resolveAll("crypto.algorithm")}toAsnAlgorithm(e){for(const t of this.getAlgorithms()){const n=t.toAsnAlgorithm(e);if(n)return n}if(/[0-9.]+/.test(e.name)){const t=new Zz({algorithm:e.name});return"parameters"in e&&(t.parameters=e.parameters),t}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}toWebAlgorithm(e){for(const t of this.getAlgorithms()){const n=t.toWebAlgorithm(e);if(n)return n}return{name:e.algorithm,parameters:e.parameters}}});const vW="ECDSA";let bW=mW=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case vW.toLowerCase():if("hash"in e)switch(("string"==typeof e.hash?e.hash:e.hash.name).toLowerCase()){case"sha-1":return BH;case"sha-256":return RH;case"sha-384":return LH;case"sha-512":return FH}else if("namedCurve"in e){let t="";switch(e.namedCurve){case"P-256":t="1.2.840.10045.3.1.7";break;case"K-256":t=mW.SECP256K1;break;case"P-384":t="1.3.132.0.34";break;case"P-521":t="1.3.132.0.35";break;case"brainpoolP160r1":t="1.3.36.3.3.2.8.1.1.1";break;case"brainpoolP160t1":t="1.3.36.3.3.2.8.1.1.2";break;case"brainpoolP192r1":t="1.3.36.3.3.2.8.1.1.3";break;case"brainpoolP192t1":t="1.3.36.3.3.2.8.1.1.4";break;case"brainpoolP224r1":t="1.3.36.3.3.2.8.1.1.5";break;case"brainpoolP224t1":t="1.3.36.3.3.2.8.1.1.6";break;case"brainpoolP256r1":t="1.3.36.3.3.2.8.1.1.7";break;case"brainpoolP256t1":t="1.3.36.3.3.2.8.1.1.8";break;case"brainpoolP320r1":t="1.3.36.3.3.2.8.1.1.9";break;case"brainpoolP320t1":t="1.3.36.3.3.2.8.1.1.10";break;case"brainpoolP384r1":t="1.3.36.3.3.2.8.1.1.11";break;case"brainpoolP384t1":t="1.3.36.3.3.2.8.1.1.12";break;case"brainpoolP512r1":t="1.3.36.3.3.2.8.1.1.13";break;case"brainpoolP512t1":t="1.3.36.3.3.2.8.1.1.14"}if(t)return new Zz({algorithm:"1.2.840.10045.2.1",parameters:EV.serialize(new NH({namedCurve:t}))})}}return null}toWebAlgorithm(e){switch(e.algorithm){case"1.2.840.10045.4.1":return{name:vW,hash:{name:"SHA-1"}};case"1.2.840.10045.4.3.2":return{name:vW,hash:{name:"SHA-256"}};case"1.2.840.10045.4.3.3":return{name:vW,hash:{name:"SHA-384"}};case"1.2.840.10045.4.3.4":return{name:vW,hash:{name:"SHA-512"}};case"1.2.840.10045.2.1":if(!e.parameters)throw new TypeError("Cannot get required parameters from EC algorithm");switch(EV.parse(e.parameters,NH).namedCurve){case"1.2.840.10045.3.1.7":return{name:vW,namedCurve:"P-256"};case mW.SECP256K1:return{name:vW,namedCurve:"K-256"};case"1.3.132.0.34":return{name:vW,namedCurve:"P-384"};case"1.3.132.0.35":return{name:vW,namedCurve:"P-521"};case"1.3.36.3.3.2.8.1.1.1":return{name:vW,namedCurve:"brainpoolP160r1"};case"1.3.36.3.3.2.8.1.1.2":return{name:vW,namedCurve:"brainpoolP160t1"};case"1.3.36.3.3.2.8.1.1.3":return{name:vW,namedCurve:"brainpoolP192r1"};case"1.3.36.3.3.2.8.1.1.4":return{name:vW,namedCurve:"brainpoolP192t1"};case"1.3.36.3.3.2.8.1.1.5":return{name:vW,namedCurve:"brainpoolP224r1"};case"1.3.36.3.3.2.8.1.1.6":return{name:vW,namedCurve:"brainpoolP224t1"};case"1.3.36.3.3.2.8.1.1.7":return{name:vW,namedCurve:"brainpoolP256r1"};case"1.3.36.3.3.2.8.1.1.8":return{name:vW,namedCurve:"brainpoolP256t1"};case"1.3.36.3.3.2.8.1.1.9":return{name:vW,namedCurve:"brainpoolP320r1"};case"1.3.36.3.3.2.8.1.1.10":return{name:vW,namedCurve:"brainpoolP320t1"};case"1.3.36.3.3.2.8.1.1.11":return{name:vW,namedCurve:"brainpoolP384r1"};case"1.3.36.3.3.2.8.1.1.12":return{name:vW,namedCurve:"brainpoolP384t1"};case"1.3.36.3.3.2.8.1.1.13":return{name:vW,namedCurve:"brainpoolP512r1"};case"1.3.36.3.3.2.8.1.1.14":return{name:vW,namedCurve:"brainpoolP512t1"}}}return null}};bW.SECP256K1="1.3.132.0.10",bW=mW=PV([bU()],bW),mU.registerSingleton("crypto.algorithm",bW);const yW=Symbol("name"),wW=Symbol("value");class _W{constructor(e,t={},n=""){this[yW]=e,this[wW]=n;for(const i in t)this[i]=t[i]}}_W.NAME=yW,_W.VALUE=wW;class xW{static toString(e){return this.items[e]||e}}xW.items={"1.3.14.3.2.26":"sha1","2.16.840.1.101.3.4.2.4":"sha224","2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512","1.2.840.113549.1.1.1":"rsaEncryption","1.2.840.113549.1.1.5":"sha1WithRSAEncryption","1.2.840.113549.1.1.14":"sha224WithRSAEncryption","1.2.840.113549.1.1.11":"sha256WithRSAEncryption","1.2.840.113549.1.1.12":"sha384WithRSAEncryption","1.2.840.113549.1.1.13":"sha512WithRSAEncryption","1.2.840.10045.2.1":"ecPublicKey","1.2.840.10045.4.1":"ecdsaWithSHA1","1.2.840.10045.4.3.1":"ecdsaWithSHA224","1.2.840.10045.4.3.2":"ecdsaWithSHA256","1.2.840.10045.4.3.3":"ecdsaWithSHA384","1.2.840.10045.4.3.4":"ecdsaWithSHA512","1.3.6.1.5.5.7.3.1":"TLS WWW server authentication","1.3.6.1.5.5.7.3.2":"TLS WWW client authentication","1.3.6.1.5.5.7.3.3":"Code Signing","1.3.6.1.5.5.7.3.4":"E-mail Protection","1.3.6.1.5.5.7.3.8":"Time Stamping","1.3.6.1.5.5.7.3.9":"OCSP Signing","1.2.840.113549.1.7.2":"Signed Data"};class AW{static serialize(e){return this.serializeObj(e).join("\n")}static pad(e=0){return"".padStart(2*e," ")}static serializeObj(e,t=0){const n=[];let i=this.pad(t++),r="";const s=e[_W.VALUE];s&&(r=" "+s),n.push(`${i}${e[_W.NAME]}:${r}`),i=this.pad(t);for(const o in e){if("symbol"==typeof o)continue;const r=e[o],s=o?o+": ":"";if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)n.push(`${i}${s}${r}`);else if(r instanceof Date)n.push(`${i}${s}${r.toUTCString()}`);else if(Array.isArray(r))for(const e of r)e[_W.NAME]=o,n.push(...this.serializeObj(e,t));else if(r instanceof _W)r[_W.NAME]=o,n.push(...this.serializeObj(r,t));else if(hF.BufferSourceConverter.isBufferSource(r))o?(n.push(`${i}${s}`),n.push(...this.serializeBufferSource(r,t+1))):n.push(...this.serializeBufferSource(r,t));else{if(!("toTextObject"in r))throw new TypeError("Cannot serialize data in text format. Unsupported type.");{const e=r.toTextObject();e[_W.NAME]=o,n.push(...this.serializeObj(e,t))}}}return n}static serializeBufferSource(e,t=0){const n=this.pad(t),i=hF.BufferSourceConverter.toUint8Array(e),r=[];for(let s=0;s<i.length;){const e=[];for(let t=0;t<16&&s<i.length;t++){8===t&&e.push("");const n=i[s++].toString(16).padStart(2,"0");e.push(n)}r.push(`${n}${e.join(" ")}`)}return r}static serializeAlgorithm(e){return this.algorithmSerializer.toTextObject(e)}}AW.oidSerializer=xW,AW.algorithmSerializer=class{static toTextObject(e){const t=new _W("Algorithm Identifier",{},xW.toString(e.algorithm));if(e.parameters)switch(e.algorithm){case"1.2.840.10045.2.1":{const n=(new bW).toWebAlgorithm(e);n&&"namedCurve"in n?t["Named Curve"]=n.namedCurve:t.Parameters=e.parameters;break}default:t.Parameters=e.parameters}return t}};class CW{constructor(...e){if(1===e.length){const t=e[0];this.rawData=EV.serialize(t),this.onInit(t)}else{const t=EV.parse(e[0],e[1]);this.rawData=hF.BufferSourceConverter.toArrayBuffer(e[0]),this.onInit(t)}}equal(e){return e instanceof CW&&Object(hF.isEqual)(e.rawData,this.rawData)}toString(e="text"){switch(e){case"asn":return EV.toString(this.rawData);case"text":return AW.serialize(this.toTextObject());case"hex":return hF.Convert.ToHex(this.rawData);case"base64":return hF.Convert.ToBase64(this.rawData);case"base64url":return hF.Convert.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}getTextName(){return this.constructor.NAME}toTextObject(){const e=this.toTextObjectEmpty();return e[""]=this.rawData,e}toTextObjectEmpty(e){return new _W(this.getTextName(),{},e)}}CW.NAME="ASN";class SW extends CW{constructor(...e){let t;t=hF.BufferSourceConverter.isBufferSource(e[0])?hF.BufferSourceConverter.toArrayBuffer(e[0]):EV.serialize(new ej({extnID:e[0],critical:e[1],extnValue:new WN(hF.BufferSourceConverter.toArrayBuffer(e[2]))})),super(t,ej)}onInit(e){this.type=e.extnID,this.critical=e.critical,this.value=e.extnValue.buffer}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.value,e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty(this.critical?"critical":void 0);return e[_W.NAME]===SW.NAME&&(e[_W.NAME]=xW.toString(this.type)),e}}var kW;class EW{constructor(){this.items=new Map,this[kW]="CryptoProvider","undefined"!=typeof self&&"undefined"!=typeof crypto&&this.set(EW.DEFAULT,crypto)}static isCryptoKeyPair(e){return e&&e.privateKey&&e.publicKey}static isCryptoKey(e){return e&&e.usages&&e.type&&e.algorithm&&void 0!==e.extractable}clear(){this.items.clear()}delete(e){return this.items.delete(e)}forEach(e,t){return this.items.forEach(e,t)}has(e){return this.items.has(e)}get size(){return this.items.size}entries(){return this.items.entries()}keys(){return this.items.keys()}values(){return this.items.values()}[Symbol.iterator](){return this.items[Symbol.iterator]()}get(e=EW.DEFAULT){const t=this.items.get(e.toLowerCase());if(!t)throw new Error(`Cannot get Crypto by name '${e}'`);return t}set(e,t){if("string"==typeof e){if(!t)throw new TypeError("Argument 'value' is required");this.items.set(e.toLowerCase(),t)}else this.items.set(EW.DEFAULT,e);return this}}kW=Symbol.toStringTag,EW.DEFAULT="default";const PW=new EW,DW=/^[0-2](?:\.[1-9][0-9]*)+$/;class OW{constructor(e={}){this.items={};for(const t in e)this.register(t,e[t])}get(e){return this.items[e]||null}findId(e){return t=e,new RegExp(DW).test(t)?e:this.get(e);var t}register(e,t){this.items[e]=t,this.items[t]=e}}const IW=new OW;function TW(e,t){return"\\"+hF.Convert.ToHex(hF.Convert.FromUtf8String(t)).toUpperCase()}IW.register("CN","2.5.4.3"),IW.register("L","2.5.4.7"),IW.register("ST","2.5.4.8"),IW.register("O","2.5.4.10"),IW.register("OU","2.5.4.11"),IW.register("C","2.5.4.6"),IW.register("DC","0.9.2342.19200300.100.1.25"),IW.register("E","1.2.840.113549.1.9.1"),IW.register("G","2.5.4.42"),IW.register("I","2.5.4.43"),IW.register("SN","2.5.4.4"),IW.register("T","2.5.4.12");class MW{constructor(e,t={}){this.extraNames=new OW,this.asn=new VV;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.extraNames.register(n,t[n]);this.asn="string"==typeof e?this.fromString(e):e instanceof VV?e:hF.BufferSourceConverter.isBufferSource(e)?EV.parse(e,VV):this.fromJSON(e)}static isASCII(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}getField(e){const t=this.extraNames.findId(e)||IW.findId(e),n=[];for(const i of this.asn)for(const e of i)e.type===t&&n.push(e.value.toString());return n}getName(e){return this.extraNames.get(e)||IW.get(e)}toString(){return this.asn.map(e=>e.map(e=>`${this.getName(e.type)||e.type}=${e.value.anyValue?"#"+hF.Convert.ToHex(e.value.anyValue):e.value.toString().replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,TW)}`).join("+")).join(", ")}toJSON(){var e;const t=[];for(const n of this.asn){const i={};for(const t of n){const n=this.getName(t.type)||t.type;null!==(e=i[n])&&void 0!==e||(i[n]=[]),i[n].push(t.value.anyValue?"#"+hF.Convert.ToHex(t.value.anyValue):t.value.toString())}t.push(i)}return t}fromString(e){const t=new VV,n=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let i=null,r=",";for(;i=n.exec(e+",");){let[,e,n]=i;const s=n[n.length-1];","!==s&&"+"!==s||(n=n.slice(0,n.length-1),i[3]=s);const o=i[3];if(/[\d.]+/.test(e)||(e=this.getName(e)||""),!e)throw new Error(`Cannot get OID for name type '${e}'`);const a=new LV({type:e});if("#"===n.charAt(0))a.value.anyValue=hF.Convert.FromHex(n.slice(1));else{const t=/"(.*?[^\\])?"/.exec(n);t&&(n=t[1]),n=n.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1"),e===this.getName("E")||e===this.getName("DC")?a.value.ia5String=n:MW.isASCII(n)?a.value.printableString=n:a.value.utf8String=n}"+"===r?t[t.length-1].push(a):t.push(new FV([a])),r=o}return t}fromJSON(e){const t=new VV;for(const n of e){const e=new FV;for(const t in n){let i=t;if(/[\d.]+/.test(t)||(i=this.getName(t)||""),!i)throw new Error(`Cannot get OID for name type '${t}'`);const r=n[t];for(const t of r){const n=new LV({type:i});if("object"==typeof t)for(const e in t)switch(e){case"ia5String":n.value.ia5String=t[e];break;case"utf8String":n.value.utf8String=t[e];break;case"universalString":n.value.universalString=t[e];break;case"bmpString":n.value.bmpString=t[e];break;case"printableString":n.value.printableString=t[e]}else"#"===t[0]?n.value.anyValue=hF.Convert.FromHex(t.slice(1)):i===this.getName("E")||i===this.getName("DC")?n.value.ia5String=t:n.value.printableString=t;e.push(n)}}t.push(e)}return t}toArrayBuffer(){return EV.serialize(this.asn)}async getThumbprint(...e){var t;let n,i="SHA-1";return e.length>=1&&!(null===(t=e[0])||void 0===t?void 0:t.subtle)?(i=e[0]||i,n=e[1]||PW.get()):n=e[0]||PW.get(),await n.subtle.digest(i,this.toArrayBuffer())}}const BW="Cannot initialize GeneralName from ASN.1 data. Unsupported string format in use.",RW=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,LW="1.3.6.1.4.1.311.20.2.3";class FW extends CW{constructor(...e){let t;if(2===e.length)switch(e[0]){case"dn":{const n=new MW(e[1]).toArrayBuffer(),i=EV.parse(n,VV);t=new UV({directoryName:i});break}case"dns":t=new UV({dNSName:e[1]});break;case"email":t=new UV({rfc822Name:e[1]});break;case"guid":{const n=new RegExp(RW,"i").exec(e[1]);if(!n)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");const i=n.slice(1).map((e,t)=>t<3?hF.Convert.ToHex(new Uint8Array(hF.Convert.FromHex(e)).reverse()):e).join("");t=new UV({otherName:new jV({typeId:"1.3.6.1.4.1.311.25.1",value:EV.serialize(new WN(hF.Convert.FromHex(i)))})});break}case"ip":t=new UV({iPAddress:e[1]});break;case"id":t=new UV({registeredID:e[1]});break;case"upn":t=new UV({otherName:new jV({typeId:LW,value:EV.serialize(tV.toASN(e[1]))})});break;case"url":t=new UV({uniformResourceIdentifier:e[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else t=hF.BufferSourceConverter.isBufferSource(e[0])?EV.parse(e[0],UV):e[0];super(t)}onInit(e){if(null!=e.dNSName)this.type="dns",this.value=e.dNSName;else if(null!=e.rfc822Name)this.type="email",this.value=e.rfc822Name;else if(null!=e.iPAddress)this.type="ip",this.value=e.iPAddress;else if(null!=e.uniformResourceIdentifier)this.type="url",this.value=e.uniformResourceIdentifier;else if(null!=e.registeredID)this.type="id",this.value=e.registeredID;else if(null!=e.directoryName)this.type="dn",this.value=new MW(e.directoryName).toString();else{if(null==e.otherName)throw new Error(BW);if("1.3.6.1.4.1.311.25.1"===e.otherName.typeId){this.type="guid";const t=EV.parse(e.otherName.value,WN),n=new RegExp(RW,"i").exec(hF.Convert.ToHex(t));if(!n)throw new Error("Cannot initialize GeneralName from ASN.1 data. Value doesn't match to GUID regular expression.");this.value=n.slice(1).map((e,t)=>t<3?hF.Convert.ToHex(new Uint8Array(hF.Convert.FromHex(e)).reverse()):e).join("-")}else{if(e.otherName.typeId!==LW)throw new Error(BW);this.type="upn",this.value=EV.parse(e.otherName.value,BV).toString()}}}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let e;switch(this.type){case"dn":case"dns":case"guid":case"ip":case"id":case"upn":case"url":e=this.type.toUpperCase();break;case"email":e="Email";break;default:throw new Error("Unsupported GeneralName type")}let t=this.value;return"id"===this.type&&(t=xW.toString(t)),new _W(e,void 0,t)}}class NW extends CW{constructor(e){let t;if(e instanceof QV)t=e;else if(Array.isArray(e)){const n=[];for(const t of e)if(t instanceof UV)n.push(t);else{const e=EV.parse(new FW(t.type,t.value).rawData,UV);n.push(e)}t=new QV(n)}else{if(!hF.BufferSourceConverter.isBufferSource(e))throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");t=EV.parse(e,QV)}super(t)}onInit(e){const t=[];for(const n of e){let e=null;try{e=new FW(n)}catch{continue}t.push(e)}this.items=t}toJSON(){return this.items.map(e=>e.toJSON())}toTextObject(){const e=super.toTextObjectEmpty();for(const t of this.items){const n=t.toTextObject();let i=e[n[_W.NAME]];Array.isArray(i)||(i=[],e[n[_W.NAME]]=i),i.push(n)}return e}}NW.NAME="GeneralNames";const VW="-{5}BEGIN ([^\\n]+(?=-{5}))-{5}\\n(?:((?:[^:\\n]+: (?:[^\\n]+\\n(?: +[^\\n]+\\n)*))+))?\\n?((?:[a-zA-Z0-9=+/]+\\n)+)-{5}END \\1-{5}";class zW{static isPem(e){return"string"==typeof e&&new RegExp(VW,"g").test(e)}static decodeWithHeaders(e){e=e.replace(/\r/g,"");const t=new RegExp(VW,"g"),n=[];let i=null;for(;i=t.exec(e);){const e=i[3].replace(new RegExp("[\\n]+","g"),""),t={type:i[1],headers:[],rawData:hF.Convert.FromBase64(e)},r=i[2];if(r){const e=r.split(new RegExp("\\n","g"));let n=null;for(const i of e){const[e,r]=i.split(/:(.*)/);if(void 0===r){if(!n)throw new Error("Cannot parse PEM string. Incorrect header value");n.value+=e.trim()}else n&&t.headers.push(n),n={key:e,value:r.trim()}}n&&t.headers.push(n)}n.push(t)}return n}static decode(e){return this.decodeWithHeaders(e).map(e=>e.rawData)}static decodeFirst(e){const t=this.decode(e);if(!t.length)throw new RangeError("PEM string doesn't contain any objects");return t[0]}static encode(e,t){if(Array.isArray(e)){const n=new Array;return e.forEach(t?e=>{if(!hF.BufferSourceConverter.isBufferSource(e))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");n.push(this.encodeStruct({type:t,rawData:hF.BufferSourceConverter.toArrayBuffer(e)}))}:e=>{if(!("type"in e))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");n.push(this.encodeStruct(e))}),n.join("\n")}if(!t)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:t,rawData:hF.BufferSourceConverter.toArrayBuffer(e)})}static encodeStruct(e){var t;const n=e.type.toLocaleUpperCase(),i=[];if(i.push(`-----BEGIN ${n}-----`),null===(t=e.headers)||void 0===t?void 0:t.length){for(const t of e.headers)i.push(`${t.key}: ${t.value}`);i.push("")}const r=hF.Convert.ToBase64(e.rawData);let s,o=0;const a=Array();for(;o<r.length&&(r.length-o<64?s=r.substring(o):(s=r.substring(o,o+64),o+=64),0!==s.length)&&(a.push(s),!(s.length<64)););return i.push(...a),i.push(`-----END ${n}-----`),i.join("\n")}}zW.CertificateTag="CERTIFICATE",zW.CrlTag="CRL",zW.CertificateRequestTag="CERTIFICATE REQUEST",zW.PublicKeyTag="PUBLIC KEY",zW.PrivateKeyTag="PRIVATE KEY";class jW extends CW{static isAsnEncoded(e){return hF.BufferSourceConverter.isBufferSource(e)||"string"==typeof e}static toArrayBuffer(e){if("string"==typeof e){if(zW.isPem(e))return zW.decode(e)[0];if(hF.Convert.isHex(e))return hF.Convert.FromHex(e);if(hF.Convert.isBase64(e))return hF.Convert.FromBase64(e);if(hF.Convert.isBase64Url(e))return hF.Convert.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}{const t=hF.Convert.ToBinary(e);return zW.isPem(t)?zW.decode(t)[0]:hF.Convert.isHex(t)?hF.Convert.FromHex(t):hF.Convert.isBase64(t)?hF.Convert.FromBase64(t):hF.Convert.isBase64Url(t)?hF.Convert.FromBase64Url(t):hF.BufferSourceConverter.toArrayBuffer(e)}}constructor(...e){jW.isAsnEncoded(e[0])?super(jW.toArrayBuffer(e[0]),e[1]):super(e[0])}toString(e="pem"){switch(e){case"pem":return zW.encode(this.rawData,this.tag);default:return super.toString(e)}}}class HW extends jW{constructor(e){jW.isAsnEncoded(e)?super(e,Kz):super(e),this.tag=zW.PublicKeyTag}async export(...e){let t,n=["verify"],i={hash:"SHA-256",...this.algorithm};return e.length>1?(i=e[0]||i,n=e[1]||n,t=e[2]||PW.get()):t=e[0]||PW.get(),t.subtle.importKey("spki",this.rawData,i,!0,n)}onInit(e){const t=mU.resolve("crypto.algorithmProvider"),n=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case"1.2.840.113549.1.1.1":{const t=EV.parse(e.subjectPublicKey,JH),i=hF.BufferSourceConverter.toUint8Array(t.modulus);n.publicExponent=hF.BufferSourceConverter.toUint8Array(t.publicExponent),n.modulusLength=(i[0]?i:i.slice(1)).byteLength<<3;break}}}async getThumbprint(...e){var t;let n,i="SHA-1";return e.length>=1&&!(null===(t=e[0])||void 0===t?void 0:t.subtle)?(i=e[0]||i,n=e[1]||PW.get()):n=e[0]||PW.get(),await n.subtle.digest(i,this.rawData)}async getKeyIdentifier(e){e||(e=PW.get());const t=EV.parse(this.rawData,Kz);return await e.subtle.digest("SHA-1",t.subjectPublicKey)}toTextObject(){const e=this.toTextObjectEmpty(),t=EV.parse(this.rawData,Kz);switch(e.Algorithm=AW.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case"1.2.840.10045.2.1":e["EC Point"]=t.subjectPublicKey;break;case"1.2.840.113549.1.1.1":default:e["Raw Data"]=t.subjectPublicKey}return e}}class UW{static register(e,t){this.items.set(e,t)}static create(e){const t=new SW(e),n=this.items.get(t.type);return n?new n(e):t}}UW.items=new Map;class WW extends jW{constructor(e){jW.isAsnEncoded(e)?super(e,sj):super(e),this.tag=zW.CertificateTag}onInit(e){const t=e.tbsCertificate;this.tbs=EV.serialize(t),this.serialNumber=hF.Convert.ToHex(t.serialNumber),this.subjectName=new MW(t.subject),this.subject=new MW(t.subject).toString(),this.issuerName=new MW(t.issuer),this.issuer=this.issuerName.toString();const n=mU.resolve("crypto.algorithmProvider");this.signatureAlgorithm=n.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signatureValue;const i=t.validity.notBefore.utcTime||t.validity.notBefore.generalTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;const r=t.validity.notAfter.utcTime||t.validity.notAfter.generalTime;if(!r)throw new Error("Cannot get 'notAfter' value");this.notAfter=r,this.extensions=[],t.extensions&&(this.extensions=t.extensions.map(e=>UW.create(EV.serialize(e)))),this.publicKey=new HW(t.subjectPublicKeyInfo)}getExtension(e){for(const t of this.extensions)if("string"==typeof e){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>"string"==typeof e?t.type===e:t instanceof e)}async verify(e={},t=PW.get()){let n,i;const r=e.publicKey;try{if(r)if("publicKey"in r)n={...r.publicKey.algorithm,...this.signatureAlgorithm},i=await r.publicKey.export(n,["verify"]);else if(r instanceof HW)n={...r.algorithm,...this.signatureAlgorithm},i=await r.export(n,["verify"]);else if(hF.BufferSourceConverter.isBufferSource(r)){const e=new HW(r);n={...e.algorithm,...this.signatureAlgorithm},i=await e.export(n,["verify"])}else n={...r.algorithm,...this.signatureAlgorithm},i=r;else n={...this.publicKey.algorithm,...this.signatureAlgorithm},i=await this.publicKey.export(n,["verify"],t)}catch(l){return!1}const s=mU.resolveAll("crypto.signatureFormatter").reverse();let o=null;for(const c of s)if(o=c.toWebSignature(n,this.signature),o)break;if(!o)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const a=await t.subtle.verify(this.signatureAlgorithm,i,o,this.tbs);if(e.signatureOnly)return a;{const t=(e.date||new Date).getTime();return a&&this.notBefore.getTime()<t&&t<this.notAfter.getTime()}}async getThumbprint(...e){let t,n="SHA-1";return e[0]&&(e[0].subtle?t=e[0]:(n=e[0]||n,t=e[1])),null!=t||(t=PW.get()),await t.subtle.digest(n,this.rawData)}async isSelfSigned(e=PW.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},e)}toTextObject(){const e=this.toTextObjectEmpty(),t=EV.parse(this.rawData,sj),n=t.tbsCertificate,i=new _W("",{Version:`${nj[n.version]} (${n.version})`,"Serial Number":n.serialNumber,"Signature Algorithm":AW.serializeAlgorithm(n.signature),Issuer:this.issuer,Validity:new _W("",{"Not Before":n.validity.notBefore.getTime(),"Not After":n.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(n.issuerUniqueID&&(i["Issuer Unique ID"]=n.issuerUniqueID),n.subjectUniqueID&&(i["Subject Unique ID"]=n.subjectUniqueID),this.extensions.length){const e=new _W("");for(const t of this.extensions){const n=t.toTextObject();e[n[_W.NAME]]=n}i.Extensions=e}return e.Data=i,e.Signature=new _W("",{Algorithm:AW.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}WW.NAME="Certificate";class $W extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else if("string"==typeof e[0]){const t=new YV({keyIdentifier:new qV(hF.Convert.FromHex(e[0]))});super("2.5.29.35",e[1],EV.serialize(t))}else{const t=e[0],n=t.name instanceof NW?EV.parse(t.name.rawData,QV):t.name,i=new YV({authorityCertIssuer:n,authorityCertSerialNumber:hF.Convert.FromHex(t.serialNumber)});super("2.5.29.35",e[1],EV.serialize(i))}}static async create(e,t=!1,n=PW.get()){if(e instanceof WW||EW.isCryptoKey(e)){const i=e instanceof WW?await e.publicKey.export(n):e,r=await n.subtle.exportKey("spki",i),s=new HW(r),o=await s.getKeyIdentifier(n);return new $W(hF.Convert.ToHex(o),t)}return new $W(e,t)}onInit(e){super.onInit(e);const t=EV.parse(e.extnValue,YV);t.keyIdentifier&&(this.keyId=hF.Convert.ToHex(t.keyIdentifier)),t.authorityCertIssuer&&t.authorityCertSerialNumber&&(this.certId={name:t.authorityCertIssuer,serialNumber:hF.Convert.ToHex(t.authorityCertSerialNumber)})}toTextObject(){const e=this.toTextObjectWithoutValue(),t=EV.parse(this.value,YV);return t.authorityCertIssuer&&(e["Authority Issuer"]=new NW(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}$W.NAME="Authority Key Identifier";class GW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,ZV);this.ca=t.cA,this.pathLength=t.pathLenConstraint}else{const t=new ZV({cA:e[0],pathLenConstraint:e[1]});super("2.5.29.19",e[2],EV.serialize(t)),this.ca=e[0],this.pathLength=e[1]}}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),void 0!==this.pathLength&&(e["Path Length"]=this.pathLength),e}}var qW,YW,ZW;GW.NAME="Basic Constraints",(YW=qW||(qW={})).serverAuth="1.3.6.1.5.5.7.3.1",YW.clientAuth="1.3.6.1.5.5.7.3.2",YW.codeSigning="1.3.6.1.5.5.7.3.3",YW.emailProtection="1.3.6.1.5.5.7.3.4",YW.timeStamping="1.3.6.1.5.5.7.3.8",YW.ocspSigning="1.3.6.1.5.5.7.3.9";class KW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,xz);this.usages=t.map(e=>e)}else{const t=new xz(e[0]);super("2.5.29.37",e[1],EV.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(e=>xW.toString(e)).join(", "),e}}KW.NAME="Extended Key Usages",function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(ZW||(ZW={}));class QW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,Dz);this.usages=t.toNumber()}else{const t=new Dz(e[0]);super("2.5.29.15",e[1],EV.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=EV.parse(this.value,Dz);return e[""]=t.toJSON().join(", "),e}}QW.NAME="Key Usages";class XW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,Hz);this.keyId=hF.Convert.ToHex(t)}else{const t="string"==typeof e[0]?hF.Convert.FromHex(e[0]):e[0],n=new Hz(t);super("2.5.29.14",e[1],EV.serialize(n)),this.keyId=hF.Convert.ToHex(t)}}static async create(e,t=!1,n=PW.get()){let i;i=e instanceof HW?e.rawData:"publicKey"in e?e.publicKey.rawData:hF.BufferSourceConverter.isBufferSource(e)?e:await n.subtle.exportKey("spki",e);const r=new HW(i),s=await r.getKeyIdentifier(n);return new XW(hF.Convert.ToHex(s),t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=EV.parse(this.value,Hz);return e[""]=t,e}}XW.NAME="Subject Key Identifier";class JW extends SW{constructor(...e){hF.BufferSourceConverter.isBufferSource(e[0])?super(e[0]):super("2.5.29.17",e[1],new NW(e[0]||[]).rawData)}onInit(e){super.onInit(e);const t=EV.parse(e.extnValue,Nz);this.names=new NW(t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(const n in t)e[n]=t[n];return e}}JW.NAME="Subject Alternative Name";class e$ extends SW{constructor(...e){var t;if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,az);this.policies=t.map(e=>e.policyIdentifier)}else{const n=e[0],i=null!==(t=e[1])&&void 0!==t&&t,r=new az(n.map(e=>new oz({policyIdentifier:e})));super("2.5.29.32",i,EV.serialize(r)),this.policies=n}}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(e=>new _W("",{},xW.toString(e))),e}}e$.NAME="Certificate Policies",UW.register("2.5.29.32",e$);class t$ extends CW{constructor(...e){let t;if(hF.BufferSourceConverter.isBufferSource(e[0]))t=hF.BufferSourceConverter.toArrayBuffer(e[0]);else{const n=e[0],i=Array.isArray(e[1])?e[1].map(e=>hF.BufferSourceConverter.toArrayBuffer(e)):[];t=EV.serialize(new Vz({type:n,values:i}))}super(t,Vz)}onInit(e){this.type=e.type,this.values=e.values}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Value=this.values.map(e=>new _W("",{"":e})),e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty();return e[_W.NAME]===t$.NAME&&(e[_W.NAME]=xW.toString(this.type)),e}}t$.NAME="Attribute";class n$ extends t${constructor(...e){var t;if(hF.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else{const t=new oW({printableString:e[0]});super("1.2.840.113549.1.9.7",[EV.serialize(t)])}null!==(t=this.password)&&void 0!==t||(this.password="")}onInit(e){if(super.onInit(e),this.values[0]){const e=EV.parse(this.values[0],oW);this.password=e.toString()}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[_W.VALUE]=this.password,e}}n$.NAME="Challenge Password";class i$ extends t${constructor(...e){var t;if(hF.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else{const t=e[0],n=new tj;for(const e of t)n.push(EV.parse(e.rawData,ej));super("1.2.840.113549.1.9.14",[EV.serialize(n)])}null!==(t=this.items)&&void 0!==t||(this.items=[])}onInit(e){if(super.onInit(e),this.values[0]){const e=EV.parse(this.values[0],tj);this.items=e.map(e=>UW.create(EV.serialize(e)))}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.items.map(e=>e.toTextObject());for(const n of t)e[n[_W.NAME]]=n;return e}}i$.NAME="Extensions";class r${static register(e,t){this.items.set(e,t)}static create(e){const t=new t$(e),n=this.items.get(t.type);return n?new n(e):t}}r$.items=new Map;let s$=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if(!e.hash)return new Zz({algorithm:"1.2.840.113549.1.1.1",parameters:null});switch(e.hash.name.toLowerCase()){case"sha-1":return new Zz({algorithm:"1.2.840.113549.1.1.5",parameters:null});case"sha-256":return new Zz({algorithm:"1.2.840.113549.1.1.11",parameters:null});case"sha-384":return new Zz({algorithm:"1.2.840.113549.1.1.12",parameters:null});case"sha-512":return new Zz({algorithm:"1.2.840.113549.1.1.13",parameters:null})}}return null}toWebAlgorithm(e){switch(e.algorithm){case"1.2.840.113549.1.1.1":return{name:"RSASSA-PKCS1-v1_5"};case"1.2.840.113549.1.1.5":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case"1.2.840.113549.1.1.11":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"1.2.840.113549.1.1.12":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case"1.2.840.113549.1.1.13":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}}return null}};s$=PV([bU()],s$),mU.registerSingleton("crypto.algorithm",s$);class o${addPadding(e,t){const n=hF.BufferSourceConverter.toUint8Array(t),i=new Uint8Array(e);return i.set(n,e-n.length),i}removePadding(e,t=!1){let n=hF.BufferSourceConverter.toUint8Array(e);for(let i=0;i<n.length;i++)if(n[i]){n=n.slice(i);break}if(t&&n[0]>127){const e=new Uint8Array(n.length+1);return e.set(n,1),e.buffer}return n.buffer}toAsnSignature(e,t){if("ECDSA"===e.name){const n=o$.namedCurveSize.get(e.namedCurve)||o$.defaultNamedCurveSize,i=new zH,r=hF.BufferSourceConverter.toUint8Array(t);return i.r=this.removePadding(r.slice(0,n),!0),i.s=this.removePadding(r.slice(n,n+n),!0),EV.serialize(i)}return null}toWebSignature(e,t){if("ECDSA"===e.name){const n=EV.parse(t,zH),i=o$.namedCurveSize.get(e.namedCurve)||o$.defaultNamedCurveSize,r=this.addPadding(i,this.removePadding(n.r)),s=this.addPadding(i,this.removePadding(n.s));return Object(hF.combine)(r,s)}return null}}o$.namedCurveSize=new Map,o$.defaultNamedCurveSize=32;let a$=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t="1.3.101.112";break;case"ed448":t="1.3.101.113"}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t="1.3.101.110";break;case"x448":t="1.3.101.111"}}return t?new Zz({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case"1.3.101.112":return{name:"EdDSA",namedCurve:"Ed25519"};case"1.3.101.113":return{name:"EdDSA",namedCurve:"Ed448"};case"1.3.101.110":return{name:"ECDH-ES",namedCurve:"X25519"};case"1.3.101.111":return{name:"ECDH-ES",namedCurve:"X448"}}return null}};a$=PV([bU()],a$),mU.registerSingleton("crypto.algorithm",a$);class l$ extends jW{constructor(e){jW.isAsnEncoded(e)?super(e,fW):super(e),this.tag=zW.CertificateRequestTag}onInit(e){this.tbs=EV.serialize(e.certificationRequestInfo),this.publicKey=new HW(e.certificationRequestInfo.subjectPKInfo);const t=mU.resolve("crypto.algorithmProvider");this.signatureAlgorithm=t.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signature,this.attributes=e.certificationRequestInfo.attributes.map(e=>r$.create(EV.serialize(e)));const n=this.getAttribute("1.2.840.113549.1.9.14");this.extensions=[],n instanceof i$&&(this.extensions=n.items),this.subjectName=new MW(e.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}getAttribute(e){for(const t of this.attributes)if(t.type===e)return t;return null}getAttributes(e){return this.attributes.filter(t=>t.type===e)}getExtension(e){for(const t of this.extensions)if(t.type===e)return t;return null}getExtensions(e){return this.extensions.filter(t=>t.type===e)}async verify(e=PW.get()){const t={...this.publicKey.algorithm,...this.signatureAlgorithm},n=await this.publicKey.export(t,["verify"],e),i=mU.resolveAll("crypto.signatureFormatter").reverse();let r=null;for(const s of i)if(r=s.toWebSignature(t,this.signature),r)break;if(!r)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await e.subtle.verify(this.signatureAlgorithm,n,r,this.tbs)}toTextObject(){const e=this.toTextObjectEmpty(),t=EV.parse(this.rawData,fW),n=t.certificationRequestInfo,i=new _W("",{Version:`${nj[n.version]} (${n.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const e=new _W("");for(const t of this.attributes){const n=t.toTextObject();e[n[_W.NAME]]=n}i.Attributes=e}return e.Data=i,e.Signature=new _W("",{Algorithm:AW.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}var c$;l$.NAME="PKCS#10 Certificate Request",function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(c$||(c$={})),UW.register("2.5.29.19",GW),UW.register("2.5.29.37",KW),UW.register("2.5.29.15",QW),UW.register("2.5.29.14",XW),UW.register("2.5.29.35",$W),UW.register("2.5.29.17",JW),r$.register("1.2.840.113549.1.9.7",n$),r$.register("1.2.840.113549.1.9.14",i$),mU.registerSingleton("crypto.signatureFormatter",class{toAsnSignature(e,t){return hF.BufferSourceConverter.toArrayBuffer(t)}toWebSignature(e,t){return hF.BufferSourceConverter.toArrayBuffer(t)}}),mU.registerSingleton("crypto.signatureFormatter",o$),o$.namedCurveSize.set("P-256",32),o$.namedCurveSize.set("K-256",32),o$.namedCurveSize.set("P-384",48),o$.namedCurveSize.set("P-521",66);let u$=(()=>{class e{static async pkcs10(t,n,i){const r=await t.subtle.generateKey(n,!1,e.keyUsages),s=await class{static async create(e,t=PW.get()){if(!e.keys.privateKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");if(!e.keys.publicKey)throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");const n=await t.subtle.exportKey("spki",e.keys.publicKey),i=new fW({certificationRequestInfo:new gW({subjectPKInfo:EV.parse(n,Kz)})});if(e.name){const t=e.name instanceof MW?e.name:new MW(e.name);i.certificationRequestInfo.subject=EV.parse(t.toArrayBuffer(),VV)}if(e.attributes)for(const u of e.attributes)i.certificationRequestInfo.attributes.push(EV.parse(u.rawData,Vz));if(e.extensions&&e.extensions.length){const t=new Vz({type:"1.2.840.113549.1.9.14"}),n=new tj;for(const i of e.extensions)n.push(EV.parse(i.rawData,ej));t.values.push(EV.serialize(n)),i.certificationRequestInfo.attributes.push(t)}const r={...e.signingAlgorithm,...e.keys.privateKey.algorithm},s=mU.resolve("crypto.algorithmProvider");i.signatureAlgorithm=s.toAsnAlgorithm(r);const o=EV.serialize(i.certificationRequestInfo),a=await t.subtle.sign(r,e.keys.privateKey,o),l=mU.resolveAll("crypto.signatureFormatter").reverse();let c=null;for(const u of l)if(c=u.toAsnSignature(r,a),c)break;if(!c)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return i.signature=c,new l$(EV.serialize(i))}}.create({name:i,keys:r,signingAlgorithm:n,extensions:[],attributes:[]},t);return{der:s.rawData,pem:s.toString("pem"),privateKey:r.privateKey,publicKey:r.publicKey}}static async x509(t,n,i){const r=await t.subtle.generateKey(n,!1,e.keyUsages),s=new Date,o=await class{static async createSelfSigned(e,t=PW.get()){if(!e.keys.privateKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");if(!e.keys.publicKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");return this.create({serialNumber:e.serialNumber,subject:e.name,issuer:e.name,notBefore:e.notBefore,notAfter:e.notAfter,publicKey:e.keys.publicKey,signingKey:e.keys.privateKey,signingAlgorithm:e.signingAlgorithm,extensions:e.extensions},t)}static async create(e,t=PW.get()){var n;let i;i=e.publicKey instanceof HW?e.publicKey.rawData:"publicKey"in e.publicKey?e.publicKey.publicKey.rawData:hF.BufferSourceConverter.isBufferSource(e.publicKey)?e.publicKey:await t.subtle.exportKey("spki",e.publicKey);const r=new sj({tbsCertificate:new rj({version:nj.v3,serialNumber:hF.Convert.FromHex(e.serialNumber),validity:new Xz({notBefore:e.notBefore,notAfter:e.notAfter}),extensions:new tj((null===(n=e.extensions)||void 0===n?void 0:n.map(e=>EV.parse(e.rawData,ej)))||[]),subjectPublicKeyInfo:EV.parse(i,Kz)})});if(e.subject){const t=e.subject instanceof MW?e.subject:new MW(e.subject);r.tbsCertificate.subject=EV.parse(t.toArrayBuffer(),VV)}if(e.issuer){const t=e.issuer instanceof MW?e.issuer:new MW(e.issuer);r.tbsCertificate.issuer=EV.parse(t.toArrayBuffer(),VV)}const s="signingKey"in e?{...e.signingAlgorithm,...e.signingKey.algorithm}:e.publicKey.algorithm,o=mU.resolve("crypto.algorithmProvider");r.tbsCertificate.signature=r.signatureAlgorithm=o.toAsnAlgorithm(s);const a=EV.serialize(r.tbsCertificate),l="signingKey"in e?await t.subtle.sign(s,e.signingKey,a):e.signature,c=mU.resolveAll("crypto.signatureFormatter").reverse();let u=null;for(const d of c)if(u=d.toAsnSignature(s,l),u)break;if(!u)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");return r.signatureValue=u,new WW(EV.serialize(r))}}.createSelfSigned({serialNumber:"01",name:i,notBefore:new Date(s.getFullYear(),s.getMonth(),s.getDate()),notAfter:new Date(s.getFullYear()+1,s.getMonth(),s.getDate()),signingAlgorithm:n,keys:r,extensions:[new GW(!1,0,!0),new QW(ZW.digitalSignature,!0),new KW(["1.3.6.1.5.5.7.3.2","1.3.6.1.5.5.7.3.4"],!0)]},t);return{der:o.rawData,pem:o.toString("pem"),privateKey:r.privateKey,publicKey:r.publicKey}}}return e.keyUsages=["sign","verify"],e})();var d$,h$;!function(e){e[e.picture=0]="picture",e[e.handwrittenSignature=1]="handwrittenSignature"}(h$||(h$={}));let p$=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:FF.Integer})],p$.prototype,"predefinedBiometricType",void 0),PV([xV({type:FF.ObjectIdentifier})],p$.prototype,"biometricDataOid",void 0),p$=PV([_V({type:LF.Choice})],p$);class g${constructor(e={}){this.typeOfBiometricData=new p$,this.hashAlgorithm=new Zz,this.biometricDataHash=new WN,Object.assign(this,e)}}PV([xV({type:p$})],g$.prototype,"typeOfBiometricData",void 0),PV([xV({type:Zz})],g$.prototype,"hashAlgorithm",void 0),PV([xV({type:WN})],g$.prototype,"biometricDataHash",void 0),PV([xV({type:FF.IA5String,optional:!0})],g$.prototype,"sourceDataUri",void 0);let f$=d$=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,d$.prototype)}};var m$,v$;f$=d$=PV([_V({type:LF.Sequence,itemType:g$})],f$);class b${constructor(){this.statementId="",this.statementInfo=new ArrayBuffer(0)}}PV([xV({type:FF.ObjectIdentifier})],b$.prototype,"statementId",void 0),PV([xV({type:FF.Any,optional:!0})],b$.prototype,"statementInfo",void 0);let y$=m$=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,m$.prototype)}};y$=m$=PV([_V({type:LF.Sequence,itemType:UV})],y$);class w${constructor(e={}){Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier,optional:!0})],w$.prototype,"semanticsIdentifier",void 0),PV([xV({type:y$,optional:!0})],w$.prototype,"nameRegistrationAuthorities",void 0);let _$=v$=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,v$.prototype)}};_$=v$=PV([_V({type:LF.Sequence,itemType:b$})],_$);let x$=class extends BV{};var A$;x$=PV([_V({type:LF.Choice})],x$),function(e){e.M="M",e.F="F",e.m="m",e.f="f"}(A$||(A$={}));class C${constructor(...e){1===e.length?(this.asn=e[0],this.rawData=EV.serialize(this.asn)):(this.asn=EV.parse(e[0],e[1]),this.rawData=hF.BufferSourceConverter.toArrayBuffer(e[0]))}}class S$ extends C${constructor(e){super(e,ej);const t=this.getAsnExtnValue();switch(this.asn.extnID){case"2.5.29.15":this.value=CV.parse(t,Dz);break;case"2.5.29.32":this.value=CV.parse(t,az);break;case"1.3.6.1.5.5.7.1.3":this.value=CV.parse(t,_$);break;case"2.5.29.19":this.value=CV.parse(t,ZV);break;default:this.value=t}}getAsnExtnValue(){return this.asn.extnValue.buffer}}class k$ extends C${constructor(e){super(e,sj),this.extensions=[],this.parseExtensions()}parseExtensions(){const{tbsCertificate:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new S$(EV.serialize(e))))}getExtensionByOid(e){if(this.extensions.length)for(let t=0;t<this.extensions.length;t+=1){const n=this.extensions[t];if(n&&n.asn.extnID===e)return n}}hasKeyUsage(e){if(!e||!e.length)return!1;const t=this.getExtensionByOid("2.5.29.15");if(!t)return!1;const n=t.value.toJSON();if(!n.length)return!1;for(let i=0;i<e.length;i+=1){const t=e[i];if("string"==typeof t&&n.includes(t))return!0;if(Array.isArray(t)&&t.every(e=>n.includes(e)))return!0}return!1}isQualified(e=[]){const t=this.getExtensionByOid("2.5.29.32");if(!t)return!1;const n=this.getExtensionByOid("1.3.6.1.5.5.7.1.3");if(!n)return!1;const i=t.value.map(e=>e.policyIdentifier),r=n.value.map(e=>e.statementId),s=r.includes("0.4.0.1862.1.1");let o=i.includes("0.4.0.1456.1.1")||i.includes("0.4.0.194112.1.3")||i.includes("0.4.0.194112.1.2")||r.includes("0.4.0.1862.1.4");const a=i.includes("0.4.0.194112.1.1")||r.includes("0.4.0.1862.1.6.2");return e.length&&e.forEach(e=>{r.includes(e)&&(o=!0)}),!!(s&&o||a)}isCA(){const e=this.getExtensionByOid("2.5.29.19");return!!e&&e.value.cA}}var E$,P$,D$,O$=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},I$=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};class T${constructor(e){this.FORTIFY_URL="127.0.0.1:31337",this.CONNECTION_CHECK_TIME=1e4,this.options={onDebug:()=>{},onClose:()=>{},onProvidersAdded:()=>{},onProvidersRemoved:()=>{},filters:{}},E$.set(this,void 0),P$.set(this,function(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,i=n.split("[FBAN");void 0!==i[1]&&(n=i[0]),void 0!==(i=n.split("Twitter"))[1]&&(n=i[0]);var r=function(e){return function(t){return t.test(e)}}(n),s={apple:{phone:r(KL)&&!r(rF),ipod:r(QL),tablet:!r(KL)&&(r(XL)||dF(t))&&!r(rF),universal:r(JL),device:(r(KL)||r(QL)||r(XL)||r(JL)||dF(t))&&!r(rF)},amazon:{phone:r(nF),tablet:!r(nF)&&r(iF),device:r(nF)||r(iF)},android:{phone:!r(rF)&&r(nF)||!r(rF)&&r(eF),tablet:!r(rF)&&!r(nF)&&!r(eF)&&(r(iF)||r(tF)),device:!r(rF)&&(r(nF)||r(iF)||r(eF)||r(tF))||r(/\bokhttp\b/i)},windows:{phone:r(rF),tablet:r(sF),device:r(rF)||r(sF)},other:{blackberry:r(oF),blackberry10:r(aF),opera:r(lF),firefox:r(uF),chrome:r(cF),device:r(oF)||r(aF)||r(lF)||r(uF)||r(cF)},any:!1,phone:!1,tablet:!1};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}(window.navigator)),D$.set(this,void 0),Object.assign(this.options,e),this.debug({type:"initialize",data:this.options})}debug(e){const{onDebug:t}=this.options;t&&t(Object.assign({time:new Date},e))}isConnectionSupported(){return!O$(this,P$,"f").phone}async isConnectionDetected(){try{return(await fetch(`https://${this.FORTIFY_URL}/.well-known/webcrypto-socket`)).ok}catch(e){return!1}}async isConnectionDetectedAuto(){return new Promise(e=>{const t=async()=>{await this.isConnectionDetected()?e():I$(this,D$,window.setTimeout(t,this.CONNECTION_CHECK_TIME),"f")};t()})}async start(){if(!this.isConnectionSupported())throw this.debug({type:"connection_not_supported"}),new Error("connection_not_supported");if(!(await this.isConnectionDetected()))throw this.debug({type:"connection_not_detected"}),new Error("connection_not_detected");await this.connect()}finish(){this.server&&(this.server.client.close(),this.server=null),O$(this,D$,"f")&&(clearTimeout(O$(this,D$,"f")),I$(this,D$,null,"f"))}async challenge(){if(!(await this.server.isLoggedIn()))return this.server.challenge()}async login(){try{await this.server.login()}catch(e){throw this.debug({type:"connection_key_not_approved"}),new Error("connection_key_not_approved")}}async connect(){if(await(async()=>{window.protobuf||await n.e(10).then(n.t.bind(null,"X5sl",7)),window.WebcryptoSocket||await n.e(61).then(n.bind(null,"lqkf"))})(),!O$(this,E$,"f"))try{I$(this,E$,await WebcryptoSocket.BrowserStorage.create(),"f")}catch(e){I$(this,E$,new WebcryptoSocket.MemoryStorage,"f")}return new Promise((e,t)=>{this.server&&e(),this.server=new WebcryptoSocket.SocketProvider({storage:O$(this,E$,"f")}).connect(this.FORTIFY_URL).on("error",e=>{t(e)}).on("listening",async()=>{e()}).on("token",async e=>{if(e.added.length){this.debug({type:"token_added",data:e.added});const t=e.added.filter(e=>this.providerFilter(e));this.options.onProvidersAdded(t)}e.removed.length&&(this.debug({type:"token_removed",data:e.removed}),this.options.onProvidersRemoved(e.removed))}).on("disconnect",()=>{console.log("disconnect")}).on("close",()=>{this.debug({type:"connection_close"}),this.options.onClose()})})}providerFilter(e){const{filters:t}=this.options;if(t.onlySmartcards&&!e.isRemovable)return!1;if(t.providerNameMatch){if("string"==typeof t.providerNameMatch&&!new RegExp(t.providerNameMatch,"i").test(e.name))return!1;if(t.providerNameMatch instanceof RegExp&&!t.providerNameMatch.test(e.name))return!1}if(t.providerATRMatch){if("string"==typeof t.providerATRMatch&&!new RegExp(t.providerATRMatch,"i").test(e.atr))return!1;if(t.providerATRMatch instanceof RegExp&&!t.providerATRMatch.test(e.atr))return!1}return!0}async getProviders(){const e=await this.server.info();this.debug({type:"providers",data:{providers:e.providers.map(e=>({id:e.id,isRemovable:e.isRemovable,name:e.name,readOnly:e.readOnly,version:e.version,algorithms:e.algorithms}))}});const t=e.providers.filter(e=>this.providerFilter(e));return this.debug({type:"providers_after_filters",data:{providers:t.map(e=>e.id)}}),t}async getProviderById(e,t){const n=await this.server.getCrypto(e);return t&&(await n.isLoggedIn()||await n.login()),n}async getCertificatesByProviders(e){const t=[];for(const n of e){const e=await this.getCertificatesByProviderId(n.id);t.push(...e)}return t}certificatePreFilter(e){const{filters:t}=this.options;if("x509"!==e.split("-")[0])return!1;if(t.certificateIdMatch){let n;if("string"==typeof t.certificateIdMatch?n=new RegExp(t.certificateIdMatch,"i"):t.certificateIdMatch instanceof RegExp&&(n=t.certificateIdMatch),n&&!n.test(e))return!1}return!0}async certificateFilter(e){const{filters:t}=this.options;if(!t.expired&&e.notAfter.getTime()<Date.now())return!1;if(t.subjectDNMatch){let n;if("string"==typeof t.subjectDNMatch?n=new RegExp(t.subjectDNMatch,"i"):t.subjectDNMatch instanceof RegExp&&(n=t.subjectDNMatch),n&&!n.test(e.subjectName))return!1}if(t.issuerDNMatch){let n;if("string"==typeof t.issuerDNMatch?n=new RegExp(t.issuerDNMatch,"i"):t.issuerDNMatch instanceof RegExp&&(n=t.issuerDNMatch),n&&!n.test(e.issuerName))return!1}const n=t.keyUsage&&t.keyUsage.length;if(n||t.onlyQualified||!t.ca){const i=new k$(e.raw);if(t.onlyQualified&&!i.isQualified(t.qualifiedCertificateStatements))return!1;if(n&&!i.hasKeyUsage(t.keyUsage))return!1;if(!t.ca)return!i.isCA()}return!0}async getCertificateByIndex(e,t,n){let i,r;try{i=await t.certStorage.getItem(e),r=await t.certStorage.exportCert("raw",i)}catch(s){return void console.warn("Can't read certificate: "+e)}if(i.raw=r,await this.certificateFilter(i))return i.index=e,i.subject=T$.getDNValue(i.subjectName),i.issuer=T$.getDNValue(i.issuerName),i.privateKeyId=n,i}async getCertificatesByProviderId(e){const{filters:t}=this.options;let n;try{n=await this.getProviderById(e,t.onlyWithPrivateKey)}catch(a){return[]}const i=[],r=await n.keyStorage.keys(),s=await n.certStorage.keys();this.debug({type:"provider_certificates",data:{providerId:e,keyIndexes:r,certIndexes:s}});for(const l of s){if(!this.certificatePreFilter(l))continue;const e=T$.getCertificatePrivateKeyByIndex(l,r);t.onlyWithPrivateKey&&!e||i.push(this.getCertificateByIndex(l,n,e))}const o=await Promise.all(i);return this.debug({type:"provider_certificates_after_filters",data:{certificates:o.map(e=>e?{index:e.index,providerID:e.providerID,issuerName:e.issuerName,subjectName:e.subjectName,serialNumber:e.serialNumber,notAfter:e.notAfter,notBefore:e.notBefore,privateKeyId:e.privateKeyId,raw:hF.Convert.ToBase64(e.raw)}:null)}}),o.filter(e=>!!e)}async getCertificateBodyById(e,t){const{filters:n}=this.options,i=await this.getProviderById(e,n.onlyWithPrivateKey),r=await i.certStorage.getItem(t),s=await i.certStorage.exportCert("raw",r);return hF.Convert.ToBase64(s)}static getCertificatePrivateKeyByIndex(e,t){const n=e.split("-");for(let i=0;i<t.length;i+=1){const e=t[i],r=e.split("-");if("private"===r[0]&&r[2]===n[2])return e}}static getDNValue(e){const t={};return e.split(/, /g).forEach(e=>{const[n,i]=e.split("=");t[n]=i}),t}defineKeysAlgorithm(e,t){if(e.startsWith("EC-"))return{hash:t,name:"ECDSA",namedCurve:e.replace("EC-P","P-")};if(e.startsWith("RSA"))return{hash:t,name:"RSASSA-PKCS1-V1_5",publicExponent:new Uint8Array([1,0,1]),modulusLength:Number(e.replace("RSA-",""))};throw new Error("Unsupported signature algorithm name: "+e)}async createX509(e,t){this.debug({type:"create_x509",data:Object.assign({providerId:e},t)});const n=await this.getProviderById(e,!0);n.exportKey=n.subtle.exportKey.bind(n.subtle),n.sign=n.subtle.sign.bind(n.subtle),n.digest=n.subtle.digest.bind(n.subtle);const i=this.defineKeysAlgorithm(t.signatureAlgorithm,t.hashAlgorithm),r=await u$.x509(n,i,t.subjectName),s=await n.certStorage.importCert("raw",r.der,i,u$.keyUsages);return await n.keyStorage.setItem(r.privateKey),await n.keyStorage.setItem(r.publicKey),await n.certStorage.setItem(s),r}async createPKCS10(e,t){this.debug({type:"create_pkcs10",data:Object.assign({providerId:e},t)});const n=await this.getProviderById(e,!0);n.exportKey=n.subtle.exportKey.bind(n.subtle),n.sign=n.subtle.sign.bind(n.subtle),n.digest=n.subtle.digest.bind(n.subtle);const i=this.defineKeysAlgorithm(t.signatureAlgorithm,t.hashAlgorithm),r=await u$.pkcs10(n,i,t.subjectName),s=await n.certStorage.importCert("raw",r.der,i,u$.keyUsages);return await n.keyStorage.setItem(r.privateKey),await n.keyStorage.setItem(r.publicKey),await n.certStorage.setItem(s),r}}E$=new WeakMap,P$=new WeakMap,D$=new WeakMap;var M$=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function B$(e,t){if(1&e){const e=Yo();Ho(0,"peculiar-fortify-certificates",1),Xo("selectionSuccess",function(t){return Lt(e),ia().certificateChosen(t)})("selectionCancel",function(){return Lt(e),ia().cancelSign()}),Uo()}2&e&&zo("filters",ia().filters)}let R$=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this.modalController=e,this.http=t,this.translate=n,this.notificationService=i,this.loadingController=r,this.signaturesService=s,this.actionsService=o,this.functionsService=a,this.authService=l,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.api=null}ngOnInit(){return M$(this,void 0,void 0,function*(){const e=this.authService.signatureRoles.filter(e=>e.id===this.signatureMode)[0];this.functionsService.empty(e.issuer)||(this.filters.issuerDNMatch=new RegExp(e.issuer,"i")),this.functionsService.empty(e.subject)||(this.filters.subjectDNMatch=new RegExp(e.subject,"i")),this.functionsService.empty(e.keyUsage)||this.filters.keyUsage.push(e.keyUsage),yield this.processInitFortify()})}ngOnDestroy(){return M$(this,void 0,void 0,function*(){this.functionsService.empty(this.api)||(this.api.finish(),this.api=null)})}initFortify(){return M$(this,void 0,void 0,function*(){this.api=new T$(null),yield this.waitFortifyStart(),(yield this.api.challenge())&&(yield this.api.login()),this.signaturesService.mustRefreshCerts&&(yield this.updateProvider(null)),this.api.server.cardReader.on("insert",e=>this.updateProvider(e)).on("remove",e=>this.updateProvider(e))})}processInitFortify(){return M$(this,void 0,void 0,function*(){this.signaturesService.mustRefreshCerts?this.loadingController.create({message:this.translate.instant("lang.waiting"),spinner:"dots"}).then(e=>M$(this,void 0,void 0,function*(){e.present(),yield this.initFortify(),e.dismiss()})):yield this.initFortify()})}waitFortifyStart(){return M$(this,void 0,void 0,function*(){let e=!1;for(;!e;)e=yield this.fortifyStart(),yield new Promise(e=>setTimeout(e,1e3))})}fortifyStart(){return new Promise(e=>M$(this,void 0,void 0,function*(){try{yield this.api.start(),e(!0)}catch(t){e(!1)}}))}certificateChosen(e){return M$(this,void 0,void 0,function*(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>M$(this,void 0,void 0,function*(){t.present();try{this.checkWebsocketSession(),this.provider=yield this.api.server.getCrypto(e.detail.providerId),this.checkWebsocketSession(),this.cert=yield this.provider.certStorage.getItem(e.detail.certificateId),this.checkWebsocketSession(),this.certPem=yield this.provider.certStorage.exportCert("pem",this.cert),this.checkWebsocketSession(),this.privateKey=yield this.provider.keyStorage.getItem(e.detail.privateKeyId)}catch(i){return this.notificationService.error(i),t.dismiss(),void this.modalController.dismiss(!1)}this.certificate={certificate:this.certPem};let n=!1;for(let e=0;e<this.idsToProcess.length;e++)this.signatures=yield this.actionsService.getElementsFromDoc(),n=yield this.sendAndSign(this.idsToProcess[e]);t.dismiss(),setTimeout(()=>{this.signaturesService.mustRefreshCerts=!0},500),this.modalController.dismiss(n)}))})}checkWebsocketSession(){return M$(this,void 0,void 0,function*(){for(;this.api.server.state!==WebSocket.OPEN;)yield this.api.server.connect(),yield new Promise(e=>setTimeout(e,150))})}updateProvider(e){return M$(this,void 0,void 0,function*(){const t=yield this.api.server.info();for(const e of t.providers){const t=yield this.api.server.getCrypto(e.id);yield t.reset()}!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("insert"))?(this.notificationService.message("lang.inputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("remove"))?(this.notificationService.message("lang.outputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):this.signaturesService.mustRefreshCerts&&null===e&&(this.modalController.dismiss("refresh_certs"),this.signaturesService.mustRefreshCerts=!1)})}sendAndSign(e){return M$(this,void 0,void 0,function*(){let t=!1,n={};for(;!t;){let i=!1;for(;!1===i;){if(n=yield this.fusionStampAndGenerateSignature(e,n.tmpUniqueId),null===n)return!1;if(!1===n)return!1;if(i=yield this.signDocument(e,n.hashDocument,n.signatureContentLength,n.signatureFieldName,n.tmpUniqueId),!0!==i)return!1;this.signatures.shift(),t=0===this.signatures.length}}return t})}fusionStampAndGenerateSignature(e,t=null){return M$(this,void 0,void 0,function*(){let n={};return n=yield this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures),n})}signDocument(e,t,n,i,r){return new Promise(s=>M$(this,void 0,void 0,function*(){const o={name:this.privateKey.algorithm.name,hash:"SHA-256"},a=this.fromHex(t);let l;try{this.checkWebsocketSession(),l=yield this.provider.subtle.sign(o,this.privateKey,a)}catch(h){return this.notificationService.error(h),s(!1),cv(!1)}const c={note:this.note},u={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(l),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:r},d=Object.assign(Object.assign({},c),u);this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,d).pipe(Ib(()=>{s(!0)}),mb(e=>(void 0!==e.error.newSignatureLength?(this.signatureLength=e.error.newSignatureLength,s(!1)):(this.notificationService.handleErrors(e),s("error")),cv(!1)))).subscribe()}))}cancelSign(){this.signaturesService.mustRefreshCerts=!0,this.modalController.dismiss(!1)}toHex(e){const t=new Uint8Array(e),n=[],i=t.length;for(let r=0;r<i;r++){const e=t[r].toString(16);n.push(1===e.length?"0"+e:e)}return n.join("")}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}return e.\u0275fac=function(t){return new(t||e)(Vo(tC),Vo(Ov),Vo(qC),Vo(QC),Vo(JA),Vo(oS),Vo(ZL),Vo(qL),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["style","height: 100%;width: 100%;","language","fr","hide-footer","",3,"filters","selectionSuccess","selectionCancel",4,"ngIf"],["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","selectionSuccess","selectionCancel"]],template:function(e,t){1&e&&(Ho(0,"ion-content"),Fo(1,B$,1,1,"peculiar-fortify-certificates",0),Uo()),2&e&&(is(1),zo("ngIf",!t.signaturesService.mustRefreshCerts))},directives:[Mx,$d],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@keyframes bounce{0%,20%,53%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{animation-duration:2s;animation-name:bounce;transform-origin:center bottom;animation-iteration-count:infinite}"]}),e})();var L$=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let F$=(()=>{class e{constructor(e,t,n,i,r,s,o){this.http=e,this.modalController=t,this.actionsService=n,this.loadingController=i,this.translate=r,this.authService=s,this.notificationService=o}checkAuthenticationAndLaunchAction(e,t=null,n){return L$(this,void 0,void 0,function*(){return["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1?0!==this.authService.coreUrl.indexOf("https://")?(yield this.notificationService.error("lang.securedUrlNeeded"),null):yield this.openRgsAuth(t,e.signatureMode,n):yield this.launchDefaultMode(t,n)})}launchDefaultMode(e,t){return L$(this,void 0,void 0,function*(){return new Promise(n=>L$(this,void 0,void 0,function*(){const i=yield this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});i.present();let r=!0;for(let n=0;n<t.length;n++)r=yield this.actionsService.sendDocument(t[n],e);i.dismiss(),n(r)}))})}openRgsAuth(e,t,n){return L$(this,void 0,void 0,function*(){return new Promise(i=>L$(this,void 0,void 0,function*(){const r=yield this.modalController.create({component:R$,componentProps:{note:e,signatureMode:t,idsToProcess:n}});yield r.present();const{data:s}=yield r.onWillDismiss();i(s)}))})}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(tC),fi(ZL),fi(JA),fi(qC),fi(lS),fi(QC))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),N$=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(NL),Vo(lS),Vo(cI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"h1"),Wo(2,"i",1),Uo(),Ho(3,"p"),Oa(4),pc(5,"translate"),Uo(),Ho(6,"p",2),Oa(7),Uo(),Ho(8,"p",3),Oa(9),pc(10,"translate"),pc(11,"date"),pc(12,"translate"),pc(13,"date"),Uo(),Uo()),2&e&&(is(4),Ia(gc(5,7,"lang.documentValidateAs")),is(3),Ma("",t.authService.user.firstname," ",t.authService.user.lastname,""),is(2),Ra("",gc(10,9,"lang.onRange")," ",fc(11,11,t.date,"dd/MM/yyyy")," ",gc(12,14,"lang.atRange")," ",fc(13,16,t.date,"HH:mm"),""))},pipes:[YC,ch],styles:[""]}),e})();function V$(e,t){if(1&e&&($o(0),Ho(1,"div",1),Wo(2,"img",2),Uo(),Go()),2&e){const e=t.$implicit,n=ia();is(1),ma("width",n.signaturesService.workingAreaWidth,"px")("height",n.signaturesService.workingAreaHeight,"px"),is(1),ma("width",100,"%"),zo("src",n.sanitization.bypassSecurityTrustUrl(e.fullPath),or)}}let z$=(()=>{class e{constructor(e,t,n){this.translate=e,this.sanitization=t,this.signaturesService=n}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Yh),Vo(oS))},e.\u0275cmp=qe({type:e,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&Fo(0,V$,3,7,"ng-container",0),2&e&&zo("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[Ud],encapsulation:2}),e})();const j$=["menuTrigger"],H$=["test"],U$=function(e,t){return{x:e,y:t}};function W$(e,t){if(1&e){const e=Yo();Ho(0,"div",1,2),Xo("rzResizing",function(n){Lt(e);const i=t.index;return ia().onResizing(n,i)})("rzStart",function(){return Lt(e),ia().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),ia().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return ia().moveSign(n,i)})("rzStop",function(n){Lt(e);const i=t.index,r=ia();return r.onResizeStop(n,i),r.signaturesService.resizing=!1}),Ho(2,"ion-item",3),Ho(3,"ion-select",4),Xo("click",function(e){return e.stopPropagation()})("ionChange",function(n){Lt(e);const i=t.index;return ia().select(n,i)}),Ho(4,"ion-select-option",5),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-select-option",6),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Wo(10,"img",7),Uo()}if(2&e){const e=t.$implicit,n=ia();ma("width",e.width,"%")("height",n.fix),zo("position",cc(20,U$,e.positionX*n.signaturesService.workingAreaWidth/100,e.positionY*n.signaturesService.workingAreaHeight/100))("ngDraggable",!n.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",n.bounds)("inBounds",!0),is(5),Ta("",gc(6,16,"lang.delete")," "),is(2),zo("disabled",e.inAllPage),is(1),Ta(" ",gc(9,18,"lang.replicate"),""),is(2),ma("width",100,"%"),zo("src",n.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),or)}}let $$=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.translate=e,this.sanitization=t,this.signaturesService=n,this.notificationService=i,this.localStorage=r,this.dialog=s,this.popoverController=o,this.modalController=a,this.fix="auto",this.today=new Date}ngOnInit(){}select(e,t){this[e.detail.value](t)}moveSign(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizing(e,t){this.test.nativeElement.style.height="auto"}onResizeStop(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}cloneSign(e){this.dialog.open(ZB,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(t=>{if("yes"===t){this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage=!0,this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(let t=1;t<=this.signaturesService.totalPage;t++)this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),t!==this.signaturesService.currentPage&&this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(this.signaturesService.signaturesContent[this.signaturesService.currentPage][e])));this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}deleteSignature(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){const t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(let e=1;e<=this.signaturesService.totalPage;e++){this.signaturesService.signaturesContent[e]||(this.signaturesService.signaturesContent[e]=[]);for(let n=0;n<=this.signaturesService.signaturesContent[e].length;n++)this.signaturesService.signaturesContent[e][n]&&t===this.signaturesService.signaturesContent[e][n].token&&this.signaturesService.signaturesContent[e].splice(n,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Yh),Vo(oS),Vo(QC),Vo(aS),Vo(LI),Vo(nC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){if(1&e&&(Mc(j$,1),Mc(H$,1)),2&e){let e;Tc(e=Rc())&&(t.menuSign=e.first),Tc(e=Rc())&&(t.test=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&Fo(0,W$,11,23,"div",0),2&e&&zo("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[Ud,iE,eE,Gx,hA,ox,pA],pipes:[YC],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),e})();function G$(e,t){if(1&e&&(Ho(0,"ion-select-option",19),Oa(1),pc(2,"date"),pc(3,"translate"),Uo()),2&e){const e=t.$implicit,n=ia();zo("value",e),is(1),Ta(" ",vc(2,2,n.today,e,void 0,gc(3,7,"lang.langISO"))," ")}}function q$(e,t){if(1&e&&(Ho(0,"ion-select-option",19),Oa(1),Uo()),2&e){const e=t.$implicit;ba(ia().getFontLabel(e)),zo("value",e),is(1),Ta(" ",e," ")}}const Y$=function(){return{cssClass:"selectFormat"}};let Z$=(()=>{class e{constructor(e){this.modalController=e,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}ngOnInit(){this.date=JSON.parse(JSON.stringify(this.currentDate))}dismissModal(){this.modalController.dismiss()}getFontLabel(e){return e.replace(" ","_")}onSubmit(){this.modalController.dismiss(this.date)}select(e){this.date.size=this.size[e]}}return e.\u0275fac=function(t){return new(t||e)(Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.dismissModal()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-content"),Ho(9,"ion-toolbar"),Ho(10,"ion-title",5),Oa(11),pc(12,"date"),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-item"),Ho(15,"ion-label",6),Oa(16),pc(17,"translate"),Uo(),Ho(18,"ion-select",7),Xo("ngModelChange",function(e){return t.date.format=e}),Fo(19,G$,4,9,"ion-select-option",8),Uo(),Uo(),Ho(20,"ion-item",9),Xo("click",function(){return Lt(e),No(22).click()}),Ho(21,"input",10,11),Xo("ngModelChange",function(e){return t.date.color=e}),Uo(),Ho(23,"ion-label",6),Oa(24),pc(25,"translate"),Uo(),Wo(26,"ion-icon",12),Uo(),Ho(27,"ion-item"),Ho(28,"ion-label",6),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-select",13),Xo("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),pc(32,"translate"),Fo(33,q$,2,4,"ion-select-option",14),Uo(),Uo(),Uo(),Ho(34,"ion-footer",15),Ho(35,"ion-toolbar"),Ho(36,"ion-buttons",16),Ho(37,"ion-button",17),Xo("click",function(){return t.onSubmit()}),Ho(38,"ion-label"),Oa(39),pc(40,"translate"),Uo(),Uo(),Ho(41,"ion-button",18),Xo("click",function(){return t.dismissModal()}),Ho(42,"ion-label"),Oa(43),pc(44,"translate"),Uo(),Uo(),Uo(),Uo(),Uo()}2&e&&(zo("translucent",!0),is(3),Ia(gc(4,21,"lang.options")),is(7),ba(t.getFontLabel(t.date.font)),ma("color",t.date.color),is(1),Ia(vc(12,23,t.today,t.date.format,void 0,gc(13,28,"lang.langISO"))),is(5),Ia(gc(17,30,"lang.format")),is(2),zo("ngModel",t.date.format),is(1),zo("ngForOf",t.dateformats),is(2),zo("ngModel",t.date.color),is(3),Ia(gc(25,32,"lang.color")),is(2),ma("color",t.date.color),is(3),Ia(gc(30,34,"lang.font")),is(2),zo("ngModel",t.date.font)("interfaceOptions",ac(42,Y$))("cancelText",gc(32,36,"lang.cancel")),is(2),zo("ngForOf",t.datefonts),is(6),Ia(gc(40,38,"lang.save")),is(4),Ia(gc(44,40,"lang.cancel")))},directives:[zx,wA,bA,Sx,Cx,jx,Mx,Gx,Kx,hA,ox,am,Rm,Ud,Mf,Nx,pA],pipes:[YC,ch],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),e})();const K$=["menuTrigger"],Q$=["test2"],X$=function(e,t){return{x:e,y:t}};function J$(e,t){if(1&e){const e=Yo();Ho(0,"div",1,2),Xo("rzResizing",function(n){Lt(e);const i=t.index;return ia().onResizingDate(n,i)})("rzStart",function(){return Lt(e),ia().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),ia().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return ia().moveDate(n,i)})("rzStop",function(n){Lt(e);const i=t.index,r=ia();return r.onResizeDateStop(n,i),r.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),Ho(2,"ion-buttons",3),Ho(3,"ion-button",4),Wo(4,"ion-icon",5),Uo(),Uo(),Ho(5,"mat-menu",null,6),Ho(7,"button",7),Xo("click",function(){Lt(e);const n=t.index;return ia().openDateSettings(n)}),Oa(8),pc(9,"translate"),Uo(),Ho(10,"button",7),Xo("click",function(){Lt(e);const n=t.index;return ia().deleteDate(n)}),Oa(11),pc(12,"translate"),Uo(),Uo(),dn(),Ho(13,"svg",8),Ho(14,"text",9),Oa(15),pc(16,"date"),pc(17,"translate"),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=No(6),r=ia();ma("width",e.width,"%")("height",e.height,"%")("height",r.fix),zo("id","dateDiv_"+n)("position",cc(34,X$,e.positionX*r.signaturesService.workingAreaWidth/100,e.positionY*r.signaturesService.workingAreaHeight/100))("ngDraggable",!r.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",r.bounds)("inBounds",!0),is(3),zo("matMenuTriggerFor",i),is(5),Ia(gc(9,23,"lang.options")),is(3),Ia(gc(12,25,"lang.delete")),is(2),zo("id","testSVG_"+n),is(1),ma("font-family",e.font)("fill",e.color),Bo("font-size",e.size),is(1),Ia(vc(16,27,r.today,e.format,void 0,gc(17,32,"lang.langISO")))}}let eG=(()=>{class e{constructor(e,t,n,i,r,s,o){this.translate=e,this.signaturesService=t,this.notificationService=n,this.localStorage=i,this.dialog=r,this.popoverController=s,this.modalController=o,this.fix="auto",this.today=new Date}ngOnInit(){}moveDate(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizingDate(e,t){this.test2.nativeElement.style.height="auto"}onResizeDateStop(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}deleteDate(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}openDateSettings(e){return t=this,void 0,i=function*(){const t=yield this.modalController.create({component:Z$,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=n)},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(oS),Vo(QC),Vo(aS),Vo(LI),Vo(nC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-date-list"]],viewQuery:function(e,t){if(1&e&&(Mc(K$,1),Mc(Q$,1)),2&e){let e;Tc(e=Rc())&&(t.menuSign=e.first),Tc(e=Rc())&&(t.test2=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&Fo(0,J$,18,37,"div",0),2&e&&zo("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[Ud,iE,eE,Sx,Cx,zM,jx,LM,TM],pipes:[YC,ch],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),e})();var tG=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function nG(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",6),Xo("click",function(){Lt(e);const n=t.$implicit;return ia().loadVisaWorkflow(n)}),Ho(1,"ion-label"),Oa(2),Uo(),Ho(3,"ion-buttons",7),Ho(4,"ion-button",8),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.removeModel(i)}),Wo(5,"ion-icon",9),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ia(e.title)}}let iG=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.translate=t,this.popoverController=n,this.alertController=i,this.notificationService=r,this.authService=s,this.currentWorkflow=[],this.visaWorkflowModels=[]}ngOnInit(){this.getVisaUserModels()}createModel(){return tG(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>""!==e.title?(this.saveModel(e.title),!0):(this.notificationService.error(this.translate.instant("lang.label")+" "+this.translate.instant("lang.mandatory")),!1)}]});yield e.present()})}saveModel(e){const t={title:e,items:this.currentWorkflow.map(e=>({userId:e.userId,mode:this.authService.getWorkflowMode(e.role),signatureMode:this.authService.getSignatureMode(e.role)}))};this.http.post("../rest/workflowTemplates",t).pipe(Ib(t=>{this.notificationService.success("lang.modelCreated"),this.visaWorkflowModels.push({id:t.id,title:e})}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}removeModel(e){return tG(this,void 0,void 0,function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/workflowTemplates/"+e.id).pipe(Ib(()=>{this.visaWorkflowModels=this.visaWorkflowModels.filter(t=>t.id!==e.id),this.notificationService.success(`Mod\xe8le ${e.title} supprim\xe9`)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}]});yield t.present()})}getVisaUserModels(){this.http.get("../rest/workflowTemplates").pipe(Ib(e=>{this.visaWorkflowModels=e.workflowTemplates}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}loadVisaWorkflow(e){this.http.get("../rest/workflowTemplates/"+e.id).pipe(Ib(e=>{const t=e.workflowTemplate.items.map(e=>({userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}));this.popoverController.dismiss(t)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(nC),Vo(XA),Vo(QC),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-list",0),Ho(1,"ion-list-header"),Ho(2,"ion-label",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Fo(5,nG,6,1,"ion-item",2),Ho(6,"ion-item",3),Xo("click",function(){return t.createModel()}),Wo(7,"ion-icon",4),Ho(8,"ion-label",5),Oa(9),pc(10,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,4,"lang.circuitModels")),is(2),zo("ngForOf",t.visaWorkflowModels),is(1),zo("disabled",0===t.currentWorkflow.length),is(3),Ia(gc(10,6,"lang.newTemplate")))},directives:[Qx,Xx,Kx,Ud,Gx,jx,Sx,Cx],pipes:[YC],styles:[""]}),e})();function rG(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-checkbox",19),Xo("ionChange",function(t){Lt(e),ia(2);const n=No(3);return ia().addUser(t.detail.value,n)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Ho(4,"ion-note",13),Oa(5),Uo(),Uo()}if(2&e){const e=t.$implicit;is(1),zo("value",e),is(2),Ma("",e.firstname," ",e.lastname,""),is(2),Ia(e.email)}}function sG(e,t){if(1&e&&(Ho(0,"ion-list",17),Fo(1,rG,6,4,"ion-item",18),Uo()),2&e){const e=ia(2);is(1),zo("ngForOf",e.visaUsersList)}}function oG(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-item",10),Ho(2,"ion-searchbar",11,12),Xo("ngModelChange",function(t){return Lt(e),ia().visaUsersSearchVal=t})("ionChange",function(t){return Lt(e),ia().getVisaUsers(t)})("ionFocus",function(){return Lt(e),ia().visaUsersSearchVal=""}),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",13),Ho(6,"ion-button",14),Xo("click",function(t){return Lt(e),ia().openVisaWorkflowModels(t)}),pc(7,"translate"),Wo(8,"ion-icon",15),Uo(),Uo(),Uo(),Fo(9,sG,2,1,"ion-list",16),Go()}if(2&e){const e=ia();is(2),zo("ngModel",e.visaUsersSearchVal)("placeholder",gc(4,4,"lang.searchUser")),is(4),zo("title",gc(7,6,"lang.circuitModels")),is(3),zo("ngIf",e.visaUsersList.length>0)}}function aG(e,t){1&e&&(Ho(0,"ion-list"),Ho(1,"ion-item",10),Ho(2,"ion-label",20),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.noUserInWorkflow")))}function lG(e,t){1&e&&(Ho(0,"p",31),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.substituteMsg"),""))}function cG(e,t){if(1&e&&(Ho(0,"h2",32),Oa(1),Uo()),2&e){const e=ia().$implicit;zo("title",e.userDisplay),is(1),Ia(e.userDisplay)}}function uG(e,t){1&e&&(Ho(0,"h2",33),Oa(1),pc(2,"translate"),Uo()),2&e&&(zo("title",ia().$implicit.userDisplay),is(1),Ta(" ",gc(2,2,"lang.userDeleted"),""))}function dG(e,t){if(1&e&&(Ho(0,"ion-select-option",37),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit,n=ia(2),i=n.index,r=n.$implicit,s=ia();zo("value",e)("disabled",!s.isValidRole(i,e,r.role)),is(1),Ta(" ",gc(2,3,"lang."+e+"User")," ")}}function hG(e,t){if(1&e){const e=Yo();Ho(0,"p",34),Ho(1,"ion-select",35),Xo("ngModelChange",function(t){return Lt(e),ia().$implicit.role=t}),pc(2,"translate"),Fo(3,dG,3,5,"ion-select-option",36),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia();let n=null;is(1),ma("color",null==(n=t.getRole(e.role))?null:n.color),zo("ngModel",e.role)("title",gc(2,7,"lang."+e.role+"User"))("interfaceOptions",t.customPopoverOptions)("disabled",!t.editMode),is(2),zo("ngForOf",e.modes)}}function pG(e,t){if(1&e&&(Ho(0,"ion-note",41),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2).$implicit;is(1),Ma(" ",gc(2,2,"lang."+e.mode+"ProcessInfo")," ",e.processDate," ")}}function gG(e,t){if(1&e&&(Ho(0,"ion-note",42),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2).$implicit;is(1),Ma(" ",gc(2,2,"lang.refProcessInfo")," ",e.processDate," ")}}function fG(e,t){if(1&e&&(Ho(0,"ion-note",43),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2).$implicit;is(1),Ma(" ",gc(2,2,"lang.stopProcessInfo")," ",e.processDate," ")}}function mG(e,t){if(1&e&&(Ho(0,"p",32),Fo(1,pG,3,4,"ion-note",38),Fo(2,gG,3,4,"ion-note",39),Fo(3,fG,3,4,"ion-note",40),Uo()),2&e){const e=ia().$implicit;zo("title",e.processDate),is(1),zo("ngIf","VAL"===e.status),is(1),zo("ngIf","REF"===e.status),is(1),zo("ngIf","STOP"===e.status)}}function vG(e,t){1&e&&Wo(0,"ion-icon",44)}function bG(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",45),Xo("click",function(t){Lt(e);const n=ia().index,i=ia();return t.stopPropagation(),i.removeUser(n)}),Wo(1,"ion-icon",46),Uo()}}function yG(e,t){if(1&e&&(Ho(0,"ion-item",21),Ho(1,"ion-reorder",2),Wo(2,"ion-icon",22),pc(3,"translate"),Uo(),Ho(4,"ion-avatar",23),Xo("click",function(e){return e.stopPropagation()}),Wo(5,"img",24),Uo(),Ho(6,"ion-label"),Fo(7,lG,3,3,"p",25),Fo(8,cG,2,2,"h2",26),Fo(9,uG,3,4,"h2",27),Fo(10,hG,4,9,"p",28),Fo(11,mG,4,4,"p",26),Uo(),Fo(12,vG,1,0,"ion-icon",29),Ho(13,"ion-buttons",13),Fo(14,bG,2,0,"ion-button",30),Uo(),Uo()),2&e){const e=t.$implicit,n=ia();va("current",e.current),is(2),zo("title",gc(3,11,"lang.reorder")),is(3),zo("src",e.userPicture,or),is(2),zo("ngIf",n.userDelegated&&e.current),is(1),zo("ngIf",""!==e.userDisplay),is(1),zo("ngIf",""===e.userDisplay),is(1),zo("ngIf",null===e.processDate),is(1),zo("ngIf",null!==e.processDate),is(1),zo("ngIf",!n.editMode&&e.current),is(2),zo("ngIf",n.editMode)}}let wG=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.signaturesService=t,this.authService=n,this.notificationService=i,this.popoverController=r,this.editMode=!1,this.visaWorkflow=[],this.userDelegated=!1,this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[],this.tmpArray=[]}ngOnInit(){this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)})}doReorder(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}canMoveUser(e){let t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(e=>void 0!==e),this.isValidWorkflow(t)}isValidWorkflow(e=this.visaWorkflow){let t=!0;return e.forEach((n,i)=>{-1===["visa","stamp"].indexOf(n.role)&&e.filter((e,t)=>t>i&&"stamp"===e.role).length>0&&(t=!1)}),t}array_move(e,t,n){if(n>=e.length){let t=n-e.length+1;for(;t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e}getVisaUsers(e){this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ib(e=>{this.visaUsersList=e}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}addUser(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:`${e.firstname} ${e.lastname}`,role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}removeUser(e){this.visaWorkflow.splice(e,1)}getAvatarUser(e){void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(Ib(t=>{this.visaWorkflow[e].userPicture=t.picture}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}resetVisaUsersList(){this.visaUsersList=[]}openVisaWorkflowModels(e){return t=this,void 0,i=function*(){const t=yield this.popoverController.create({component:iG,componentProps:{currentWorkflow:this.visaWorkflow},event:e});yield t.present(),t.onDidDismiss().then(e=>{"backdrop"!==e.role&&(this.visaWorkflow=this.visaWorkflow.concat(e.data),this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)}))})},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}getCurrentWorkflow(){return this.visaWorkflow}getRole(e){return this.authService.signatureRoles.filter(t=>t.id===e)[0]}loadWorkflow(e){this.visaWorkflow=e;const t=this.visaWorkflow.length;for(let n=0;n<t;n++)this.getAvatarUser(n)}isValidRole(e,t,n){return!(this.visaWorkflow.filter((t,n)=>n>e&&["stamp"].indexOf(t.role)>-1).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter((t,n)=>n<e&&-1===["visa","stamp"].indexOf(t.role)).length>0&&"stamp"===t)}setPositionsWorkfow(e,t,n){this.clearPositionsFromResource(e[t]),n.length>0&&(Object.keys(n).forEach(i=>{const r=Object.assign(Object.assign({},n[i]),{mainDocument:e[t].mainDocument});this.visaWorkflow[n[i].sequence].signaturePositions.push(r);const s=this.tmpArray.find(r=>r.key===n[i].sequence&&r.page===n[i].page&&r.docIndex===e.indexOf(e[t]));void 0!==s?this.tmpArray[this.tmpArray.indexOf(s)].signaturePositions=n[i].position:this.tmpArray.push({key:n[i].sequence,page:n[i].page,docIndex:e.indexOf(e[t]),signaturePositions:n[i].position})}),this.tmpArray.forEach(e=>{const t=this.visaWorkflow[e.key].signaturePositions.find(t=>t.page===e.page&&t.sequence===e.key&&t.docIndex===e.docIndex);void 0!==t?this.updatePositionsWorkfow(t,e):this.visaWorkflow[e.key].signaturePositions.push({docIndex:e.docIndex,page:e.page,mainDocument:!0,sequence:e.key,position:e.signaturePositions})}))}updatePositionsWorkfow(e,t){this.visaWorkflow.forEach(n=>{n.signaturePositions[n.signaturePositions.indexOf(e)].position=t.signaturePositions})}clearPositionsFromResource(e){this.visaWorkflow.forEach(t=>{t.signaturePositions=t.signaturePositions.filter(t=>t.mainDocument!==e.mainDocument)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(lS),Vo(QC),Vo(nC))},e.\u0275cmp=qe({type:e,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){if(1&e&&Mc(aA,1),2&e){let e;Tc(e=Rc())&&(t.reorderGroup=e.first)}},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow",userDelegated:"userDelegated"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"ion-content",6),Xo("click",function(){return t.resetVisaUsersList()}),Fo(9,oG,10,8,"ng-container",7),Fo(10,aG,5,3,"ion-list",7),Ho(11,"ion-reorder-group",8),Xo("ionItemReorder",function(e){return t.doReorder(e)}),Fo(12,yG,15,13,"ion-item",9),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,6,"lang.circuit")),is(3),zo("ngIf",t.editMode),is(1),zo("ngIf",0===t.visaWorkflow.length),is(1),zo("disabled",!t.editMode),is(1),zo("ngForOf",t.visaWorkflow))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,$d,aA,Ud,Gx,cA,lx,am,Rm,Qx,Ox,ex,Kx,nA,oA,_x,hA,ox,pA],pipes:[YC],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),e})();function _G(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",9),Xo("click",function(){Lt(e);const n=t.$implicit;return ia().goTo(n.id)}),Ho(1,"div"),Ho(2,"ion-label",10),Oa(3),Uo(),Ho(4,"ion-label",11),Oa(5),pc(6,"shorten"),Uo(),Uo(),Wo(7,"ion-icon",12),Uo()}if(2&e){const e=t.$implicit;is(3),Ia(e.reference),is(2),Ia(mc(6,2,e.title,50,"..."))}}let xG=(()=>{class e{constructor(e){this.router=e}ngOnInit(){}goTo(e){this.router.navigate(["/documents/"+e])}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_))},e.\u0275cmp=qe({type:e,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Ho(6,"b",6),Oa(7),Uo(),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Ho(10,"ion-content"),Ho(11,"div",7),Ho(12,"ion-list"),Fo(13,_G,8,6,"ion-item",8),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(7),Ia(null==t.associatedDocuments?null:t.associatedDocuments.length),is(1),Ta("\xa0",gc(9,4,"lang.associatedDocuments"),""),is(5),zo("ngForOf",t.associatedDocuments))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,Qx,Ud,Gx,Kx],pipes:[YC,uE],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),e})();function AG(e,t){1&e&&(Ho(0,"ion-card"),Ho(1,"ion-item",13),Wo(2,"ion-icon",14),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Uo(),Uo()),2&e&&(is(4),Ia(gc(5,1,"lang.docIsInMailGroup")))}function CG(e,t){if(1&e&&(Ho(0,"ion-item",8),Ho(1,"ion-label",9),Oa(2),pc(3,"translate"),Uo(),Wo(4,"ion-input",10),Uo()),2&e){const e=ia();zo("title",e.mainDocument.description),is(2),Ia(gc(3,3,"lang.description")),is(2),zo("value",e.mainDocument.description)}}function SG(e,t){if(1&e&&(Ho(0,"ion-item",8),Ho(1,"ion-label",9),Oa(2),pc(3,"translate"),Uo(),Wo(4,"ion-input",10),Uo()),2&e){const e=ia();zo("title",e.mainDocument.deadline),is(2),Ia(gc(3,3,"lang.processingDeadline")),is(2),zo("value",e.mainDocument.deadline)}}function kG(e,t){if(1&e&&(Ho(0,"ion-item"),Ho(1,"ion-label",9),Oa(2),pc(3,"translate"),Uo(),Wo(4,"ion-input",10),Uo()),2&e){const e=t.$implicit;is(2),Ia(gc(3,2,e.label)),is(2),zo("value",e.value)}}let EG=(()=>{class e{constructor(e,t){this.signaturesService=e,this.functionsService=t,this.loading=!1}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(qL))},e.\u0275cmp=qe({type:e,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"ion-content"),Fo(9,AG,6,3,"ion-card",6),Ho(10,"ion-list",7),Ho(11,"ion-item",8),Ho(12,"ion-label",9),Oa(13),pc(14,"translate"),Uo(),Wo(15,"ion-input",10),Uo(),Fo(16,CG,5,5,"ion-item",11),Fo(17,SG,5,5,"ion-item",11),Ho(18,"ion-item",8),Ho(19,"ion-label",9),Oa(20),pc(21,"translate"),Uo(),Wo(22,"ion-input",10),Uo(),Ho(23,"ion-item",8),Ho(24,"ion-label",9),Oa(25),pc(26,"translate"),Uo(),Wo(27,"ion-input",10),Uo(),Fo(28,kG,5,4,"ion-item",12),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,15,"lang.informations")),is(3),zo("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),is(2),zo("title",t.mainDocument.sender),is(2),Ia(gc(14,17,"lang.emittedBy")),is(2),zo("value",t.mainDocument.sender),is(1),zo("ngIf",null!=t.mainDocument.description),is(1),zo("ngIf",null!=t.mainDocument.deadline),is(1),zo("title",t.mainDocument.reference),is(2),Ia(gc(21,19,"lang.reference")),is(2),zo("value",t.mainDocument.reference),is(1),zo("title",t.mainDocument.title),is(2),Ia(gc(26,21,"lang.subject")),is(2),zo("value",t.mainDocument.title),is(1),zo("ngForOf",t.mainDocument.metadata))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,$d,Qx,Gx,Kx,$x,lx,Ud,kx],pipes:[YC],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),e})();var PG=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const DG=["mainContent"],OG=["img"],IG=["snav"],TG=["dragElem"],MG=["appDocumentNotePad"],BG=["appDocumentList"],RG=["rightContent"],LG=["pagesList"];function FG(e,t){if(1&e){const e=Yo();Ho(0,"ion-segment-button",20),Xo("click",function(){return Lt(e),ia(2).openAssociatedDocuments()}),Ho(1,"ion-label",11),Oa(2),pc(3,"ucfirst"),pc(4,"translate"),Uo(),Wo(5,"ion-icon",21),Ho(6,"ion-badge",15),Oa(7),Uo(),Uo()}if(2&e){const e=ia(2);is(2),Ia(gc(3,2,gc(4,4,"lang.associatedDocuments"))),is(5),Ta(" ",e.mainDocument.linkedDocuments.length," ")}}function NG(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",22),Ho(1,"ion-button",23),Xo("click",function(t){return Lt(e),ia(2).openAction(t)}),Wo(2,"ion-icon",24),Uo(),Uo()}if(2&e){const e=ia(2);is(1),zo("disabled","CONVERTING"===e.mainDocument.status)}}function VG(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",6),Ho(1,"ion-toolbar",7),Ho(2,"ion-buttons",8),Wo(3,"ion-menu-button"),Uo(),Ho(4,"ion-segment",9),Xo("ionChange",function(t){return Lt(e),ia().signaturesService.currentToobal=t.detail.value}),Ho(5,"ion-segment-button",10),Xo("click",function(){return Lt(e),ia().openMainDocumentDetail()}),Ho(6,"ion-label",11),Oa(7),pc(8,"translate"),Uo(),Wo(9,"ion-icon",12),Uo(),Ho(10,"ion-segment-button",13),Xo("click",function(){return Lt(e),ia().openDocumentList()}),Ho(11,"ion-label",11),Oa(12),pc(13,"ucfirst"),pc(14,"translate"),Uo(),Wo(15,"ion-icon",14),Ho(16,"ion-badge",15),Oa(17),Uo(),Uo(),Fo(18,FG,8,6,"ion-segment-button",16),Ho(19,"ion-segment-button",17),Xo("click",function(){return Lt(e),ia().openVisaWorkflow()}),Ho(20,"ion-label",11),Oa(21),pc(22,"translate"),Uo(),Wo(23,"ion-icon",18),Ho(24,"ion-badge",15),Oa(25),Uo(),Uo(),Uo(),Fo(26,NG,3,1,"ion-buttons",19),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(4),zo("value",e.signaturesService.currentToobal),is(3),Ia(gc(8,9,"lang.informations")),is(5),Ia(gc(13,11,gc(14,13,"lang.attachedElements"))),is(5),Ta(" ",e.mainDocument.attachments.length+1," "),is(1),zo("ngIf",void 0!==e.mainDocument.linkedDocuments&&e.mainDocument.linkedDocuments.length>0),is(3),Ia(gc(22,15,"lang.circuit")),is(4),Ta(" ",e.mainDocument.workflow.length," "),is(1),zo("ngIf",!e.detailMode)}}function zG(e,t){1&e&&(Ho(0,"ion-toolbar",25),Ho(1,"ion-label",26),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.substitutionInfo")))}function jG(e,t){1&e&&(Ho(0,"ion-toolbar",27),Ho(1,"div",28),Ho(2,"ion-label",29),Oa(3),pc(4,"translate"),Uo(),Wo(5,"ion-spinner",30),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.convertingDocument")))}function HG(e,t){1&e&&(Ho(0,"ion-toolbar",27),Ho(1,"ion-label",31),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.errorConvertingDocument")))}function UG(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",44),Xo("movingOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!1})("click",function(){return Lt(e),ia(3).expandedNote=!0}),pc(1,"translate"),Wo(2,"ion-icon",45),Uo()}if(2&e){ia(2);const e=No(7),t=ia();zo("bounds",e)("inBounds",!0)("title",gc(1,4,"lang.expandNote"))("disabled",t.signaturesService.dragging)}}function WG(e,t){if(1&e&&($o(0),Ho(1,"div",52),Oa(2),Uo(),Ho(3,"div",53),Oa(4),Uo(),Go()),2&e){const e=ia(4);is(2),Ma(" ",e.mainDocument.notes.creator," (",e.mainDocument.notes.creationDate,") : "),is(2),Ta(" ",e.mainDocument.notes.value," ")}}function $G(e,t){if(1&e&&(Ho(0,"div"),Ho(1,"div",52),Oa(2),Uo(),Ho(3,"div",53),Oa(4),Uo(),Uo()),2&e){const e=ia().$implicit;is(2),Ma(" ",e.userDisplay," (",e.processDate,") : "),is(2),Ta(" ",e.note," ")}}function GG(e,t){if(1&e&&($o(0),Fo(1,$G,5,3,"div",3),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf",e.note)}}function qG(e,t){if(1&e){const e=Yo();Ho(0,"div",46),Xo("movingOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!1}),Ho(1,"div",47),Wo(2,"i",48),Ho(3,"span",49),Oa(4),pc(5,"translate"),Uo(),Ho(6,"i",50),Xo("click",function(){return Lt(e),ia(3).expandedNote=!1}),pc(7,"translate"),Uo(),Uo(),Fo(8,WG,5,3,"ng-container",3),Fo(9,GG,2,1,"ng-container",51),Uo()}if(2&e){ia(2);const e=No(7),t=ia();zo("bounds",e)("inBounds",!0),is(4),Ia(gc(5,6,"lang.note")),is(2),zo("title",gc(7,8,"lang.collapseNote")),is(2),zo("ngIf",null!=t.mainDocument.notes),is(1),zo("ngForOf",t.mainDocument.workflow)}}function YG(e,t){if(1&e&&($o(0),Fo(1,UG,3,6,"ion-fab-button",42),Fo(2,qG,10,10,"div",43),Go()),2&e){const e=ia(2);is(1),zo("ngIf",!e.expandedNote),is(1),zo("ngIf",e.expandedNote)}}function ZG(e,t){1&e&&Wo(0,"app-document-note-list")}function KG(e,t){1&e&&Wo(0,"app-document-sign-list",54),2&e&&(ia(),zo("bounds",No(7)))}function QG(e,t){1&e&&Wo(0,"app-document-date-list",54),2&e&&(ia(),zo("bounds",No(7)))}function XG(e,t){if(1&e){const e=Yo();Ho(0,"ion-img",55,56),Xo("ionImgDidLoad",function(t){return Lt(e),ia(2).imageLoaded(t)}),Uo()}if(2&e){const e=ia(2);ma("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),zo("src",e.docList[e.currentDoc].imgContent[e.pageNum])}}function JG(e,t){if(1&e&&(Ho(0,"ion-select-option",63),Oa(1),Uo()),2&e){const e=t.index,n=ia(3);zo("value",e+1)("disabled",e+1===n.pageNum),is(1),Ia(e+1)}}const eq=function(e){return{cssClass:e}};function tq(e,t){if(1&e){const e=Yo();Ho(0,"section",57),Ho(1,"div",58),Oa(2),Uo(),Ho(3,"div",59),Xo("click",function(t){return Lt(e),ia(2).openSelect(t)}),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-select",60,61),Xo("ngModelChange",function(t){return Lt(e),ia(2).pageNum=t})("ionChange",function(t){return Lt(e),ia(2).goTo(t.target.value)}),Fo(8,JG,2,3,"ion-select-option",62),Uo(),Uo()}if(2&e){const e=ia(2);is(2),Ta(" ",e.docList[e.currentDoc].title," "),is(2),Ba("",gc(5,7,"lang.page")," ",e.pageNum," / ",e.totalPages,""),is(2),zo("ngModel",e.pageNum)("interfaceOptions",lc(9,eq,e.totalPages>10?"popover-class":"custom-popover-class")),is(2),zo("ngForOf",e.pagesArray(e.totalPages))}}function nq(e,t){1&e&&(Ho(0,"ion-item",64),Wo(1,"ion-icon",65),Ho(2,"ion-label"),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.certifiedDocument")))}function iq(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",68),Xo("click",function(){return Lt(e),ia(3).prevPage()}),Wo(1,"ion-icon",69),Uo()}}function rq(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",70),Xo("click",function(){return Lt(e),ia(3).nextPage()}),Wo(1,"ion-icon",71),Uo()}}function sq(e,t){if(1&e&&($o(0),Fo(1,iq,2,0,"ion-fab-button",66),Fo(2,rq,2,0,"ion-fab-button",67),Go()),2&e){const e=ia(2);is(1),zo("ngIf",e.pageNum>1&&!e.loadingImage),is(1),zo("ngIf",e.pageNum<e.totalPages&&!e.loadingImage)}}function oq(e,t){if(1&e){const e=Yo();Ho(0,"ion-content",null,32),Fo(2,YG,3,2,"ng-container",3),Ho(3,"div",33),Ho(4,"drag-scroll",34,35),Xo("click",function(t){Lt(e);const n=ia();return 0==n.currentDoc&&!n.detailMode&&n.openAction(t)}),Ho(6,"div",36,37),Fo(8,ZG,1,0,"app-document-note-list",3),Fo(9,KG,1,1,"app-document-sign-list",38),Fo(10,QG,1,1,"app-document-date-list",38),Fo(11,XG,2,5,"ion-img",39),Uo(),Uo(),Uo(),Fo(12,tq,9,11,"section",40),Fo(13,nq,5,3,"ion-item",41),Fo(14,sq,3,2,"ng-container",3),Uo()}if(2&e){const e=ia();is(2),zo("ngIf",null!=e.mainDocument.notes||e.hasWorkflowNotes),is(2),ma("max-width",e.signaturesService.workingAreaWidth,"px"),zo("drag-scroll-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&e.signaturesService.mobileMode)("drag-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&!e.signaturesService.mobileMode),is(2),ma("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),is(2),zo("ngIf",0==e.currentDoc&&!e.loadingImage),is(1),zo("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.signaturesContent[e.pageNum]),is(1),zo("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.datesContent[e.pageNum]),is(1),zo("ngIf",void 0!==e.docList[e.currentDoc]&&!e.functionsService.empty(e.docList[e.currentDoc].imgContent[e.pageNum])),is(1),zo("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&e.docList[e.currentDoc]),is(1),zo("ngIf",e.mainDocument.isCertified),is(1),zo("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&!e.loadingImage)}}function aq(e,t){if(1&e&&Wo(0,"ion-icon",76),2&e){const e=ia().$implicit;zo("slot","start")("name",e.logo)}}function lq(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",74),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).launchEvent(n)}),Fo(1,aq,1,2,"ion-icon",75),Ho(2,"ion-label",26),Oa(3),pc(4,"translate"),Uo(),Uo()}if(2&e){const e=t.$implicit;zo("disabled",ia(2).isNotReady())("color",e.color),is(1),zo("ngIf",""!==e.logo),is(2),Ia(gc(4,4,e.label))}}function cq(e,t){if(1&e&&(Ho(0,"ion-footer",72),Fo(1,lq,5,6,"ion-button",73),Uo()),2&e){const e=ia();is(1),zo("ngForOf",e.actionsList)}}function uq(e,t){if(1&e&&Wo(0,"app-visa-workflow",81),2&e){const e=ia(2);zo("visaWorkflow",e.mainDocument.workflow)("userDelegated",e.userDelegated)}}function dq(e,t){if(1&e){const e=Yo();Ho(0,"app-document-list",82,83),Xo("triggerEvent",function(t){return Lt(e),ia(2).loadDoc(t)}),Uo()}if(2&e){const e=ia(2);zo("currentDocId",e.currentDoc)("docList",e.docList)}}function hq(e,t){1&e&&Wo(0,"app-associated-documents",84,85),2&e&&zo("associatedDocuments",ia(2).mainDocument.linkedDocuments)}function pq(e,t){1&e&&Wo(0,"app-main-document-detail",86,87),2&e&&zo("mainDocument",ia(2).mainDocument)}function gq(e,t){if(1&e&&(Fo(0,uq,1,2,"app-visa-workflow",77),Fo(1,dq,2,2,"app-document-list",78),Fo(2,hq,2,1,"app-associated-documents",79),Fo(3,pq,2,1,"app-main-document-detail",80)),2&e){const e=ia();zo("ngIf","visaWorkflow"==e.signaturesService.currentToobal),is(1),zo("ngIf","documentList"==e.signaturesService.currentToobal),is(1),zo("ngIf","associatedDocuments"==e.signaturesService.currentToobal),is(1),zo("ngIf","mainDocumentDetail"==e.signaturesService.currentToobal)}}let fq=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h,p,g,f,m,v,b,y,w,_,x){this.http=e,this.signaturesService=t,this.notificationService=n,this.sanitizer=i,this.dialog=r,this.authService=s,this.actionSheetController=o,this.loadingController=a,this.viewContainerRef=l,this.modalController=c,this.alertController=u,this.signatureMethodService=d,this.navCtrl=h,this.functionsService=p,this.actionsService=g,this.translate=f,this.router=m,this.route=v,this.bottomSheet=b,this.localStorage=y,this.menu=w,this.pdfViewerService=_,this.cookieService=x,this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.enterApp=!0,this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status,attachments:[],workflow:[]},this.loadingUI=!1,this.signaturesContent=[],this.docList=[],this.posX=0,this.posY=0,this.pageNum=1,this.currentDoc=0,this.detailMode=!1,this.expandedNote=!0,this.dragging=!1,this.resizing=!1,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.pdfname=null,this.fileContent="",this.userDelegated=!1,this.load=null,this.draggable=!1}imageLoaded(e){this.getImageDimensions(!0),"CONVERTING"!==this.mainDocument.status&&this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}getImageDimensions(e=!1){const t=new Image;t.onload=t=>{this.signaturesService.workingAreaWidth=t.target.naturalWidth,this.signaturesService.workingAreaHeight=t.target.naturalHeight,e&&this.getAreaDimension()},t.src=this.docList[this.currentDoc].imgContent[this.pageNum]}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}openAction(e){return PG(this,void 0,void 0,function*(){this.posX=e.clientX,this.posY=e.clientY;const t=[];this.checkEmptyNote()||t.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:()=>{this.undoTag()}}),this.signaturesService.stampLock||(t.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:()=>{this.openSignatures()}}),t.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:()=>{this.openNoteEditor()}})),this.checkEmptiness()||t.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:()=>{this.removeTags()}});const n=yield this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:t});yield n.present()})}openSignatures(){return PG(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:DL,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(e=>!0===e.current)[0],content:this.fileContent}});yield e.present();const{data:t}=yield e.onWillDismiss();this.dragging=!1,void 0!==t&&("success"===t||void 0!==t.redirectPage&&this.goTo(t.redirectPage))})}openNoteEditor(){return PG(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:FL,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});yield e.present(),yield e.onWillDismiss()})}scrollToElem(){const e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}ionViewWillEnter(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}ngOnInit(){return PG(this,void 0,void 0,function*(){this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(e=>{void 0!==e.id&&this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(t=>{this.load=t,this.load.present(),this.http.get("../rest/documents/"+e.id).pipe(Ib(t=>PG(this,void 0,void 0,function*(){const n=yield this.checkSubstitute(t.document.workflow.find(e=>e.current));this.mainDocument=t.document,this.mainDocument.workflow=this.mainDocument.workflow.map(e=>(e.note&&(this.hasWorkflowNotes=!0),e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))),this.totalPages=this.mainDocument.pages,this.signaturesService.mainDocumentId=this.mainDocument.id,this.signaturesService.totalPage=this.mainDocument.pages,this.menu.enable(!0,"right-menu"),this.initDoc();const i=this.mainDocument.workflow.find(e=>!0===e.current);this.mainDocument.isCertified=this.mainDocument.workflow.filter(e=>"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate).length>0,this.userDelegated=n;const r=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}];this.mainDocument.readOnly?(this.actionsList=r,this.detailMode=!0):(null==i?void 0:i.userId)!==this.authService.user.id?n||(this.actionsList=r,this.detailMode=!0):this.functionsService.empty(i)||(this.signaturesService.stampLock=this.mainDocument.isCertified&&("stamp"===i.signatureMode&&"sign"===i[0].mode||"visa"===i.mode),i.userId!==this.authService.user.id?this.http.get("../rest/users/"+i.userId+"/signatures").subscribe(e=>{this.signaturesService.signaturesListSubstituted=e.signatures}):this.signaturesService.signaturesListSubstituted=[],i.datePositions.length>0&&this.functionsService.empty(this.signaturesService.datesContent)&&i.datePositions.forEach(e=>{this.signaturesService.datesContent[e.page]||(this.signaturesService.datesContent[e.page]=[]),this.signaturesService.datesContent[e.page][0]={width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:e.font,size:e.size,color:e.color,format:e.format}})),this.docList.push({id:this.mainDocument.id,title:this.mainDocument.title,pages:this.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+this.mainDocument.id+"/thumbnails"}),this.mainDocument.attachments.forEach(e=>{this.docList.push({id:e.id,title:e.title,pages:e.pages,imgContent:[],imgUrl:"../rest/attachments/"+e.id+"/thumbnails"})}),this.menu.enable(!0,"right-menu"),this.renderImage(),this.loadingdocument=!1,this.load.dismiss(),"CONVERTING"===this.mainDocument.status&&(this.timerSubscription=bD(0,1e4).pipe(Ib(()=>{this.http.get("../rest/documents/"+e.id).pipe(Ib(e=>{var t;this.totalPages=e.document.pages,"CONVERTING"!==e.document.status&&(this.mainDocument.status=e.document.status,null===(t=this.timerSubscription)||void 0===t||t.unsubscribe())})).subscribe()}),mb(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),cv(!1)))).subscribe())})),mb(e=>(console.log("error",e),setTimeout(()=>{this.load.dismiss()},200),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),cv(!1)))).subscribe()})})})}ngOnDestroy(){var e;null===(e=this.timerSubscription)||void 0===e||e.unsubscribe()}checkSubstitute(e){return!this.functionsService.empty(e)&&new Promise(t=>{this.http.get("../rest/users/"+e.userId).pipe(Ib(e=>{t(e.user.substitute===this.authService.user.id)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}renderPdf(){this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(e=>{this.pdfname="data:application/pdf;base64,"+e.encodedDocument,this.loadingpdf=!0})}onPagesLoaded(e){return PG(this,void 0,void 0,function*(){this.totalPages=e.pagesCount,this.exportAsImage()})}exportAsImage(){return PG(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});this.docList[this.currentDoc].imgContent[this.pageNum]=e,this.loadingpdf=!1,this.load.dismiss()})}renderImage(){void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ib(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent,this.fileContent=e.fileContent}),mb(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),cv(!1)))).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ib(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent}),mb(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),cv(!1)))).subscribe())}initDoc(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";const e=this.localStorage.get(this.mainDocument.id.toString());if(e){const t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}testDrag(e){const t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}getPosition(e){let t=0,n=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}zoomForNotes(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}zoomForView(){this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(()=>{this.resetDragPos=!1},200),this.signaturesService.scale=1}prevPage(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}nextPage(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}goTo(e){this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(e=>{this.load=e,this.load.present(),this.loadingImage=!0,this.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}pagesArray(e){return Array(e)}refuseDocument(){return PG(this,void 0,void 0,function*(){let e=this.translate.instant("lang.rejectDocumentWarning");0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.refuseDocumentWithoutNote"));const t=yield this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:e=>PG(this,void 0,void 0,function*(){const t=yield this.actionsService.checkGroupMail(this.mainDocument,"reject"),n=yield this.signatureMethodService.launchDefaultMode(e.paragraph,t);this.functionsService.empty(n)||(this.bottomSheet.open(VL,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()))})}]});yield t.present()})}validateDocument(e){return PG(this,void 0,void 0,function*(){let e=this.translate.instant("lang.validateDocumentWarning");0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(e=this.translate.instant("lang.certifiedDocumentMsg2"));const t=yield this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:e=>PG(this,void 0,void 0,function*(){yield this.processToSign(e)})}]});yield t.present()})}processToSign(e){return PG(this,void 0,void 0,function*(){const t=this.mainDocument.workflow.filter(e=>!0===e.current)[0],n=yield this.actionsService.checkGroupMail(this.mainDocument,"validate"),i=yield this.signatureMethodService.checkAuthenticationAndLaunchAction(t,e.paragraph,n);this.functionsService.empty(i)||("refresh_certs"===i?this.processToSign(e):(this.bottomSheet.open(N$,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString())))})}removeTags(){return PG(this,void 0,void 0,function*(){this.signaturesService.currentAction=0;const e=yield this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:()=>{this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.localStorage.remove(this.mainDocument.id.toString()),this.notificationService.success("lang.noteAndSignatureDeleted")}}]});yield e.present()})}loadDoc(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}launchEvent(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}undoTag(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}checkEmptyNote(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}isEmptyNote(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}checkEmptiness(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}openVisaWorkflow(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}openDocumentList(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}openAssociatedDocuments(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}openMainDocumentDetail(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}backToDetails(){this.signaturesService.currentToobal="mainDocumentDetail"}deleteSubstution(){confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.substitutionDeleted")})}back(){this.navCtrl.back()}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}openSelect(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}isNotReady(){return["CONVERTING","ERROR"].indexOf(this.mainDocument.status)>-1}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(QC),Vo(Yh),Vo(LI),Vo(lS),Vo(QA),Vo(JA),Vo(Gl),Vo(tC),Vo(XA),Vo(F$),Vo(hx),Vo(qL),Vo(ZL),Vo(qC),Vo(a_),Vo(jy),Vo(dI),Vo(aS),Vo(eC),Vo(XS),Vo(oE))},e.\u0275cmp=qe({type:e,selectors:[["app-document"]],viewQuery:function(e,t){if(1&e&&(Mc(DG,1),Mc(OG,1),Mc(IG,3),Mc(TG,1),Mc(MG,1),Mc(BG,1),Mc(RG,3),Mc(LG,1)),2&e){let e;Tc(e=Rc())&&(t.mainContent=e.first),Tc(e=Rc())&&(t.img=e.first),Tc(e=Rc())&&(t.snav=e.first),Tc(e=Rc())&&(t.dragElem=e.first),Tc(e=Rc())&&(t.appDocumentNotePad=e.first),Tc(e=Rc())&&(t.appDocumentList=e.first),Tc(e=Rc())&&(t.rightContent=e.first),Tc(e=Rc())&&(t.pagesList=e.first)}},decls:8,vars:6,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"disabled","click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],[1,"loading",2,"display","flex","height","100%"],[1,"loadingMsg"],["name","dots","color","light",2,"padding-top","6.5%"],[2,"font-size","14px","font-weight","bold"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow","userDelegated",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow","userDelegated"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(Fo(0,VG,27,17,"ion-header",0),Fo(1,zG,4,3,"ion-toolbar",1),Fo(2,jG,6,3,"ion-toolbar",2),Fo(3,HG,4,3,"ion-toolbar",2),Fo(4,oq,15,16,"ion-content",3),Fo(5,cq,2,1,"ion-footer",4),Fo(6,gq,4,4,"ng-template",null,5,Vc)),2&e&&(zo("ngIf",!t.loadingdocument),is(1),zo("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),is(1),zo("ngIf",0!==t.mainDocument.id&&"CONVERTING"===t.mainDocument.status),is(1),zo("ngIf",0!==t.mainDocument.id&&"ERROR"===t.mainDocument.status),is(1),zo("ngIf",!t.loadingdocument),is(1),zo("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[$d,zx,wA,Sx,eA,uA,ox,dA,Kx,jx,Ax,Cx,mA,Mx,Kk,Lx,eE,Ud,z$,$$,eG,Hx,hA,am,Rm,pA,Gx,Nx,wG,GL,xG,EG],pipes:[YC,dE],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}.loading[_ngcontent-%COMP%]{display:flex;position:absolute;justify-content:center;top:0;left:0;width:100%;height:100%;z-index:2;overflow:hidden}.loadingMsg[_ngcontent-%COMP%]{padding:2%;color:var(--ion-color-light);font-weight:700;margin-right:-5px}"]}),e})();var mq=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function vq(e,t){1&e&&(Ho(0,"a",13),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.forgotPassword")))}function bq(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.ldapEnabled")))}function yq(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.kerberosEnabled")))}function wq(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.x509Enabled")))}function _q(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta("",gc(2,1,"lang.casEnabled")," "))}function xq(e,t){if(1&e&&(Ho(0,"a",15),pc(1,"translate"),Oa(2),Uo()),2&e){const e=ia();ca("href","",gc(1,3,"lang.repoUrl"),"/commit/",e.commitHash,"",or),is(2),Ia(e.commitHash.substring(0,8))}}let Aq=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c){this.http=e,this.router=t,this.authService=n,this.signaturesService=i,this.notificationService=r,this.dialog=s,this.formBuilder=o,this.loadingController=a,this.translate=l,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}ngOnInit(){return mq(this,void 0,void 0,function*(){this.loginForm=this.formBuilder.group({login:[null,Vf.required],password:[null,Vf.required]}),this.environment=Vu,this.signaturesService.reset(),yield this.loadCommitInformation()})}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}ngAfterViewInit(){setTimeout(()=>mq(this,void 0,void 0,function*(){this.showForm=!0,this.fixAutoFill(),yield this.initConnection()}),500)}fixAutoFill(){setTimeout(()=>{this.loginForm.get("login").setValue($("#login").val()),this.loginForm.get("password").setValue($("#password").val())},100)}onSubmit(e=null){return mq(this,void 0,void 0,function*(){const t=yield this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});yield t.present();let n="../rest/authenticate";null!==e&&(n+=e),this.authService.authFailed=!1,this.loginForm.invalid?(t.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post(n,{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(Ib(e=>{this.loading=!1,this.showForm=!1,this.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),this.authService.setUser({}),this.authService.getCachedUrl()?(this.router.navigateByUrl(this.authService.getCachedUrl()),this.authService.cleanCachedUrl()):this.router.navigate(["/home"]),t.dismiss()}),mb(e=>(this.loading=!1,this.authService.authFailed=!0,401===e.status&&-1===["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)?(this.notificationService.error("lang.wrongLoginPassword"),t.dismiss()):"azure_saml"===this.authService.authMode&&"Authentication Failed : not logged"===e.error.errors?(t.dismiss(),window.location.href=e.error.authUri):(t.dismiss(),this.notificationService.handleErrors(e)),cv(!1)))).subscribe()})}initConnection(){if(["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1)this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit();else if(["cas"].indexOf(this.authService.authMode)>-1)if(this.loginForm.disable(),this.loginForm.setValidators(null),null!=this.authService.casToken){const e=this.authService.casToken;this.authService.casToken=null,this.onSubmit("?"+e)}else window.location.href=this.authService.authUri}loadCommitInformation(){return new Promise(e=>{this.http.get("../rest/commitInformation").pipe(Ib(t=>{this.commitHash=t.hash,e(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(a_),Vo(lS),Vo(oS),Vo(QC),Vo(LI),Vo(lv),Vo(JA),Vo(qC),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:28,vars:19,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(Ho(0,"ion-content",0),Wo(1,"mat-icon",1),Ho(2,"ion-card",2),Ho(3,"ion-card-content"),Ho(4,"form",3),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(5,"ion-item"),Ho(6,"ion-label",4),Oa(7),pc(8,"translate"),Uo(),Ho(9,"ion-input",5),Xo("keyup.enter",function(){return t.onSubmit()}),Uo(),Uo(),Ho(10,"ion-item"),Ho(11,"ion-label",4),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",6),Xo("keyup.enter",function(){return t.onSubmit()}),Uo(),Uo(),Ho(15,"div",7),Fo(16,vq,3,3,"a",8),Fo(17,bq,3,3,"a",9),Fo(18,yq,3,3,"a",9),Fo(19,wq,3,3,"a",9),Fo(20,_q,3,3,"a",9),Uo(),Ho(21,"ion-button",10),Oa(22),pc(23,"translate"),Uo(),Uo(),Uo(),Uo(),Ho(24,"ion-note",11),Oa(25),Fo(26,xq,3,5,"a",12),Oa(27),Uo(),Uo()),2&e&&(is(4),zo("formGroup",t.loginForm),is(3),Ia(gc(8,13,"lang.login")),is(5),Ia(gc(13,15,"lang.password")),is(4),zo("ngIf","default"===t.authService.authMode),is(1),zo("ngIf","ldap"===t.authService.authMode),is(1),zo("ngIf","kerberos"===t.authService.authMode),is(1),zo("ngIf","x509"===t.authService.authMode),is(1),zo("ngIf","cas"===t.authService.authMode),is(1),zo("disabled",t.loginForm.invalid||t.loading),is(1),Ta(" ",gc(23,17,"lang.connect")," "),is(3),Ta(" Maarch Parapheur ",t.environment.VERSION," "),is(1),zo("ngIf",null!==t.commitHash),is(1),Ta(" Powered by ",t.environment.AUTHOR," "))},directives:[Mx,rT,kx,Ex,Lm,lm,Hm,Gx,Kx,$x,lx,am,Wm,$d,Cx,nA,c_,WA],pipes:[YC],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),e})(),Cq=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.http=t,this.notificationService=r,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",n.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}ngOnInit(){}generateLink(){this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(Bb(()=>{this.labelButton="lang.send",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.requestSentByEmail"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_),Vo(Ov),Vo(ZI),Vo(Yh),Vo(QC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content",null,3),Ho(9,"form",4,5),Xo("ngSubmit",function(){return t.generateLink()}),Ho(11,"ion-grid"),Ho(12,"ion-row"),Ho(13,"ion-col",6),Ho(14,"ion-card",7),Wo(15,"ion-card-content",8),pc(16,"translate"),Uo(),Ho(17,"ion-item"),Ho(18,"ion-label",9),Oa(19),pc(20,"translate"),Uo(),Ho(21,"ion-input",10),Xo("ngModelChange",function(e){return t.newLogin.login=e}),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(22,"ion-item",11),Ho(23,"div",12),Ho(24,"ion-button",13),Ho(25,"ion-label",14),Oa(26),pc(27,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,7,"lang.forgotPassword")),is(10),zo("innerHTML",gc(16,9,"lang.afterClickingSendLinkChangePassword"),sr),is(4),Ta("",gc(20,11,"lang.enterLogin")," *"),is(2),zo("ngModel",t.newLogin.login),is(3),zo("disabled",""==t.newLogin.login||t.loading),is(2),Ia(gc(27,13,t.labelButton)))},directives:[zx,wA,Sx,xx,UA,bA,Mx,Lm,lm,Tm,Vx,lA,Tx,kx,Ex,Gx,Kx,$x,lx,am,Rm,Cx],pipes:[YC],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),e})();function Sq(e,t){if(1&e&&(Ho(0,"ion-note",22),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia();is(1),Ta(" ",gc(2,1,e.handlePassword.errorMsg),"")}}function kq(e,t){1&e&&(Ho(0,"ion-note",23),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.samePassword"),""))}function Eq(e,t){1&e&&(Ho(0,"ion-note",22),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.passwordNotMatch"),""))}let Pq=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.translate=e,this.router=t,this.route=n,this.http=i,this.notificationService=o,this.menu=a,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",r.addSvgIcon("maarchLogo",s.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(e=>{this.token=e.token})}ngOnInit(){this.getPassRules()}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}updatePassword(){this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(Bb(()=>{this.labelButton="lang.update",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.passwordChanged"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}allowValidate(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(a_),Vo(jy),Vo(Ov),Vo(ZI),Vo(Yh),Vo(QC),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content",null,3),Ho(9,"form",4,5),Xo("ngSubmit",function(){return t.updatePassword()}),Ho(11,"ion-grid"),Ho(12,"ion-row"),Ho(13,"ion-col",6),Ho(14,"ion-card",7),Wo(15,"ion-card-content",8),pc(16,"translate"),Uo(),Ho(17,"ion-item"),Ho(18,"ion-label",9),Oa(19),pc(20,"translate"),Uo(),Ho(21,"ion-input",10),Xo("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),pc(22,"translate"),Uo(),Ho(23,"ion-button",11),Xo("click",function(){return t.hideNewPassword=!t.hideNewPassword}),Wo(24,"ion-icon",12),Uo(),Fo(25,Sq,3,3,"ion-note",13),Uo(),Ho(26,"ion-item"),Ho(27,"ion-label",9),Oa(28),pc(29,"translate"),Uo(),Ho(30,"ion-input",14),Xo("ngModelChange",function(e){return t.password.passwordConfirmation=e}),pc(31,"translate"),Uo(),Ho(32,"ion-button",11),Xo("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Wo(33,"ion-icon",12),Uo(),Uo(),Ho(34,"ion-item",15),Fo(35,kq,3,3,"ion-note",16),Fo(36,Eq,3,3,"ion-note",13),Uo(),Uo(),Uo(),Uo(),Ho(37,"ion-item",17),Ho(38,"div",18),Ho(39,"ion-button",19),Ho(40,"ion-label",20),Oa(41),pc(42,"translate"),Uo(),Uo(),Ho(43,"ion-button",21),Ho(44,"ion-label",20),Oa(45),pc(46,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,19,"lang.newPassword")),is(10),zo("innerHTML",gc(16,21,"lang.logInOncePasswordChanged"),sr),is(4),Ia(gc(20,23,"lang.newPassword")),is(2),aa("placeholder",gc(22,25,"lang.newPassword")),zo("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),is(3),zo("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",t.handlePassword.error),is(3),Ta("",gc(29,27,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(31,29,"lang.passwordConfirmation")),zo("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),is(3),zo("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),is(2),zo("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),is(1),zo("ngIf",t.password.passwordConfirmation!==t.password.newPassword),is(3),zo("disabled",t.allowValidate()||t.loading),is(2),Ia(gc(42,31,t.labelButton)),is(4),Ia(gc(46,33,"lang.cancel")))},directives:[zx,wA,Sx,xx,UA,bA,Mx,Lm,lm,Tm,Vx,lA,Tx,kx,Ex,Gx,Kx,$x,lx,am,Rm,Cx,jx,$d,WA,l_,nA],pipes:[YC],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),e})(),Dq=(()=>{class e{constructor(e,t,n,i){this.http=e,this.translate=t,this.notify=n,this.signaturesService=i,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/passwordRules").subscribe(e=>{this.passwordRulesList=e.rules,e.rules.forEach(e=>{this.passwordRules[e.label].enabled=e.enabled,this.passwordRules[e.label].value=e.value,this.passwordRules[e.label].label=this.translate.instant("lang.password_"+e.label+"Required"),this.passwordRules[e.label].id=e.label,this.loading=!1}),this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules))},e=>{this.notify.error(e.error.errors)})}cancelModification(){this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value})}checkModif(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}disabledForm(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}toggleRule(e){this.passwordRulesList.forEach(t=>{"lockAttempts"!==e.id||"lockTime"!==t.label&&"lockAttempts"!==t.label?e.id===t.label&&(t.enabled=e.enabled):(t.enabled=e.enabled,this.passwordRules.lockTime.enabled=e.enabled)})}onSubmit(){this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(()=>{this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules)),this.notify.success("lang.passwordRulesUpdated")},e=>{this.notify.error(e.error.errors)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(QC),Vo(oS))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(10,"ion-content"),Ho(11,"ion-row"),Ho(12,"ion-col"),Ho(13,"ion-item"),Ho(14,"ion-label",6),Oa(15),Uo(),Ho(16,"ion-toggle",7),Xo("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),Uo(),Uo(),Uo(),Ho(17,"ion-col"),Ho(18,"ion-item"),Ho(19,"ion-label",6),Oa(20),Uo(),Ho(21,"ion-toggle",8),Xo("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),Uo(),Uo(),Uo(),Ho(22,"ion-col"),Ho(23,"ion-item"),Ho(24,"ion-label",6),Oa(25),Uo(),Ho(26,"ion-toggle",9),Xo("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),Uo(),Uo(),Uo(),Uo(),Ho(27,"ion-item"),Ho(28,"ion-toggle",10),Xo("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),Uo(),Ho(29,"ion-label",11),Oa(30),Uo(),Ho(31,"ion-input",12),Xo("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),Uo(),Ho(32,"ion-note",13),Oa(33),pc(34,"translate"),Uo(),Uo(),Ho(35,"ion-row"),Ho(36,"ion-col"),Ho(37,"ion-item"),Ho(38,"ion-toggle",14),Xo("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),Uo(),Ho(39,"ion-label",11),Oa(40),Uo(),Ho(41,"ion-input",15),Xo("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),Uo(),Uo(),Uo(),Ho(42,"ion-col"),Ho(43,"ion-item"),Ho(44,"ion-label",11),Oa(45),Uo(),Ho(46,"ion-input",16),Xo("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),Uo(),Ho(47,"ion-note",13),Oa(48),pc(49,"translate"),Uo(),Uo(),Uo(),Uo(),Ho(50,"ion-item"),Ho(51,"ion-toggle",17),Xo("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),Uo(),Ho(52,"ion-label",11),Oa(53),Uo(),Ho(54,"ion-input",18),Xo("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),Uo(),Ho(55,"ion-note",13),Oa(56),pc(57,"translate"),Uo(),Uo(),Ho(58,"ion-item"),Ho(59,"ion-toggle",19),Xo("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),Uo(),Ho(60,"ion-label",11),Oa(61),Uo(),Ho(62,"ion-input",20),Xo("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),Uo(),Uo(),Ho(63,"ion-item",21),Ho(64,"div",22),Ho(65,"ion-button",23),Ho(66,"ion-label",24),Oa(67),pc(68,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(9);zo("translucent",!0),is(6),Ia(gc(7,39,"lang.manage_password_rules")),is(9),Ia(t.passwordRules.complexityUpper.label),is(1),zo("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),is(4),Ia(t.passwordRules.complexityNumber.label),is(1),zo("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),is(4),Ia(t.passwordRules.complexitySpecial.label),is(1),zo("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),is(2),zo("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),is(2),Ia(t.passwordRules.minLength.label),is(1),zo("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),is(2),Ia(gc(34,41,"lang.chars")),is(5),zo("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),is(2),Ia(t.passwordRules.lockAttempts.label),is(1),zo("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),is(4),Ia(t.passwordRules.lockTime.label),is(1),zo("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),is(2),Ia(gc(49,43,"lang.minutes")),is(3),zo("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),is(2),Ia(t.passwordRules.renewal.label),is(1),zo("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),is(2),Ia(gc(57,45,"lang.days")),is(3),zo("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),is(2),Ia(t.passwordRules.historyLastUse.label),is(1),zo("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),is(3),zo("disabled",!e.valid&&!t.disabledForm()||t.checkModif()),is(2),Ia(gc(68,47,"lang.validate"))}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,lA,Tx,Gx,Kx,yA,ex,am,Rm,$x,lx,rv,nA,Cx],pipes:[YC],encapsulation:2}),e})();function Oq(e,t){1&e&&(Ho(0,"ion-note",17),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.requiredField")))}function Iq(e,t){1&e&&(Ho(0,"ion-item",26),Wo(1,"ion-icon",27),Ho(2,"ion-label",28),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.passwordValid")))}function Tq(e,t){1&e&&(Ho(0,"ion-item",26),Wo(1,"ion-icon",27),Ho(2,"ion-label",28),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.passwordMatch")))}function Mq(e,t){1&e&&Wo(0,"ion-item",29),2&e&&zo("innerHTML",ia().otherRuleText,sr)}let Bq=(()=>{class e{constructor(e,t,n,i,r,s,o){this.http=e,this.notify=t,this._formBuilder=n,this.translate=i,this.signaturesService=r,this.authService=s,this.router=o,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}ngOnInit(){this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[],i=[];t.push(Vf.required),e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&(t.push(Vf.minLength(this.passwordRules.minLength.value)),n.push(e.value+" "+this.translate.instant("lang.password_"+e.label)))):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_"+e.label)+" <b>"+e.value+" "+this.translate.instant("lang.days")+"</b>. "+this.translate.instant("lang.password2_"+e.label)+".")):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_historyLastUseDesc")+" <b>"+e.value+"</b> "+this.translate.instant("lang.password_historyLastUseDesc2")+"."))}),this.ruleText=n.join(", "),this.otherRuleText=i.join("<br/>"),this.firstFormGroup.controls.newPasswordCtrl.setValidators(t)},e=>{this.notify.error(e.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",Vf.compose([Vf.required])],currentPasswordCtrl:["",Vf.compose([Vf.required])]},{validator:this.matchValidator})}regexValidator(e,t){return n=>n.value?e.test(n.value)?null:t:null}matchValidator(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}getErrorMessage(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}onSubmit(){this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(()=>{this.notify.success(this.translate.instant("lang.passwordChanged")),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture}),this.router.navigate(["/home"])},e=>{this.notify.handleErrors(e)})}logout(){this.authService.logout()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(QC),Vo(lv),Vo(qC),Vo(oS),Vo(lS),Vo(a_))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Wo(2,"ion-buttons",2),Ho(3,"ion-title"),Oa(4),pc(5,"translate"),Uo(),Uo(),Uo(),Ho(6,"ion-content",null,3),Ho(8,"form",4),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-grid"),Ho(10,"ion-row"),Ho(11,"ion-col",5),Ho(12,"ion-card",6),Ho(13,"ion-card-content"),Oa(14),pc(15,"translate"),Ho(16,"b"),Oa(17),Uo(),Oa(18),pc(19,"translate"),Uo(),Uo(),Ho(20,"ion-item"),Ho(21,"ion-label",7),Oa(22),pc(23,"translate"),Uo(),Wo(24,"ion-input",8),pc(25,"translate"),Ho(26,"ion-button",9),Xo("click",function(){return t.hidePassword=!t.hidePassword}),Wo(27,"ion-icon",10),Uo(),Fo(28,Oq,3,3,"ion-note",11),Uo(),Ho(29,"ion-list-header",12),Ho(30,"ion-label",13),Oa(31),Uo(),Uo(),Ho(32,"ion-item"),Ho(33,"ion-label",7),Oa(34),pc(35,"translate"),Uo(),Wo(36,"ion-input",14,15),pc(38,"translate"),Ho(39,"ion-button",9),Xo("click",function(){return t.hidePassword=!t.hidePassword}),Wo(40,"ion-icon",10),Uo(),Fo(41,Iq,5,3,"ion-item",16),Ho(42,"ion-note",17),Oa(43),Uo(),Uo(),Ho(44,"ion-item"),Ho(45,"ion-label",7),Oa(46),pc(47,"translate"),Uo(),Wo(48,"ion-input",18,19),pc(50,"translate"),Ho(51,"ion-button",9),Xo("click",function(){return t.hidePassword=!t.hidePassword}),Wo(52,"ion-icon",10),Uo(),Fo(53,Tq,5,3,"ion-item",16),Ho(54,"ion-note",17),Oa(55),pc(56,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(57,"ion-item",20),Ho(58,"div",21),Ho(59,"ion-button",22),Ho(60,"ion-label",23),Oa(61),pc(62,"translate"),Uo(),Uo(),Ho(63,"ion-button",24),Xo("click",function(){return t.logout()}),Ho(64,"ion-label",23),Oa(65),pc(66,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Fo(67,Mq,1,1,"ion-item",25),Uo()),2&e&&(zo("translucent",!0),is(4),Ia(gc(5,29,"lang.passwordModification")),is(4),zo("formGroup",t.firstFormGroup),is(6),Ta(" ",gc(15,31,"lang.hello")," "),is(3),Ma(" ",t.user.firstname," ",t.user.lastname,""),is(1),Ta(", ",gc(19,33,"lang.changePasswordInfo"),". "),is(4),Ia(gc(23,35,"lang.typeCurrentPassword")),is(2),aa("placeholder",gc(25,37,"lang.typeCurrentPassword")),zo("type",t.hidePassword?"password":"text"),is(3),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),is(3),Ia(t.ruleText),is(3),Ta("",gc(35,39,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(38,41,"lang.passwordConfirmation")),zo("type",t.hidePassword?"password":"text"),is(4),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",t.validPassword),is(2),Ia(t.getErrorMessage()),is(3),Ta("",gc(47,43,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(50,45,"lang.passwordConfirmation")),zo("type",t.hidePassword?"password":"text"),is(4),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),is(2),Ia(gc(56,47,"lang.passwordNotMatch")),is(4),zo("disabled",!t.firstFormGroup.valid),is(2),Ia(gc(62,49,"lang.validate")),is(4),Ia(gc(66,51,"lang.logout")),is(2),zo("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[zx,wA,Sx,bA,Mx,Lm,lm,Hm,Vx,lA,Tx,kx,Ex,Gx,Kx,$x,lx,am,Wm,ev,Cx,jx,$d,Xx,nA],pipes:[YC],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),e})();var Rq=n("b0Xh"),Lq=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const Fq=["passwordContent"];function Nq(e,t){if(1&e&&(Ho(0,"ion-note",37),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(3);is(1),Ta(" ",gc(2,1,e.handlePassword.errorMsg),"")}}function Vq(e,t){if(1&e){const e=Yo();Ho(0,"div"),Ho(1,"ion-list-header",28),Ho(2,"ion-label",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Ho(5,"ion-item"),Ho(6,"ion-label",31),Oa(7),pc(8,"translate"),Uo(),Ho(9,"ion-input",32),Xo("ngModelChange",function(t){return Lt(e),ia(2).password.currentPassword=t}),pc(10,"translate"),Uo(),Ho(11,"ion-button",33),Xo("click",function(){Lt(e);const t=ia(2);return t.hideCurrentPassword=!t.hideCurrentPassword}),Wo(12,"ion-icon",34),Uo(),Uo(),Ho(13,"ion-item"),Ho(14,"ion-label",31),Oa(15),pc(16,"translate"),Uo(),Ho(17,"ion-input",35),Xo("ngModelChange",function(t){return Lt(e),ia(2).password.newPassword=t})("keyup",function(){Lt(e);const t=ia(2);return t.checkPasswordValidity(t.password.newPassword)}),pc(18,"translate"),Uo(),Ho(19,"ion-button",33),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPassword=!t.hideNewPassword}),Wo(20,"ion-icon",34),Uo(),Fo(21,Nq,3,3,"ion-note",30),Uo(),Ho(22,"ion-item"),Ho(23,"ion-label",31),Oa(24),pc(25,"translate"),Uo(),Ho(26,"ion-input",36),Xo("ngModelChange",function(t){return Lt(e),ia(2).password.passwordConfirmation=t}),pc(27,"translate"),Uo(),Ho(28,"ion-button",33),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Wo(29,"ion-icon",34),Uo(),Uo(),Uo()}if(2&e){const e=ia(2);is(3),Ia(gc(4,17,"lang.changePassword")),is(4),Ia(gc(8,19,"lang.currentPassword")),is(2),aa("placeholder",gc(10,21,"lang.currentPassword")),zo("ngModel",e.password.currentPassword)("type",e.hideCurrentPassword?"password":"text"),is(3),zo("name",e.hideCurrentPassword?"eye-outline":"eye-off-outline"),is(3),Ia(gc(16,23,"lang.newPassword")),is(2),aa("placeholder",gc(18,25,"lang.newPassword")),zo("ngModel",e.password.newPassword)("type",e.hideNewPassword?"password":"text"),is(3),zo("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",e.handlePassword.error),is(3),Ta("",gc(25,27,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(27,29,"lang.passwordConfirmation")),zo("ngModel",e.password.passwordConfirmation)("type",e.hideNewPasswordConfirm?"password":"text"),is(3),zo("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function zq(e,t){1&e&&(Ho(0,"ion-note",38),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.samePassword"),""))}function jq(e,t){1&e&&(Ho(0,"ion-note",37),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.passwordNotMatch"),""))}function Hq(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-list",18),Ho(2,"ion-item"),Ho(3,"ion-avatar",19),Xo("click",function(){return Lt(e),No(10).click()}),Wo(4,"img",20),Uo(),Ho(5,"ion-label",21),Oa(6),pc(7,"translate"),Uo(),Ho(8,"ion-input",22),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.login=t}),Uo(),Ho(9,"input",23,24),Xo("change",function(t){return Lt(e),ia().handleFileInput(t.target.files)}),Uo(),Uo(),Ho(11,"ion-item"),Ho(12,"ion-label",21),Oa(13),pc(14,"translate"),Uo(),Ho(15,"ion-input",25),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.email=t}),Uo(),Uo(),Ho(16,"ion-item"),Ho(17,"ion-label",21),Oa(18),pc(19,"translate"),Uo(),Ho(20,"ion-input",26),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.firstname=t}),Uo(),Uo(),Ho(21,"ion-item"),Ho(22,"ion-label",21),Oa(23),pc(24,"translate"),Uo(),Ho(25,"ion-input",27),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.lastname=t}),Uo(),Uo(),Fo(26,Vq,30,31,"div",16),Ho(27,"ion-item",28),Fo(28,zq,3,3,"ion-note",29),Fo(29,jq,3,3,"ion-note",30),Uo(),Uo(),Go()}if(2&e){const e=ia();is(4),zo("src",e.avatarInfo.picture,or),is(2),Ia(gc(7,19,"lang.login")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.login),is(5),Ia(gc(14,21,"lang.email")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.email)("readonly","default"!==e.authService.authMode),is(3),Ia(gc(19,23,"lang.firstname")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.firstname)("readonly","default"!==e.authService.authMode),is(3),Ia(gc(24,25,"lang.lastname")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.lastname)("readonly","default"!==e.authService.authMode),is(1),zo("ngIf","default"===e.authService.authMode),is(2),zo("ngIf",e.password.passwordConfirmation===e.password.newPassword&&e.password.newPassword.length>0&&e.password.passwordConfirmation.length>0),is(1),zo("ngIf",e.password.passwordConfirmation!==e.password.newPassword)}}function Uq(e,t){if(1&e&&(Ho(0,"ion-select-option",65),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e),is(1),Ia(gc(2,2,"lang."+e))}}function Wq(e,t){1&e&&(Wo(0,"ion-note",66),pc(1,"translate")),2&e&&zo("innerHTML",gc(1,1,"lang.freeModeInfo"),sr)}function $q(e,t){1&e&&(Wo(0,"ion-note",66),pc(1,"translate")),2&e&&zo("innerHTML",gc(1,1,"lang.standardModeInfo"),sr)}function Gq(e,t){if(1&e&&(Ho(0,"ion-select-option",65),Oa(1),Uo()),2&e){const e=t.index;zo("value",e+1),is(1),Ta("",e+1," ")}}const qq=function(e){return{value:e}};function Yq(e,t){if(1&e&&(Wo(0,"ion-note",67),pc(1,"translate")),2&e){const e=ia(2);zo("innerHTML",fc(1,1,"lang.scalingDocWith",lc(4,qq,e.signatureScaling)),sr)}}function Zq(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-list",18),Ho(2,"ion-item"),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-toggle",39),Xo("ionChange",function(){Lt(e);const t=ia();return t.preferenceInfo.notifications=!t.preferenceInfo.notifications}),Uo(),Uo(),Ho(7,"ion-list"),Ho(8,"ion-item"),Ho(9,"ion-label",40),Oa(10),pc(11,"translate"),Uo(),Ho(12,"ion-select",41),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.lang=t}),Fo(13,Uq,3,4,"ion-select-option",42),Uo(),Uo(),Uo(),Ho(14,"ion-list"),Ho(15,"ion-item"),Ho(16,"ion-label",40),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-select",43),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.writingMode=t}),Ho(20,"ion-select-option",44),Oa(21),pc(22,"translate"),Uo(),Ho(23,"ion-select-option",45),Oa(24),pc(25,"translate"),Wo(26,"i",46),Uo(),Uo(),Fo(27,Wq,2,3,"ion-note",47),Fo(28,$q,2,3,"ion-note",47),Uo(),Uo(),Ho(29,"ion-list"),Ho(30,"ion-item"),Ho(31,"ion-label",40),Oa(32),pc(33,"translate"),Uo(),Ho(34,"ion-select",48),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.writingSize=t})("ionChange",function(){return Lt(e),ia().drawSample()}),Fo(35,Gq,2,2,"ion-select-option",42),Uo(),Ho(36,"ion-note",2),Wo(37,"canvas",49),Uo(),Uo(),Uo(),Ho(38,"ion-list"),Ho(39,"ion-item"),Ho(40,"ion-label",40),Oa(41),pc(42,"translate"),Uo(),Ho(43,"ion-select",50),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.writingColor=t}),Ho(44,"ion-select-option",51),Oa(45),pc(46,"translate"),Uo(),Ho(47,"ion-select-option",52),Oa(48),pc(49,"translate"),Uo(),Ho(50,"ion-select-option",53),Oa(51),pc(52,"translate"),Uo(),Uo(),Ho(53,"ion-note",2),Wo(54,"div",54),Uo(),Uo(),Uo(),Ho(55,"ion-list"),Ho(56,"ion-row"),Ho(57,"iotn-item"),Ho(58,"ion-label",55),Oa(59),pc(60,"translate"),Uo(),Uo(),Uo(),Ho(61,"ion-row"),Ho(62,"ion-col",56),Ho(63,"ion-item",57),Ho(64,"ion-range",58),Xo("ngModelChange",function(t){return Lt(e),ia().signatureScaling=t}),Wo(65,"ion-icon",59),Wo(66,"ion-icon",60),Uo(),Uo(),Fo(67,Yq,2,6,"ion-note",61),Uo(),Ho(68,"ion-col",62),Ho(69,"ion-item",63),Ho(70,"ion-label"),Oa(71),pc(72,"translate"),Uo(),Ho(73,"ion-toggle",64),Xo("ionChange",function(){Lt(e);const t=ia();return t.originalSize=!t.originalSize}),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Go()}if(2&e){const e=ia();is(4),Ia(gc(5,27,"lang.receiveNotif")),is(2),zo("checked",e.preferenceInfo.notifications),is(4),Ia(gc(11,29,"lang.language")),is(2),zo("ngModel",e.preferenceInfo.lang),is(1),zo("ngForOf",e.profileInfo.availableLanguages),is(4),Ta("",gc(18,31,"lang.annotationMode")," "),is(2),zo("ngModel",e.preferenceInfo.writingMode),is(2),Ia(gc(22,33,"lang.free")),is(3),Ta("",gc(25,35,"lang.appleStylus")," "),is(3),zo("ngIf","stylus"===e.preferenceInfo.writingMode),is(1),zo("ngIf","direct"===e.preferenceInfo.writingMode),is(4),Ia(gc(33,37,"lang.stylusWidh")),is(2),zo("ngModel",e.preferenceInfo.writingSize),is(1),zo("ngForOf",e.counter(10)),is(6),Ia(gc(42,39,"lang.defaultColor")),is(2),zo("ngModel",e.preferenceInfo.writingColor),is(2),Ia(gc(46,41,"lang.black")),is(3),Ia(gc(49,43,"lang.blue")),is(3),Ia(gc(52,45,"lang.red")),is(3),ma("background-color",e.preferenceInfo.writingColor),is(5),Ia(gc(60,47,"lang.signatureScaling")),is(5),zo("disabled",e.originalSize)("ngModel",e.signatureScaling),is(3),zo("ngIf",!e.originalSize),is(4),Ia(gc(72,49,"lang.originalSize")),is(2),zo("checked",e.originalSize)}}function Kq(e,t){if(1&e){const e=Yo();Ho(0,"ion-list"),Ho(1,"ion-item"),Wo(2,"ion-input",68),Ho(3,"ion-button",69),Xo("click",function(){return Lt(e),ia(2).deleteSubstitute()}),Wo(4,"ion-icon",70),Uo(),Uo(),Uo()}if(2&e){const e=ia(2);is(2),zo("value",e.authService.user.substituteUser)}}function Qq(e,t){if(1&e){const e=Yo();Ho(0,"ion-list"),Ho(1,"ion-item"),Ho(2,"ion-searchbar",71),Xo("ionChange",function(t){return Lt(e),ia(2).test(t)}),pc(3,"translate"),Uo(),Uo(),Uo()}2&e&&(is(2),zo("placeholder",gc(3,1,"lang.chooseSubstitute")))}function Xq(e,t){if(1&e&&(Ho(0,"ion-note",2),Oa(1),Uo()),2&e){const e=ia().$implicit;is(1),Ia(e.email)}}function Jq(e,t){1&e&&(Ho(0,"ion-note",76),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.delegatedUser")))}function eY(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-checkbox",73),Xo("ionChange",function(t){return Lt(e),ia(3).selectSubstitute(t.detail.value)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Fo(4,Xq,2,1,"ion-note",74),Fo(5,Jq,3,3,"ion-note",75),Uo()}if(2&e){const e=t.$implicit;is(1),zo("disabled",e.substitute)("value",e),is(2),Ma("",e.firstname," ",e.lastname,""),is(1),zo("ngIf",!e.substitute),is(1),zo("ngIf",e.substitute)}}function tY(e,t){if(1&e&&(Ho(0,"ion-list"),Fo(1,eY,6,6,"ion-item",72),Uo()),2&e){const e=ia(2);is(1),zo("ngForOf",e.userList)}}function nY(e,t){if(1&e){const e=Yo();Ho(0,"button",80),Xo("click",function(){Lt(e);const n=t.index;return ia(3).toggleSignature(n)}),Wo(1,"img",81),Uo()}if(2&e){const e=t.$implicit,n=ia(3);va("selected",e.substituted),is(1),zo("src",n.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),or)}}function iY(e,t){if(1&e&&($o(0),Ho(1,"ion-item",28),Ho(2,"ion-label",77),Oa(3),pc(4,"translate"),Uo(),Uo(),Ho(5,"div",78),Fo(6,nY,2,3,"button",79),Uo(),Go()),2&e){const e=ia(2);is(3),Ta(" ",gc(4,2,"lang.signSubstituted")," : "),is(3),zo("ngForOf",e.signaturesService.signaturesList)}}function rY(e,t){if(1&e&&($o(0),Fo(1,Kq,5,1,"ion-list",16),Fo(2,Qq,4,3,"ion-list",16),Fo(3,tY,2,1,"ion-list",16),Fo(4,iY,7,4,"ng-container",16),Go()),2&e){const e=ia();is(1),zo("ngIf",null!==e.authService.user.substitute),is(1),zo("ngIf",null===e.authService.user.substitute),is(1),zo("ngIf",null===e.authService.user.substitute),is(1),zo("ngIf",null!=e.authService.user.substitute&&e.signaturesService.signaturesList.length>0)}}function sY(e,t){1&e&&($o(0),Wo(1,"app-signatures",82),Go()),2&e&&(is(1),zo("target","profile"))}function oY(e,t){if(1&e){const e=Yo();Ho(0,"ion-footer",83),Ho(1,"ion-toolbar"),Ho(2,"ion-buttons",84),Ho(3,"ion-button",85),Xo("click",function(){return Lt(e),ia().submitProfile()}),Ho(4,"ion-label"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia(),t=No(32);is(3),zo("disabled",e.allowValidate()||!t.form.valid),is(2),Ia(gc(6,2,"lang.save"))}}const aY=function(){return["info","pref"]};let lY=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this.http=e,this.sanitizer=t,this.notificationService=n,this.signaturesService=i,this.authService=r,this.filtersService=s,this.modalController=o,this.renderer=a,this.translate=l,this.alertController=c,this.cookieService=u,this.router=d,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}ngOnInit(){this.initProfileInfo(),this.getPassRules()}dismissModal(){this.modalController.dismiss("cancel")}test(e){""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ib(e=>{this.userList=e.filter(e=>e.id!==this.profileInfo.id)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}initProfileInfo(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}initTab(e){this.currentTool=e,"pref"===e&&setTimeout(()=>{this.drawSample()},200)}closeProfile(){setTimeout(()=>{this.initProfileInfo()},200),this.dismissModal()}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}allowValidate(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}submitProfile(){return Lq(this,void 0,void 0,function*(){this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(Ib(()=>{this.disableState=!1,this.msgButton="lang.validate",this.setLang(this.preferenceInfo.lang),this.cookieService.set("maarchParapheurLang",this.preferenceInfo.lang)}),UR(()=>"default"===this.authService.authMode?this.http.put("../rest/users/"+this.authService.user.id,this.profileInfo):new Promise(e=>{e(!0)})),UR(()=>{if(this.authService.updateUserInfoWithTokenRefresh(),""===this.password.newPassword)return this.closeProfile(),this.notificationService.success("lang.profileUpdated"),cv(!1);if("default"===this.authService.authMode){const e=new mv({Authorization:"Bearer "+this.authService.getToken()});return this.http.put("../rest/users/"+this.authService.user.id+"/password",this.password,{observe:"response",headers:e})}return cv(!1)}),dv(e=>!!e),Ib(e=>{this.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),this.password.newPassword="",this.password.passwordConfirmation="",this.password.currentPassword="",this.notificationService.success("lang.profileUpdated")}),mb(e=>(401===e.status?this.notificationService.error("lang.wrongPassword"):this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}changePicture(){this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(Ib(()=>{this.authService.user.picture=this.avatarInfo.picture,this.notificationService.success("lang.profileUpdated")}),Bb(()=>{this.msgButton="lang.validate",this.disableState=!1})).subscribe()}selectSubstitute(e){this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substituteEnabled")})}deleteSubstitute(){return Lq(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{const e=this.signaturesService.signaturesList.filter(e=>e.substituted);this.profileInfo.substitute=null,this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:this.profileInfo.substitute}).pipe(Ib(t=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),e.length>0&&e.forEach(e=>{this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+e.id+"/substituted",{substituted:!1}).pipe(Ib(()=>{this.signaturesService.signaturesList.find(t=>t.id===e.id).substituted=!1}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substitutionDeleted")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}]});yield e.present()})}handleFileInput(e){this.passwordContent&&this.passwordContent.close();const t=e.item(0);if(t.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=t=>{const n=new Image;n.src=e.result.toString(),this.avatarInfo.picture=e.result,n.onload=()=>this.fixImgOrientation(n)},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}fixImgOrientation(e){Rq.getData(e,()=>{let t=0;switch(Rq.getTag(e,"Orientation")){case 3:t=180;break;case 6:t=90;break;case 8:t=-90}this.avatarInfo.pictureOrientation=t,this.changePicture()})}drawSample(){const e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}initProfileTab(e){1===e.index&&this.drawSample()}counter(e){return new Array(e)}setLang(e){this.translate.use(e)}toggleSignature(e){this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(()=>{this.signaturesService.signaturesList[e].substituted=!this.signaturesService.signaturesList[e].substituted,this.notificationService.success("lang.modificationSaved")})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(Yh),Vo(QC),Vo(oS),Vo(lS),Vo(NL),Vo(tC),Vo(ul),Vo(qC),Vo(XA),Vo(oE),Vo(a_))},e.\u0275cmp=qe({type:e,selectors:[["app-my-profile"]],viewQuery:function(e,t){if(1&e&&Mc(Fq,1),2&e){let e;Tc(e=Rc())&&(t.passwordContent=e.first)}},decls:39,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],["value","signatures"],["name","pencil-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[3,"target"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.dismissModal()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-header"),Ho(9,"ion-toolbar"),Ho(10,"ion-segment",5),Xo("ionChange",function(e){return t.initTab(e.detail.value)}),Ho(11,"ion-segment-button",6),Ho(12,"ion-label"),Oa(13),pc(14,"translate"),Uo(),Wo(15,"ion-icon",7),Uo(),Ho(16,"ion-segment-button",8),Ho(17,"ion-label"),Oa(18),pc(19,"translate"),Uo(),Wo(20,"ion-icon",9),Uo(),Ho(21,"ion-segment-button",10),Ho(22,"ion-label"),Oa(23),pc(24,"translate"),Uo(),Wo(25,"ion-icon",11),Uo(),Ho(26,"ion-segment-button",12),Ho(27,"ion-label"),Oa(28),pc(29,"translate"),Uo(),Wo(30,"ion-icon",13),Uo(),Uo(),Uo(),Uo(),Ho(31,"form",14,15),Xo("ngSubmit",function(){return t.submitProfile()}),Ho(33,"ion-content"),Fo(34,Hq,30,27,"ng-container",16),Fo(35,Zq,74,51,"ng-container",16),Fo(36,rY,5,4,"ng-container",16),Fo(37,sY,2,1,"ng-container",16),Uo(),Uo(),Fo(38,oY,7,4,"ion-footer",17)),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,12,"lang.myProfil")),is(7),zo("value",t.currentTool),is(3),Ia(gc(14,14,"lang.informations")),is(5),Ia(gc(19,16,"lang.preferences")),is(5),Ia(gc(24,18,"lang.substitute")),is(5),Ia(gc(29,20,"lang.signatures")),is(6),zo("ngIf","info"===t.currentTool),is(1),zo("ngIf","pref"===t.currentTool),is(1),zo("ngIf","deleg"===t.currentTool),is(1),zo("ngIf","signatures"===t.currentTool),is(1),zo("ngIf",ac(22,aY).indexOf(t.currentTool)>-1))},directives:[zx,wA,bA,Sx,Cx,jx,uA,ox,dA,Kx,Lm,lm,Tm,Mx,$d,Qx,Gx,_x,$x,lx,ev,nv,am,Rm,rv,Xx,nA,yA,ex,hA,Ud,pA,lA,Tx,sA,cA,Ox,vI,DL,Nx],pipes:[YC],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),e})();function cY(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",3),Xo("click",function(){return Lt(e),ia().menu.open("left-menu")}),Oa(1),pc(2,"translate"),Uo()}2&e&&(is(1),Ta(" ",gc(2,1,"lang.accessMenu")," "))}let uY=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.translate=t,this.menu=n,this.modalController=i,this.loading=!1}ngOnInit(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(qC),Vo(eC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Ho(0,"ion-content",0),Wo(1,"mat-icon",1),Fo(2,cY,3,3,"ion-button",2),Uo()),2&e&&(is(2),zo("ngIf",t.signaturesService.mobileMode))},directives:[Mx,rT,$d,Cx],pipes:[YC],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),e})();var dY=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function hY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",25),Xo("click",function(){Lt(e);const t=ia().$implicit,n=ia().index;return ia().goToSignUserPage(n,t.page)}),pc(1,"translate"),Ho(2,"ion-label"),Oa(3),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia().index,n=ia();zo("title",gc(1,3,"lang.accessToPage")+" "+e.page)("color",t===n.currentUser&&e.page===n.currentPage?"primary":"medium"),is(3),Ia(e.page)}}function pY(e,t){if(1&e&&($o(0),Fo(1,hY,4,5,"ion-chip",24),Go()),2&e){const e=t.$implicit,n=ia().index;is(1),zo("ngIf",e.sequence==n)}}function gY(e,t){if(1&e&&(Ho(0,"ion-segment-button",21),Ho(1,"ion-label"),Ho(2,"h2"),Oa(3),Uo(),Ho(4,"p",22),Fo(5,pY,2,1,"ng-container",7),Uo(),Uo(),Wo(6,"ion-icon",23),Uo()),2&e){const e=t.$implicit,n=t.index,i=ia();zo("value",n),is(3),Ia(e.userDisplay),is(2),zo("ngForOf",i.signList),is(1),zo("name","sign"===e.mode?"pencil-outline":"checkmark-done-outline")}}const fY=function(e,t){return{x:e,y:t}};function mY(e,t){if(1&e){const e=Yo();Ho(0,"div",27),Xo("movingOffset",function(){return Lt(e),ia(2).dragging=!0})("endOffset",function(t){Lt(e);const n=ia(2);return n.moveSign(t,n.i)})("click",function(){Lt(e);const t=ia().$implicit,n=ia();return n.currentUser!=t.sequence&&n.goToSignUserPage(t.sequence,n.currentPage)}),Ho(1,"ion-buttons",28),Ho(2,"ion-button",29),Xo("click",function(){Lt(e);const t=ia().index;return ia().deleteSign(t)}),pc(3,"translate"),Wo(4,"ion-icon",30),Uo(),Uo(),Ho(5,"span",31),Oa(6),Uo(),Oa(7),pc(8,"uppercase"),pc(9,"translate"),Uo()}if(2&e){const e=ia().$implicit,t=ia(),n=No(11);ma("width",25,"%"),va("signDisabled",t.currentUser!==e.sequence)("hide",!t.pagesLoaded),zo("position",cc(20,fY,e.position.positionX*t.workingAreaWidth/100,e.position.positionY*t.workingAreaHeight/100))("ngDraggable",t.currentUser===e.sequence)("preventDefaultEvent",!1)("bounds",n)("inBounds",!0),is(2),zo("title",gc(3,14,"lang.delete")),is(4),Ia(t.getUserName(e.sequence)),is(1),Ta(" ",gc(8,16,gc(9,18,"lang.signature"))," ")}}function vY(e,t){if(1&e&&($o(0),Fo(1,mY,10,23,"div",26),Go()),2&e){const e=t.$implicit,n=ia();is(1),zo("ngIf",e.page===n.currentPage)}}function bY(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",32),Xo("click",function(){return Lt(e),ia().initSign()}),Oa(1),pc(2,"translate"),Uo()}2&e&&(is(1),Ta(" ",gc(2,1,"lang.createSignaturePosition"),""))}function yY(e,t){if(1&e&&(Ho(0,"ion-select-option",33),Oa(1),Uo()),2&e){const e=t.index;zo("value",t.$implicit),is(1),Ia(e+1)}}function wY(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",36),Xo("click",function(){Lt(e);const t=ia(2);return t.changePage(t.currentPage-1)}),Wo(1,"ion-icon",37),Uo()}}function _Y(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",38),Xo("click",function(){Lt(e);const t=ia(2);return t.changePage(t.currentPage+1)}),Wo(1,"ion-icon",39),Uo()}}function xY(e,t){if(1&e&&($o(0),Fo(1,wY,2,0,"ion-fab-button",34),Fo(2,_Y,2,0,"ion-fab-button",35),Go()),2&e){const e=ia();is(1),zo("ngIf",e.currentPage>1),is(1),zo("ngIf",e.currentPage<e.pages.length)}}let AY=(()=>{class e{constructor(e,t,n,i,r,s){this.translate=e,this.http=t,this.signaturesService=n,this.pdfViewerService=i,this.modalController=r,this.loadingController=s,this.workflow=[],this.resource=[],this.pdfContent=null,this.docIndex=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}ngOnInit(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>{this.load=e,this.load.present()}),this.resource.signPos&&this.initSignPos()}initSignPos(){this.workflow.forEach((e,t)=>{var n;(null===(n=e.signaturePositions)||void 0===n?void 0:n.length)>0&&(this.signList=this.signList.concat(e.signaturePositions.filter(e=>e.mainDocument===this.resource.mainDocument&&e.docIndex===this.docIndex).map(e=>Object.assign(Object.assign({},e),{sequence:t,docIndex:this.docIndex}))))})}onSubmit(){this.modalController.dismiss(this.formatData())}onPagesLoaded(e){return dY(this,void 0,void 0,function*(){this.pages=Array.from({length:e.pagesCount}).map((e,t)=>t+1),this.changePage(1)})}exportAsImage(){return dY(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});this.getImageDimensions(e),this.imgContent=e,this.pagesLoaded=!0})}getImageDimensions(e){const t=new Image;t.onload=e=>{this.workingAreaWidth=e.target.naturalWidth,this.workingAreaHeight=e.target.naturalHeight},t.src=e}changePage(e){this.currentPage=e,this.exportAsImage()}moveSign(e,t){let n=100*e.x/this.workingAreaWidth,i=100*e.y/this.workingAreaHeight;n=n<0?0:n,n=n>100?100:n,i=i<0?0:i,i=i>100?100:i,this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionX=n,this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionY=i,this.dragging=!1}emptySign(){return 0===this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage).length}initSign(){this.signList.push({sequence:this.currentUser,page:this.currentPage,docIndex:this.docIndex,position:{positionX:75,positionY:90}});let e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach((t,n)=>{if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}getUserSignPosPage(e){return this.signList.filter(t=>t.sequence===e)}selectUser(e){this.currentUser=+e}getUserName(e){return this.workflow[e].userDisplay}goToSignUserPage(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}deleteSign(e){this.signList.splice(e,1)}formatData(){let e=[];return this.workflow.forEach((t,n)=>{this.signList.filter(e=>e.sequence===n).length>0&&(e=e.concat(this.signList.filter(e=>e.sequence===n)))}),e}imageLoaded(e){this.load.dismiss()}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Ov),Vo(oS),Vo(XS),Vo(tC),Vo(JA))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent",docIndex:"docIndex"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Uo(),Ho(5,"ion-toolbar",1),Ho(6,"ion-segment",2),Xo("ionChange",function(e){return t.selectUser(e.detail.value)}),Fo(7,gY,7,4,"ion-segment-button",3),Uo(),Uo(),Uo(),Ho(8,"ion-content"),Ho(9,"drag-scroll",4),Ho(10,"div",5,6),Fo(12,vY,2,1,"ng-container",7),Ho(13,"ion-img",8),Xo("ionImgDidLoad",function(e){return t.imageLoaded(e)}),Uo(),Fo(14,bY,3,3,"ion-button",9),Uo(),Uo(),Ho(15,"ngx-extended-pdf-viewer",10),Xo("pdfLoaded",function(e){return t.onPagesLoaded(e)}),Uo(),Ho(16,"section",11),Ho(17,"div",12),Oa(18),Uo(),Ho(19,"div",13),Xo("click",function(){Lt(e);const n=No(23);return t.pages.length>1&&n.open()}),Oa(20),pc(21,"translate"),Uo(),Ho(22,"ion-select",14,15),Xo("ionChange",function(e){return t.changePage(e.target.value)}),pc(24,"translate"),Fo(25,yY,2,2,"ion-select-option",16),Uo(),Uo(),Fo(26,xY,3,2,"ng-container",17),Uo(),Ho(27,"ion-footer",18),Ho(28,"div"),Ho(29,"ion-button",19),Xo("click",function(){return t.onSubmit()}),Ho(30,"ion-label"),Oa(31),pc(32,"translate"),Uo(),Uo(),Ho(33,"ion-button",20),Xo("click",function(){return t.modalController.dismiss()}),Ho(34,"ion-label"),Oa(35),pc(36,"translate"),Uo(),Uo(),Uo(),Uo()}2&e&&(zo("translucent",!0),is(3),Ia(gc(4,25,"lang.adminSignaturesPositions")),is(3),zo("value",t.currentUser),is(1),zo("ngForOf",t.workflow),is(2),zo("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),is(1),ma("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),is(2),zo("ngForOf",t.signList),is(1),zo("src",t.imgContent),is(1),zo("ngIf",t.emptySign()),is(1),zo("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),is(3),Ia(t.resource.title),is(2),Ba("",gc(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),is(2),zo("cancelText",gc(24,29,"lang.cancel")),is(3),zo("ngForOf",t.pages),is(1),zo("ngIf",t.pages.length>1),is(5),Ia(gc(32,31,"lang.save")),is(4),Ia(gc(36,33,"lang.cancel")))},directives:[zx,wA,bA,uA,ox,Ud,Mx,Kk,Hx,$d,QS,hA,Nx,Cx,Kx,dA,jx,Ix,eE,Sx,pA,Lx],pipes:[YC,lh],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),e})(),CY=(()=>{class e{constructor(){this.fileDropped=new wc,this.disabled=!1,this.background="none",this.opacity="1"}onDragOver(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}onDragLeave(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}ondrop(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";const t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&Xo("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&ma("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),e})();var SY=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const kY=["appVisaWorkflow"],EY=["rightContent"],PY=["docToUpload"];function DY(e,t){1&e&&Wo(0,"ion-icon",34)}function OY(e,t){1&e&&Wo(0,"ion-icon",35)}function IY(e,t){1&e&&Wo(0,"i",36)}function TY(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-buttons",2),Ho(2,"ion-button",22),Xo("click",function(){const e=t.$implicit;return e.mainDocument=!e.mainDocument}),pc(3,"translate"),pc(4,"translate"),Fo(5,DY,1,0,"ion-icon",23),Fo(6,OY,1,0,"ion-icon",24),Uo(),Uo(),Ho(7,"ion-item",25),Ho(8,"ion-label",26),Oa(9),pc(10,"translate"),Uo(),Ho(11,"ion-input",27),Xo("ngModelChange",function(e){return t.$implicit.reference=e}),pc(12,"translate"),Uo(),Uo(),Ho(13,"ion-item",25),Ho(14,"ion-label",26),Oa(15),pc(16,"translate"),Uo(),Ho(17,"ion-input",28),Xo("ngModelChange",function(e){return t.$implicit.title=e}),pc(18,"translate"),Uo(),Uo(),Ho(19,"ion-buttons",5),Ho(20,"ion-button",29),Xo("click",function(){Lt(e);const n=t.index;return ia(2).signPos(n)}),pc(21,"translate"),Fo(22,IY,1,0,"i",30),Wo(23,"ion-icon",31),Uo(),Ho(24,"ion-button",32),Xo("click",function(){Lt(e);const n=t.index;return ia(2).deleteFile(n)}),pc(25,"translate"),Wo(26,"ion-icon",33),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=ia(2);is(2),zo("title",e.mainDocument?gc(3,15,"lang.docToSign"):gc(4,17,"lang.attachDocToSign")),is(3),zo("ngIf",e.mainDocument),is(1),zo("ngIf",!e.mainDocument),is(3),Ia(gc(10,19,"lang.reference")),is(2),aa("placeholder",gc(12,21,"lang.fileReference")),zo("maxlength",53)("ngModel",e.reference)("disabled",!e.mainDocument),is(4),Ta("",gc(16,23,"lang.subject")," *"),is(2),aa("placeholder",gc(18,25,"lang.filename")),zo("ngModel",e.title),is(3),zo("disabled",!e.mainDocument)("title",gc(21,27,"lang.setSignaturesPosition")),is(2),zo("ngIf",void 0!==i.filesToUpload[n].signPos&&i.filesToUpload[n].signPos.length>0),is(2),zo("title",gc(25,29,"lang.delete"))}}function MY(e,t){if(1&e&&(Ho(0,"ion-list"),Ho(1,"ion-list-header"),Ho(2,"ion-label",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Fo(5,TY,27,31,"ion-item",21),Uo()),2&e){const e=ia();is(3),Ia(gc(4,2,"lang.documentsToUpload")),is(2),zo("ngForOf",e.filesToUpload)}}function BY(e,t){1&e&&Wo(0,"app-visa-workflow",37,38),2&e&&zo("editMode",!0)}let RY=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=r,this.viewContainerRef=s,this.notificationService=o,this.authService=a,this.loadingController=l,this.alertController=c,this.datePipe=u,this.modalController=d,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}ngOnInit(){}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}getDocumentData(e){return new Promise(t=>{this.http.get("../rest/documents/"+e).pipe(Ib(n=>{let i="",r=n.document.reference.split("/");r=r.slice(3,r.length),r.length>0&&(i=r.join("/")),this.filesToUpload.push({title:n.document.title,reference:i,mainDocument:!0,content:"",linkId:n.document.linkId,metadata:n.document.metadata}),this.getDocumentContent(e),this.appVisaWorkflow.loadWorkflow(n.document.workflow.map(e=>(e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))));for(let e=0;e<n.document.attachments.length;e++)this.getAttachment(n.document.attachments[e].id);t(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}getDocumentContent(e){return new Promise(t=>{this.http.get(`../rest/documents/${e}/content?type=original`).pipe(Ib(e=>{this.filesToUpload[0].content=e.encodedDocument,t(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}getAttachment(e){return new Promise(t=>{this.http.get("../rest/attachments/"+e).pipe(Ib(e=>{this.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),t(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}onSubmit(){this.isValid()&&this.promptSaveDoc()}promptSaveDoc(){return SY(this,void 0,void 0,function*(){const e=yield this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>SY(this,void 0,void 0,function*(){t.present();const n=this.formatData(e.note);for(let e=0;e<n.length;e++)yield this.saveDocument(n,e);t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]))}))}}]});yield e.present()})}saveDocument(e,t){return e.forEach(t=>{t.workflow.forEach(n=>{n.signaturePositions=n.signaturePositions.filter(n=>n.docIndex===e.indexOf(t))})}),new Promise(n=>{this.http.post("../rest/documents",e[t]).pipe(Ib(()=>{this.errors=[]}),Bb(()=>n(!0)),mb(n=>(this.errors.push(e[t].title),this.notificationService.handleErrors(n),cv(!1)))).subscribe()})}formatData(e){const t=new Date;let n=null,i=null;""!==e&&(n={value:e,creator:`${this.authService.user.firstname} ${this.authService.user.lastname}`,creationDate:this.datePipe.transform(t,"dd-MM-y")});const r=[],s=this.filesToUpload.filter(e=>e.mainDocument),o=this.filesToUpload.filter(e=>!e.mainDocument);return s.length>1&&(i=this.datePipe.transform(t,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),s.forEach(e=>{const s={};null!==this.fromDocument&&e.metadata.forEach(e=>{s[e.label]=e.value});let a="";""!==e.reference&&(a=this.datePipe.transform(t,"y/MM/dd")+"/"+e.reference),r.push({title:e.title,reference:a,encodedDocument:e.content,isZipped:!1,linkId:null!==this.fromDocument?e.linkId:i,sender:`${this.authService.user.firstname} ${this.authService.user.lastname}`,notes:n,attachments:o.map(e=>({title:e.title,encodedDocument:e.content})),workflow:this.appVisaWorkflow.getCurrentWorkflow().map((t,n)=>({userId:t.userId,mode:this.authService.getWorkflowMode(t.role),signatureMode:this.authService.getSignatureMode(t.role),signaturePositions:void 0!==t.signaturePositions?this.formatPositions(t.signaturePositions.filter(t=>t.mainDocument===e.mainDocument&&void 0!==e.signPos)).map(e=>({page:e.page,docIndex:e.docIndex,positionX:e.position.positionX,positionY:e.position.positionY})):[]})),metadata:s})}),r}formatPositions(e){return delete e.mainDocument,e}dndUploadFile(e){this.uploadTrigger({target:{files:[e[0]]}})}uploadTrigger(e){this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(t=>SY(this,void 0,void 0,function*(){if(t.present(),e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(let n=0;n<e.target.files.length;n++){const i=e.target.files[n].name,r={title:i.substr(0,i.lastIndexOf(".")),reference:i.substr(0,i.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},s=new FileReader;s.readAsArrayBuffer(e.target.files[n]),s.onload=e=>{r.mainDocument=0===this.filesToUpload.length,r.reference=0===this.filesToUpload.length?r.reference:"",r.content=this.getBase64Document(e.target.result),this.filesToUpload.push(r),1===this.filesToUpload.length&&setTimeout(()=>{this.menu.open("right-menu")},500)},n===e.target.files.length-1&&t.dismiss()}this.fileImport.nativeElement.value=""}else this.loading=!1,t.dismiss()}))}isExtensionAllowed(e){for(let t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}getBase64Document(e){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}deleteFile(e){this.filesToUpload.splice(e,1),0===this.filesToUpload.length&&this.appVisaWorkflow.getCurrentWorkflow().forEach(e=>{e.signaturePositions=[]})}signPos(e){return SY(this,void 0,void 0,function*(){if(this.appVisaWorkflow.getCurrentWorkflow().length>0){this.appVisaWorkflow.getCurrentWorkflow().forEach((e,t)=>{void 0===e.signaturePositions&&(this.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])});const t=yield this.modalController.create({component:AY,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content,docIndex:this.filesToUpload.indexOf(this.filesToUpload[e])}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.filesToUpload[e].signPos=n,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload,e,n))}else this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions")})}isValid(){return this.filesToUpload.filter(e=>""===e.title).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(e=>e.mainDocument).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(a_),Vo(eC),Vo(oS),Vo(Gl),Vo(QC),Vo(lS),Vo(JA),Vo(XA),Vo(ch),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Mc(kY,1),Mc(EY,3),Mc(PY,1)),2&e){let e;Tc(e=Rc())&&(t.appVisaWorkflow=e.first),Tc(e=Rc())&&(t.rightContent=e.first),Tc(e=Rc())&&(t.fileImport=e.first)}},features:[el([ch])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Uo(),Ho(4,"ion-title",4),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-buttons",5),Ho(8,"ion-menu-button",6),Wo(9,"ion-icon",7),Uo(),Uo(),Uo(),Uo(),Ho(10,"ion-content"),Ho(11,"div",8),Fo(12,MY,6,4,"ion-list",9),Ho(13,"input",10,11),Xo("change",function(e){return t.uploadTrigger(e)}),Uo(),Ho(15,"div",12),Xo("fileDropped",function(e){return t.dndUploadFile(e)}),Ho(16,"ion-button",13),Xo("click",function(){return Lt(e),No(14).click()}),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-item",14),Ho(20,"ion-label",15),Oa(21),pc(22,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(23,"ion-footer",16),Ho(24,"div",17),Ho(25,"ion-button",18),Xo("click",function(){return t.onSubmit()}),Ho(26,"ion-label",19),Oa(27),pc(28,"translate"),Uo(),Uo(),Uo(),Uo(),Fo(29,BY,2,1,"ng-template",null,20,Vc)}2&e&&(zo("translucent",!0),is(5),Ia(gc(6,6,"lang.newDocumentToVisa")),is(7),zo("ngIf",t.filesToUpload.length>0),is(5),Ta(" ",gc(18,8,"lang.chooseDocuments")," "),is(4),Ta(" ",gc(22,10,"lang.dndDocuments")," "),is(6),Ia(gc(28,12,"lang.validate")))},directives:[zx,wA,Sx,eA,bA,jx,Mx,$d,CY,Cx,Gx,Kx,Nx,Qx,Xx,Ud,$x,lx,nv,am,Rm,wG],pipes:[YC],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),e})();const LY=["searchInput"];function FY(e,t){if(1&e){const e=Yo();Ho(0,"ion-searchbar",6,7),Xo("ngModelChange",function(t){return Lt(e),ia().searchValue=t})("ionChange",function(t){return Lt(e),ia().getDatas(t)}),pc(2,"translate"),Uo()}2&e&&zo("ngModel",ia().searchValue)("placeholder",gc(2,2,"lang.search"))}function NY(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-checkbox",10),Xo("ionChange",function(t){return Lt(e),ia(2).selectItem(t.detail.value)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Ho(4,"ion-note",11),Oa(5),Uo(),Uo()}if(2&e){const e=t.$implicit;is(1),zo("value",e),is(2),Ma("",e.firstname," ",e.lastname,""),is(2),Ia(e.email)}}function VY(e,t){if(1&e&&(Ho(0,"ion-list",8),Fo(1,NY,6,4,"ion-item",9),Uo()),2&e){const e=ia();is(1),zo("ngForOf",e.itemList)}}function zY(e,t){1&e&&(Ho(0,"ion-label",12),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.noItem")))}function jY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",13),Xo("click",function(){Lt(e);const n=t.index;return ia().removeItem(n)}),Ho(1,"ion-label",14),Oa(2),Uo(),Wo(3,"ion-icon",15),Uo()}if(2&e){const e=t.$implicit;is(2),Ma("",e.firstname," ",e.lastname,"")}}function HY(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",11),Ho(1,"ion-button",16),Xo("click",function(){return Lt(e),ia().toggleEdit()}),Ho(2,"ion-label",17),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()}2&e&&(is(3),Ia(gc(4,1,"lang.edit")))}let UY=(()=>{class e{constructor(e,t){this.http=e,this.notificationService=t,this.currentItems=[],this.selectedOpt=new wc,this.myControl=new Em,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}ngOnInit(){}getDatas(e){""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ib(e=>{this.itemList=e}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}selectItem(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}removeItem(e){this.currentItems.splice(e,1)}toggleEdit(){this.editMode=!this.editMode,this.editMode&&setTimeout(()=>{this.searchInput.setFocus()},0)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(QC))},e.\u0275cmp=qe({type:e,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){if(1&e&&Mc(LY,1),2&e){let e;Tc(e=Rc())&&(t.searchInput=e.first)}},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(Fo(0,FY,3,4,"ion-searchbar",0),Fo(1,VY,2,1,"ion-list",1),Ho(2,"ion-list"),Ho(3,"ion-item",2),Fo(4,zY,3,3,"ion-label",3),Ho(5,"p"),Fo(6,jY,4,2,"ion-chip",4),Uo(),Fo(7,HY,5,3,"ion-buttons",5),Uo(),Uo()),2&e&&(zo("ngIf",t.editMode),is(1),zo("ngIf",t.itemList.length>0),is(3),zo("ngIf",0===t.currentItems.length),is(2),zo("ngForOf",t.currentItems),is(1),zo("ngIf",!t.editMode))},directives:[$d,Qx,Gx,Ud,cA,lx,am,Rm,Ox,ex,Kx,nA,Ix,jx,Sx,Cx],pipes:[YC],styles:[""]}),e})();var WY=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const $Y=["appVisaWorkflow"],GY=["rightContent"];function qY(e,t){1&e&&Wo(0,"ion-icon",26)}function YY(e,t){1&e&&Wo(0,"ion-icon",27)}function ZY(e,t){1&e&&Wo(0,"ion-icon",28)}function KY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",21),Xo("click",function(){Lt(e);const t=ia().$implicit;return ia(2).removeFilter(t)}),pc(1,"translate"),Fo(2,qY,1,0,"ion-icon",22),Fo(3,YY,1,0,"ion-icon",23),Fo(4,ZY,1,0,"ion-icon",24),Ho(5,"ion-label"),Oa(6),Uo(),Wo(7,"ion-icon",25),Uo()}if(2&e){const e=ia().$implicit;zo("title",gc(1,5,"lang."+e.id+"Search")),is(2),zo("ngIf","title"===e.id),is(1),zo("ngIf","reference"===e.id),is(1),zo("ngIf","documentId"===e.id),is(2),Ia(e.val)}}function QY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",21),Xo("click",function(){Lt(e);const n=t.$implicit,i=ia(2).$implicit;return ia(2).removeFilter(i,n.id)}),pc(1,"translate"),Wo(2,"ion-icon",30),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Wo(6,"ion-icon",25),Uo()}if(2&e){const e=t.$implicit;zo("title",gc(1,2,"lang.workflowStatesSearch")),is(4),Ia(gc(5,4,e.label))}}function XY(e,t){if(1&e&&(Ho(0,"div"),Fo(1,QY,7,6,"ion-chip",29),Uo()),2&e){const e=ia().$implicit;is(1),zo("ngForOf",e.val)}}function JY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",21),Xo("click",function(){Lt(e);const n=t.$implicit,i=ia(2).$implicit;return ia(2).removeFilter(i,n)}),pc(1,"translate"),Wo(2,"ion-icon",31),Ho(3,"ion-label"),Oa(4),Uo(),Wo(5,"ion-icon",25),Uo()}if(2&e){const e=t.$implicit;zo("title",gc(1,3,"lang.workflowUsersSearch")),is(4),Ma("",e.firstname," ",e.lastname,"")}}function eZ(e,t){if(1&e&&(Ho(0,"div"),Fo(1,JY,6,5,"ion-chip",29),Uo()),2&e){const e=ia().$implicit;is(1),zo("ngForOf",e.val)}}function tZ(e,t){if(1&e&&(Ho(0,"div"),Fo(1,KY,8,7,"ion-chip",20),Fo(2,XY,2,1,"div",10),Fo(3,eZ,2,1,"div",10),Uo()),2&e){const e=t.$implicit;is(1),zo("ngIf",("title"===e.id||"reference"===e.id||"documentId"===e.id)&&""!==e.val),is(1),zo("ngIf","workflowStates"===e.id&&e.val.length>0),is(1),zo("ngIf","workflowUsers"===e.id&&e.val.length>0)}}function nZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-toolbar",14),Ho(1,"div",15),Ho(2,"ion-button",16),Xo("click",function(){return Lt(e),ia().clearFilters()}),pc(3,"translate"),Wo(4,"ion-icon",17),Uo(),Ho(5,"div",18),Fo(6,tZ,4,3,"div",19),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(2),zo("title",gc(3,2,"lang.clearFilters")),is(4),zo("ngForOf",e.currentFilters)}}function iZ(e,t){1&e&&(Ho(0,"ion-list",32),Ho(1,"ion-item",33),Ho(2,"ion-label",34),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.noResult")))}function rZ(e,t){1&e&&Wo(0,"ion-icon",57)}function sZ(e,t){1&e&&Wo(0,"ion-icon",58)}function oZ(e,t){1&e&&Wo(0,"ion-icon",59)}function aZ(e,t){if(1&e&&(Ho(0,"ion-badge",60),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;is(1),Ia(gc(2,1,"lang."+e.mode+"User"))}}const lZ=function(){return["END","STOP"]};function cZ(e,t){if(1&e&&($o(0),Fo(1,rZ,1,0,"ion-icon",52),Ho(2,"span",53),Oa(3),pc(4,"translate"),Fo(5,sZ,1,0,"ion-icon",54),Fo(6,oZ,1,0,"ion-icon",55),Fo(7,aZ,3,3,"ion-badge",56),Uo(),Go()),2&e){const e=t.$implicit,n=t.index,i=ia(3);is(1),zo("ngIf",n>0),is(1),va("success",null!==e.processDate&&"STOP"!==e.status)("typist-interrupt","REF"===e.status)("interrupt",null===e.processDate&&"END"===e.status||"STOP"===e.status)("current",e.current)("no-visa",null===e.processDate&&null===e.status&&!e.current),is(1),Ta("",i.functionsService.empty(e.userDisplay)?gc(4,15,"lang.userDeleted"):e.userDisplay,"\xa0 "),is(2),zo("ngIf",null!==e.processDate&&"REF"!==e.status&&"STOP"!==e.status),is(1),zo("ngIf",null!==e.processDate&&"REF"===e.status),is(1),zo("ngIf",null===e.processDate&&(null===e.status||ac(17,lZ).indexOf(e.status)>-1))}}function uZ(e,t){1&e&&Wo(0,"ion-icon",61)}function dZ(e,t){1&e&&Wo(0,"ion-icon",62)}function hZ(e,t){1&e&&Wo(0,"ion-icon",63)}function pZ(e,t){1&e&&Wo(0,"ion-icon",64)}function gZ(e,t){if(1&e&&($o(0),Wo(1,"ion-icon",66),Oa(2),Go()),2&e){const e=t.$implicit;is(2),Ta(" ",e," ")}}function fZ(e,t){if(1&e&&(Ho(0,"p",65),Fo(1,gZ,3,1,"ng-container",19),Uo()),2&e){const e=ia().$implicit;is(1),zo("ngForOf",e.reason)}}function mZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",67),Xo("click",function(t){Lt(e);const n=ia().$implicit,i=No(7),r=ia(2);return t.stopPropagation(),r.toggleSlide(i,n.id)}),Wo(1,"ion-icon",68),Uo()}}function vZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",67),Xo("click",function(t){Lt(e);const n=ia().$implicit,i=No(7),r=ia(2);return t.stopPropagation(),r.toggleSlide(i,n.id)}),Wo(1,"ion-icon",69),Uo()}}function bZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item-option",50),Xo("click",function(){Lt(e);const t=ia().$implicit;return ia(2).openPromptProof(t)}),Wo(1,"ion-icon",70),Oa(2),pc(3,"translate"),Uo()}2&e&&(is(2),Ta(" ",gc(3,1,"lang.download")," "))}function yZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label"),Ho(2,"ion-toolbar",37),Ho(3,"ion-title",38),Ho(4,"p",39),Fo(5,cZ,8,18,"ng-container",19),Uo(),Uo(),Uo(),Ho(6,"ion-item-sliding",40,41),Xo("ionDrag",function(n){Lt(e);const i=t.$implicit;return ia(2).onSliding(n,i.id)}),Ho(8,"ion-item",33),Fo(9,uZ,1,0,"ion-icon",42),Fo(10,dZ,1,0,"ion-icon",43),Fo(11,hZ,1,0,"ion-icon",44),Fo(12,pZ,1,0,"ion-icon",45),Ho(13,"ion-label",46),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).goTo(n.id)}),pc(14,"translate"),Ho(15,"p"),Oa(16),Uo(),Ho(17,"h2"),Oa(18),Uo(),Fo(19,fZ,2,1,"p",47),Uo(),Ho(20,"ion-buttons",5),Fo(21,mZ,2,0,"ion-button",48),Fo(22,vZ,2,0,"ion-button",48),Uo(),Uo(),Ho(23,"ion-item-options"),Fo(24,bZ,4,3,"ion-item-option",49),Ho(25,"ion-item-option",50),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).openActions(n)}),Wo(26,"ion-icon",51),Oa(27),pc(28,"translate"),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia(2);is(5),zo("ngForOf",e.workflow),is(4),zo("ngIf","PROG"==e.state),is(1),zo("ngIf","STOP"==e.state),is(1),zo("ngIf","VAL"==e.state),is(1),zo("ngIf","REF"==e.state),is(1),zo("title",gc(14,13,"lang.accessDocument")),is(3),Ia(e.reference),is(2),Ia(e.title),is(1),zo("ngIf",e.reason.length>0),is(2),zo("ngIf",n.openedLine===e.id),is(1),zo("ngIf",n.openedLine!==e.id),is(2),zo("ngIf","PROG"!==e.state),is(3),Ta(" ",gc(28,15,"lang.actions")," ")}}function wZ(e,t){if(1&e&&(Ho(0,"ion-list"),Ho(1,"ion-virtual-scroll",35),Fo(2,yZ,29,17,"ion-item",36),Uo(),Uo()),2&e){const e=ia();is(1),zo("items",e.ressources)}}function _Z(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-item"),Ho(2,"ion-label",76),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-input",77),Xo("ngModelChange",function(t){return Lt(e),ia().$implicit.val=t})("keyup.enter",function(){return Lt(e),ia(3).launchSearch()})("ionChange",function(){return Lt(e),ia(3).checkInput()}),Uo(),Uo(),Go()}if(2&e){const e=ia().$implicit;is(3),Ta("",gc(4,3,"lang."+e.id+"Search")," "),is(2),zo("ngModel",e.val)("value",e.val)}}function xZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Ho(4,"ion-checkbox",79),Xo("ngModelChange",function(){Lt(e);const n=t.$implicit,i=ia(2).$implicit;return ia(2).toggleItem(i,n,!n.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ia(gc(3,4,e.label)),is(2),zo("ngModel",e.selected)("checked",e.selected)("value",e.id)}}function AZ(e,t){if(1&e&&($o(0),Ho(1,"ion-list-header"),Ho(2,"ion-label",78),Oa(3),pc(4,"translate"),Uo(),Uo(),Fo(5,xZ,5,6,"ion-item",19),Go()),2&e){const e=ia().$implicit;is(3),Ia(gc(4,2,"lang."+e.id+"Search")),is(2),zo("ngForOf",e.values)}}function CZ(e,t){if(1&e&&($o(0),Ho(1,"ion-list-header"),Ho(2,"ion-label",78),Oa(3),pc(4,"translate"),Uo(),Uo(),Wo(5,"plugin-autocomplete",80),Go()),2&e){const e=ia().$implicit;is(3),Ia(gc(4,2,"lang."+e.id+"Search")),is(2),zo("currentItems",e.val)}}function SZ(e,t){if(1&e&&(Ho(0,"ion-list"),Fo(1,_Z,6,5,"ng-container",10),Fo(2,AZ,6,4,"ng-container",10),Fo(3,CZ,6,4,"ng-container",10),Uo()),2&e){const e=t.$implicit;is(1),zo("ngIf","text"===e.type),is(1),zo("ngIf","checkbox"===e.type),is(1),zo("ngIf","autocompleteUsers"===e.type)}}function kZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title",71),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content"),Fo(8,SZ,4,3,"ion-list",19),Uo(),Ho(9,"ion-footer",72),Ho(10,"div",73),Ho(11,"ion-button",74),Xo("click",function(){return Lt(e),ia().onSubmit()}),Ho(12,"ion-label",75),Oa(13),pc(14,"translate"),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(5),Ia(gc(6,4,"lang.filters")),is(3),zo("ngForOf",e.filters),is(5),Ia(gc(14,6,"lang.search"))}}let EZ=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h,p){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=r,this.viewContainerRef=s,this.notificationService=o,this.authService=a,this.loadingController=l,this.alertController=c,this.actionSheetController=u,this.datePipe=d,this.functionsService=h,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}ngOnInit(){this._activatedRoute.queryParamMap.subscribe(e=>{this.functionsService.empty(e.get("documentId"))||(this.documentId=e.get("documentId"),this.filters.filter(e=>"documentId"===e.id)[0].val=this.documentId,this.search())})}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(()=>{this.menu.open("right-menu")},500)}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}toggleSlide(e,t){e.getOpenAmount().then(n=>{0===n?(this.openedLine=t,e.open("end")):(this.openedLine="",e.close("end"))})}onSliding(e,t){this.openedLine=1===e.detail.ratio?t:""}onSubmit(){this.search(),this.menu.close("right-menu")}toggleItem(e,t,n){if(n)e.val.push(t.id);else{const n=e.val.indexOf(t.id);e.val.splice(n,1)}}formatDatas(){const e={};return JSON.parse(JSON.stringify(this.filters.filter(e=>"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0))).forEach(t=>{e[t.id]="workflowUsers"===t.id?t.val.map(e=>e.id):"workflowStates"===t.id?t.values.filter(e=>e.selected).map(e=>e.id):t.val}),e}formatListDatas(e){return e.map(e=>Object.assign(Object.assign({},e),{reason:this.getReason(e),currentUser:this.getCurrentUser(e)}))}getNbFilters(){let e=0;for(let t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}openActions(e){return WY(this,void 0,void 0,function*(){const t=[];this.actions.forEach(n=>{this.canShowButton(n.id,e)&&t.push({text:this.translate.instant("PROG"===e.state&&"newWorkflow"===n.id?"lang."+n.id+"Prog":"lang."+n.id),icon:n.icon,handler:()=>{this[n.id](e)}})});const n=yield this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:t});yield n.present()})}canShowButton(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}search(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>WY(this,void 0,void 0,function*(){e.present(),yield this.launchSearch(),e.dismiss()}))}launchSearch(){return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(e=>{this.http.post("../rest/search/documents?limit=10&offset=0",this.formatDatas()).pipe(Ib(t=>{this.ressources=this.formatListDatas(t.documents),this.count=t.count,this.infiniteScroll.disabled=!1,e(!0)}),mb(t=>(this.notificationService.handleErrors(t),e(!1),cv(!1)))).subscribe()})}refreshCurrentFilter(){this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(e=>!this.functionsService.empty(e.val)))),this.currentFilters.filter(e=>"workflowStates"===e.id).length>0&&(this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val=this.currentFilters.filter(e=>"workflowStates"===e.id)[0].values.filter(e=>e.selected),0===this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val.length&&(this.currentFilters=this.currentFilters.filter(e=>"workflowStates"!==e.id)))}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(Ib(t=>{this.ressources=this.ressources.concat(this.formatListDatas(t.documents)),e.target.complete(),this.count===this.ressources.length&&(e.target.disabled=!0)})).subscribe())}interruptWorkflow(e){return WY(this,void 0,void 0,function*(){return new Promise(t=>WY(this,void 0,void 0,function*(){const n=yield this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:()=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(n=>WY(this,void 0,void 0,function*(){n.present(),yield this.launchInterrupt(e),this.launchSearch(),t(!0),n.dismiss()}))}}]});yield n.present()}))})}launchInterrupt(e){return new Promise(t=>{this.http.put(`../rest/documents/${e.id}/workflows/interrupt`,{}).pipe(Ib(()=>{this.notificationService.success("lang.documentInterrupted"),t(!0)}),mb(e=>(this.notificationService.handleErrors(e),t(!1),cv(!1)))).subscribe()})}newWorkflow(e){return WY(this,void 0,void 0,function*(){"PROG"===e.state&&(yield this.interruptWorkflow(e)),this.router.navigate(["/indexation"],{state:{documentId:e.id}})})}openPromptProof(e){return WY(this,void 0,void 0,function*(){const t=yield this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:n=>WY(this,void 0,void 0,function*(){yield this.downloadProof(e,n),t.dismiss()})}]});yield t.present()})}downloadProof(e,t){const n="onlyProof"===t?"&onlyProof=true":"";return new Promise(t=>{this.http.get(`../rest/documents/${e.id}/proof?mode=stream${n}`,{responseType:"blob"}).pipe(Ib(n=>{const i=new Date,r="proof_"+e.id+"_"+this.datePipe.transform(i,"dd-MM-y")+"."+n.type.replace("application/",""),s=document.createElement("a");s.href=window.URL.createObjectURL(n),s.setAttribute("download",r),document.body.appendChild(s),s.click(),t(!0)}),mb(e=>(this.notificationService.handleErrors(e),t(!1),cv(!1)))).subscribe()})}getReason(e){return e.workflow.map(e=>e.reason).filter(e=>null!==e)}getCurrentUser(e){const t=e.workflow.filter(e=>!0===e.current);return t.length>0?t[0].userId:null}goTo(e){this.router.navigate(["/documents/"+e])}clearFilters(){for(let e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(e=>Object.assign(Object.assign({},e),{selected:!1})));this.ressources.length>0&&this.launchSearch()}removeFilter(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(t=>t.id===e.id).values.filter(e=>e.id===t)[0].selected=!1;else{const n=e.val.indexOf(t);this.filters.filter(t=>t.id===e.id)[0].val.splice(n,1)}else this.filters.find(t=>t.id===e.id).val="";this.launchSearch()}getLabel(e){return this.filters.filter(e=>"workflowStates"===e.id)[0].values.find(t=>t.id===e).label}checkInput(){""===this.filters.find(e=>"title"===e.id).val&&""===this.filters.find(e=>"reference"===e.id).val&&""===this.filters.find(e=>"documentId"===e.id).val&&0===this.filters.find(e=>"workflowStates"===e.id).val.length&&0===this.filters.find(e=>"workflowUsers"===e.id).val.length&&(this.clearFilters(),this.currentFilters=[])}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(a_),Vo(eC),Vo(oS),Vo(Gl),Vo(QC),Vo(lS),Vo(JA),Vo(XA),Vo(QA),Vo(ch),Vo(qL),Vo(jy))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Mc($Y,1),Mc(GY,3),Mc(Ux,1)),2&e){let e;Tc(e=Rc())&&(t.appVisaWorkflow=e.first),Tc(e=Rc())&&(t.rightContent=e.first),Tc(e=Rc())&&(t.infiniteScroll=e.first)}},features:[el([ch])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-title",4),Oa(8),pc(9,"translate"),Uo(),Ho(10,"ion-buttons",5),Ho(11,"ion-menu-button",6),Wo(12,"ion-icon",7),Uo(),Uo(),Uo(),Fo(13,nZ,7,4,"ion-toolbar",8),Uo(),Ho(14,"ion-content"),Fo(15,iZ,5,3,"ion-list",9),Fo(16,wZ,3,1,"ion-list",10),Ho(17,"ion-infinite-scroll",11),Xo("ionInfinite",function(e){return t.loadData(e)}),Wo(18,"ion-infinite-scroll-content",12),pc(19,"translate"),Uo(),Uo(),Fo(20,kZ,15,8,"ng-template",null,13,Vc)),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,8,"lang.search")),is(3),Ma("",t.count," ",gc(9,10,"lang.results"),""),is(5),zo("ngIf",t.currentFilters.length>0),is(2),zo("ngIf",0===t.ressources.length),is(1),zo("ngIf",t.ressources.length>0),is(2),zo("loadingText",gc(19,12,"lang.loadingMoreData")))},directives:[zx,wA,Sx,eA,bA,jx,$d,Mx,Ux,Wx,Cx,Ud,Ix,Kx,Qx,Gx,YA,qA,Zx,Yx,qx,Ax,xx,UA,Nx,$x,lx,am,Rm,Xx,Ox,ex,UY],pipes:[YC],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),e})(),PZ=(()=>{class e{constructor(e){this.latinisePipe=e}transform(e,t){return null!==e?(e.sort((e,n)=>{const i=this.latinisePipe.transform(e[t]).toLocaleLowerCase(),r=this.latinisePipe.transform(n[t]).toLocaleLowerCase();return i<r?-1:i>r?1:0}),e):[]}}return e.\u0275fac=function(t){return new(t||e)(Vo(hE))},e.\u0275pipe=et({name:"sortBy",type:e,pure:!0}),e})();const DZ=["rightContent"];function OZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).removeFilter(n)}),pc(1,"translate"),Wo(2,"ion-icon",19),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Wo(6,"ion-icon",20),Uo()}if(2&e){const e=t.$implicit;zo("title",gc(1,2,"lang.actions")),is(4),Ia(gc(5,4,"lang."+e))}}function IZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const t=ia(2);return t.removeFilter(t.filters.user)}),pc(1,"translate"),Wo(2,"ion-icon",21),Ho(3,"ion-label"),Oa(4),Uo(),Wo(5,"ion-icon",20),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,2,"lang.userName")),is(4),Ia(e.filters.user)}}function TZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const t=ia(2);return t.removeFilter(t.filters.date.start)}),pc(1,"translate"),Wo(2,"ion-icon",22),Ho(3,"ion-label"),Oa(4),pc(5,"date"),Uo(),Wo(6,"ion-icon",20),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,2,"lang.since")),is(4),Ia(fc(5,4,e.filters.date.start,"dd/MM/yyyy"))}}function MZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const t=ia(2);return t.removeFilter(t.filters.date.end)}),pc(1,"translate"),Wo(2,"ion-icon",23),Ho(3,"ion-label"),Oa(4),pc(5,"date"),Uo(),Wo(6,"ion-icon",20),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,2,"lang.until")),is(4),Ia(fc(5,4,e.filters.date.end,"dd/MM/yyyy"))}}function BZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-toolbar",12),Ho(1,"ion-button",13),Xo("click",function(){return Lt(e),ia().clearFilters()}),pc(2,"translate"),Wo(3,"ion-icon",14),Uo(),Ho(4,"div",15),Fo(5,OZ,7,6,"ion-chip",16),Fo(6,IZ,6,4,"ion-chip",17),Fo(7,TZ,7,7,"ion-chip",17),Fo(8,MZ,7,7,"ion-chip",17),Uo(),Uo()}if(2&e){const e=ia();is(1),zo("title",gc(2,5,"lang.clearFilters")),is(4),zo("ngForOf",e.filters.messageTypes),is(1),zo("ngIf",""!==e.filters.user),is(1),zo("ngIf",null!==e.filters.date.start),is(1),zo("ngIf",null!==e.filters.date.end)}}function RZ(e,t){if(1&e&&(Ho(0,"ion-item",28),Wo(1,"ion-icon",29),Ho(2,"ion-label"),Ho(3,"p"),Oa(4),pc(5,"titlecase"),pc(6,"translate"),Ho(7,"span",30),Oa(8),pc(9,"date"),Uo(),Oa(10),pc(11,"translate"),Ho(12,"span",30),Oa(13),Uo(),Uo(),Ho(14,"h2"),Oa(15),Uo(),Uo(),Ho(16,"ion-note",5),Ho(17,"p",31),pc(18,"translate"),Oa(19),pc(20,"translate"),pc(21,"shorten"),pc(22,"translate"),Uo(),Ho(23,"p",32),Oa(24),Uo(),Uo(),Uo()),2&e){const e=t.$implicit,n=ia(2);is(1),zo("name",n.aventTypesIcon[e.type]),is(3),Ta("",gc(5,10,gc(6,12,"lang.the"))," "),is(4),Ia(fc(9,14,e.date,"dd/MM/yyyy HH:mm")),is(2),Ta(" ",gc(11,17,"lang.by")," "),is(3),Ia(e.user),is(2),Ia(e.message),is(2),zo("title",gc(18,19,"lang.resource")+" : "+e.objectId),is(2),Ma("",gc(20,21,"lang."+e.objectType)," : ",null!==e.objectLabel?mc(21,23,e.objectLabel,50,"..."):gc(22,27,"lang.undefined"),""),is(5),Ta("IP : ",e.ip,"")}}function LZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-list"),Ho(1,"ion-virtual-scroll",24),Fo(2,RZ,25,29,"ion-item",25),Uo(),Ho(3,"ion-infinite-scroll",26),Xo("ionInfinite",function(t){return Lt(e),ia().loadData(t)}),Wo(4,"ion-infinite-scroll-content",27),pc(5,"translate"),Uo(),Uo()}if(2&e){const e=ia();is(1),zo("items",e.resources),is(3),zo("loadingText",gc(5,2,"lang.loadingMoreData"))}}function FZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",5),Ho(1,"ion-button",42),Xo("click",function(){Lt(e);const t=ia(2);return t.filters.date.start=null,t.getDatas()}),Wo(2,"ion-icon",43),Uo(),Uo()}}function NZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",5),Ho(1,"ion-button",42),Xo("click",function(){Lt(e);const t=ia(2);return t.filters.date.end=null,t.getDatas()}),Wo(2,"ion-icon",43),Uo(),Uo()}}function VZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",31),Ho(1,"ion-checkbox",44),Xo("ionChange",function(t){return Lt(e),ia(2).toggleAction(t.detail)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Uo()}if(2&e){const e=t.$implicit;zo("title",e.label),is(1),zo("value",e.id),is(2),Ia(e.label)}}function zZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title",33),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content"),Ho(8,"ion-list"),Ho(9,"ion-item",34),Ho(10,"ion-searchbar",35),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(11,"translate"),Uo(),Uo(),Ho(12,"ion-item"),Ho(13,"ion-label",36),Oa(14),pc(15,"translate"),Uo(),Ho(16,"ion-datetime",37),Xo("ngModelChange",function(t){return Lt(e),ia().filters.date.start=t})("ionChange",function(){return Lt(e),ia().getDatas()}),pc(17,"translate"),pc(18,"translate"),Uo(),Fo(19,FZ,3,0,"ion-buttons",38),Uo(),Ho(20,"ion-item"),Ho(21,"ion-label",36),Oa(22),pc(23,"translate"),Uo(),Ho(24,"ion-datetime",39),Xo("ngModelChange",function(t){return Lt(e),ia().filters.date.end=t})("ionChange",function(){return Lt(e),ia().getDatas()}),pc(25,"translate"),pc(26,"translate"),Uo(),Fo(27,NZ,3,0,"ion-buttons",38),Uo(),Ho(28,"ion-item",40),Ho(29,"ion-label",36),Oa(30),pc(31,"translate"),Uo(),Uo(),Fo(32,VZ,4,3,"ion-item",41),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(5),Ia(gc(6,17,"lang.filters")),is(5),zo("placeholder",gc(11,19,"lang.enterUserName")),is(4),Ta("",gc(15,21,"lang.since"),": "),is(2),zo("doneText",gc(17,23,"lang.validate"))("cancelText",gc(18,25,"lang.cancel"))("ngModel",e.filters.date.start)("max",null!==e.filters.date.end?e.filters.date.end:void 0),is(3),zo("ngIf",null!==e.filters.date.start),is(3),Ta("",gc(23,27,"lang.until"),": "),is(2),zo("doneText",gc(25,29,"lang.validate"))("cancelText",gc(26,31,"lang.cancel"))("ngModel",e.filters.date.end)("min",null!==e.filters.date.start?e.filters.date.start:void 0),is(3),zo("ngIf",null!==e.filters.date.end),is(3),Ta("",gc(31,33,"lang.actions"),": "),is(2),zo("ngForOf",e.actions)}}let jZ=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u){this.http=e,this.translate=t,this.menu=n,this.latinisePipe=i,this.viewContainerRef=r,this.dialog=s,this.signaturesService=o,this.notificationService=a,this.authService=l,this.alertController=c,this.sortPipe=u,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}openFilters(){this.menu.open("right-menu")}ionViewWillEnter(){return e=this,void 0,n=function*(){this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas()},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}getActions(){this.http.get("../rest/history/messageTypes",this.filters).pipe(Ib(e=>{this.actions=e.messageTypes.map(e=>({id:e,label:this.translate.instant("lang."+e)})),this.actions=this.sortPipe.transform(this.actions,"label")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}getDatas(){return this.resources=[],this.offset=0,new Promise(e=>{this.http.post("../rest/history?limit=10&offset=0",this.filters).pipe(Ib(t=>{this.resources=t.history,this.count=t.total,e(!0)}),mb(t=>(this.notificationService.handleErrors(t),e(!1),cv(!1)))).subscribe()})}sortData(e){console.log(e)}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(Ib(t=>{this.resources=this.resources.concat(t.history),e.target.complete(),this.count===this.resources.length&&(e.target.disabled=!0)})).subscribe())}getNbFilters(){let e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}toggleAction(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(t=>t!==e.value),this.getDatas()}clearFilters(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}removeFilter(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(eC),Vo(hE),Vo(Gl),Vo(LI),Vo(oS),Vo(QC),Vo(lS),Vo(XA),Vo(PZ))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){if(1&e&&Mc(DZ,3),2&e){let e;Tc(e=Rc())&&(t.rightContent=e.first)}},features:[el([PZ])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Ho(8,"ion-title",4),Oa(9),pc(10,"translate"),Uo(),Ho(11,"ion-buttons",5),Ho(12,"ion-menu-button",6),Wo(13,"ion-icon",7),Uo(),Uo(),Uo(),Fo(14,BZ,9,7,"ion-toolbar",8),Uo(),Ho(15,"ion-content",null,9),Fo(17,LZ,6,4,"ion-list",10),Uo(),Fo(18,zZ,33,35,"ng-template",null,11,Vc)),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,6,"lang.history")),is(3),Ma("",t.count," ",gc(10,8,"lang.entries"),""),is(5),zo("ngIf",t.getNbFilters()>0),is(3),zo("ngIf",t.resources.length>0))},directives:[zx,wA,Sx,eA,xx,UA,bA,jx,$d,Mx,Cx,Ud,Ix,Kx,Qx,YA,qA,Ux,Wx,Gx,nA,cA,lx,Bx,ox,am,Rm,Ox,ex],pipes:[YC,ch,ah,uE],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),e})();const HZ=["customizationForm"];function UZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",14),Xo("click",function(){return Lt(e),ia(2).watermark.enabled=!1}),Oa(1),pc(2,"translate"),Uo()}2&e&&(is(1),Ta(" ",gc(2,1,"lang.disableWatermark"),""))}function WZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-button",15),Xo("click",function(){return Lt(e),ia(2).watermark.enabled=!0}),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ta("",gc(3,1,"lang.enableWatermark")," "))}function $Z(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-card"),Ho(2,"ion-item",1),Wo(3,"ion-icon",16),Wo(4,"ion-label",17),pc(5,"translate"),Uo(),Uo(),Ho(6,"ion-item"),Ho(7,"ion-label",18),Oa(8),pc(9,"translate"),Uo(),Ho(10,"ion-input",19),Xo("ngModelChange",function(t){return Lt(e),ia(2).watermark.text=t}),Uo(),Wo(11,"ion-note",20),pc(12,"translate"),Uo(),Ho(13,"ion-radio-group",21),Xo("ionChange",function(t){return Lt(e),ia(2).watermark.align=t.detail.value}),Ho(14,"ion-list-header"),Ho(15,"ion-label",7),Oa(16),pc(17,"translate"),Uo(),Uo(),Ho(18,"ion-item"),Ho(19,"ion-label"),Oa(20),pc(21,"translate"),Uo(),Wo(22,"ion-radio",22),Uo(),Ho(23,"ion-item"),Ho(24,"ion-label"),Oa(25),pc(26,"translate"),Uo(),Wo(27,"ion-radio",23),Uo(),Ho(28,"ion-item"),Ho(29,"ion-label"),Oa(30),pc(31,"translate"),Uo(),Wo(32,"ion-radio",24),Uo(),Uo(),Ho(33,"ion-item"),Ho(34,"ion-label",18),Oa(35),pc(36,"translate"),Uo(),Ho(37,"ion-input",25),Xo("ngModelChange",function(t){return Lt(e),ia(2).watermark.posY=t})("keypress",function(t){return Lt(e),ia(2).isNumber(t)}),Uo(),Ho(38,"ion-note",26),Oa(39,"px"),Uo(),Uo(),Go()}if(2&e){const e=ia(2);is(4),zo("innerHTML",gc(5,12,"lang.watermarkDesc"),sr),is(4),Ia(gc(9,14,"lang.content")),is(2),zo("ngModel",e.watermark.text),is(1),zo("innerHTML",gc(12,16,"lang.watermarkContentDesc"),sr),is(2),zo("value",e.watermark.align),is(3),Ia(gc(17,18,"lang.alignment")),is(4),Ia(gc(21,20,"lang.left")),is(5),Ia(gc(26,22,"lang.center")),is(5),Ia(gc(31,24,"lang.right")),is(5),Ta("",gc(36,26,"lang.positionY")," "),is(2),zo("ngModel",e.watermark.posY)("min",0)}}function GZ(e,t){if(1&e){const e=Yo();Ho(0,"form",5,6),Xo("ngSubmit",function(){return Lt(e),ia().onSubmit()}),Ho(2,"ion-content"),Ho(3,"ion-list"),Ho(4,"ion-list-header"),Ho(5,"ion-label",7),Oa(6),pc(7,"translate"),Uo(),Fo(8,UZ,3,3,"ion-button",8),Uo(),Fo(9,WZ,4,3,"ion-item",9),Fo(10,$Z,40,28,"ng-container",9),Uo(),Ho(11,"ion-item",10),Ho(12,"div",11),Ho(13,"ion-button",12),Ho(14,"ion-label",13),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(6),Ta(" ",gc(7,5,"lang.watermark")," "),is(2),zo("ngIf",e.watermark.enabled),is(1),zo("ngIf",!e.watermark.enabled),is(1),zo("ngIf",e.watermark.enabled),is(5),Ia(gc(16,7,"lang.validate"))}}let qZ=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.translate=t,this.notificationService=n,this.authService=i,this.functions=r,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}ngOnInit(){return e=this,void 0,n=function*(){yield this.getWatermark(),this.loading=!1},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}getWatermark(){return new Promise(e=>{this.http.get("../rest/customization/watermark").pipe(Ib(t=>{this.functions.empty(t.configuration)||(this.watermark=t.configuration),e(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}onSubmit(){this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(Ib(()=>{this.notificationService.success(this.translate.instant("lang.modificationSaved"))}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}isNumber(e){const t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(QC),Vo(lS),Vo(qL))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&Mc(HZ,1),2&e){let e;Tc(e=Rc())&&(t.customizationForm=e.first)}},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Fo(8,GZ,17,9,"form",4)),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,3,"lang.customization")),is(2),zo("ngIf",!t.loading))},directives:[zx,wA,Sx,eA,xx,UA,bA,$d,Lm,lm,Tm,Mx,Qx,Xx,Kx,Gx,Cx,kx,jx,$x,lx,am,Rm,nA,rA,ox,iA,rx,nx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();const YZ=function(){return{standalone:!0}};let ZZ=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.modalController=l,this.functions=c,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.casTest={login:"",password:"",result:""},this.cas={id:null,label:"",identifier:"casServer",value:{version:"CAS_VERSION_2_0",url:"",port:null,context:"",separator:null,certificate:""}},this.title=""}ngOnInit(){this.casTest.login=this.authService.user.login,this.route.params.subscribe(e=>{this.creationMode=!1,this.http.get("../rest/configurations?identifier=casServer").pipe(E(e=>e.configurations[0]),Ib(e=>{var t,n,i,r,s,o;this.functions.empty(e)||(this.cas={id:e.id,label:e.label,identifier:e.identifier,value:{version:null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.version,url:null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.url,port:null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.port,context:null===(r=null==e?void 0:e.value)||void 0===r?void 0:r.context,separator:null===(s=null==e?void 0:e.value)||void 0===s?void 0:s.separator,certificate:null===(o=null==e?void 0:e.value)||void 0===o?void 0:o.certificate}},this.casClone=JSON.parse(JSON.stringify(this.cas)),this.title=this.cas.label)}),Bb(()=>this.loading=!1),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}canValidate(){return JSON.stringify(this.cas)!==JSON.stringify(this.casClone)}onSubmit(){this.modifyCas()}modifyCas(){null!==this.cas.id?this.http.patch("../rest/configurations/"+this.cas.id,this.cas).pipe(Bb(()=>{this.loading=!1,this.router.navigate(["/administration/connections"]),this.notificationService.success("lang.casUpdated")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe():this.createCas()}createCas(){this.loading=!0,this.http.post("../rest/configurations",this.cas).pipe(Bb(()=>{this.loading=!1,this.router.navigate(["/administration/connections"]),this.notificationService.success("lang.casAdded")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}cancel(){this.router.navigate(["/administration/connections"])}isNumber(e){const t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(tC),Vo(qL))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-cas"]],decls:66,vars:52,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["interface","popover",3,"ngModelOptions","value","ngModel","placeholder","ngModelChange"],["value","CAS_VERSION_2_0"],["value","CAS_VERSION_3_0"],["name","url","required","",3,"ngModel","ngModelChange"],["name","port","type","number","required","",3,"ngModel","keypress","ngModelChange"],["name","context","required","",3,"ngModel","ngModelChange"],["name","separator",3,"ngModel","ngModelChange"],["name","certificate",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Ho(7,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-content"),Ho(10,"ion-item"),Ho(11,"ion-label",6),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",7),Xo("ngModelChange",function(e){return t.cas.label=e}),Uo(),Uo(),Ho(15,"ion-item"),Ho(16,"ion-label",6),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-select",8),Xo("ngModelChange",function(e){return t.cas.value.version=e}),pc(20,"translate"),Ho(21,"ion-select-option",9),Oa(22),pc(23,"translate"),Uo(),Ho(24,"ion-select-option",10),Oa(25),pc(26,"translate"),Uo(),Uo(),Uo(),Ho(27,"ion-item"),Ho(28,"ion-label",6),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-input",11),Xo("ngModelChange",function(e){return t.cas.value.url=e}),Uo(),Uo(),Ho(32,"ion-item"),Ho(33,"ion-label",6),Oa(34),pc(35,"translate"),Uo(),Ho(36,"ion-input",12),Xo("keypress",function(e){return t.isNumber(e)})("ngModelChange",function(e){return t.cas.value.port=e}),Uo(),Wo(37,"ion-note"),Uo(),Ho(38,"ion-item"),Ho(39,"ion-label",6),Oa(40),pc(41,"translate"),Uo(),Ho(42,"ion-input",13),Xo("ngModelChange",function(e){return t.cas.value.context=e}),Uo(),Wo(43,"ion-note"),Uo(),Ho(44,"ion-item"),Ho(45,"ion-label",6),Oa(46),pc(47,"translate"),Uo(),Ho(48,"ion-input",14),Xo("ngModelChange",function(e){return t.cas.value.separator=e}),Uo(),Ho(49,"ion-note"),Oa(50),pc(51,"translate"),Uo(),Uo(),Ho(52,"ion-item"),Ho(53,"ion-label",6),Oa(54),pc(55,"translate"),Uo(),Ho(56,"ion-input",15),Xo("ngModelChange",function(e){return t.cas.value.certificate=e}),Uo(),Ho(57,"ion-note"),Oa(58),pc(59,"translate"),Uo(),Uo(),Ho(60,"ion-item",16),Ho(61,"div",17),Ho(62,"ion-button",18),Ho(63,"ion-label",19),Oa(64),pc(65,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(6),Ia(t.title),is(6),Ta("",gc(13,25,"lang.label")," *"),is(2),zo("ngModel",t.cas.label),is(3),Ta("",gc(18,27,"lang.versionCas")," *"),is(2),aa("placeholder",gc(20,29,"lang.casVersion")),zo("ngModelOptions",ac(51,YZ))("value",t.cas.value.version)("ngModel",t.cas.value.version),is(3),Ta("",gc(23,31,"lang.casV2")," "),is(3),Ta("",gc(26,33,"lang.casV3")," "),is(4),Ta("",gc(30,35,"lang.urlCas")," *"),is(2),zo("ngModel",t.cas.value.url),is(3),Ta("",gc(35,37,"lang.port")," *"),is(2),zo("ngModel",t.cas.value.port),is(4),Ta("",gc(41,39,"lang.contextCas")," *"),is(2),zo("ngModel",t.cas.value.context),is(4),Ia(gc(47,41,"lang.separatorCas")),is(2),zo("ngModel",t.cas.value.separator),is(2),Ia(gc(51,43,"lang.casIdReturn")),is(4),Ia(gc(55,45,"lang.certificateCas")),is(2),zo("ngModel",t.cas.value.certificate),is(2),Ia(gc(59,47,"lang.casCertificatPath")),is(4),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(65,49,"lang.validate"))}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,am,Rm,hA,ox,pA,nx,nA,Cx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})(),KZ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[__.forRoot([{path:"home",canActivate:[NB],component:uY},{path:"indexation",canActivate:[NB],component:RY},{path:"profile",canActivate:[NB],component:lY},{path:"search",canActivate:[NB],component:EZ},{path:"administration",canActivate:[NB],component:jB},{path:"administration/users",canActivate:[NB],component:qB},{path:"administration/users/new",canActivate:[NB],component:lR},{path:"administration/users/:id",canActivate:[NB],component:lR},{path:"administration/groups",canActivate:[NB],component:gR},{path:"administration/groups/new",canActivate:[NB],component:TR},{path:"administration/groups/:id",canActivate:[NB],component:TR},{path:"administration/connections",canActivate:[NB],component:LR},{path:"administration/connections/ldaps",canActivate:[NB],component:HR},{path:"administration/connections/cas",canActivate:[NB],component:ZZ},{path:"administration/connections/ldaps/new",canActivate:[NB],component:XR},{path:"administration/connections/ldaps/:id",canActivate:[NB],component:XR},{path:"administration/emailConfiguration",canActivate:[NB],component:sL},{path:"administration/passwordRules",canActivate:[NB],component:Dq},{path:"administration/history",canActivate:[NB],component:jZ},{path:"administration/customization",canActivate:[NB],component:qZ},{path:"documents/:id",canActivate:[NB],component:fq},{path:"login",canActivate:[NB],component:Aq},{path:"forgot-password",component:Cq},{path:"update-password",component:Pq},{path:"password-modification",component:Bq},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy",useHash:!0})],__]}),e})();function QZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",3),Xo("click",function(){return Lt(e),ia().menu.close("left-menu")}),Wo(1,"ion-icon",4),Ho(2,"ion-label"),Oa(3),pc(4,"translate"),Uo(),Uo()}if(2&e){const e=t.$implicit;va("item-active",ia().isActiveRoute(e.route)),zo("routerLink",e.route),is(1),zo("name",e.icon),is(2),Ia(gc(4,5,"lang."+e.id))}}let XZ=(()=>{class e{constructor(e,t,n,i){this.route=e,this.router=t,this.authService=n,this.menu=i,this.loading=!0,this.privileges=[]}ngOnInit(){}openHome(){this.router.navigate(["/documents/"])}isActiveRoute(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}return e.\u0275fac=function(t){return new(t||e)(Vo(jy),Vo(a_),Vo(lS),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(Ho(0,"ion-header"),Ho(1,"ion-toolbar",0),Ho(2,"ion-title",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo(),Ho(5,"ion-content"),Ho(6,"ion-list"),Fo(7,QZ,5,7,"ion-item",2),Uo(),Uo()),2&e&&(is(3),Ta(" ",gc(4,2,"lang.administration")," "),is(4),zo("ngForOf",t.authService.user.administrativePrivileges))},directives:[zx,wA,bA,Mx,Qx,Ud,Gx,WA,l_,jx,Kx],pipes:[YC],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),e})();const JZ=["listContent"],eK=["searchInput"];function tK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().authService.logout()}),pc(1,"translate"),Wo(2,"ion-icon",15),Uo()}2&e&&zo("title",gc(1,1,"lang.logout"))}function nK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().openAdmin()}),pc(1,"translate"),Wo(2,"ion-icon",16),Uo()}2&e&&zo("title",gc(1,1,"lang.administration"))}function iK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().openHome()}),pc(1,"translate"),Wo(2,"ion-icon",17),Uo()}2&e&&zo("title",gc(1,1,"lang.homePage"))}function rK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().openIndexation()}),pc(1,"translate"),Wo(2,"ion-icon",18),Wo(3,"ion-icon",19),Uo()}2&e&&zo("title",gc(1,1,"lang.indexationAdmin"))}function sK(e,t){if(1&e&&(Ho(0,"span",26),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(3);is(1),Ia(gc(2,1,"lang."+e.signaturesService.mode+"Label"))}}function oK(e,t){if(1&e){const e=Yo();Ho(0,"ion-title",23),Xo("click",function(t){return Lt(e),ia(2).search(t)}),pc(1,"translate"),Ho(2,"span"),Oa(3),Uo(),Oa(4),pc(5,"translate"),Fo(6,sK,3,3,"span",24),Oa(7," \xa0 "),Wo(8,"ion-icon",25),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,6,"lang.filterInfo")),is(2),va("primary",""!=e.signaturesService.mode),is(1),Ia(e.signaturesService.documentsListCount.current),is(1),Ta(" ",gc(5,8,"lang.documents")," "),is(2),zo("ngIf",""!=e.signaturesService.mode)}}function aK(e,t){if(1&e){const e=Yo();Ho(0,"ion-searchbar",27,28),Xo("ionCancel",function(t){Lt(e);const n=ia(2);return n.search(t),n.searchMode=!n.searchMode}),pc(2,"translate"),Uo()}if(2&e){const e=ia(2);zo("placeholder",gc(2,2,"lang.filterInfo"))("formControl",e.searchTerm)}}function lK(e,t){if(1&e&&(Ho(0,"ion-header"),Ho(1,"ion-toolbar",20),Fo(2,oK,9,10,"ion-title",21),Fo(3,aK,3,4,"ion-searchbar",22),Uo(),Uo()),2&e){const e=ia();is(2),zo("ngIf",!e.searchMode),is(1),zo("ngIf",e.searchMode)}}function cK(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",29),Ho(1,"ion-toolbar",30),Ho(2,"ion-segment",31),Ho(3,"ion-segment-button",32),Xo("click",function(){return Lt(e),ia().filter("sign")}),Ho(4,"ion-label"),Oa(5),pc(6,"titlecase"),pc(7,"translate"),Uo(),Wo(8,"ion-icon",33),Ho(9,"ion-badge",34),Oa(10),Uo(),Uo(),Ho(11,"ion-segment-button",35),Xo("click",function(){return Lt(e),ia().filter("visa")}),Ho(12,"ion-label"),Oa(13),pc(14,"titlecase"),pc(15,"translate"),Uo(),Wo(16,"ion-icon",36),Ho(17,"ion-badge",34),Oa(18),Uo(),Uo(),Ho(19,"ion-segment-button",37),Xo("click",function(){return Lt(e),ia().filter("note")}),Ho(20,"ion-label"),Oa(21),pc(22,"titlecase"),pc(23,"translate"),Uo(),Wo(24,"ion-icon",38),Ho(25,"ion-badge",34),Oa(26),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(2),zo("value",e.signaturesService.mode),is(1),va("segment-button-notFocused","sign"!==e.signaturesService.mode),is(2),Ia(gc(6,13,gc(7,15,"lang.signLabel"))),is(5),Ia(e.signaturesService.documentsListCount.sign),is(1),va("segment-button-notFocused","visa"!==e.signaturesService.mode),is(2),Ia(gc(14,17,gc(15,19,"lang.visaLabel"))),is(5),Ia(e.signaturesService.documentsListCount.visa),is(1),va("segment-button-notFocused","note"!==e.signaturesService.mode),is(2),Ia(gc(22,21,gc(23,23,"lang.noteLabel"))),is(5),Ia(e.signaturesService.documentsListCount.note)}}function uK(e,t){1&e&&Wo(0,"app-admin-sidebar",39)}function dK(e,t){1&e&&(Ho(0,"ion-item",44),Ho(1,"ion-label",45),Oa(2),pc(3,"titlecase"),pc(4,"translate"),Uo(),Uo()),2&e&&(is(2),Ta(" ",gc(3,1,gc(4,3,"lang.noResult"))," "))}function hK(e,t){1&e&&Wo(0,"ion-icon",56)}function pK(e,t){1&e&&Wo(0,"ion-icon",57)}function gK(e,t){1&e&&Wo(0,"ion-icon",58)}function fK(e,t){1&e&&Wo(0,"ion-icon",59)}function mK(e,t){1&e&&(Ho(0,"ion-label",60),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.substitutedDoc"),""))}const vK=function(e){return[e]};function bK(e,t){if(1&e){const e=Yo();Ho(0,"ion-menu-toggle",46),Ho(1,"ion-item",47),Xo("click",function(){Lt(e);const n=t.index;return ia(2).filterService.currentIndex=n}),Fo(2,hK,1,0,"ion-icon",48),Fo(3,pK,1,0,"ion-icon",49),Fo(4,gK,1,0,"ion-icon",50),Fo(5,fK,1,0,"ion-icon",51),Ho(6,"div"),Ho(7,"ion-label",52),Oa(8),Uo(),Ho(9,"ion-label",53),Oa(10),pc(11,"shorten"),Uo(),Fo(12,mK,3,3,"ion-label",54),Uo(),Wo(13,"ion-icon",55),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia(2);is(1),va("selected",n.router.url==="/documents/"+e.id),zo("routerLink",lc(14,vK,"/documents/"+e.id)),is(1),zo("ngIf","sign"==e.mode),is(1),zo("ngIf","visa"==e.mode),is(1),zo("ngIf","note"==e.mode),is(1),zo("ngIf",!n.functionsService.empty(e.mailingId)),is(3),Ia(e.reference),is(2),Ia(mc(11,10,e.title,50,"...")),is(2),zo("ngIf",!e.owner)}}function yK(e,t){if(1&e){const e=Yo();Ho(0,"ion-infinite-scroll",61),Xo("ionInfinite",function(t){return Lt(e),ia(2).loadData(t)}),Wo(1,"ion-infinite-scroll-content",62),pc(2,"translate"),Uo()}2&e&&(is(1),zo("loadingText",gc(2,1,"lang.loadingMoreData")))}function wK(e,t){if(1&e&&(Ho(0,"ion-content"),Ho(1,"ion-list",40),Fo(2,dK,5,5,"ion-item",41),Fo(3,bK,14,16,"ion-menu-toggle",42),Uo(),Fo(4,yK,3,3,"ion-infinite-scroll",43),Uo()),2&e){const e=ia();is(2),zo("ngIf",0==e.signaturesService.documentsList.length),is(1),zo("ngForOf",e.signaturesService.documentsList),is(1),zo("ngIf",e.signaturesService.documentsList.length>0)}}let _K=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c){this.http=e,this.signaturesService=t,this.route=n,this.router=i,this.menu=r,this.notificationService=s,this.authService=o,this.modalController=a,this.functionsService=l,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new Em,this.searchTerm.valueChanges.pipe(wE(500),H_(),Ib(e=>this.loadingList=!0),sb(e=>this.http.get("../rest/documents?limit="+this.filterService.limit+"&search="+e))).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}ngOnInit(){$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count})}ngAfterViewInit(){this.filter("")}openProfile(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:lY,cssClass:"profileCss"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}openAdmin(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}openHome(){this.router.navigate(["/home"])}openIndexation(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}openSearch(){this.menu.close("left-menu"),this.router.navigate(["/search"])}search(e){this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(()=>{"ionCancel"!==e.type&&(this.searchInput.value="",this.searchInput.setFocus())},0)}filter(e){this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Bb(()=>{this.loadingList=!1})).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}checkClose(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}loadData(e){this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Ib(t=>{this.signaturesService.documentsList=this.signaturesService.documentsList.concat(t.documents),e.target.complete(),this.signaturesService.documentsList.length===this.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}isAdminRoute(){return this.router.url.split("/").indexOf("administration")>-1}canIndex(){return this.authService.user.appPrivileges.map(e=>e.id).indexOf("indexation")>-1}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(jy),Vo(a_),Vo(eC),Vo(QC),Vo(lS),Vo(tC),Vo(qL),Vo(NL))},e.\u0275cmp=qe({type:e,selectors:[["app-sidebar"]],viewQuery:function(e,t){if(1&e&&(Mc(JZ,1),Mc(eK,1)),2&e){let e;Tc(e=Rc())&&(t.listContent=e.first),Tc(e=Rc())&&(t.searchInput=e.first)}},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-item",2),Ho(3,"ion-label",3),Ho(4,"h2",4),Oa(5),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(6,"ion-header",0),Ho(7,"ion-toolbar",1),Ho(8,"ion-buttons",5),Fo(9,tK,3,3,"ion-button",6),Fo(10,nK,3,3,"ion-button",6),Fo(11,iK,3,3,"ion-button",6),Uo(),Ho(12,"ion-buttons",7),Ho(13,"ion-button",8),Xo("click",function(){return t.openSearch()}),pc(14,"translate"),Wo(15,"ion-icon",9),Uo(),Fo(16,rK,4,3,"ion-button",6),Uo(),Uo(),Uo(),Ho(17,"ion-avatar",10),Xo("click",function(){return t.openProfile()}),Wo(18,"img",11),Uo(),Fo(19,lK,4,2,"ion-header",12),Fo(20,cK,27,25,"ion-header",13),Fo(21,uK,1,0,"app-admin-sidebar",14),Fo(22,wK,5,3,"ion-content",12)),2&e&&(zo("translucent",!0),is(5),Ma("",t.authService.user.firstname," ",t.authService.user.lastname,""),is(1),zo("translucent",!0),is(3),zo("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),is(1),zo("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),is(1),zo("ngIf",t.isAdminRoute()),is(2),zo("title",gc(14,14,"lang.search")),is(3),zo("ngIf",t.canIndex()),is(2),zo("src",t.authService.user.picture,or),is(1),zo("ngIf",!t.isAdminRoute()),is(1),zo("ngIf",!t.isAdminRoute()),is(1),zo("ngIf",t.isAdminRoute()),is(1),zo("ngIf",!t.isAdminRoute()))},directives:[zx,wA,Gx,Kx,Sx,$d,Cx,jx,_x,bA,cA,lx,am,zm,uA,ox,dA,Ax,XZ,Mx,Qx,Ud,tA,WA,l_,Ux,Wx],pipes:[YC,ah,uE],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),e})();function xK(e,t){if(1&e){const e=Yo();Ho(0,"ion-segment-button",10),Xo("ionChange",function(t){return Lt(e),ia(2).setActiveLang(t)}),Ho(1,"ion-label"),Oa(2),Ho(3,"ion-badge",11),Oa(4),Uo(),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia();zo("value",t.currentLang),is(2),Ta("",e.key," "),is(2),Ia(t.missingLang[e.key].length)}}function AK(e,t){if(1&e&&(Ho(0,"span"),Fo(1,xK,5,3,"ion-segment-button",9),Uo()),2&e){const e=t.$implicit;is(1),zo("ngIf","fr"!==e.key)}}function CK(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label",13),Oa(2),Uo(),Ho(3,"ion-input",14),Xo("ngModelChange",function(e){return t.$implicit.value=e}),Uo(),Ho(4,"ion-button",15),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).openTranslation(n.value)}),Wo(5,"ion-icon",16),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ia(e.id),is(1),zo("ngModel",e.value)}}function SK(e,t){if(1&e&&(Ho(0,"ion-list",12),Fo(1,CK,6,2,"ion-item",5),Uo()),2&e){const e=ia();is(1),zo("ngForOf",e.missingLang[e.currentLang])}}let kK=(()=>{class e{constructor(e,t,n,i){this.http=e,this.notify=t,this.translate=n,this.modalController=i,this.missingLang={},this.currentLang="en",this.data={}}ngOnInit(){this.getLangs()}dismissModal(){this.modalController.dismiss("cancel")}getLangs(){this.http.get("../rest/languages").pipe(Ib(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.missingLang[e]=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).map(e=>({id:e,value:this.allLang.fr.lang[e]+"__TO_TRANSLATE"}))})}),mb(e=>(this.notify.handleErrors(e),cv(!1)))).subscribe()}openTranslation(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}setActiveLang(e){this.currentLang=e.detail.value}generateMissingLang(e){const t={},n=this.allLang[this.currentLang],i=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(n=>{null===n.value.match(i)&&e?t[n.id]=n.value:e||(t[n.id]=n.value)}),n.lang=Object.assign(Object.assign({},n.lang),t),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:n}).pipe(Ib(e=>{Object.keys(t).forEach(e=>{delete this.allLang[this.currentLang][e],this.missingLang[this.currentLang]=this.missingLang[this.currentLang].filter(t=>t.id!==e),this.data.countMissingLang--}),this.modalController.dismiss("cancel")}),mb(e=>(this.notify.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(QC),Vo(qC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.dismissModal()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-header"),Ho(9,"ion-segment"),Fo(10,AK,2,1,"span",5),pc(11,"keyvalue"),Uo(),Uo(),Ho(12,"ion-content"),$o(13),Fo(14,SK,2,1,"ion-list",6),Go(),Uo(),Ho(15,"ion-footer",7),Ho(16,"ion-button",8),Xo("click",function(){return t.generateMissingLang(!1)}),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-button",8),Xo("click",function(){return t.generateMissingLang(!0)}),Oa(20),pc(21,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,6,"lang.langChecking")),is(7),zo("ngForOf",gc(11,8,t.allLang)),is(4),zo("ngIf","en"===t.currentLang),is(1),zo("translucent",!0),is(2),Ia(gc(18,10,"lang.generateLangVar")),is(3),Ia(gc(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[zx,wA,bA,Sx,Cx,jx,uA,ox,Ud,Mx,$d,Nx,dA,Kx,Ax,Qx,Gx,$x,lx,am,Rm],pipes:[YC,uh],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),e})(),EK=(()=>{class e{constructor(e,t,n,i){this.notify=e,this.http=t,this.functionsService=n,this.modalController=i,this.countMissingLang=0}ngOnInit(){this.getLangs()}openLangTool(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:kK,cssClass:"my-custom-class"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}getLangs(){this.http.get("../rest/languages").pipe(Ib(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.countMissingLang+=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).length})}),mb(e=>(this.notify.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(QC),Vo(Ov),Vo(qL),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(Ho(0,"ion-fab",0),pc(1,"translate"),Ho(2,"ion-fab-button",1),Wo(3,"ion-icon",2),Uo(),Ho(4,"ion-fab-list",3),Ho(5,"ion-button",4),Xo("click",function(){return t.openLangTool()}),Ho(6,"ion-label"),Oa(7),pc(8,"translate"),Ho(9,"ion-badge",5),Oa(10),Uo(),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("title",gc(1,3,"lang.missingLang")),is(7),Ta("",gc(8,5,"lang.missingLang")," "),is(3),Ta(" ",t.countMissingLang,""))},directives:[Rx,IB,Lx,jx,Fx,Cx,Kx,Ax],pipes:[YC],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),e})();function PK(e,t){1&e&&Wo(0,"app-sidebar",10)}function DK(e,t){1&e&&Wo(0,"app-dev-tool")}const OK=function(e){return[e]};let IK=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h){if(this.translate=e,this.http=t,this.signaturesService=n,this.sanitizer=i,this.cookieService=r,this.notificationService=s,this.dialog=o,this.authService=l,this.menu=c,this.router=u,this.route=d,this.platform=h,this.showLeftContent=!1,this.showRightContent=!1,this.authService.getCasToken(),a.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){const t=this.cookieService.get("maarchParapheurLang");e.setDefaultLang(t)}else this.cookieService.set("maarchParapheurLang","fr"),e.setDefaultLang("fr");Vu.production||(this.debugMode=!0)}test(){return!0}allowedRoute(){const e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Ov),Vo(oS),Vo(Yh),Vo(oE),Vo(QC),Vo(LI),Vo(ZI),Vo(lS),Vo(eC),Vo(a_),Vo(jy),Vo(cx))},e.\u0275cmp=qe({type:e,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(Ho(0,"ion-app"),Ho(1,"ion-split-pane",0),Ho(2,"ion-menu",1,2),Xo("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),Fo(4,PK,1,0,"app-sidebar",3),Wo(5,"div",4),Uo(),Wo(6,"ion-router-outlet",5),Ho(7,"ion-menu",6,7),Xo("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),Wo(9,"div",8),Uo(),Uo(),Uo(),Fo(10,DK,1,0,"app-dev-tool",9)),2&e&&(is(4),zo("ngIf",t.allowedRoute()),is(3),zo("ngClass",lc(3,OK,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),is(3),zo("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[wx,vA,Jx,$d,jA,jd,_K,EK],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),e})();var TK,MK,BK;TK=uC.a,BK=void 0,"string"!=typeof(MK="fr-FR")&&(BK=MK,MK=TK[Wa.LocaleId]),MK=MK.toLowerCase().replace(/_/g,"-"),ja[MK]=TK,BK&&(ja[MK][Wa.ExtraData]=BK);let RK=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e,bootstrap:[IK]}),e.\u0275inj=me({providers:[{provide:Tv,useClass:cS,multi:!0},oS,NL,QC,{provide:Qw,useClass:rC},oE,hE],imports:[[ov,av,Xh,Cf,$v,lC.forRoot({mode:"md"}),ZC.forRoot({loader:{provide:EC,useFactory:FK,deps:[Ov]}}),dL,Gk,Qk,vE,rE,LB,KZ,Hh]]}),e})();class LK{constructor(e){this.http=e}getTranslation(e){return this.http.get("../rest/languages/"+e)}}function FK(e){return new LK(e)}Vu.production&&function(){if(_u)throw new Error("Cannot enable prod mode after platform setup.");wu=!1}(),Kh().bootstrapModule(RK).catch(e=>console.log(e))},mNvP:function(e,t){var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=r(e);function r(e,t){return function(n,i){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}void 0===n.Reflect?n.Reflect=e:i=r(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,o={__proto__:[]}instanceof Array,a=!s&&!o,l={create:s?function(){return B(Object.create(null))}:o?function(){return B({__proto__:null})}:function(){return B({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),u="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=u||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[r]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r<i;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,i)},t.prototype.values=function(){return new n(this._keys,this._values,s)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[r]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function i(e,t){return e}function s(e,t){return t}function o(e,t){return[e,t]}}():Map,h=u||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[r]=function(){return this.keys()},e}():Set,p=new(u||"function"!=typeof WeakMap?function(){var e=l.create(),n=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=r(e,!1);return void 0!==t&&l.has(t,this._key)},e.prototype.get=function(e){var t=r(e,!1);return void 0!==t?l.get(t,this._key):void 0},e.prototype.set=function(e,t){return r(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=r(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var t;do{t="@@WeakMap@@"+o()}while(l.has(e,t));return e[t]=!0,t}function r(e,i){if(!t.call(e,n)){if(!i)return;Object.defineProperty(e,n,{value:l.create()})}return e[n]}function s(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=(16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(16)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(16)):s(new Uint8Array(16),16):s(new Array(16),16));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var i=e[n];4!==n&&6!==n&&8!==n||(t+="-"),i<16&&(t+="0"),t+=i.toString(16).toLowerCase()}return t}}():WeakMap);function g(e,t,n){var i=p.get(e);if(A(i)){if(!n)return;i=new d,p.set(e,i)}var r=i.get(t);if(A(r)){if(!n)return;r=new d,i.set(t,r)}return r}function f(e,t,n){if(m(e,t,n))return!0;var i=M(t);return!C(i)&&f(e,i,n)}function m(e,t,n){var i=g(t,n,!1);return!A(i)&&!!i.has(e)}function v(e,t,n){if(m(e,t,n))return b(e,t,n);var i=M(t);return C(i)?void 0:v(e,i,n)}function b(e,t,n){var i=g(t,n,!1);if(!A(i))return i.get(e)}function y(e,t,n,i){g(n,i,!0).set(e,t)}function w(e,t){var n=_(e,t),i=M(e);if(null===i)return n;var r=w(i,t);if(r.length<=0)return n;if(n.length<=0)return r;for(var s=new h,o=[],a=0,l=n;a<l.length;a++)s.has(d=l[a])||(s.add(d),o.push(d));for(var c=0,u=r;c<u.length;c++){var d;s.has(d=u[c])||(s.add(d),o.push(d))}return o}function _(e,t){var n=[],i=g(e,t,!1);if(A(i))return n;for(var s=function(e){var t=O(e,r);if(!P(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}(i.keys()),o=0;;){var a=I(s);if(!a)return n.length=o,n;var l=a.value;try{n[o]=l}catch(c){try{T(s)}finally{throw c}}o++}}function x(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function A(e){return void 0===e}function C(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function k(e){var t=function(e,t){switch(x(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=O(e,i);if(void 0!==r){var s=r.call(e,n);if(S(s))throw new TypeError;return s}return function(e,t){if("string"===t){var n=e.toString;if(P(n)&&!S(r=n.call(e)))return r;if(P(i=e.valueOf)&&!S(r=i.call(e)))return r}else{var i;if(P(i=e.valueOf)&&!S(r=i.call(e)))return r;var r,s=e.toString;if(P(s)&&!S(r=s.call(e)))return r}throw new TypeError}(e,"default"===n?"number":n)}(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function E(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"function"==typeof e}function D(e){return"function"==typeof e}function O(e,t){var n=e[t];if(null!=n){if(!P(n))throw new TypeError;return n}}function I(e){var t=e.next();return!t.done&&t}function T(e){var t=e.return;t&&t.call(e)}function M(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===c)return t;if(t!==c)return t;var n=e.prototype,i=n&&Object.getPrototypeOf(n);if(null==i||i===Object.prototype)return t;var r=i.constructor;return"function"!=typeof r||r===e?t:r}function B(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,i){if(A(n)){if(!E(e))throw new TypeError;if(!D(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t);if(!A(i)&&!C(i)){if(!D(i))throw new TypeError;t=i}}return t}(e,t)}if(!E(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(i)&&!A(i)&&!C(i))throw new TypeError;return C(i)&&(i=void 0),function(e,t,n,i){for(var r=e.length-1;r>=0;--r){var s=(0,e[r])(t,n,i);if(!A(s)&&!C(s)){if(!S(s))throw new TypeError;i=s}}return i}(e,t,n=k(n),i)}),e("metadata",function(e,t){return function(n,i){if(!S(n))throw new TypeError;if(!A(i)&&!function(e){switch(x(e)){case 3:case 4:return!0;default:return!1}}(i))throw new TypeError;y(e,t,n,i)}}),e("defineMetadata",function(e,t,n,i){if(!S(n))throw new TypeError;return A(i)||(i=k(i)),y(e,t,n,i)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),f(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),m(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),v(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return A(t)||(t=k(t)),w(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return A(t)||(t=k(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;A(n)||(n=k(n));var i=g(t,n,!1);if(A(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var r=p.get(t);return r.delete(n),r.size>0||p.delete(t),!0})}(i)}()}(n||(n={}))},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("1vRN");let r;const s=e=>{if(void 0===r){const t=void 0!==e.style.webkitAnimationName;r=void 0===e.style.animationName&&t?"-webkit-":""}return r},o=(e,t,n)=>{const i=t.startsWith("animation")?s(e):"";e.style.setProperty(i+t,n)},a=(e,t)=>{const n=t.startsWith("animation")?s(e):"";e.style.removeProperty(n+t)},l=[],c=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},u=e=>{let t,n,r,u,d,h,p,g,f,m,v,b,y,w=[],_=[],x=[],A=!1,C={},S=[],k=[],E={},P=0,D=!1,O=!1,I=!0,T=!1,M=!0;const B=e,R=[],L=[],F=[],N=[],V=[],z=[],j=[],H=[],U=[],W=[],$="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,G="function"==typeof Element&&"function"==typeof Element.prototype.animate&&$,q=(e,t)=>((t&&t.oneTimeCallback?L:R).push({c:e,o:t}),y),Y=()=>{if(G)W.forEach(e=>{e.cancel()}),W.length=0;else{const e=F.slice();Object(i.q)(()=>{e.forEach(e=>{a(e,"animation-name"),a(e,"animation-duration"),a(e,"animation-timing-function"),a(e,"animation-iteration-count"),a(e,"animation-delay"),a(e,"animation-play-state"),a(e,"animation-fill-mode"),a(e,"animation-direction")})})}},Z=()=>{V.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),V.length=0},K=()=>void 0!==d?d:p?p.getFill():"both",Q=()=>void 0!==f?f:void 0!==h?h:p?p.getDirection():"normal",X=()=>D?"linear":void 0!==r?r:p?p.getEasing():"linear",J=()=>O?0:void 0!==m?m:void 0!==n?n:p?p.getDuration():0,ee=()=>void 0!==u?u:p?p.getIterations():1,te=()=>void 0!==v?v:void 0!==t?t:p?p.getDelay():0,ne=()=>{0!==P&&(P--,0===P&&((()=>{ue(),H.forEach(e=>e()),U.forEach(e=>e());const e=I?1:0,t=S,n=k,i=E;F.forEach(e=>{const r=e.classList;t.forEach(e=>r.add(e)),n.forEach(e=>r.remove(e));for(const t in i)i.hasOwnProperty(t)&&o(e,t,i[t])}),R.forEach(t=>t.c(e,y)),L.forEach(t=>t.c(e,y)),L.length=0,M=!0,I&&(T=!0),I=!0})(),p&&p.animationFinish()))},ie=(t=!0)=>{(()=>{z.forEach(e=>e()),j.forEach(e=>e());const e=_,t=x,n=C;F.forEach(i=>{const r=i.classList;e.forEach(e=>r.add(e)),t.forEach(e=>r.remove(e));for(const e in n)n.hasOwnProperty(e)&&o(i,e,n[e])})})(),w.length>0&&(G?(F.forEach(e=>{const t=e.animate(w,{id:B,delay:te(),duration:J(),easing:X(),iterations:ee(),fill:K(),direction:Q()});t.pause(),W.push(t)}),W.length>0&&(W[0].onfinish=()=>{ne()})):((t=!0)=>{Z();const n=((r=w).forEach(e=>{for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),r);var r;F.forEach(r=>{if(n.length>0){const a=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push(`${i}: ${e[i]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(n);b=void 0!==e?e:(e=>{let t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t})(a);const c=((e,t,n)=>{const i=(e=>{const t=e.getRootNode();return t.head||t})(n),r=s(n),o=i.querySelector("#"+e);if(o)return o;const a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent=`@${r}keyframes ${e} { ${t} } @${r}keyframes ${e}-alt { ${t} }`,i.appendChild(a),a})(b,a,r);V.push(c),o(r,"animation-duration",J()+"ms"),o(r,"animation-timing-function",X()),o(r,"animation-delay",te()+"ms"),o(r,"animation-fill-mode",K()),o(r,"animation-direction",Q());const u=ee()===1/0?"infinite":ee().toString();o(r,"animation-iteration-count",u),o(r,"animation-play-state","paused"),t&&o(r,"animation-name",c.id+"-alt"),Object(i.q)(()=>{o(r,"animation-name",c.id||null)})}})})(t)),A=!0},re=e=>{if(e=Math.min(Math.max(e,0),.9999),G)W.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+J()*e,t.pause()});else{const t=`-${J()*e}ms`;F.forEach(e=>{w.length>0&&(o(e,"animation-delay",t),o(e,"animation-play-state","paused"))})}},se=e=>{W.forEach(e=>{e.effect.updateTiming({delay:te(),duration:J(),easing:X(),iterations:ee(),fill:K(),direction:Q()})}),void 0!==e&&re(e)},oe=(e=!0,t)=>{Object(i.q)(()=>{F.forEach(n=>{o(n,"animation-name",b||null),o(n,"animation-duration",J()+"ms"),o(n,"animation-timing-function",X()),o(n,"animation-delay",void 0!==t?`-${t*J()}ms`:te()+"ms"),o(n,"animation-fill-mode",K()||null),o(n,"animation-direction",Q()||null);const r=ee()===1/0?"infinite":ee().toString();o(n,"animation-iteration-count",r),e&&o(n,"animation-name",b+"-alt"),Object(i.q)(()=>{o(n,"animation-name",b||null)})})})},ae=(e=!1,t=!0,n)=>(e&&N.forEach(i=>{i.update(e,t,n)}),G?se(n):oe(t,n),y),le=()=>{A&&(G?W.forEach(e=>{e.pause()}):F.forEach(e=>{o(e,"animation-play-state","paused")}))},ce=()=>{g=void 0,ne()},ue=()=>{g&&clearTimeout(g)},de=e=>new Promise(t=>{e&&e.sync&&(O=!0,q(()=>O=!1,{oneTimeCallback:!0})),A||ie(),T&&(G?(re(0),se()):oe(),T=!1),M&&(P=N.length+1,M=!1),q(()=>t(),{oneTimeCallback:!0}),N.forEach(e=>{e.play()}),G?(W.forEach(e=>{e.play()}),0!==w.length&&0!==F.length||ne()):(()=>{if(ue(),Object(i.q)(()=>{F.forEach(e=>{w.length>0&&o(e,"animation-play-state","running")})}),0===w.length||0===F.length)ne();else{const e=te()||0,t=J()||0,n=ee()||1;isFinite(n)&&(g=setTimeout(ce,e+t*n+100)),((e,t)=>{let n;const r={passive:!0},s=t=>{e===t.target&&(n&&n(),ue(),Object(i.q)(()=>{F.forEach(e=>{a(e,"animation-duration"),a(e,"animation-delay"),a(e,"animation-play-state")}),Object(i.q)(ne)}))};e&&(e.addEventListener("webkitAnimationEnd",s,r),e.addEventListener("animationend",s,r),n=()=>{e.removeEventListener("webkitAnimationEnd",s,r),e.removeEventListener("animationend",s,r)})})(F[0])}})()}),he=(e,t)=>{const n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[{offset:0,[e]:t},...w]:n[e]=t,y};return y={parentAnimation:p,elements:F,childAnimations:N,id:B,animationFinish:ne,from:he,to:(e,t)=>{const n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[...w,{offset:1,[e]:t}]:n[e]=t,y},fromTo:(e,t,n)=>he(e,t).to(e,n),parent:e=>(p=e,y),play:de,pause:()=>(N.forEach(e=>{e.pause()}),le(),y),stop:()=>{N.forEach(e=>{e.stop()}),A&&(Y(),A=!1),D=!1,O=!1,M=!0,f=void 0,m=void 0,v=void 0,P=0,T=!1,I=!0},destroy:e=>(N.forEach(t=>{t.destroy(e)}),(e=>{Y(),e&&Z()})(e),F.length=0,N.length=0,w.length=0,R.length=0,L.length=0,A=!1,M=!0,y),keyframes:e=>(w=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),N.push(t);else e.parent(y),N.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)F.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)F.push(e[t]);else console.error("Invalid addElement value");return y},update:ae,fill:e=>(d=e,ae(!0),y),direction:e=>(h=e,ae(!0),y),iterations:e=>(u=e,ae(!0),y),duration:e=>(G||0!==e||(e=1),n=e,ae(!0),y),easing:e=>(r=e,ae(!0),y),delay:e=>(t=e,ae(!0),y),getWebAnimations:()=>W,getKeyframes:()=>w,getFill:K,getDirection:Q,getDelay:te,getIterations:ee,getEasing:X,getDuration:J,afterAddRead:e=>(H.push(e),y),afterAddWrite:e=>(U.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)E[t]="";return y},afterStyles:(e={})=>(E=e,y),afterRemoveClass:e=>(k=c(k,e),y),afterAddClass:e=>(S=c(S,e),y),beforeAddRead:e=>(z.push(e),y),beforeAddWrite:e=>(j.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)C[t]="";return y},beforeStyles:(e={})=>(C=e,y),beforeRemoveClass:e=>(x=c(x,e),y),beforeAddClass:e=>(_=c(_,e),y),onFinish:q,progressStart:(e=!1,t)=>(N.forEach(n=>{n.progressStart(e,t)}),le(),D=e,A?ae(!1,!0,t):ie(),y),progressStep:e=>(N.forEach(t=>{t.progressStep(e)}),re(e),y),progressEnd:(e,t,n)=>(D=!1,N.forEach(i=>{i.progressEnd(e,t,n)}),void 0!==n&&(m=n),T=!1,I=!0,0===e?(f="reverse"===Q()?"normal":"reverse","reverse"===f&&(I=!1),G?(ae(),re(1-t)):(v=(1-t)*J()*-1,ae(!1,!1))):1===e&&(G?(ae(),re(t)):(v=t*J()*-1,ae(!1,!1))),void 0!==e&&(q(()=>{m=void 0,f=void 0,v=void 0},{oneTimeCallback:!0}),p||de()),y)}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("B4Jq"),r=n("1vRN"),s=n("E/Mt"),o=n("meiF");const a=e=>Object(o.a)().duration(e?400:300),l=e=>{let t,n;const i=e.width+8,r=Object(o.a)(),l=Object(o.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),r.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const c="ios"===Object(s.b)(e),u=c?.2:.25;return l.addElement(e.backdropEl).fromTo("opacity",.01,u),a(c).addAnimation([r,l])},c=e=>{let t,n;const i=Object(s.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");const l=Object(o.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=Object(o.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),u=Object(o.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a("ios"===i).addAnimation([l,c,u])},u=e=>{const t=Object(s.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(o.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return a("ios"===t).addAnimation(i)},d=(()=>{const e=new Map,t=[],n=async e=>(await g(),"start"===e||"end"===e?p(t=>t.side===e&&!t.disabled)||p(t=>t.side===e):null!=e?p(t=>t.menuId===e):p(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),s=async()=>(await g(),d()),o=(t,n)=>{e.set(t,n)},a=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},d=()=>p(e=>e._isOpen),h=()=>t.some(e=>e.isAnimating),p=e=>{const n=t.find(e);if(void 0!==n)return n.el},g=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>new Promise(t=>Object(r.c)(e,t))));return o("reveal",u),o("push",c),o("overlay",l),"undefined"!=typeof document&&document.addEventListener("ionBackButton",e=>{const t=d();t&&e.detail.register(i.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:o,get:n,getMenus:async()=>(await g(),t.map(e=>e.el)),getOpen:s,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const i=await n(t);return i&&(i.swipeGesture=e),i},isAnimating:async()=>(await g(),h()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await s()},enable:async(e,t)=>{const i=await n(t);return i&&(i.disabled=!e),i},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):s());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:d,_createAnimation:(t,n)=>{const i=e.get(t);if(!i)throw new Error("animation not registered");return i(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||a(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(h())return!1;if(t){const t=await s();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:a}})()},wEJo:function(e,t,n){"use strict";n.d(t,"a",function(){return ze}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return M}),n.d(t,"d",function(){return m}),n.d(t,"e",function(){return we}),n.d(t,"f",function(){return Ve}),n.d(t,"g",function(){return te}),n.d(t,"h",function(){return Ne}),n.d(t,"i",function(){return P}),n.d(t,"j",function(){return I}),n.d(t,"k",function(){return ee}),n.d(t,"l",function(){return ce}),n.d(t,"m",function(){return _e}),n.d(t,"n",function(){return g}),n.d(t,"o",function(){return Ce}),n.d(t,"p",function(){return E}),n.d(t,"q",function(){return d});let i,r,s,o=!1,a=!1,l=!1,c=!1,u=!1;const d="undefined"!=typeof window?window:{},h=d.CSS,p=d.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},f=(()=>(p.head.attachShadow+"").indexOf("[native")>-1)(),m=e=>Promise.resolve(e),v=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),b=(e,t,n,i)=>{n&&n.map(([n,i,r])=>{const s=w(e,n),o=y(t,r),a=_(n);g.ael(s,i,o,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(s,i,o,a))})},y=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Ee(i)}},w=(e,t)=>4&t?p:8&t?d:16&t?p.body:e,_=e=>0!=(2&e),x="http://www.w3.org/1999/xlink",A=new WeakMap,C=(e,t,n)=>{let i=Oe.get(e);v&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,Oe.set(e,i)},S=(e,t,n,i)=>{let r=k(t,n),s=Oe.get(r);if(e=11===e.nodeType?e:p,s)if("string"==typeof s){let n,o=A.get(e=e.head||e);if(o||A.set(e,o=new Set),!o.has(r)){if(e.host&&(n=e.querySelector(`[sty-id="${r}"]`)))n.innerHTML=s;else{if(g.$cssShim$){n=g.$cssShim$.createHostStyle(i,r,s,!!(10&t.$flags$));const e=n["s-sc"];e&&(r=e,o=null)}else n=p.createElement("style"),n.innerHTML=s;e.insertBefore(n,e.querySelector("link"))}o&&o.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},k=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),E=e=>Ie.push(e),P=e=>Ae(e).$modeName$,D={},O=e=>"object"==(e=typeof e)||"function"===e,I=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?c(i):null!=i&&"boolean"!=typeof i&&((o="function"!=typeof e&&!O(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?T(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,B);const u=T(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},T=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),M={},B={forEach:(e,t)=>e.map(R).forEach(t),map:(e,t)=>e.map(R).map(t).map(L)},R=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),L=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),I(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},F=(e,t,n,i,r,s)=>{if(n!==i){let a=ke(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,r=V(n),s=V(i);t.remove(...r.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!r.includes(e)))}else if("style"===t){for(const t in n)i&&null!=i[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=O(i);if((a||c&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let r=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==r||(e[t]=r)}}catch(o){}let u=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,u=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!a||4&s||r)&&!c&&(i=!0===i?"":i,u?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):ke(d,l)?l.slice(2):l[2]+t.slice(3),n&&g.rel(e,t,n,!1),i&&g.ael(e,t,i,!1)}},N=/\s/,V=e=>e?e.split(N):[],z=(e,t,n,i)=>{const r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||D,o=t.$attrs$||D;for(i in s)i in o||F(r,i,s[i],void 0,n,t.$flags$);for(i in o)F(r,i,s[i],o[i],n,t.$flags$)},j=(e,t,n,a)=>{let u,d,h,g=t.$children$[n],f=0;if(o||(l=!0,"slot"===g.$tag$&&(i&&a.classList.add(i+"-s"),g.$flags$|=g.$children$?2:1)),null!==g.$text$)u=g.$elm$=p.createTextNode(g.$text$);else if(1&g.$flags$)u=g.$elm$=p.createTextNode("");else{if(c||(c="svg"===g.$tag$),u=g.$elm$=p.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&g.$flags$?"slot-fb":g.$tag$),c&&"foreignObject"===g.$tag$&&(c=!1),z(null,g,c),null!=i&&u["s-si"]!==i&&u.classList.add(u["s-si"]=i),g.$children$)for(f=0;f<g.$children$.length;++f)d=j(e,g,f,u),d&&u.appendChild(d);"svg"===g.$tag$?c=!1:"foreignObject"===u.tagName&&(c=!0)}return u["s-hn"]=s,3&g.$flags$&&(u["s-sr"]=!0,u["s-cr"]=r,u["s-sn"]=g.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===g.$tag$&&e.$elm$&&H(e.$elm$,!1)),u},H=(e,t)=>{g.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const e=n[i];e["s-hn"]!==s&&e["s-ol"]&&(q(e).insertBefore(e,G(e)),e["s-ol"].remove(),e["s-ol"]=void 0,l=!0),t&&H(e,t)}g.$flags$&=-2},U=(e,t,n,i,r,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===s&&(l=l.shadowRoot);r<=o;++r)i[r]&&(a=j(null,n,r,e),a&&(i[r].$elm$=a,l.insertBefore(a,G(t))))},W=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,J(i),a=!0,r["s-ol"]?r["s-ol"].remove():H(r,!0),r.remove())},$=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),G=e=>e&&e["s-ol"]||e,q=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Y=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;null===o?(c="svg"===s||"foreignObject"!==s&&c,"slot"===s||z(e,t,c),null!==i&&null!==r?((e,t,n,i)=>{let r,s,o=0,a=0,l=0,c=0,u=t.length-1,d=t[0],h=t[u],p=i.length-1,g=i[0],f=i[p];for(;o<=u&&a<=p;)if(null==d)d=t[++o];else if(null==h)h=t[--u];else if(null==g)g=i[++a];else if(null==f)f=i[--p];else if($(d,g))Y(d,g),d=t[++o],g=i[++a];else if($(h,f))Y(h,f),h=t[--u],f=i[--p];else if($(d,f))"slot"!==d.$tag$&&"slot"!==f.$tag$||H(d.$elm$.parentNode,!1),Y(d,f),e.insertBefore(d.$elm$,h.$elm$.nextSibling),d=t[++o],f=i[--p];else if($(h,g))"slot"!==d.$tag$&&"slot"!==f.$tag$||H(h.$elm$.parentNode,!1),Y(h,g),e.insertBefore(h.$elm$,d.$elm$),h=t[--u],g=i[++a];else{for(l=-1,c=o;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===g.$key$){l=c;break}l>=0?(s=t[l],s.$tag$!==g.$tag$?r=j(t&&t[a],n,l,e):(Y(s,g),t[l]=void 0,r=s.$elm$),g=i[++a]):(r=j(t&&t[a],n,a,e),g=i[++a]),r&&q(d.$elm$).insertBefore(r,G(d.$elm$))}o>u?U(e,null==i[p+1]?null:i[p+1].$elm$,n,i,a,p):a>p&&W(t,o,u)})(n,i,t,r):null!==r?(null!==e.$text$&&(n.textContent=""),U(n,null,t,r,0,r.length-1)):null!==i&&W(i,0,i.length-1),c&&"svg"===s&&(c=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},Z=e=>{let t,n,i,r,s,o,a=e.childNodes;for(n=0,i=a.length;n<i;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,r=0;r<i;r++)if(o=a[r].nodeType,a[r]["s-hn"]!==t["s-hn"]||""!==s){if(1===o&&s===a[r].getAttribute("slot")){t.hidden=!0;break}}else if(1===o||3===o&&""!==a[r].textContent.trim()){t.hidden=!0;break}Z(t)}},K=[],Q=e=>{let t,n,i,r,s,o,l=0,c=e.childNodes,u=c.length;for(;l<u;l++){if(t=c[l],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(X(n,r)?(s=K.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:K.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&K.map(e=>{X(e.$nodeToRelocate$,n["s-sn"])&&(s=K.find(e=>e.$nodeToRelocate$===n),s&&!e.$slotRefNode$&&(e.$slotRefNode$=s.$slotRefNode$))})):K.some(e=>e.$nodeToRelocate$===n)||K.push({$nodeToRelocate$:n}));1===t.nodeType&&Q(t)}},X=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},ee=e=>Ae(e).$hostElement$,te=(e,t,n)=>{const i=ee(e);return{emit:e=>ne(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},ne=(e,t,n)=>{const i=g.ce(t,n);return e.dispatchEvent(i),i},ie=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},re=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return ie(e,e.$ancestorComponent$),Ve(()=>se(e,t));e.$flags$|=512},se=(e,t)=>{const n=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>de(n,e,t)),e.$queuedListeners$=null),i=de(n,"componentWillLoad")),i=he(i,()=>de(n,"componentWillRender")),he(i,()=>oe(e,n,t))},oe=async(e,t,n)=>{const i=e.$hostElement$,r=i["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=S(f&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"),2&i&&n.classList.add(r+"-s"))})(e),ae(e,t),g.$cssShim$&&g.$cssShim$.updateHost(i),r&&(r.map(e=>e()),i["s-rc"]=void 0);{const t=i["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},ae=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t)=>{const n=e.$hostElement$,c=e.$cmpMeta$,u=e.$vnode$||T(null,null),d=(h=t)&&h.$tag$===M?t:I(null,null,t);var h;if(s=n.tagName,c.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},c.$attrsToReflect$.map(([e,t])=>d.$attrs$[t]=n[e])),d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=u.$elm$=n.shadowRoot||n,i=n["s-sc"],r=n["s-cr"],o=f&&0!=(1&c.$flags$),a=!1,Y(u,d),g.$flags$|=1,l){let e,t,n,i,r,s;Q(d.$elm$);let o=0;for(;o<K.length;o++)e=K[o],t=e.$nodeToRelocate$,t["s-ol"]||(n=p.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(o=0;o<K.length;o++)if(e=K[o],t=e.$nodeToRelocate$,e.$slotRefNode$){for(i=e.$slotRefNode$.parentNode,r=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&i===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){r=s;break}(!r&&i!==t.parentNode||t.nextSibling!==r)&&t!==r&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),i.insertBefore(t,r))}else 1===t.nodeType&&(t.hidden=!0)}a&&Z(d.$elm$),g.$flags$&=-2,K.length=0})(e,t)}catch(c){Ee(c,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?de(n,"componentDidUpdate"):(e.$flags$|=64,pe(t),de(n,"componentDidLoad"),e.$onReadyResolve$(t),i||ue()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Fe(()=>re(e,!1)),e.$flags$&=-517},ce=e=>{{const t=Ae(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&re(t,!1),n}},ue=e=>{pe(p.documentElement),Fe(()=>ne(d,"appload",{detail:{namespace:"ionic"}}))},de=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){Ee(i)}},he=(e,t)=>e&&e.then?e.then(t):t(),pe=e=>e.classList.add("hydrated"),ge=(e,t,n,i,r,s,o)=>{let a,l,c,u;if(1===s.nodeType){for(a=s.getAttribute("c-id"),a&&(l=a.split("."),l[0]!==o&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),s.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))),u=s.childNodes.length-1;u>=0;u--)ge(e,t,n,i,r,s.childNodes[u],o);if(s.shadowRoot)for(u=s.shadowRoot.childNodes.length-1;u>=0;u--)ge(e,t,n,i,r,s.shadowRoot.childNodes[u],o)}else if(8===s.nodeType)l=s.nodeValue.split("."),l[1]!==o&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=s.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),s.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))):c.$hostId$===o&&("s"===a?(c.$tag$="slot",s["s-sn"]=l[5]?c.$name$=l[5]:"",s["s-sr"]=!0,i&&(c.$elm$=p.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),s.parentNode.insertBefore(c.$elm$,s),s.remove(),"0"===c.$depth$&&(i[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(i?s.remove():(r["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=T(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},fe=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)fe(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)fe(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},me=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;if(i.map(([e,[i]])=>{31&i||2&n&&32&i?Object.defineProperty(r,e,{get(){return t=e,Ae(this).$instanceValues$.get(t);var t},set(n){((e,t,n,i)=>{const r=Ae(this),s=r.$hostElement$,o=r.$instanceValues$.get(t),a=r.$flags$,l=r.$lazyInstance$;var c,u;if(u=i.$members$[t][0],n=null==(c=n)||O(c)?c:4&u?"false"!==c&&(""===c||!!c):2&u?parseFloat(c):1&u?String(c):c,!(8&a&&void 0!==o||n===o)&&(r.$instanceValues$.set(t,n),l)){if(i.$watchers$&&128&a){const e=i.$watchers$[t];e&&e.map(e=>{try{l[e](n,o,t)}catch(i){Ee(i,s)}})}2==(18&a)&&re(r,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&i&&Object.defineProperty(r,e,{value(...t){const n=Ae(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;r.attributeChangedCallback=function(e,t,i){g.jmp(()=>{const t=n.get(e);this[t]=(null!==i||"boolean"!=typeof this[t])&&i})},e.observedAttributes=i.filter(([e,t])=>15&t[0]).map(([e,i])=>{const r=i[1]||e;return n.set(r,e),512&i[0]&&t.$attrsToReflect$.push([e,r]),r})}}return e},ve=e=>{de(e,"connectedCallback")},be=e=>{if(0==(1&g.$flags$)){const t=Ae(e),i=t.$cmpMeta$,r=()=>{};if(1&t.$flags$)b(e,t,i.$listeners$),ve(t.$lazyInstance$);else{let r;if(t.$flags$|=1,r=e.getAttribute("s-id"),r){if(f&&1&i.$flags$){const t=S(e.shadowRoot,i,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,n,i)=>{const r=e.shadowRoot,s=[],o=r?[]:null,a=i.$vnode$=T(t,null);g.$orgLocNodes$||fe(p.body,g.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),ge(a,s,[],o,e,e,n),s.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,i=g.$orgLocNodes$.get(n),s=e.$elm$;i&&f&&""===i["s-en"]&&i.parentNode.insertBefore(s,i.nextSibling),r||(s["s-hn"]=t,i&&(s["s-ol"]=i,s["s-ol"]["s-nr"]=s)),g.$orgLocNodes$.delete(n)}),r&&o.map(e=>{e&&r.appendChild(e)})})(e,i.$tagName$,r,t)}r||12&i.$flags$&&ye(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ie(t,t.$ancestorComponent$=n);break}}i.$members$&&Object.entries(i.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Fe(()=>(async(e,t,i,r,s)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(s=De(i)).then){const e=()=>{};s=await s,e()}s.isProxied||(i.$watchers$=s.watchers,me(s,i,2),s.isProxied=!0);const e=()=>{};t.$flags$|=8;try{new s(t)}catch(l){Ee(l)}t.$flags$&=-9,t.$flags$|=128,e(),ve(t.$lazyInstance$)}if(s.style){let r=s.style;"string"!=typeof r&&(r=r[t.$modeName$=(e=>Ie.map(t=>t(e)).find(e=>!!e))(e)]);const o=k(i,t.$modeName$);if(!Oe.has(o)){const e=()=>{};8&i.$flags$&&(r=await n.e(57).then(n.bind(null,"JmUR")).then(e=>e.scopeCss(r,o,!1))),C(o,r,!!(1&i.$flags$)),e()}}}const o=t.$ancestorComponent$,a=()=>re(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(e,t,i))}r()}},ye=e=>{const t=e["s-cr"]=p.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},we=(e,t={})=>{const n=[],i=t.exclude||[],r=d.customElements,s=p.head,o=s.querySelector("meta[charset]"),a=p.createElement("style"),l=[],c=p.querySelectorAll("[sty-id]");let u,h=!0,m=0;for(Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",p.baseURI).href,g.$flags$|=2;m<c.length;m++)C(c[m].getAttribute("sty-id"),c[m].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(e=>e[1].map(t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$listeners$=t[3],s.$attrsToReflect$=[],s.$watchers$={},!f&&1&s.$flags$&&(s.$flags$|=8);const o=s.$tagName$,a=class extends HTMLElement{constructor(e){super(e),Se(e=this,s),1&s.$flags$&&(f?e.attachShadow({mode:"open",delegatesFocus:!!(16&s.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){u&&(clearTimeout(u),u=null),h?l.push(this):g.jmp(()=>be(this))}disconnectedCallback(){g.jmp(()=>(e=>{if(0==(1&g.$flags$)){const t=Ae(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),g.$cssShim$&&g.$cssShim$.removeHost(e),de(n,"disconnectedCallback")}})(this))}componentOnReady(){return Ae(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],i.includes(o)||r.get(o)||(n.push(o),r.define(o,me(a,s,1)))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,o?o.nextSibling:s.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):g.jmp(()=>u=setTimeout(ue,30))},_e=e=>{const t=new URL(e,g.$resourcesUrl$);return t.origin!==d.location.origin?t.href:t.pathname},xe=new WeakMap,Ae=e=>xe.get(e),Ce=(e,t)=>xe.set(t.$lazyInstance$=e,t),Se=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],b(e,n,t.$listeners$),xe.set(e,n)},ke=(e,t)=>t in e,Ee=(e,t)=>(0,console.error)(e,t),Pe=new Map,De=(e,t,i)=>{const r=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$,o=Pe.get(s);return o?o[r]:n("kLfG")(`./${s}.entry.js`).then(e=>(Pe.set(s,e),e[r]),Ee)},Oe=new Map,Ie=[],Te=[],Me=[],Be=(e,t)=>n=>{e.push(n),u||(u=!0,t&&4&g.$flags$?Fe(Le):g.raf(Le))},Re=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Ee(t)}e.length=0},Le=()=>{Re(Te),Re(Me),(u=Te.length>0)&&g.raf(Le)},Fe=e=>m().then(e),Ne=Be(Te,!1),Ve=Be(Me,!0),ze={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return s});class i{constructor(e,t,n,i,r){this.id=t,this.name=n,this.disableScroll=r,this.priority=1e6*i+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class r{constructor(e,t,n,i){this.id=t,this.disable=n,this.disableScroll=i,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const s=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new r(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const i=this.requestedStart;let r=-1e4;if(i.forEach(e=>{r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return i.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}}}},[[0,1]]]);
\ No newline at end of file
+(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return a}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return r}),n.d(t,"j",function(){return p}),n.d(t,"k",function(){return c}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return v}),n.d(t,"n",function(){return y}),n.d(t,"o",function(){return f}),n.d(t,"p",function(){return m}),n.d(t,"q",function(){return l});const i=(e,t)=>{e.componentOnReady?e.componentOnReady().then(e=>t(e)):l(()=>t(e))},r=(e,t=[])=>{const n={};return t.forEach(t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},s=(e,t,n,i)=>{if("undefined"!=typeof window){const r=window,s=r&&r.Ionic&&r.Ionic.config;if(s){const r=s.get("_ael");if(r)return r(e,t,n,i);if(s._ael)return s._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},o=(e,t,n,i)=>{if("undefined"!=typeof window){const r=window,s=r&&r.Ionic&&r.Ionic.config;if(s){const r=s.get("_rel");if(r)return r(e,t,n,i);if(s._rel)return s._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},a=(e,t=e)=>e.shadowRoot||t,l=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),c=e=>!!e.shadowRoot&&!!e.attachShadow,u=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=(e,t)=>{let n;const i=e.getAttribute("aria-labelledby"),r=e.id;let s=null!==i&&""!==i.trim()?i:t+"-lbl",o=null!==i&&""!==i.trim()?document.getElementById(i):u(e);return o?(null===i&&(o.id=s),n=o.textContent,o.setAttribute("aria-hidden","true")):""!==r.trim()&&(o=document.querySelector(`label[for="${r}"]`),o&&(""!==o.id?s=o.id:o.id=s=r+"-lbl",n=o.textContent)),{label:o,labelId:s,labelText:n}},h=(e,t,n,i,r)=>{if(e||c(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=r,e.name=n,e.value=i||""}},p=(e,t,n)=>Math.max(e,Math.min(t,n)),g=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},f=e=>e.timeStamp||Date.now(),m=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},v=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},b=(e,t)=>{const n=e._original||e;return{_original:e,emit:y(n.emit.bind(n),t)}},y=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>{try{if(e instanceof class{constructor(e){this.value=e}})return e.value;if(!o()||"string"!=typeof e||""===e)return e;const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(e=>{const n=t.querySelectorAll(e);for(let i=n.length-1;i>=0;i--){const e=n[i];e.parentNode?e.parentNode.removeChild(e):t.removeChild(e);const o=s(e);for(let t=0;t<o.length;t++)r(o[t])}});const i=s(t);for(let e=0;e<i.length;e++)r(i[e]);const a=document.createElement("div");a.appendChild(t);const c=a.querySelector("div");return null!==c?c.innerHTML:a.innerHTML}catch(t){return console.error(t),""}},r=e=>{if(e.nodeType&&1!==e.nodeType)return;for(let n=e.attributes.length-1;n>=0;n--){const t=e.attributes.item(n),i=t.name;if(!a.includes(i.toLowerCase())){e.removeAttribute(i);continue}const r=t.value;null!=r&&r.toLowerCase().includes("javascript:")&&e.removeAttribute(i)}const t=s(e);for(let n=0;n<t.length;n++)r(t[n])},s=e=>null!=e.children?e.children:e.childNodes,o=()=>{const e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},a=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"3oEA":function(e,t,n){!function(t){"use strict";const n="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,"i"),threeOctet:new RegExp(`^${n}\\.${n}\\.${n}$`,"i"),twoOctet:new RegExp(`^${n}\\.${n}$`,"i"),longValue:new RegExp(`^${n}$`,"i")},r=new RegExp("^0[0-7]+$","i"),s=new RegExp("^0x[a-f0-9]+$","i"),o="(?:[0-9a-f]+::?)+",a={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(%[0-9a-z]{1,})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${n}\\.${n}\\.${n}\\.${n}(%[0-9a-z]{1,})?$`,"i")};function l(e,t){if(e.indexOf("::")!==e.lastIndexOf("::"))return null;let n,i,r=0,s=-1,o=(e.match(a.zoneIndex)||[])[0];for(o&&(o=o.substring(1),e=e.replace(/%.+$/,""));(s=e.indexOf(":",s+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(i=t-r,n=":";i--;)n+="0:";return":"===(e=e.replace("::",n))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){const t=e.split(":"),n=[];for(let e=0;e<t.length;e++)n.push(parseInt(t[e],16));return n}(),zoneId:o}}function c(e,t,n,i){if(e.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let r,s=0;for(;i>0;){if(r=n-i,r<0&&(r=0),e[s]>>r!=t[s]>>r)return!1;i-=n,s+=1}return!0}function u(e){if(s.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(r.test(e))return parseInt(e,8);throw new Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function d(e,t){for(;e.length<t;)e="0"+e;return e}const h={};h.IPv4=function(){function e(e){if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){let n;if(void 0===t&&(n=e,e=n[0],t=n[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return c(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1;const n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let i,r,s;for(i=3;i>=0;i-=1){if(r=this.octets[i],!(r in n))return null;if(s=n[r],t&&0!==s)return null;8!==s&&(t=!0),e+=s}return 32-e},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse("::ffff:"+this.toString())},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),h.IPv4.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[];let s=0;for(;s<4;)r.push(parseInt(n[s],10)|255^parseInt(i[s],10)),s++;return new this(r)}catch(t){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(e){return null!==this.parser(e)},h.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(t){return!1}},h.IPv4.isValidFourPartDecimal=function(e){return!(!h.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(e){let t,n,i,r,s;try{for(t=this.parseCIDR(e),i=t[0].toByteArray(),s=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<4;)r.push(parseInt(i[n],10)&parseInt(s[n],10)),n++;return new this(r)}catch(o){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(e){const t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},h.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){const e=parseInt(t[2]);if(e>=0&&e<=32){const n=[this.parse(t[1]),e];return Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(e){let t,n,r;if(t=e.match(i.fourOctet))return function(){const e=t.slice(1,6),i=[];for(let t=0;t<e.length;t++)n=e[t],i.push(u(n));return i}();if(t=e.match(i.longValue)){if(r=u(t[1]),r>4294967295||r<0)throw new Error("ipaddr: address outside defined range");return function(){const e=[];let t;for(t=0;t<=24;t+=8)e.push(r>>t&255);return e}().reverse()}return(t=e.match(i.twoOctet))?function(){const e=t.slice(1,4),n=[];if(r=u(e[1]),r>16777215||r<0)throw new Error("ipaddr: address outside defined range");return n.push(u(e[0])),n.push(r>>16&255),n.push(r>>8&255),n.push(255&r),n}():(t=e.match(i.threeOctet))?function(){const e=t.slice(1,5),n=[];if(r=u(e[2]),r>65535||r<0)throw new Error("ipaddr: address outside defined range");return n.push(u(e[0])),n.push(u(e[1])),n.push(r>>8&255),n.push(255&r),n}():null},h.IPv4.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");const t=[0,0,0,0];let n=0;const i=Math.floor(e/8);for(;n<i;)t[n]=255,n++;return i<4&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.IPv6=function(){function e(e,t){let n,i;if(16===e.length)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(n=0;n<this.parts.length;n++)if(i=this.parts[n],!(0<=i&&i<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){let n;if(void 0===t&&(n=e,e=n[0],t=n[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return c(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1;const n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let i,r;for(let s=7;s>=0;s-=1){if(i=this.parts[s],!(i in n))return null;if(r=n[i],t&&0!==r)return null;16!==r&&(t=!0),e+=r}return 128-e},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e;const t=[],n=this.parts;for(let i=0;i<n.length;i++)e=n[i],t.push(e>>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){const e=(function(){const e=[];for(let t=0;t<this.parts.length;t++)e.push(d(this.parts[t].toString(16),4));return e}).call(this).join(":");let t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const e=this.parts.slice(-2),t=e[0],n=e[1];return new h.IPv4([t>>8,255&t,n>>8,255&n])},e.prototype.toNormalizedString=function(){const e=(function(){const e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(":");let t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toRFC5952String=function(){const e=/((^|:)(0(:|$)){2,})/g,t=this.toNormalizedString();let n,i=0,r=-1;for(;n=e.exec(t);)n[0].length>r&&(i=n.index,r=n[0].length);return r<0?t:`${t.substring(0,i)}::${t.substring(i+r)}`},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),h.IPv6.broadcastAddressFromCIDR=function(e){try{const t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[];let s=0;for(;s<16;)r.push(parseInt(n[s],10)|255^parseInt(i[s],10)),s++;return new this(r)}catch(t){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${t})`)}},h.IPv6.isIPv6=function(e){return null!==this.parser(e)},h.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{const t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(t){return!1}},h.IPv6.networkAddressFromCIDR=function(e){let t,n,i,r,s;try{for(t=this.parseCIDR(e),i=t[0].toByteArray(),s=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<16;)r.push(parseInt(i[n],10)&parseInt(s[n],10)),n++;return new this(r)}catch(o){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${o})`)}},h.IPv6.parse=function(e){const t=this.parser(e);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},h.IPv6.parseCIDR=function(e){let t,n,i;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return i=[this.parse(n[1]),t],Object.defineProperty(i,"toString",{value:function(){return this.join("/")}}),i;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(e){let t,n,i,r,s,o;if(i=e.match(a.deprecatedTransitional))return this.parser("::ffff:"+i[1]);if(a.native.test(e))return l(e,8);if((i=e.match(a.transitional))&&(o=i[6]||"",t=l(i[1].slice(0,-1)+o,6),t.parts)){for(s=[parseInt(i[2]),parseInt(i[3]),parseInt(i[4]),parseInt(i[5])],n=0;n<s.length;n++)if(r=s[n],!(0<=r&&r<=255))return null;return t.parts.push(s[0]<<8|s[1]),t.parts.push(s[2]<<8|s[3]),{parts:t.parts,zoneId:t.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>128)throw new Error("ipaddr: invalid IPv6 prefix length");const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let n=0;const i=Math.floor(e/8);for(;n<i;)t[n]=255,n++;return i<16&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.fromByteArray=function(e){const t=e.length;if(4===t)return new h.IPv4(e);if(16===t)return new h.IPv6(e);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(e){return h.IPv6.isValid(e)||h.IPv4.isValid(e)},h.parse=function(e){if(h.IPv6.isValid(e))return h.IPv6.parse(e);if(h.IPv4.isValid(e))return h.IPv4.parse(e);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(e){try{return h.IPv6.parseCIDR(e)}catch(t){try{return h.IPv4.parseCIDR(e)}catch(n){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(e){const t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},h.subnetMatch=function(e,t,n){let i,r,s,o;for(r in null==n&&(n="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,r))for(s=t[r],!s[0]||s[0]instanceof Array||(s=[s]),i=0;i<s.length;i++)if(o=s[i],e.kind()===o[0].kind()&&e.match.apply(e,o))return r;return n},e.exports?e.exports=h:t.ipaddr=h}(this)},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return A}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return P}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return O}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return f});var i=n("E/Mt"),r=n("B4Jq"),s=n("1vRN");let o=0;const a=new WeakMap,l=e=>({create:t=>v(e,t),dismiss:(t,n,i)=>_(document,t,n,e,i),getTop:async()=>x(document,e)}),c=l("ion-alert"),u=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),p=l("ion-picker"),g=l("ion-popover"),f=l("ion-toast"),m=e=>{"undefined"!=typeof document&&w(document);const t=o++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},v=(e,t)=>"undefined"!=typeof customElements?customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),k(document).appendChild(n),new Promise(e=>Object(s.c)(n,e))}):Promise.resolve(),b='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',y="input:not([type=hidden]), textarea, button, select",w=e=>{0===o&&(o=1,e.addEventListener("focus",t=>((e,t)=>{const n=x(t),i=e.target;if(n&&i)if(n===i)n.lastFocus=void 0;else{const e=Object(s.g)(n);if(!e.contains(i))return;const r=e.querySelector(".ion-overlay-wrapper");if(!r)return;if(r.contains(i))n.lastFocus=i;else{const e=n.lastFocus;((e,t)=>{let n=e.querySelector(b);const i=n&&n.shadowRoot;i&&(n=i.querySelector(y)||n),n?n.focus():t.focus()})(r,n),e===t.activeElement&&((e,t)=>{const n=Array.from(e.querySelectorAll(b));let i=n.length>0?n[n.length-1]:null;const r=i&&i.shadowRoot;r&&(i=r.querySelector(y)||i),i?i.focus():t.focus()})(r,n),n.lastFocus=t.activeElement}}})(t,e),!0),e.addEventListener("ionBackButton",t=>{const n=x(e);n&&n.backdropDismiss&&t.detail.register(r.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,M))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=x(e);t&&t.backdropDismiss&&t.dismiss(void 0,M)}}))},_=(e,t,n,i,r)=>{const s=x(e,i,r);return s?s.dismiss(t,n):Promise.reject("overlay does not exist")},x=(e,t,n)=>{const i=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?i[i.length-1]:i.find(e=>e.id===n)},A=async(e,t,n,r,s)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const o=Object(i.b)(e),a=e.enterAnimation?e.enterAnimation:i.c.get(t,"ios"===o?n:r);await E(e,a,e.el,s)&&e.didPresent.emit(),"ION-TOAST"!==e.el.tagName&&C(e.el),e.keyboardClose&&e.el.focus()},C=async e=>{let t=document.activeElement;if(!t)return;const n=t&&t.shadowRoot;n&&(t=n.querySelector(y)||t),await e.onDidDismiss(),t.focus()},S=async(e,t,n,r,s,o,l)=>{if(!e.presented)return!1;e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n});const c=Object(i.b)(e),u=e.leaveAnimation?e.leaveAnimation:i.c.get(r,"ios"===c?s:o);"gesture"!==n&&await E(e,u,e.el,l),e.didDismiss.emit({data:t,role:n}),a.delete(e)}catch(c){console.error(c)}return e.el.remove(),!0},k=e=>e.querySelector("ion-app")||e.body,E=async(e,t,n,r)=>{n.classList.remove("overlay-hidden");const s=t(n.shadowRoot||e.el,r);e.animated&&i.c.getBoolean("animated",!0)||s.duration(0),e.keyboardClose&&s.beforeAddWrite(()=>{const e=n.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const o=a.get(e)||[];return a.set(e,[...o,s]),await s.play(),!0},P=(e,t)=>{let n;const i=new Promise(e=>n=e);return D(e,t,e=>{n(e.detail)}),i},D=(e,t,n)=>{const i=r=>{Object(s.b)(e,t,i),n(r)};Object(s.a)(e,t,i)},O=e=>"cancel"===e||e===M,I=e=>e(),T=(e,t)=>{if("function"==typeof e)return i.c.get("_zoneGate",I)(()=>{try{return e(t)}catch(n){console.error(n)}})},M="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return s}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return r});const i=()=>{document.addEventListener("backbutton",()=>{})},r=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,i=[];const r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);const s=()=>{if(i.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};i.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,i=i.filter(t=>t.id!==e.id),(async e=>{try{if(e&&e.handler){const t=e.handler(s);null!=t&&await t}}catch(t){console.error(t)}})(e).then(()=>t=!1)}};s()})},s=100,o=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return b}),n.d(t,"d",function(){return r}),n.d(t,"e",function(){return _});var i=n("wEJo");const r=e=>o(e),s=(e,t)=>("string"==typeof e&&(t=e,e=void 0),r(e).includes(t)),o=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=a(e),t.forEach(t=>e.document.documentElement.classList.add("plt-"+t))),t},a=e=>Object.keys(m).filter(t=>m[t](e)),l=e=>!!g(e,/iPad/i)||!(!g(e,/Macintosh/i)||!u(e)),c=e=>g(e,/android|sink/i),u=e=>f(e,"(any-pointer:coarse)"),d=e=>h(e)||p(e),h=e=>!!(e.cordova||e.phonegap||e.PhoneGap),p=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},g=(e,t)=>t.test(e.navigator.userAgent),f=(e,t)=>e.matchMedia(t).matches,m={ipad:l,iphone:e=>g(e,/iPhone/i),ios:e=>g(e,/iPhone|iPod/i)||l(e),android:c,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return l(e)||(e=>c(e)&&!g(e,/mobile/i))(e)||i>460&&i<820&&r>780&&r<1400},cordova:h,capacitor:p,electron:e=>g(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:u,mobileweb:e=>u(e)&&!d(e),desktop:e=>!u(e),hybrid:d};class v{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const b=new v;let y;const w=e=>e&&Object(i.i)(e)||y,_=(e={})=>{if("undefined"==typeof window)return;const t=window.document,n=window,r=n.Ionic=n.Ionic||{};o(n);const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(t){return{}}})(n)),{persistConfig:!1}),r.config),(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>"ionic:"===e.substr(0,"ionic:".length)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(n)),e);b.reset(a),b.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}})(n,a),r.config=b,r.mode=y=b.get("mode",t.documentElement.getAttribute("mode")||(s(n,"ios")?"ios":"md")),b.set("mode",y),t.documentElement.setAttribute("mode",y),t.documentElement.classList.add(y),b.getBoolean("_testing")&&b.set("animated",!1);const l=e=>e.tagName&&e.tagName.startsWith("ION-"),c=e=>["ios","md"].includes(e);Object(i.p)(e=>{for(;e;){const t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return y})}},Hfs6:function(e,t,n){var i,r,s;!function(o){if("object"==typeof e.exports){var a=o(0,t);void 0!==a&&(e.exports=a)}else r=[n,t],void 0===(s="function"==typeof(i=o)?i.apply(t,r):i)||(e.exports=s)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},OmFT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{static isArrayBuffer(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}static toArrayBuffer(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e).slice().buffer}static toUint8Array(e){return this.toView(e,Uint8Array)}static toView(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}static isArrayBufferView(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}static isEqual(e,t){const n=i.toUint8Array(e),r=i.toUint8Array(t);if(n.length!==r.byteLength)return!1;for(let i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}static concat(...e){if(Array.isArray(e[0])){const t=e[0];let n=0;for(const e of t)n+=e.byteLength;const i=new Uint8Array(n);let r=0;for(const e of t){const t=this.toUint8Array(e);i.set(t,r),r+=t.length}return e[1]?this.toView(i,e[1]):i.buffer}return this.concat(e)}}class r{static fromString(e){const t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n.buffer}static toString(e){const t=i.toUint8Array(e);let n="";for(let i=0;i<t.length;i++)n+=String.fromCharCode(t[i]);return decodeURIComponent(escape(n))}}class s{static toString(e,t=!1){const n=i.toArrayBuffer(e),r=new DataView(n);let s="";for(let i=0;i<n.byteLength;i+=2){const e=r.getUint16(i,t);s+=String.fromCharCode(e)}return s}static fromString(e,t=!1){const n=new ArrayBuffer(2*e.length),i=new DataView(n);for(let r=0;r<e.length;r++)i.setUint16(2*r,e.charCodeAt(r),t);return n}}class o{static isHex(e){return"string"==typeof e&&/^[a-z0-9]+$/i.test(e)}static isBase64(e){return"string"==typeof e&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}static isBase64Url(e){return"string"==typeof e&&/^[a-zA-Z0-9-_]+$/i.test(e)}static ToString(e,t="utf8"){const n=i.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(n);case"binary":return this.ToBinary(n);case"hex":return this.ToHex(n);case"base64":return this.ToBase64(n);case"base64url":return this.ToBase64Url(n);case"utf16le":return s.toString(n,!0);case"utf16":case"utf16be":return s.toString(n);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromString(e,t="utf8"){if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return s.fromString(e,!0);case"utf16":case"utf16be":return s.fromString(e);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToBase64(e){const t=i.toUint8Array(e);if("undefined"!=typeof btoa){const e=this.ToString(t,"binary");return btoa(e)}return Buffer.from(t).toString("base64")}static FromBase64(e){const t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!o.isBase64(t))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(t)):new Uint8Array(Buffer.from(t,"base64")).buffer}static FromBase64Url(e){const t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!o.isBase64Url(t))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(t.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(e,t=o.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.FromBinary(e);case"utf8":return r.fromString(e);case"utf16":case"utf16be":return s.fromString(e);case"utf16le":case"usc2":return s.fromString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToUtf8String(e,t=o.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.ToBinary(e);case"utf8":return r.toString(e);case"utf16":case"utf16be":return s.toString(e);case"utf16le":case"usc2":return s.toString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromBinary(e){const t=e.length,n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e.charCodeAt(i);return n.buffer}static ToBinary(e){const t=i.toUint8Array(e);let n="";for(let i=0;i<t.length;i++)n+=String.fromCharCode(t[i]);return n}static ToHex(e){const t=i.toUint8Array(e),n=[],r=t.length;for(let i=0;i<r;i++){const e=t[i].toString(16).padStart(2,"0");n.push(e)}return n.join("")}static FromHex(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!o.isHex(t))throw new TypeError("Argument 'hexString' is not HEX encoded");t.length%2&&(t="0"+t);const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2){const e=t.slice(i,i+2);n[i/2]=parseInt(e,16)}return n.buffer}static ToUtf16String(e,t=!1){return s.toString(e,t)}static FromUtf16String(e,t=!1){return s.fromString(e,t)}static Base64Padding(e){const t=4-e.length%4;if(t<4)for(let n=0;n<t;n++)e+="=";return e}static formatString(e){return(null==e?void 0:e.replace(/[\n\r\t ]/g,""))||""}}o.DEFAULT_UTF8_ENCODING="utf8",t.BufferSourceConverter=i,t.Convert=o,t.assign=function(e,...t){const n=arguments[0];for(let i=1;i<arguments.length;i++){const e=arguments[i];for(const t in e)n[t]=e[t]}return n},t.combine=function(...e){const t=e.map(e=>e.byteLength).reduce((e,t)=>e+t),n=new Uint8Array(t);let i=0;return e.map(e=>new Uint8Array(e)).forEach(e=>{for(const t of e)n[i++]=t}),n.buffer},t.isEqual=function(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return s});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");const s=(e,t)=>{const n="back"===t.direction,s=t.enteringEl,o=t.leavingEl,a=Object(r.g)(s),l=a.querySelector("ion-toolbar"),c=Object(i.a)();if(c.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):c.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){const e=Object(i.a)();e.addElement(l),c.addAnimation(e)}if(o&&n){c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=Object(i.a)();e.addElement(Object(r.g)(o)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),c.addAnimation(e)}return c}},b0Xh:function(e,t,i){var r;(function(){var i=function(e){return e instanceof i?e:this instanceof i?void(this.EXIFwrapped=e):new i(e)};e.exports&&(t=e.exports=i),t.EXIF=i;var s=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},o=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},a=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},c=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function u(e){return!!e.exifdata}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return v(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,n){for(var i,r,s,o,a=new DataView(e),l={},c=t;c<t+n;)28===a.getUint8(c)&&2===a.getUint8(c+1)&&(o=a.getUint8(c+2))in h&&(s=a.getInt16(c+3),r=h[o],i=m(a,c+5,s),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(i):l[r]=[l[r],i]:l[r]=i),c++;return l}function g(e,t,n,i,r){var s,o,a=e.getUint16(n,!r),l={};for(o=0;o<a;o++)l[i[e.getUint16(s=n+12*o+2,!r)]]=f(e,s,t,0,r);return l}function f(e,t,n,i,r){var s,o,a,l,c,u,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),p=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(s=h>4?p:t+8,o=[],l=0;l<h;l++)o[l]=e.getUint8(s+l);return o;case 2:return m(e,s=h>4?p:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(s=h>2?p:t+8,o=[],l=0;l<h;l++)o[l]=e.getUint16(s+2*l,!r);return o;case 4:if(1==h)return e.getUint32(t+8,!r);for(o=[],l=0;l<h;l++)o[l]=e.getUint32(p+4*l,!r);return o;case 5:if(1==h)return c=e.getUint32(p,!r),u=e.getUint32(p+4,!r),(a=new Number(c/u)).numerator=c,a.denominator=u,a;for(o=[],l=0;l<h;l++)c=e.getUint32(p+8*l,!r),u=e.getUint32(p+4+8*l,!r),o[l]=new Number(c/u),o[l].numerator=c,o[l].denominator=u;return o;case 9:if(1==h)return e.getInt32(t+8,!r);for(o=[],l=0;l<h;l++)o[l]=e.getInt32(p+4*l,!r);return o;case 10:if(1==h)return e.getInt32(p,!r)/e.getInt32(p+4,!r);for(o=[],l=0;l<h;l++)o[l]=e.getInt32(p+8*l,!r)/e.getInt32(p+4+8*l,!r);return o}}function m(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function v(e,t){if("Exif"!=m(e,t,4))return!1;var n,i,r,u,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var p=e.getUint32(h+4,!n);if(p<8)return!1;if((i=g(e,h,h+p,o,n)).ExifIFDPointer)for(r in u=g(e,h,h+i.ExifIFDPointer,s,n)){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":u[r]=c[r][u[r]];break;case"ExifVersion":case"FlashpixVersion":u[r]=String.fromCharCode(u[r][0],u[r][1],u[r][2],u[r][3]);break;case"ComponentsConfiguration":u[r]=c.Components[u[r][0]]+c.Components[u[r][1]]+c.Components[u[r][2]]+c.Components[u[r][3]]}i[r]=u[r]}if(i.GPSInfoIFDPointer)for(r in d=g(e,h,h+i.GPSInfoIFDPointer,a,n)){switch(r){case"GPSVersionID":d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]}i[r]=d[r]}return i.thumbnail=function(e,t,n,i){var r=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var s=g(e,t,t+r,l,i);if(s.Compression)switch(s.Compression){case 6:s.JpegIFOffset&&s.JpegIFByteCount&&(s.blob=new Blob([new Uint8Array(e.buffer,t+s.JpegIFOffset,s.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",s.Compression)}else 2==s.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return s}(e,h,p,n),i}function b(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var s=e.childNodes.item(r),o=s.nodeName;if(null==t[o])t[o]=b(s);else{if(null==t[o].push){var a=t[o];t[o]=[],t[o].push(a)}t[o].push(b(s))}}return t}function y(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var s in r){var o=r[s],a=o.nodeName;void 0!==a&&(t[a]=o.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=b(i);else{if(void 0===t[l].push){var c=t[l];t[l]=[],t[l].push(c)}t[l].push(b(i))}}else t=e.textContent;return t}catch(u){console.log(u.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(u(e)?t&&t.call(e):function(e,t){function n(n){var r=d(n);e.exifdata=r||{};var s=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(r(t,n)){var s=t.getUint8(n+7);return s%2!=0&&(s+=1),0===s&&(s=4),p(e,n+8+s,t.getUint16(n+6+s))}n++}}(n);if(e.iptcdata=s||{},i.isXmpEnabled){var o=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=new DOMParser;n<i-4;){if("http"==m(t,n,4)){var s=n-1,o=t.getUint16(n-2)-1,a=m(t,s,o),l=a.indexOf("xmpmeta>")+8,c=(a=a.substring(a.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return a=a.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+a.slice(c),y(r.parseFromString(a,"text/xml"))}n++}}}(n);e.xmpdata=o||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),s=new Uint8Array(r),o=0;o<i;o++)s[o]=n.charCodeAt(o);return r}(e.src));else if(/^blob\:/i.test(e.src))(s=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||s.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(r.response),r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var s;(s=new FileReader).onload=function(e){n(e.target.result)},s.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(u(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(u(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!u(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!u(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!u(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return d(e)},void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(e,t,n,i,o)=>s(e[1],t[1],n[1],i[1],o).map(s=>r(e[0],t[0],n[0],i[0],s)),r=(e,t,n,i,r)=>r*(3*t*Math.pow(r-1,2)+r*(-3*n*r+3*n+i*r))-e*Math.pow(r-1,3),s=(e,t,n,i,r)=>o((i-=r)-3*(n-=r)+3*(t-=r)-(e-=r),3*n-6*t+3*e,3*t-3*e,e).filter(e=>e>=0&&e<=1),o=(e,t,n,i)=>{if(0===e)return((e,t,n)=>{const i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]})(t,n,i);const r=(3*(n/=e)-(t/=e)*t)/3,s=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===r)return[Math.pow(-s,1/3)];if(0===s)return[Math.sqrt(-r),-Math.sqrt(-r)];const o=Math.pow(s/2,2)+Math.pow(r/3,3);if(0===o)return[Math.pow(s/2,.5)-t/3];if(o>0)return[Math.pow(-s/2+Math.sqrt(o),1/3)-Math.pow(s/2+Math.sqrt(o),1/3)-t/3];const a=Math.sqrt(Math.pow(-r/3,3)),l=Math.acos(-s/(2*Math.sqrt(Math.pow(-r/3,3)))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});const r=(e,t,n,i)=>{const r=s(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;let o,a;return e.__zone_symbol__addEventListener?(o="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(o="addEventListener",a="removeEventListener"),e[o](t,n,r),()=>{e[a](t,n,r)}},s=e=>{if(void 0===o)try{const t=Object.defineProperty({},"passive",{get:()=>{o=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){o=!1}return!!o};let o;const a=e=>e instanceof Document?e:e.ownerDocument,l=e=>{let t=!1,n=!1,s=!0,o=!1;const l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,p=l.onWillStart,g=l.onStart,f=l.onEnd,m=l.notCaptured,v=l.onMove,b=l.threshold,y=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=((e,t,n)=>{const i=n*(Math.PI/180),r="x"===e,s=Math.cos(i),o=t*t;let a=0,l=0,c=!1,u=0;return{start(e,t){a=e,l=t,u=0,c=!0},detect(e,t){if(!c)return!1;const n=e-a,i=t-l,d=n*n+i*i;if(d<o)return!1;const h=Math.sqrt(d),p=(r?n:i)/h;return u=p>s?1:p<-s?-1:0,c=!1,!0},isGesture:()=>0!==u,getDirection:()=>u}})(l.direction,l.threshold,l.maxAngle),A=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),C=()=>{t&&(o=!1,v&&v(_))},S=()=>!(A&&!A.capture()||(t=!0,s=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,p?p(_).then(k):k(),0)),k=()=>{w&&(()=>{if("undefined"!=typeof document){const e=document.activeElement;null!==e&&e.blur&&e.blur()}})(),g&&g(_),s=!0},E=()=>{t=!1,n=!1,o=!1,s=!0,A.release()},P=e=>{const n=t,i=s;E(),i&&(c(_,e),n?f&&f(_):m&&m(_))},D=((e,t,n,i,s)=>{let o,l,c,u,d,h,p,g=0;const f=i=>{g=Date.now()+2e3,t(i)&&(!l&&n&&(l=r(e,"touchmove",n,s)),c||(c=r(e,"touchend",v,s)),u||(u=r(e,"touchcancel",v,s)))},m=i=>{g>Date.now()||t(i)&&(!h&&n&&(h=r(a(e),"mousemove",n,s)),p||(p=r(a(e),"mouseup",b,s)))},v=e=>{y(),i&&i(e)},b=e=>{w(),i&&i(e)},y=()=>{l&&l(),c&&c(),u&&u(),l=c=u=void 0},w=()=>{h&&h(),p&&p(),h=p=void 0},_=()=>{y(),w()},x=(t=!0)=>{t?(o||(o=r(e,"touchstart",f,s)),d||(d=r(e,"mousedown",m,s))):(o&&o(),d&&d(),o=d=void 0,_())};return{enable:x,stop:_,destroy:()=>{x(!1),i=n=t=void 0}}})(l.el,e=>{const t=d(e);return!(n||!s)&&(u(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(A.release(),!!A.start()&&(n=!0,0===b?S():(x.start(_.startX,_.startY),!0))))},e=>{t?!o&&s&&(o=!0,c(_,e),requestAnimationFrame(C)):(c(_,e),x.detect(_.currentX,_.currentY)&&(x.isGesture()&&S()||O()))},P,{capture:!1,passive:y}),O=()=>{E(),D.stop(),m&&m(_)};return{enable(e=!0){e||(t&&P(void 0),E()),D.enable(e)},destroy(){A.destroy(),D.destroy()}}},c=(e,t)=>{if(!t)return;const n=e.currentX,i=e.currentY,r=e.currentTime;u(t,e);const s=e.currentX,o=e.currentY,a=(e.currentTime=d(t))-r;if(a>0&&a<100){const t=(o-i)/a;e.velocityX=(s-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=s-e.startX,e.deltaY=o-e.startY,e.event=t},u=(e,t)=>{let n=0,i=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,i=e.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},d=e=>e.timeStamp||Date.now()},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return C}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return u});var i=n("wEJo"),r=n("1vRN");const s="ionViewWillEnter",o="ionViewDidEnter",a="ionViewWillLeave",l="ionViewDidLeave",c="ionViewWillUnload",u=e=>new Promise((t,n)=>{Object(i.f)(()=>{d(e),h(e).then(n=>{n.animation&&n.animation.destroy(),p(e),t(n)},t=>{p(e),n(t)})})}),d=e=>{const t=e.enteringEl,n=e.leavingEl;k(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=async e=>{const t=await g(e);return t&&i.a.isBrowser?f(t,e):m(e)},p=e=>{const t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},g=async e=>{if(e.leavingEl&&e.animated&&0!==e.duration)return e.animationBuilder?e.animationBuilder:"ios"===e.mode?(await Promise.resolve().then(n.bind(null,"lTIg"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"RQGG"))).mdTransitionAnimation},f=async(e,t)=>{await v(t,!0);const n=e(t.baseEl,t);w(t.enteringEl,t.leavingEl);const i=await y(n,t);return t.progressCallback&&t.progressCallback(void 0),i&&_(t.enteringEl,t.leavingEl),{hasCompleted:i,animation:n}},m=async e=>{const t=e.enteringEl,n=e.leavingEl;return await v(e,!1),w(t,n),_(t,n),{hasCompleted:!0}},v=async(e,t)=>{const n=(void 0!==e.deepWait?e.deepWait:t)?[C(e.enteringEl),C(e.leavingEl)]:[A(e.enteringEl),A(e.leavingEl)];await Promise.all(n),await b(e.viewIsReady,e.enteringEl)},b=async(e,t)=>{e&&await e(t)},y=(e,t)=>{const n=t.progressCallback,i=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),i},w=(e,t)=>{x(t,a),x(e,s)},_=(e,t)=>{x(e,o),x(t,l)},x=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},A=e=>e?new Promise(t=>Object(r.c)(e,t)):Promise.resolve(),C=async e=>{const t=e;if(t){if(null!=t.componentOnReady&&null!=await t.componentOnReady())return;await Promise.all(Array.from(t.children).map(C))}},S=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},k=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=e=>e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,13],"./ion-alert.entry.js":["Q8AI",0,14],"./ion-app_8.entry.js":["hgI1",0,15],"./ion-avatar_3.entry.js":["CfoV",0,16],"./ion-back-button.entry.js":["Nt02",0,17],"./ion-backdrop.entry.js":["Q2Bp",18],"./ion-button_2.entry.js":["0Pbj",0,19],"./ion-card_5.entry.js":["ydQj",0,20],"./ion-checkbox.entry.js":["4fMi",0,21],"./ion-chip.entry.js":["czK9",0,22],"./ion-col_3.entry.js":["/CAe",23],"./ion-datetime_3.entry.js":["WgF3",0,24],"./ion-fab_3.entry.js":["uQcF",0,25],"./ion-img.entry.js":["wHD8",26],"./ion-infinite-scroll_2.entry.js":["2lz6",27],"./ion-input.entry.js":["ercB",0,28],"./ion-item-option_3.entry.js":["MGMP",0,29],"./ion-item_8.entry.js":["9bur",0,30],"./ion-loading.entry.js":["cABk",0,31],"./ion-menu_3.entry.js":["kyFE",0,32],"./ion-modal.entry.js":["TvZU",0,33],"./ion-nav_2.entry.js":["vnES",0,34],"./ion-popover.entry.js":["qCuA",0,35],"./ion-progress-bar.entry.js":["0tOe",0,36],"./ion-radio_2.entry.js":["h11V",0,37],"./ion-range.entry.js":["XGij",0,38],"./ion-refresher_2.entry.js":["nYbb",0,39],"./ion-reorder_2.entry.js":["smMY",0,40],"./ion-ripple-effect.entry.js":["STjf",41],"./ion-route_4.entry.js":["k5eQ",0,42],"./ion-searchbar.entry.js":["OR5t",0,43],"./ion-segment_2.entry.js":["fSgp",0,44],"./ion-select_3.entry.js":["lfGF",0,45],"./ion-slide_2.entry.js":["5xYT",46],"./ion-spinner.entry.js":["nI0H",0,47],"./ion-split-pane.entry.js":["NAQR",48],"./ion-tab-bar_2.entry.js":["knkW",0,49],"./ion-tab_2.entry.js":["TpdJ",0,50],"./ion-text.entry.js":["ISmu",0,51],"./ion-textarea.entry.js":["U7LX",0,52],"./ion-toast.entry.js":["L3sA",0,53],"./ion-toggle.entry.js":["IUOf",0,54],"./ion-virtual-scroll.entry.js":["8Mb5",55]};function r(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id="kLfG",e.exports=r},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.16","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","engines":{"npm":"6.14.5","node":"14.4.0"},"scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"3.1.0","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return d}),n.d(t,"shadow",function(){return o});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");const s=e=>document.querySelector(e+".ion-cloned-element"),o=e=>e.shadowRoot||e,a=e=>{const t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){const e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{const n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs");let i=[];if(null!=n){const e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(i=e.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");for(const r of i){const e=r.closest("ion-header"),n=e&&!e.classList.contains("header-collapse-condense-inactive"),i=r.querySelector("ion-back-button"),s=r.classList.contains("buttons-collapse"),o="start"===r.slot||""===r.slot;if(null!==i&&o&&(s&&n&&t||!s))return i}return null},c=(e,t,n,r,a,l)=>{const c=t?`calc(100% - ${l.right+4}px)`:l.left-4+"px",u=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",p=t?"right":"left",g=t?"left":"right",f=n?[{offset:0,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`}],m=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`}],v=Object(i.a)(),b=Object(i.a)(),y=s("ion-back-button"),w=o(y).querySelector(".button-text"),_=o(y).querySelector("ion-icon");y.text=r.text,y.mode=r.mode,y.icon=r.icon,y.color=r.color,y.disabled=r.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),b.addElement(_),v.addElement(w),v.beforeStyles({"transform-origin":p+" center"}).beforeAddWrite(()=>{r.style.setProperty("display","none"),y.style.setProperty(p,c)}).afterAddWrite(()=>{r.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(p)}).keyframes(f),b.beforeStyles({"transform-origin":g+" center"}).keyframes(m),e.addAnimation([v,b])},u=(e,t,n,r,o,a)=>{const l=t?`calc(100% - ${o.right}px)`:o.left+"px",c=t?"-18px":"18px",u=t?"right":"left",d=n?[{offset:0,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.5)`}],h=s("ion-title"),p=Object(i.a)();h.innerText=r.innerText,h.size=r.size,h.color=r.color,p.addElement(h),p.beforeStyles({"transform-origin":u+" center",height:"46px",display:"",position:"relative",[u]:l}).beforeAddWrite(()=>{r.style.setProperty("display","none")}).afterAddWrite(()=>{r.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(d),e.addAnimation(p)},d=(e,t)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",s="opacity",d="transform",h="0%",p=.8,g="rtl"===e.ownerDocument.dir,f=g?"-99.5%":"99.5%",m=g?"33%":"-33%",v=t.enteringEl,b=t.leavingEl,y="back"===t.direction,w=v.querySelector(":scope > ion-content"),_=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),x=v.querySelectorAll(":scope > ion-header > ion-toolbar"),A=Object(i.a)(),C=Object(i.a)();if(A.addElement(v).duration(t.duration||540).easing(t.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),b&&e){const t=Object(i.a)();t.addElement(e),A.addAnimation(t)}if(w||0!==x.length||0!==_.length?(C.addElement(w),C.addElement(_)):C.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(C),y?C.beforeClearStyles([s]).fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(s,p,1):C.beforeClearStyles([s]).fromTo("transform",`translateX(${f})`,`translateX(${h})`),w){const e=o(w).querySelector(".transition-effect");if(e){const t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),r=Object(i.a)(),o=Object(i.a)(),a=Object(i.a)();r.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),o.addElement(t).beforeClearStyles([s]).fromTo(s,0,.1),a.addElement(n).beforeClearStyles([s]).fromTo(s,.03,.7),r.addAnimation([o,a]),C.addAnimation([r])}}const S=v.querySelector("ion-header.header-collapse-condense"),{forward:k,backward:E}=((e,t,n,i,r)=>{const s=l(i,n),o=a(r),d=a(i),h=l(r,n),p=null!==s&&null!==o&&!n,g=null!==d&&null!==h&&n;if(p){const i=o.getBoundingClientRect(),r=s.getBoundingClientRect();u(e,t,n,o,i,r),c(e,t,n,s,i,r)}else if(g){const i=d.getBoundingClientRect(),r=h.getBoundingClientRect();u(e,t,n,d,i,r),c(e,t,n,h,i,r)}return{forward:p,backward:g}})(A,g,y,v,b);if(x.forEach(e=>{const t=Object(i.a)();t.addElement(e),A.addAnimation(t);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const r=Object(i.a)(),a=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive");let u;u=a.filter(y?e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t}:e=>!e.classList.contains("buttons-collapse")),r.addElement(u);const d=Object(i.a)();d.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const p=Object(i.a)();p.addElement(o(e).querySelector(".toolbar-background"));const v=Object(i.a)(),b=e.querySelector("ion-back-button");if(b&&v.addElement(b),t.addAnimation([n,r,d,p,v]),r.fromTo(s,.01,1),d.fromTo(s,.01,1),y)c||n.fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(s,.01,1),d.fromTo("transform",`translateX(${m})`,`translateX(${h})`),v.fromTo(s,.01,1);else if(S||n.fromTo("transform",`translateX(${f})`,`translateX(${h})`).fromTo(s,.01,1),d.fromTo("transform",`translateX(${f})`,`translateX(${h})`),p.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?p.fromTo("transform",g?"translateX(-100%)":"translateX(100%)","translateX(0px)"):p.fromTo(s,.01,"var(--opacity)"),k||v.fromTo(s,.01,1),b&&!k){const e=Object(i.a)();e.addElement(o(b).querySelector(".button-text")).fromTo("transform",g?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(e)}}),b){const e=Object(i.a)(),t=b.querySelector(":scope > ion-content"),n=b.querySelectorAll(":scope > ion-header > ion-toolbar"),a=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(t||0!==n.length||0!==a.length?(e.addElement(t),e.addElement(a)):e.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),A.addAnimation(e),y){e.beforeClearStyles([s]).fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)");const t=Object(r.g)(b);A.afterAddWrite(()=>{"normal"===A.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(s,1,p);if(t){const n=o(t).querySelector(".transition-effect");if(n){const t=n.querySelector(".transition-cover"),r=n.querySelector(".transition-shadow"),o=Object(i.a)(),a=Object(i.a)(),l=Object(i.a)();o.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([s]).fromTo(s,.1,0),l.addElement(r).beforeClearStyles([s]).fromTo(s,.7,.03),o.addAnimation([a,l]),e.addAnimation([o])}}n.forEach(e=>{const t=Object(i.a)();t.addElement(e);const n=Object(i.a)();n.addElement(e.querySelector("ion-title"));const r=Object(i.a)(),a=e.querySelectorAll("ion-buttons,[menuToggle]"),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive"),u=Array.from(a).filter(e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t});r.addElement(u);const p=Object(i.a)(),f=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");f.length>0&&p.addElement(f);const v=Object(i.a)();v.addElement(o(e).querySelector(".toolbar-background"));const b=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([n,r,p,b,v]),A.addAnimation(t),b.fromTo(s,.99,0),r.fromTo(s,.99,0),p.fromTo(s,.99,0),y){if(c||n.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)").fromTo(s,.99,0),p.fromTo("transform",`translateX(${h})`,g?"translateX(-100%)":"translateX(100%)"),v.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?v.fromTo("transform","translateX(0px)",g?"translateX(-100%)":"translateX(100%)"):v.fromTo(s,"var(--opacity)",0),w&&!E){const e=Object(i.a)();e.addElement(o(w).querySelector(".button-text")).fromTo("transform",`translateX(${h})`,`translateX(${(g?-124:124)+"px"})`),t.addAnimation(e)}}else c||n.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(s,.99,0).afterClearStyles([d,s]),p.fromTo("transform",`translateX(${h})`,`translateX(${m})`).afterClearStyles([d,s]),b.afterClearStyles([s]),n.afterClearStyles([s]),r.afterClearStyles([s])})}return A}catch(n){throw n}}},"m9/o":function(e,t,n){"use strict";n.r(t);var i={};function r(e){return"function"==typeof e}n.r(i),n.d(i,"Any",function(){return FN}),n.d(i,"BaseBlock",function(){return IF}),n.d(i,"BaseStringBlock",function(){return MF}),n.d(i,"BitString",function(){return QF}),n.d(i,"BmpString",function(){return bN}),n.d(i,"Boolean",function(){return qF}),n.d(i,"CharacterString",function(){return DN}),n.d(i,"Choice",function(){return NN}),n.d(i,"Constructed",function(){return HF}),n.d(i,"DATE",function(){return TN}),n.d(i,"DateTime",function(){return BN}),n.d(i,"Duration",function(){return RN}),n.d(i,"EndOfContent",function(){return WF}),n.d(i,"Enumerated",function(){return iN}),n.d(i,"GeneralString",function(){return PN}),n.d(i,"GeneralizedTime",function(){return IN}),n.d(i,"GraphicString",function(){return kN}),n.d(i,"HexBlock",function(){return SF}),n.d(i,"IA5String",function(){return SN}),n.d(i,"Integer",function(){return nN}),n.d(i,"Null",function(){return $F}),n.d(i,"NumericString",function(){return _N}),n.d(i,"ObjectIdentifier",function(){return oN}),n.d(i,"OctetString",function(){return ZF}),n.d(i,"Primitive",function(){return NF}),n.d(i,"PrintableString",function(){return xN}),n.d(i,"RawData",function(){return zN}),n.d(i,"RelativeObjectIdentifier",function(){return cN}),n.d(i,"Repeated",function(){return VN}),n.d(i,"Sequence",function(){return uN}),n.d(i,"Set",function(){return dN}),n.d(i,"TIME",function(){return LN}),n.d(i,"TeletexString",function(){return AN}),n.d(i,"TimeOfDay",function(){return MN}),n.d(i,"UTCTime",function(){return ON}),n.d(i,"UniversalString",function(){return wN}),n.d(i,"Utf8String",function(){return mN}),n.d(i,"ValueBlock",function(){return EF}),n.d(i,"VideotexString",function(){return CN}),n.d(i,"ViewWriter",function(){return _F}),n.d(i,"VisibleString",function(){return EN}),n.d(i,"compareSchema",function(){return jN}),n.d(i,"fromBER",function(){return zF}),n.d(i,"verifySchema",function(){return HN});let s=!1;const o={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 s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function a(e){setTimeout(()=>{throw e},0)}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete(){}},c=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const d=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(r(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(a){t=a instanceof d?p(a.errors):[a]}}if(c(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(u(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof d?t=t.concat(p(a.errors)):t.push(a)}}}if(t)throw new d(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function p(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const g=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[g](){return this}static create(e,t,n){const i=new f(e,t,n);return i.syncErrorThrowable=!1,i}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 m extends f{constructor(e,t,n,i){let s;super(),this._parentSubscriber=e;let o=this;r(t)?s=t:t&&(s=t.next,n=t.error,i=t.complete,t!==l&&(o=Object.create(t),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.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}=o;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):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.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(),o.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(a(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const v=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function b(e){return e}let y=(()=>{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:i}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[g])return e[g]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.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 f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=w(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[v](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?b:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=w(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function w(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const _=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class x extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class A extends f{constructor(e){super(e),this.destination=e}}let C=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[g](){return new A(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].next(e)}}error(e){if(this.closed)throw new _;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new _;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new _;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new _;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new x(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=(e,t)=>new S(e,t),e})();class S extends C{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}function E(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new P(e,t))}}class P{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new D(e,this.project,this.thisArg))}}class D extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const O=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const T=I(),M=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function B(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e&&"function"==typeof e[v])return i=e,e=>{const t=i[v]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(M(e))return O(e);if(B(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,a),e);if(e&&"function"==typeof e[T])return t=e,e=>{const n=t[T]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,i};function L(e,t){return new y(n=>{const i=new h;let r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function F(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[v]}(e))return function(e,t){return new y(n=>{const i=new h;return i.add(t.schedule(()=>{const r=e[v]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(B(e))return function(e,t){return new y(n=>{const i=new h;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(M(e))return L(e,t);if(function(e){return e&&"function"==typeof e[T]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(n=>{const i=new h;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=e[T](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof y?e:new y(R(e))}class N extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function z(e,t){if(!t.closed)return e instanceof y?e.subscribe(t):R(e)(t)}function j(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(j((n,i)=>F(e(n,i)).pipe(E((e,r)=>t(n,e,i,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new H(e,n)))}class H{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new U(e,this.project,this.concurrent))}}class U extends V{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.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new N(this),n=this.destination;n.add(t);const i=z(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function W(e=Number.POSITIVE_INFINITY){return j(b,e)}function G(e,t){return t?L(e,t):new y(O(e))}function q(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return k(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof y?e[0]:W(t)(G(e,n))}function Y(){return function(e){return e.lift(new Z(e))}}class Z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new K(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class K extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Q extends y{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 h,e.add(this.source.subscribe(new J(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return Y()(this)}}const X=(()=>{const e=Q.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 J extends A{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()}}}function ee(){return new C}function te(){return e=>{return Y()((t=ee,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,X);return i.source=e,i.subjectFactory=n,i})(e));var t}}function ne(e){for(let t in e)if(e[t]===ne)return t;throw Error("Could not find renamed property on target object.")}function ie(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function re(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(re).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const oe=ne({__forward_ref__:ne});function ae(e){return e.__forward_ref__=ae,e.toString=function(){return re(this())},e}function le(e){return ce(e)?e():e}function ce(e){return"function"==typeof e&&e.hasOwnProperty(oe)&&e.__forward_ref__===ae}class ue extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function he(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}function pe(e,t){const n=t?" in "+t:"";throw new ue("201",`No provider for ${he(e)} found${n}`)}function ge(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const fe=ge;function me(e){return{providers:e.providers||[],imports:e.imports||[]}}function ve(e){return be(e,we)||be(e,xe)}function be(e,t){return e.hasOwnProperty(t)?e[t]:null}function ye(e){return e&&(e.hasOwnProperty(_e)||e.hasOwnProperty(Ae))?e[_e]:null}const we=ne({\u0275prov:ne}),_e=ne({\u0275inj:ne}),xe=ne({ngInjectableDef:ne}),Ae=ne({ngInjectorDef:ne});var Ce=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let Se;function ke(e){const t=Se;return Se=e,t}function Ee(e,t,n){const i=ve(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ce.Optional?null:void 0!==t?t:void pe(re(e),"Injector")}function Pe(e){return{toString:e}.toString()}var De=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Oe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Ie="undefined"!=typeof globalThis&&globalThis,Te="undefined"!=typeof window&&window,Me="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Be="undefined"!=typeof global&&global,Re=Ie||Be||Te||Me,Le={},Fe=[],Ne=[],Ve=ne({\u0275cmp:ne}),ze=ne({\u0275dir:ne}),je=ne({\u0275pipe:ne}),He=ne({\u0275mod:ne}),Ue=ne({\u0275loc:ne}),We=ne({\u0275fac:ne}),$e=ne({__NG_ELEMENT_ID__:ne});let Ge=0;function qe(e){return Pe(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===De.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Oe.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=Ge++,n.inputs=Xe(e.inputs,t),n.outputs=Xe(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ye):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ze):null,n})}function Ye(e){return tt(e)||function(e){return e[ze]||null}(e)}function Ze(e){return function(e){return e[je]||null}(e)}const Ke={};function Qe(e){const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Pe(()=>{Ke[e.id]=e.type}),t}function Xe(e,t){if(null==e)return Le;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const Je=qe;function et(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function tt(e){return e[Ve]||null}function nt(e,t){const n=e[He]||null;if(!n&&!0===t)throw new Error(`Type ${re(e)} does not have '\u0275mod' property.`);return n}function it(e){return Array.isArray(e)&&"object"==typeof e[1]}function rt(e){return Array.isArray(e)&&!0===e[1]}function st(e){return 0!=(8&e.flags)}function ot(e){return 2==(2&e.flags)}function at(e){return 1==(1&e.flags)}function lt(e){return null!==e.template}function ct(e,t){return e.hasOwnProperty(We)?e[We]:null}class ut{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function dt(){return ht}function ht(e){return e.type.prototype.ngOnChanges&&(e.setInput=gt),pt}function pt(){const e=ft(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Le)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function gt(e,t,n,i){const r=ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Le,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new ut(l&&l.currentValue,t,o===Le),e[i]=t}function ft(e){return e.__ngSimpleChanges__||null}dt.ngInherit=!0;let mt=void 0;function vt(){return void 0!==mt?mt:"undefined"!=typeof document?document:void 0}function bt(e){return!!e.listen}const yt={createRenderer:(e,t)=>vt()};function wt(e){for(;Array.isArray(e);)e=e[0];return e}function _t(e,t){return wt(t[e])}function xt(e,t){return wt(t[e.index])}function At(e,t){return e.data[t]}function Ct(e,t){return e[t]}function St(e,t){const n=t[e];return it(n)?n:n[0]}function kt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Et(e){return 4==(4&e[2])}function Pt(e){return 128==(128&e[2])}function Dt(e,t){return null==t?null:e[t]}function Ot(e){e[18]=0}function It(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Tt={lFrame:rn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Mt(){return Tt.bindingsEnabled}function Bt(){return Tt.lFrame.lView}function Rt(){return Tt.lFrame.tView}function Lt(e){Tt.lFrame.contextLView=e}function Ft(){let e=Nt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Nt(){return Tt.lFrame.currentTNode}function Vt(e,t){const n=Tt.lFrame;n.currentTNode=e,n.isParent=t}function zt(){return Tt.lFrame.isParent}function jt(){Tt.lFrame.isParent=!1}function Ht(){return Tt.isInCheckNoChangesMode}function Ut(e){Tt.isInCheckNoChangesMode=e}function Wt(){const e=Tt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $t(){return Tt.lFrame.bindingIndex}function Gt(){return Tt.lFrame.bindingIndex++}function qt(e){const t=Tt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yt(e,t){const n=Tt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zt(t)}function Zt(e){Tt.lFrame.currentDirectiveIndex=e}function Kt(e){const t=Tt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Qt(){return Tt.lFrame.currentQueryIndex}function Xt(e){Tt.lFrame.currentQueryIndex=e}function Jt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function en(e,t,n){if(n&Ce.SkipSelf){let i=t,r=e;for(;i=i.parent,!(null!==i||n&Ce.Host||(i=Jt(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}const i=Tt.lFrame=nn();return i.currentTNode=t,i.lView=e,!0}function tn(e){const t=nn(),n=e[1];Tt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function nn(){const e=Tt.lFrame,t=null===e?null:e.child;return null===t?rn(e):t}function rn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function sn(){const e=Tt.lFrame;return Tt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const on=sn;function an(){const e=sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ln(){return Tt.lFrame.selectedIndex}function cn(e){Tt.lFrame.selectedIndex=e}function un(){const e=Tt.lFrame;return At(e.tView,e.selectedIndex)}function dn(){Tt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function hn(){Tt.lFrame.currentNamespace=null}function pn(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function gn(e,t,n){vn(e,t,3,n)}function fn(e,t,n,i){(3&e[2])===n&&vn(e,t,n,i)}function mn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vn(e,t,n,i){const r=null!=i?i:-1,s=t.length-1;let o=0;for(let a=void 0!==i?65535&e[18]:0;a<s;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<r||-1==r)&&(bn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function bn(e,t,n,i){const r=n[i]<0,s=n[i+1],o=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}class yn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function wn(e,t,n){const i=bt(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],l=n[r++];i?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=n[++r];xn(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function _n(e){return 3===e||4===e||6===e}function xn(e){return 64===e.charCodeAt(0)}function An(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Cn(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Cn(e,t,n,i,r){let s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){const n=e[s++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=s-1;break}}}for(;s<e.length;){const t=e[s];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function Sn(e){return-1!==e}function kn(e){return 32767&e}function En(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}let Pn=!0;function Dn(e){const t=Pn;return Pn=e,t}let On=0;function In(e,t){const n=Mn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Tn(i.data,e),Tn(t,null),Tn(i.blueprint,null));const r=Bn(e,t),s=e.injectorIndex;if(Sn(r)){const e=kn(r),n=En(r,t),i=n[1].data;for(let r=0;r<8;r++)t[s+r]=n[e+r]|i[e+r]}return t[s+8]=r,s}function Tn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Bn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(i=2===t?e.declTNode:1===t?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Rn(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty($e)&&(i=n[$e]),null==i&&(i=n[$e]=On++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Ln(e,t,n){if(n&Ce.Optional)return e;pe(t,"NodeInjector")}function Fn(e,t,n,i){if(n&Ce.Optional&&void 0===i&&(i=null),0==(n&(Ce.Self|Ce.Host))){const r=e[9],s=ke(void 0);try{return r?r.get(t,i,n&Ce.Optional):Ee(t,i,n&Ce.Optional)}finally{ke(s)}}return Ln(i,t,n)}function Nn(e,t,n,i=Ce.Default,r){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty($e)?e[$e]:void 0;return"number"==typeof t?t>=0?255&t:zn:t}(n);if("function"==typeof s){if(!en(t,e,i))return i&Ce.Host?Ln(r,n,i):Fn(t,n,i,r);try{const e=s();if(null!=e||i&Ce.Optional)return e;pe(n)}finally{on()}}else if("number"==typeof s){let r=null,o=Mn(e,t),a=-1,l=i&Ce.Host?t[16][6]:null;for((-1===o||i&Ce.SkipSelf)&&(a=-1===o?Bn(e,t):t[o+8],-1!==a&&$n(i,!1)?(r=t[1],o=kn(a),t=En(a,t)):o=-1);-1!==o;){const e=t[1];if(Wn(s,o,e.data)){const e=jn(o,t,n,r,i,l);if(e!==Vn)return e}a=t[o+8],-1!==a&&$n(i,t[1].data[o+8]===l)&&Wn(s,o,t)?(r=e,o=kn(a),t=En(a,t)):o=-1}}}return Fn(t,n,i,r)}const Vn={};function zn(){return new Gn(Ft(),Bt())}function jn(e,t,n,i,r,s){const o=t[1],a=o.data[e+8],l=Hn(a,o,n,null==i?ot(a)&&Pn:i!=o&&0!=(3&a.type),r&Ce.Host&&s===a);return null!==l?Un(t,o,l,a):Vn}function Hn(e,t,n,i,r){const s=e.providerIndexes,o=t.data,a=1048575&s,l=e.directiveStart,c=s>>20,u=r?a+c:e.directiveEnd;for(let d=i?a:a+c;d<u;d++){const e=o[d];if(d<l&&n===e||d>=l&&e.type===n)return d}if(r){const e=o[l];if(e&&lt(e)&&e.type===n)return l}return null}function Un(e,t,n,i){let r=e[n];const s=t.data;if(r instanceof yn){const o=r;o.resolving&&function(e,t){throw new ue("200","Circular dependency in DI detected for "+e)}(he(s[n]));const a=Dn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ke(o.injectImpl):null;en(e,i,Ce.Default);try{r=e[n]=o.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const i=ht(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==l&&ke(l),Dn(a),o.resolving=!1,on()}}return r}function Wn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function $n(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class Gn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Nn(this._tNode,this._lView,e,void 0,t)}}function qn(e){return Pe(()=>{const t=e.prototype.constructor,n=t[We]||Yn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[We]||Yn(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function Yn(e){return ce(e)?()=>{const t=Yn(le(e));return t&&t()}:ct(e)}function Zn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const r=n[i];if(_n(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(r===t)return n[i+1];i+=2}}}return null}(Ft(),e)}function Kn(e,t,n){return Pe(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Qn=function(){return Kn("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Zn(e)}))}();class Xn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ge({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Jn=new Xn("AnalyzeForEntryComponents"),ei=Function;function ti(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),ti(i,t)):t!==e&&t.push(i)}return t}function ni(e,t){e.forEach(e=>Array.isArray(e)?ni(e,t):t(e))}function ii(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ri(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function si(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function oi(e,t,n){let i=li(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ai(e,t){const n=li(e,t);if(n>=0)return e[1|n]}function li(e,t){return function(e,t,n){let i=0,r=e.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=e[n<<1];if(t===s)return n<<1;s>t?r=n:i=n+1}return~(r<<1)}(e,t)}const ci={},ui=/\n/gm,di=ne({provide:String,useValue:ne});let hi=void 0;function pi(e){const t=hi;return hi=e,t}function gi(e,t=Ce.Default){if(void 0===hi)throw new Error("inject() must be called from an injection context");return null===hi?Ee(e,void 0,t):hi.get(e,t&Ce.Optional?null:void 0,t)}function fi(e,t=Ce.Default){return(Se||gi)(le(e),t)}const mi=fi;function vi(e){const t=[];for(let n=0;n<e.length;n++){const i=le(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=Ce.Default;for(let t=0;t<i.length;t++){const r=i[t],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?e=r.token:n|=s:e=r}t.push(fi(e,n))}else t.push(fi(i))}return t}function bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const yi=bi(Kn("Inject",e=>({token:e})),-1),wi=bi(Kn("Optional"),8),_i=bi(Kn("SkipSelf"),4);let xi,Ai;function Ci(e){var t;return(null===(t=function(){if(void 0===xi&&(xi=null,Re.trustedTypes))try{xi=Re.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return xi}())||void 0===t?void 0:t.createHTML(e))||e}function Si(e){var t;return(null===(t=function(){if(void 0===Ai&&(Ai=null,Re.trustedTypes))try{Ai=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Ai}())||void 0===t?void 0:t.createHTML(e))||e}class ki{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Ei extends ki{getTypeName(){return"HTML"}}class Pi extends ki{getTypeName(){return"Style"}}class Di extends ki{getTypeName(){return"Script"}}class Oi extends ki{getTypeName(){return"URL"}}class Ii extends ki{getTypeName(){return"ResourceURL"}}function Ti(e){return e instanceof ki?e.changingThisBreaksApplicationSecurity:e}function Mi(e,t){const n=Bi(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Bi(e){return e instanceof ki&&e.getTypeName()||null}class Ri{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ci(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Li{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ci(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ci(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ni=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Vi(e){return(e=String(e)).match(Fi)||e.match(Ni)?e:"unsafe:"+e}function zi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ji(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Hi=zi("area,br,col,hr,img,wbr"),Ui=zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wi=zi("rp,rt"),$i=ji(Wi,Ui),Gi=ji(Hi,ji(Ui,zi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ji(Wi,zi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$i),qi=zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yi=zi("srcset"),Zi=ji(qi,Yi,zi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ki=zi("script,style,template");class Qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Gi.hasOwnProperty(t))return this.sanitizedSomething=!0,!Ki.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,s=t.toLowerCase();if(!Zi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=e.value;qi[s]&&(o=Vi(o)),Yi[s]&&(i=o,o=(i=String(i)).split(",").map(e=>Vi(e.trim())).join(", ")),this.buf.push(" ",t,'="',er(o),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Gi.hasOwnProperty(t)&&!Hi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(er(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const Xi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ji=/([^\#-~ |!])/g;function er(e){return e.replace(/&/g,"&amp;").replace(Xi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ji,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let tr;function nr(e,t){let n=null;try{tr=tr||function(e){const t=new Li(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch(e){return!1}}()?new Ri(t):t}(e);let i=t?String(t):"";n=tr.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=tr.getInertBodyElement(i)}while(i!==s);return Ci((new Qi).sanitizeChildren(ir(n)||n))}finally{if(n){const e=ir(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ir(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var rr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function sr(e){const t=ar();return t?Si(t.sanitize(rr.HTML,e)||""):Mi(e,"HTML")?Si(Ti(e)):nr(vt(),de(e))}function or(e){const t=ar();return t?t.sanitize(rr.URL,e)||"":Mi(e,"URL")?Ti(e):Vi(de(e))}function ar(){const e=Bt();return e&&e[12]}function lr(e){return e.ngDebugContext}function cr(e){return e.ngOriginalError}function ur(e,...t){e.error(...t)}class dr{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||ur}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?lr(e)?lr(e):this._findContext(cr(e)):null}_findOriginalError(e){let t=cr(e);for(;t&&cr(t);)t=cr(t);return t}}function hr(e,t){e.__ngContext__=t}const pr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function gr(e){return{name:"window",target:e.ownerDocument.defaultView}}function fr(e){return{name:"body",target:e.ownerDocument.body}}function mr(e){return e instanceof Function?e():e}var vr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function br(e,t){return(void 0)(e,t)}function yr(e){const t=e[3];return rt(t)?t[3]:t}function wr(e){return xr(e[13])}function _r(e){return xr(e[4])}function xr(e){for(;null!==e&&!rt(e);)e=e[4];return e}function Ar(e,t,n,i,r){if(null!=i){let s,o=!1;rt(i)?s=i:it(i)&&(o=!0,i=i[0]);const a=wt(i);0===e&&null!==n?null==r?Ir(t,n,a):Or(t,n,a,r||null,!0):1===e&&null!==n?Or(t,n,a,r||null,!0):2===e?function(e,t,n){const i=Mr(e,t);i&&function(e,t,n,i){bt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,i,r){const s=n[7];s!==wt(n)&&Ar(t,e,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];jr(r[1],r,e,t,i,s)}}(t,e,s,n,r)}}function Cr(e,t,n){return bt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Sr(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,It(r,-1)),n.splice(i,1)}function kr(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&Sr(s,i),t>0&&(e[n-1][4]=i[4]);const o=ri(e,10+t);jr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Er(e,t){if(!(256&t[2])){const n=t[11];bt(n)&&n.destroyNode&&jr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Pr(e[1],e);for(;t;){let n=null;if(it(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)it(t)&&Pr(t[1],t),t=t[3];null===t&&(t=e),it(t)&&Pr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Pr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof yn)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const e=n[s+1],o="function"==typeof e?e(t):wt(t[e]),a=i[r=n[s+2]],l=n[s+3];"boolean"==typeof l?o.removeEventListener(n[s],a,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const e=i[r=n[s+1]];n[s].call(e)}if(null!==i){for(let e=r+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&bt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&rt(t[3])){n!==t[3]&&Sr(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Dr(e,t,n){return function(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===Oe.None||t===Oe.Emulated)return null}return xt(i,n)}(e,t.parent,n)}function Or(e,t,n,i,r){bt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Ir(e,t,n){bt(e)?e.appendChild(t,n):t.appendChild(n)}function Tr(e,t,n,i,r){null!==i?Or(e,t,n,i,r):Ir(e,t,n)}function Mr(e,t){return bt(e)?e.parentNode(t):t.parentNode}function Br(e,t,n){return Rr(e,t,n)}let Rr=function(e,t,n){return 40&e.type?xt(e,n):null};function Lr(e,t,n,i){const r=Dr(e,i,t),s=t[11],o=Br(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)Tr(s,r,n[a],o,!1);else Tr(s,r,n,o,!1)}function Fr(e,t){if(null!==t){const n=t.type;if(3&n)return xt(t,e);if(4&n)return Vr(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return Fr(e,n);{const n=e[t.index];return rt(n)?Vr(-1,n):wt(n)}}if(32&n)return br(t,e)()||wt(e[t.index]);{const n=Nr(e,t);return null!==n?Array.isArray(n)?n[0]:Fr(yr(e[16]),n):Fr(e,t.next)}}return null}function Nr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Vr(e,t){const n=10+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return Fr(e,i)}return t[7]}function zr(e,t,n,i,r,s,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===t&&(a&&hr(wt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)zr(e,t,n.child,i,r,s,!1),Ar(t,e,r,a,s);else if(32&l){const o=br(n,i);let l;for(;l=o();)Ar(t,e,r,l,s);Ar(t,e,r,a,s)}else 16&l?Hr(e,t,i,n,r,s):Ar(t,e,r,a,s);n=o?n.projectionNext:n.next}}function jr(e,t,n,i,r,s){zr(n,i,e.firstChild,t,r,s,!1)}function Hr(e,t,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ar(t,e,r,a[l],s);else zr(e,t,a,o[3],r,s,!0)}function Ur(e,t,n){bt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Wr(e,t,n){bt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function $r(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===i||e.charCodeAt(r+n)<=32)return r}n=r+1}}function Gr(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==$r(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function qr(e){return 4===e.type&&"ng-template"!==e.value}function Yr(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Zr(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(_n(e[t]))return t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Yr(e,l,n)||""===l&&1===t.length){if(Kr(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==e.attrs){if(!Gr(e.attrs,c,n)){if(Kr(i))return!1;o=!0}continue}const u=Qr(8&i?"class":l,r,qr(e),n);if(-1===u){if(Kr(i))return!1;o=!0;continue}if(""!==c){let e;e=u>s?"":r[u+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==$r(t,c,0)||2&i&&c!==e){if(Kr(i))return!1;o=!0}}}}else{if(!o&&!Kr(i)&&!Kr(l))return!1;if(o&&Kr(l))continue;o=!1,i=l|1&i}}return Kr(i)||o}function Kr(e){return 0==(1&e)}function Qr(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let n=!1;for(;r<t.length;){const i=t[r];if(i===e)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Xr(e,t,n=!1){for(let i=0;i<t.length;i++)if(Zr(e,t[i],n))return!0;return!1}function Jr(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function es(e,t){return e?":not("+t.trim()+")":t}function ts(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&i){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Kr(o)||(t+=es(s,r),r=""),i=o,s=s||!Kr(i);n++}return""!==r&&(t+=es(s,r)),t}const ns={};function is(e){rs(Rt(),Bt(),ln()+e,Ht())}function rs(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&gn(t,i,n)}else{const i=e.preOrderHooks;null!==i&&fn(t,i,0,n)}cn(n)}function ss(e,t){return e<<17|t<<2}function os(e){return e>>17&32767}function as(e){return 2|e}function ls(e){return(131068&e)>>2}function cs(e,t){return-131069&e|t<<2}function us(e){return 1|e}function ds(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=e.data[s];Xt(r),n.contentQueries(2,t[s],s)}}}function hs(e,t,n,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Ot(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=s,u[16]=2==t.type?e[16]:u,u}function ps(e,t,n,i,r){let s=e.data[t];if(null===s)s=function(e,t,n,i,r){const s=Nt(),o=zt(),a=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(e,t,n,i,r),Tt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const e=function(){const e=Tt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===e?-1:e.injectorIndex}return Vt(s,!0),s}function gs(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function fs(e,t,n){tn(t);try{const i=e.viewQuery;null!==i&&$s(1,i,n);const r=e.template;null!==r&&bs(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&ds(e,t),e.staticViewQueries&&$s(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)zs(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,an()}}function ms(e,t,n,i){const r=t[2];if(256==(256&r))return;tn(t);const s=Ht();try{Ot(t),Tt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&bs(e,t,n,2,i);const o=3==(3&r);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&gn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&fn(t,n,0,null),mn(t,0)}if(function(e){for(let t=wr(e);null!==t;t=_r(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],i=n[3];0==(1024&n[2])&&It(i,1),n[2]|=1024}}}(t),function(e){for(let t=wr(e);null!==t;t=_r(t))for(let e=10;e<t.length;e++){const n=t[e],i=n[1];Pt(n)&&ms(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&ds(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&gn(t,n)}else{const n=e.contentHooks;null!==n&&fn(t,n,1),mn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)cn(~i);else{const r=i,s=n[++e],o=n[++e];Yt(s,r),o(2,t[r])}}}finally{cn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Ns(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&$s(2,l,i),!s)if(o){const n=e.viewCheckHooks;null!==n&&gn(t,n)}else{const n=e.viewHooks;null!==n&&fn(t,n,2),mn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,It(t[3],-1))}finally{an()}}function vs(e,t,n,i){const r=t[10],s=!Ht(),o=Et(t);try{s&&!o&&r.begin&&r.begin(),o&&fs(e,t,i),ms(e,t,n,i)}finally{s&&!o&&r.end&&r.end()}}function bs(e,t,n,i,r){const s=ln();try{cn(-1),2&i&&t.length>20&&rs(e,t,20,Ht()),n(i,r)}finally{cn(s)}}function ys(e,t,n){if(st(t)){const i=t.directiveEnd;for(let r=t.directiveStart;r<i;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function ws(e,t,n){Mt()&&(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||In(n,t),hr(i,t);const o=n.initialInputs;for(let a=r;a<s;a++){const i=e.data[a],s=lt(i);s&&Bs(t,n,i);const l=Un(t,e,a,n);hr(l,t),null!==o&&Rs(0,a-r,l,i,0,o),s&&(St(n.index,t)[8]=l)}}(e,t,n,xt(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=Tt.lFrame.currentDirectiveIndex;try{cn(s);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];Zt(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Ds(i,r)}}finally{cn(-1),Zt(o)}}(e,t,n))}function _s(e,t,n=xt){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}function xs(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=As(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function As(e,t,n,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:ns);return n}(u,d),p="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Cs(e,t,n,i){const r=qs(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Ys(e).push(i,r.length-1))}function Ss(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ks(e,t,n,i,r,s,o,a){const l=xt(t,n);let c,u=t.inputs;var d;!a&&null!=u&&(c=u[i])?(Qs(e,n,c,i,r),ot(t)&&function(e,t){const n=St(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(d=i)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,r=null!=o?o(r,t.value||"",i):r,bt(s)?s.setProperty(l,i,r):xn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Es(e,t,n,i){let r=!1;if(Mt()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Xr(n,o.selectors,!1)&&(r||(r=[]),Rn(In(n,t),e,o.type),lt(o)?(Os(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==s){r=!0,Ts(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,l=gs(e,t,s.length,null);for(let r=0;r<s.length;r++){const c=s[r];n.mergedAttrs=An(n.mergedAttrs,c.hostAttrs),Ms(e,n,t,l,c),Is(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,i=e.data,r=t.attrs,s=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=i[l],n=e.inputs,c=null===r||qr(t)?null:Ls(n,r);s.push(c),o=Ss(n,l,o),a=Ss(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=o,t.outputs=a}(e,n)}o&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new ue("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,o)}return n.mergedAttrs=An(n.mergedAttrs,n.attrs),r}function Ps(e,t,n,i,r,s){const o=s.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const s=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function Ds(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Os(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Is(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;lt(t)&&(n[""]=e)}}function Ts(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ms(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=ct(r.type)),o=new yn(s,lt(r),null);e.blueprint[i]=o,n[i]=o,Ps(e,t,0,i,gs(e,n,r.hostVars,ns),r)}function Bs(e,t,n){const i=xt(t,e),r=xs(n),s=e[10],o=js(e,hs(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=o}function Rs(e,t,n,i,r,s){const o=s[t];if(null!==o){const e=i.setInput;for(let t=0;t<o.length;){const r=o[t++],s=o[t++],a=o[t++];null!==e?i.setInput(n,a,r,s):n[s]=a}}}function Ls(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Fs(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Ns(e,t){const n=St(t,e);if(Pt(n)){const e=n[1];80&n[2]?ms(e,n,e.template,n[8]):n[5]>0&&Vs(n)}}function Vs(e){for(let n=wr(e);null!==n;n=_r(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];ms(e,t,e.template,t[8])}else t[5]>0&&Vs(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=St(t[n],e);Pt(i)&&i[5]>0&&Vs(i)}}function zs(e,t){const n=St(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),fs(i,n,n[8])}function js(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Hs(e){for(;e;){e[2]|=64;const t=yr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Us(e,t,n){const i=t[10];i.begin&&i.begin();try{ms(e,t,e.template,n)}catch(r){throw Ks(t,r),r}finally{i.end&&i.end()}}function Ws(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=kt(n),r=i[1];vs(r,i,r.template,n)}}(e[8])}function $s(e,t,n){Xt(0),t(e,n)}const Gs=(()=>Promise.resolve(null))();function qs(e){return e[7]||(e[7]=[])}function Ys(e){return e.cleanup||(e.cleanup=[])}function Zs(e,t,n){return(null===e||lt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Ks(e,t){const n=e[9],i=n?n.get(dr,null):null;i&&i.handleError(t)}function Qs(e,t,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Xs(e,t,n){const i=_t(t,e);!function(e,t,n){bt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Js(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?s=e:1==s?r=se(r,e):2==s&&(i=se(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}const eo=new Xn("INJECTOR",-1);class to{get(e,t=ci){if(t===ci){const t=new Error(`NullInjectorError: No provider for ${re(e)}!`);throw t.name="NullInjectorError",t}return t}}const no=new Xn("Set Injector scope."),io={},ro={},so=[];let oo=void 0;function ao(){return void 0===oo&&(oo=new to),oo}function lo(e,t=null,n=null,i){return new co(e,n,t||ao(),i)}class co{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&ni(t,n=>this.processProvider(n,e,t)),ni([e],e=>this.processInjectorType(e,[],r)),this.records.set(eo,po(void 0,this));const s=this.records.get(no);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof e?null:re(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ci,n=Ce.Default){this.assertNotDestroyed();const i=pi(this);try{if(!(n&Ce.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Xn)&&ve(e);t=n&&this.injectableDefInScope(n)?po(uo(e),io):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Ce.Self?ao():this.parent).get(e,t=n&Ce.Optional&&t===ci?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(re(e)),i)throw s;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=re(t);if(Array.isArray(t))r=t.map(re).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):re(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(ui,"\n  ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{pi(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(re(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=le(e)))return!1;let i=ye(e);const r=null==i&&e.ngModule||void 0,s=void 0===r?e:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=ye(r)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(s);try{ni(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];ni(i,e=>this.processProvider(e,n,i||so))}}this.injectorDefTypes.add(s);const a=ct(s)||(()=>new s);this.records.set(s,po(a,io));const l=i.providers;if(null!=l&&!o){const t=e;ni(l,e=>this.processProvider(e,t,l))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=fo(e=le(e))?e:le(e&&e.provide);const r=function(e,t,n){return go(e)?po(void 0,e.useValue):po(ho(e),io)}(e);if(fo(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=po(void 0,io,!0),t.factory=()=>vi(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,r)}hydrate(e,t){var n;return t.value===io&&(t.value=ro,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function uo(e){const t=ve(e),n=null!==t?t.factory:ct(e);if(null!==n)return n;if(e instanceof Xn)throw new Error(`Token ${re(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=si(t,"?");throw new Error(`Can't resolve all parameters for ${re(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[we]||e[xe]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function ho(e,t,n){let i=void 0;if(fo(e)){const t=le(e);return ct(t)||uo(t)}if(go(e))i=()=>le(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...vi(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>fi(le(e.useExisting));else{const t=le(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ct(t)||uo(t);i=()=>new t(...vi(e.deps))}var r;return i}function po(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function go(e){return null!==e&&"object"==typeof e&&di in e}function fo(e){return"function"==typeof e}const mo=function(e,t,n){return function(e,t=null,n=null,i){const r=lo(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let vo=(()=>{class e{static create(e,t){return Array.isArray(e)?mo(e,t,""):mo(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ci,e.NULL=new to,e.\u0275prov=ge({token:e,providedIn:"any",factory:()=>fi(eo)}),e.__NG_ELEMENT_ID__=-1,e})();function bo(e,t){pn(kt(e)[1],Ft())}function yo(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r=void 0;if(lt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const t=e;t.inputs=wo(e.inputs),t.declaredInputs=wo(e.declaredInputs),t.outputs=wo(e.outputs);const n=r.hostBindings;n&&Ao(e,n);const s=r.viewQuery,o=r.contentQueries;if(s&&_o(e,s),o&&xo(e,o),ie(e.inputs,r.inputs),ie(e.declaredInputs,r.declaredInputs),ie(e.outputs,r.outputs),lt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let i=0;i<t.length;i++){const r=t[i];r&&r.ngInherit&&r(e),r===yo&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=An(r.hostAttrs,n=An(n,r.hostAttrs))}}(i)}function wo(e){return e===Le?{}:e===Ne?[]:e}function _o(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function xo(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function Ao(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Co=null;function So(){if(!Co){const e=Re.Symbol;if(e&&e.iterator)Co=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Co=n)}}}return Co}class ko{constructor(e){this.wrapped=e}static wrap(e){return new ko(e)}static unwrap(e){return ko.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof ko}}function Eo(e){return!!Po(e)&&(Array.isArray(e)||!(e instanceof Map)&&So()in e)}function Po(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Do(e,t,n){return e[t]=n}function Oo(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Io(e,t,n,i){const r=Oo(e,t,n);return Oo(e,t+1,i)||r}function To(e,t,n,i,r){const s=Io(e,t,n,i);return Oo(e,t+2,r)||s}function Mo(e,t,n,i,r,s){const o=Io(e,t,n,i);return Io(e,t+2,r,s)||o}function Bo(e,t,n,i){const r=Bt();return Oo(r,Gt(),t)&&(Rt(),function(e,t,n,i,r,s){const o=xt(e,t);!function(e,t,n,i,r,s,o){if(null==s)bt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const a=null==o?de(s):o(s,i||"",r);bt(e)?e.setAttribute(t,r,a,n):n?t.setAttributeNS(n,r,a):t.setAttribute(r,a)}}(t[11],o,s,e.value,n,i,r)}(un(),r,e,t,n,i)),Bo}function Ro(e,t,n,i){return Oo(e,Gt(),n)?t+de(n)+i:ns}function Lo(e,t,n,i,r,s){const o=Io(e,$t(),n,r);return qt(2),o?t+de(n)+i+de(r)+s:ns}function Fo(e,t,n,i,r,s,o,a){const l=Bt(),c=Rt(),u=e+20,d=c.firstCreatePass?function(e,t,n,i,r,s,o,a,l){const c=t.consts,u=ps(t,e,4,o||null,Dt(c,a));Es(t,n,u,Dt(c,l)),pn(t,u);const d=u.tViews=As(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,i,r,s,o):c.data[u];Vt(d,!1);const h=l[11].createComment("");Lr(c,l,h,d),hr(h,l),js(l,l[u]=Fs(h,l,h,d)),at(d)&&ws(c,l,d),null!=o&&_s(l,d,a)}function No(e){return Ct(Tt.lFrame.contextLView,20+e)}function Vo(e,t=Ce.Default){const n=Bt();return null===n?fi(e,t):Nn(Ft(),n,le(e),t)}function zo(e,t,n){const i=Bt();return Oo(i,Gt(),t)&&ks(Rt(),un(),i,e,t,i[11],n,!1),zo}function jo(e,t,n,i,r){const s=r?"class":"style";Qs(e,n,t.inputs[s],s,i)}function Ho(e,t,n,i){const r=Bt(),s=Rt(),o=20+e,a=r[11],l=r[o]=Cr(a,t,Tt.lFrame.currentNamespace),c=s.firstCreatePass?function(e,t,n,i,r,s,o){const a=t.consts,l=ps(t,e,2,r,Dt(a,s));return Es(t,n,l,Dt(a,o)),null!==l.attrs&&Js(l,l.attrs,!1),null!==l.mergedAttrs&&Js(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,s,r,0,t,n,i):s.data[o];Vt(c,!0);const u=c.mergedAttrs;null!==u&&wn(a,l,u);const d=c.classes;null!==d&&Wr(a,l,d);const h=c.styles;null!==h&&Ur(a,l,h),64!=(64&c.flags)&&Lr(s,r,l,c),0===Tt.lFrame.elementDepthCount&&hr(l,r),Tt.lFrame.elementDepthCount++,at(c)&&(ws(s,r,c),ys(s,c,r)),null!==i&&_s(r,c)}function Uo(){let e=Ft();zt()?jt():(e=e.parent,Vt(e,!1));const t=e;Tt.lFrame.elementDepthCount--;const n=Rt();n.firstCreatePass&&(pn(n,e),st(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&jo(n,t,Bt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&jo(n,t,Bt(),t.stylesWithoutHost,!1)}function Wo(e,t,n,i){Ho(e,t,n,i),Uo()}function $o(e,t,n){const i=Bt(),r=Rt(),s=e+20,o=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,o=Dt(s,i),a=ps(t,e,8,"ng-container",o);return null!==o&&Js(a,o,!0),Es(t,n,a,Dt(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,n):r.data[s];Vt(o,!0);const a=i[s]=i[11].createComment("");Lr(r,i,a,o),hr(a,i),at(o)&&(ws(r,i,o),ys(r,o,i)),null!=n&&_s(i,o)}function Go(){let e=Ft();const t=Rt();zt()?jt():(e=e.parent,Vt(e,!1)),t.firstCreatePass&&(pn(t,e),st(e)&&t.queries.elementEnd(e))}function qo(e,t,n){$o(e,t,n),Go()}function Yo(){return Bt()}function Zo(e){return!!e&&"function"==typeof e.then}function Ko(e){return!!e&&"function"==typeof e.subscribe}const Qo=Ko;function Xo(e,t,n=!1,i){const r=Bt(),s=Rt(),o=Ft();return ea(s,r,r[11],o,e,t,n,i),Xo}function Jo(e,t,n=!1,i){const r=Ft(),s=Bt(),o=Rt();return ea(o,s,Zs(Kt(o.data),r,s),r,e,t,n,i),Jo}function ea(e,t,n,i,r,s,o=!1,a){const l=at(i),c=e.firstCreatePass&&Ys(e),u=qs(t);let d=!0;if(3&i.type){const h=xt(i,t),p=a?a(h):Le,g=p.target||h,f=u.length,m=a?e=>a(wt(e[i.index])).target:i.index;if(bt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const e=r[s];if(e===n&&r[s+1]===i){const e=t[7],n=r[s+2];return e.length>n?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=na(i,t,s,!1);const e=n.listen(p.name||g,r,s);u.push(s,e),c&&c.push(r,m,f,f+1)}}else s=na(i,t,s,!0),g.addEventListener(r,s,o),u.push(s),c&&c.push(r,m,f,o)}else s=na(i,t,s,!1);const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(s),o=u.length;u.push(s,e),c&&c.push(r,i.index,o,-(o+1))}}}function ta(e,t,n){try{return!1!==t(n)}catch(i){return Ks(e,i),!1}}function na(e,t,n,i){return function r(s){if(s===Function)return n;const o=2&e.flags?St(e.index,t):t;0==(32&t[2])&&Hs(o);let a=ta(t,n,s),l=r.__ngNextListenerFn__;for(;l;)a=ta(t,l,s)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function ia(e=1){return function(e){return(Tt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Tt.lFrame.contextLView))[8]}(e)}function ra(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Xr(e,s,!0):Jr(i,s))return r}else n=r}return n}function sa(e){const t=Bt()[16][6];if(!t.projection){const n=t.projection=si(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?ra(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}function oa(e,t=0,n){const i=Bt(),r=Rt(),s=ps(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),jt(),64!=(64&s.flags)&&function(e,t,n){Hr(t[11],0,t,n,Dr(e,n,t),Br(n.parent||t[6],n,t))}(r,i,s)}function aa(e,t,n){return la(e,"",t,"",n),aa}function la(e,t,n,i,r){const s=Bt(),o=Ro(s,t,n,i);return o!==ns&&ks(Rt(),un(),s,e,o,s[11],r,!1),la}function ca(e,t,n,i,r,s,o){const a=Bt(),l=Lo(a,t,n,i,r,s);return l!==ns&&ks(Rt(),un(),a,e,l,a[11],o,!1),ca}function ua(e,t,n,i,r){const s=e[n+1],o=null===t;let a=i?os(s):ls(s),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];da(e[a],t)&&(l=!0,e[a+1]=i?us(n):as(n)),a=i?os(n):ls(n)}l&&(e[n+1]=i?as(s):us(s))}function da(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&li(e,t)>=0}const ha={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pa(e){return e.substring(ha.key,ha.keyEnd)}function ga(e,t){const n=ha.textEnd;return n===t?-1:(t=ha.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ha.key=t,n),fa(e,t,n))}function fa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ma(e,t,n){return wa(e,t,n,!1),ma}function va(e,t){return wa(e,t,null,!0),va}function ba(e){_a(oi,ya,e,!0)}function ya(e,t){for(let n=function(e){return function(e){ha.key=0,ha.keyEnd=0,ha.value=0,ha.valueEnd=0,ha.textEnd=e.length}(e),ga(e,fa(e,0,ha.textEnd))}(t);n>=0;n=ga(t,n))oi(e,pa(t),!0)}function wa(e,t,n,i){const r=Bt(),s=Rt(),o=qt(2);s.firstUpdatePass&&Aa(s,e,o,i),t!==ns&&Oo(r,o,t)&&ka(s,s.data[ln()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=re(Ti(e)))),e}(t,n),i,o)}function _a(e,t,n,i){const r=Rt(),s=qt(2);r.firstUpdatePass&&Aa(r,null,s,i);const o=Bt();if(n!==ns&&Oo(o,s,n)){const a=r.data[ln()];if(Da(a,i)&&!xa(r,s)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=se(e,n||"")),jo(r,a,o,n,i)}else!function(e,t,n,i,r,s,o,a){r===ns&&(r=Fe);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let g=null,f=void 0;u===d?(l+=2,c+=2,h!==p&&(g=d,f=p)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,f=p),null!==g&&ka(e,t,n,i,g,f,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(e,t,n){if(null==n||""===n)return Fe;const i=[],r=Ti(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function xa(e,t){return t>=e.expandoStartIndex}function Aa(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[ln()],o=xa(e,n);Da(s,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const r=Kt(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Sa(n=Ca(null,e,t,n,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ca(r,e,t,n,i),null===s){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ls(i))return e[os(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Ca(null,e,t,n[1],i),n=Sa(n,t.attrs,i),function(e,t,n,i){e[os(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else s=function(e,t,n){let i=void 0;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Sa(i,e[s].hostAttrs,n);return Sa(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let o=s?t.classBindings:t.styleBindings,a=os(o),l=ls(o);e[i]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||li(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=os(e[a+1]);e[i+1]=ss(t,a),0!==t&&(e[t+1]=cs(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=ss(a,0),0!==a&&(e[a+1]=cs(e[a+1],i)),a=i;else e[i+1]=ss(l,0),0===a?a=i:e[l+1]=cs(e[l+1],i),l=i;u&&(e[i+1]=as(e[i+1])),ua(e,c,i,!0),ua(e,c,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&li(s,t)>=0&&(n[i+1]=us(n[i+1]))}(t,c,e,i,s),o=ss(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,n,o,i)}}function Ca(e,t,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=t[a],i=Sa(i,s.hostAttrs,r),s!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Sa(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),oi(e,o,!!n||t[++s]))}return void 0===e?null:e}function ka(e,t,n,i,r,s,o,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];Pa(1==(1&c)?Ea(l,t,n,r,ls(c),o):void 0)||(Pa(s)||2==(2&c)&&(s=Ea(l,null,n,r,a,o)),function(e,t,n,i,r){const s=bt(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:vr.DashCase;if(null==r)s?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),t|=vr.Important),s?e.setStyle(n,i,r,t):n.style.setProperty(i,r,o?"important":"")}}}(i,o,_t(ln(),n),r,s))}function Ea(e,t,n,i,r,s){const o=null===t;let a=void 0;for(;r>0;){const t=e[r],s=Array.isArray(t),l=s?t[1]:t,c=null===l;let u=n[r+1];u===ns&&(u=c?Fe:void 0);let d=c?ai(u,i):l===i?u:void 0;if(s&&!Pa(d)&&(d=ai(t,i)),Pa(d)&&(a=d,o))return a;const h=e[r+1];r=o?os(h):ls(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=ai(e,i))}return a}function Pa(e){return void 0!==e}function Da(e,t){return 0!=(e.flags&(t?16:32))}function Oa(e,t=""){const n=Bt(),i=Rt(),r=e+20,s=i.firstCreatePass?ps(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Lr(i,n,o,s),Vt(s,!1)}function Ia(e){return Ta("",e,""),Ia}function Ta(e,t,n){const i=Bt(),r=Ro(i,e,t,n);return r!==ns&&Xs(i,ln(),r),Ta}function Ma(e,t,n,i,r){const s=Bt(),o=Lo(s,e,t,n,i,r);return o!==ns&&Xs(s,ln(),o),Ma}function Ba(e,t,n,i,r,s,o){const a=Bt(),l=function(e,t,n,i,r,s,o,a){const l=To(e,$t(),n,r,o);return qt(3),l?t+de(n)+i+de(r)+s+de(o)+a:ns}(a,e,t,n,i,r,s,o);return l!==ns&&Xs(a,ln(),l),Ba}function Ra(e,t,n,i,r,s,o,a,l){const c=Bt(),u=function(e,t,n,i,r,s,o,a,l,c){const u=Mo(e,$t(),n,r,o,l);return qt(4),u?t+de(n)+i+de(r)+s+de(o)+a+de(l)+c:ns}(c,e,t,n,i,r,s,o,a,l);return u!==ns&&Xs(c,ln(),u),Ra}function La(e,t,n){_a(oi,ya,Ro(Bt(),e,t,n),!0)}function Fa(e,t,n){const i=Bt();return Oo(i,Gt(),t)&&ks(Rt(),un(),i,e,t,i[11],n,!0),Fa}function Na(e,t,n){const i=Bt();if(Oo(i,Gt(),t)){const r=Rt(),s=un();ks(r,s,i,e,t,Zs(Kt(r.data),s,i),n,!0)}return Na}const Va=void 0;var za=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Va,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Va,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ja={};function Ha(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ua(t);if(n)return n;const i=t.split("-")[0];if(n=Ua(i),n)return n;if("en"===i)return za;throw new Error(`Missing locale data for the locale "${e}".`)}function Ua(e){return e in ja||(ja[e]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[e]),ja[e]}var Wa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let $a="en-US";function Ga(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&($a=e.toLowerCase().replace(/_/g,"-"))}function qa(e,t,n,i,r){if(e=le(e),Array.isArray(e))for(let s=0;s<e.length;s++)qa(e[s],t,n,i,r);else{const s=Rt(),o=Bt();let a=fo(e)?e:le(e.provide),l=ho(e);const c=Ft(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(fo(e)||!e.multi){const i=new yn(l,r,Vo),p=Ka(a,t,r?u:u+h,d);-1===p?(Rn(In(c,o),s,a),Ya(s,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ka(a,t,u+h,d),g=Ka(a,t,u,u+h),f=p>=0&&n[p],m=g>=0&&n[g];if(r&&!m||!r&&!f){Rn(In(c,o),s,a);const u=function(e,t,n,i,r){const s=new yn(e,n,Vo);return s.multi=[],s.index=t,s.componentProviders=0,Za(s,r,i&&!n),s}(r?Xa:Qa,n.length,r,i,l);!r&&m&&(n[g].providerFactory=u),Ya(s,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Ya(s,e,p>-1?p:g,Za(n[r?g:p],l,!r&&i));!r&&i&&m&&n[g].componentProviders++}}}function Ya(e,t,n,i){const r=fo(t);if(r||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[i,s]):o[e+1].push(i,s)}else o.push(n,s)}}}function Za(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ka(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function Qa(e,t,n,i){return Ja(this.multi,[])}function Xa(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Un(n,n[1],this.providerFactory.index,i);s=t.slice(0,e),Ja(r,s);for(let n=e;n<t.length;n++)s.push(t[n])}else s=[],Ja(r,s);return s}function Ja(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function el(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=Rt();if(i.firstCreatePass){const r=lt(e);qa(n,i.data,i.blueprint,r,!0),qa(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class tl{}class nl{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${re(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let il=(()=>{class e{}return e.NULL=new nl,e})();function rl(...e){}function sl(e,t){return new al(xt(e,t))}const ol=function(){return sl(Ft(),Bt())};let al=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ol,e})();function ll(e){return e instanceof al?e.nativeElement:e}class cl{}let ul=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>dl(),e})();const dl=function(){const e=Bt(),t=St(Ft().index,e);return function(e){return e[11]}(it(t)?t:e)};let hl=(()=>{class e{}return e.\u0275prov=ge({token:e,providedIn:"root",factory:()=>null}),e})();class pl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const gl=new pl("11.2.6");class fl{constructor(){}supports(e){return Eo(e)}create(e){return new vl(e)}}const ml=(e,t)=>t;class vl{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ml}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const s=!n||t&&t.currentIndex<_l(n,i,r)?t:n,o=_l(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{r||(r=[]);const e=o-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;t<=s&&s<e&&(r[n]=i+1)}r[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Eo(e))throw new Error(`Error trying to diff '${re(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,r=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,t),s=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[So()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,e,i,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,t),s=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new bl(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class bl{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class yl{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class wl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new yl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _l(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class xl{constructor(){}supports(e){return e instanceof Map||Po(e)}create(){return new Al}}class Al{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Po(e)))throw new Error(`Error trying to diff '${re(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Cl(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Cl{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Sl(){return new kl([new fl])}let kl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Sl()),deps:[[e,new _i,new wi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ge({token:e,providedIn:"root",factory:Sl}),e})();function El(){return new Pl([new xl])}let Pl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||El()),deps:[[e,new _i,new wi]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ge({token:e,providedIn:"root",factory:El}),e})();function Dl(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(wt(s)),rt(s))for(let e=10;e<s.length;e++){const t=s[e],n=t[1].firstChild;null!==n&&Dl(t[1],t,n,i)}const o=n.type;if(8&o)Dl(e,t,n.child,i);else if(32&o){const e=br(n,t);let r;for(;r=e();)i.push(r)}else if(16&o){const e=Nr(t,n);if(Array.isArray(e))i.push(...e);else{const n=yr(t[16]);Dl(n[1],n,e,i,!0)}}n=r?n.projectionNext:n.next}return i}class Ol{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Dl(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(rt(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(kr(e,n),ri(t,n))}this._attachedToViewContainer=!1}Er(this._lView[1],this._lView)}onDestroy(e){Cs(this._lView[1],this._lView,null,e)}markForCheck(){Hs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Us(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ut(!0);try{Us(e,t,n)}finally{Ut(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,jr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Il extends Ol{constructor(e){super(e),this._view=e}detectChanges(){Ws(this._view)}checkNoChanges(){!function(e){Ut(!0);try{Ws(e)}finally{Ut(!1)}}(this._view)}get context(){return null}}const Tl=Bl;let Ml=(()=>{class e{}return e.__NG_ELEMENT_ID__=Tl,e.__ChangeDetectorRef__=!0,e})();function Bl(e=!1){return function(e,t,n){if(!n&&ot(e)){const n=St(e.index,t);return new Ol(n,n)}return 47&e.type?new Ol(t[16],t):null}(Ft(),Bt(),e)}const Rl=[new xl],Ll=new kl([new fl]),Fl=new Pl(Rl),Nl=function(){return Hl(Ft(),Bt())};let Vl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Nl,e})();const zl=Vl,jl=class extends zl{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=hs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),fs(t,n,e),new Ol(n)}};function Hl(e,t){return 4&e.type?new jl(t,e,sl(e,t)):null}class Ul{}class Wl{}const $l=function(){return Ql(Ft(),Bt())};let Gl=(()=>{class e{}return e.__NG_ELEMENT_ID__=$l,e})();const ql=Gl,Yl=class extends ql{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return sl(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Bn(this._hostTNode,this._hostLView);if(Sn(e)){const t=En(e,this._hostLView),n=kn(e);return new Gn(t[1].data[n+8],t)}return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Zl(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const s=n||this.parentInjector;if(!r&&null==e.ngModule&&s){const e=s.get(Ul,null);e&&(r=e)}const o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,i=n[1];if(rt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new Yl(t,t[6],t[3]);i.detach(i.indexOf(e))}}const r=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-10?(t[4]=n[r],ii(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,s,r);const o=Vr(r,s),a=n[11],l=Mr(a,s[7]);return null!==l&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,jr(e,i,n,1,r,s)}(i,s[6],a,n,l,o),e.attachToViewContainerRef(),ii(Kl(s),r,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Zl(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=kr(this._lContainer,t);n&&(ri(Kl(this._lContainer),t),Er(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=kr(this._lContainer,t);return n&&null!=ri(Kl(this._lContainer),t)?new Ol(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Zl(e){return e[8]}function Kl(e){return e[8]||(e[8]=[])}function Ql(e,t){let n;const i=t[e.index];if(rt(i))n=i;else{let r;if(8&e.type)r=wt(i);else{const n=t[11];r=n.createComment("");const i=xt(e,t);Or(n,Mr(n,i),r,function(e,t){return bt(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=Fs(i,t,r,e),js(t,n)}return new Yl(n,e,t)}const Xl={};class Jl extends il{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=tt(e);return new nc(t,this.ngModule)}}function ec(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const tc=new Xn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>pr});class nc extends tl{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(ts).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ec(this.componentDef.inputs)}get outputs(){return ec(this.componentDef.outputs)}create(e,t,n,i){const r=(i=i||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,Xl,r);return s!==Xl||i===Xl?s:t.get(n,i,r)}}}(e,i.injector):e,s=r.get(cl,yt),o=r.get(hl,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(bt(e))return e.selectRootElement(t,n===Oe.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Cr(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:pr,clean:Gs,playerHandler:null,flags:0},h=As(0,null,null,1,0,null,null,null,null,null),p=hs(null,h,d,u,null,null,s,a,o,r);let g,f;tn(p);try{const e=function(e,t,n,i,r,s){const o=n[1];n[20]=e;const a=ps(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Js(a,l,!0),null!==e&&(wn(r,e,l),null!==a.classes&&Wr(r,e,a.classes),null!==a.styles&&Ur(r,e,a.styles)));const c=i.createRenderer(e,t),u=hs(n,xs(t),null,t.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Rn(In(a,n),o,t.type),Os(o,a),Ts(a,n.length,1)),js(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)wn(a,c,["ng-version",gl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!Kr(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&wn(a,c,e),t&&t.length>0&&Wr(a,c,t.join(" "))}if(f=At(h,20),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}g=function(e,t,n,i,r){const s=n[1],o=function(e,t,n){const i=Ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ms(e,i,t,gs(e,t,1,null),n));const r=Un(t,e,i.directiveStart,i);hr(r,t);const s=xt(i,t);return s&&hr(s,t),r}(s,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries){const e=Ft();t.contentQueries(1,o,e.directiveStart)}const a=Ft();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(cn(a.index),Ps(n[1],a,0,a.directiveStart,a.directiveEnd,t),Ds(t,o)),o}(e,this.componentDef,p,d,[bo]),fs(h,p,null)}finally{an()}return new ic(this.componentType,g,sl(f,p),p,f)}}class ic extends class{}{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new Il(i),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const rc=new Map;class sc extends Ul{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Jl(this);const n=nt(e),i=e[Ue]||null;i&&Ga(i),this._bootstrapComponents=mr(n.bootstrap),this._r3Injector=lo(e,t,[{provide:Ul,useValue:this},{provide:il,useValue:this.componentFactoryResolver}],re(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=vo.THROW_IF_NOT_FOUND,n=Ce.Default){return e===vo||e===Ul||e===eo?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class oc extends Wl{constructor(e){super(),this.moduleType=e,null!==nt(e)&&function(e){const t=new Set;!function e(n){const i=nt(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${re(t)} vs ${re(t.name)}`)}(r,rc.get(r),n),rc.set(r,n));const s=mr(i.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new sc(this.moduleType,e)}}function ac(e,t,n){const i=Wt()+e,r=Bt();return r[i]===ns?Do(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function lc(e,t,n,i){return dc(Bt(),Wt(),e,t,n,i)}function cc(e,t,n,i,r){return hc(Bt(),Wt(),e,t,n,i,r)}function uc(e,t){const n=e[t];return n===ns?void 0:n}function dc(e,t,n,i,r,s){const o=t+n;return Oo(e,o,r)?Do(e,o+1,s?i.call(s,r):i(r)):uc(e,o+1)}function hc(e,t,n,i,r,s,o){const a=t+n;return Io(e,a,r,s)?Do(e,a+2,o?i.call(o,r,s):i(r,s)):uc(e,a+2)}function pc(e,t){const n=Rt();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new ue("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=ct(i.type)),o=ke(Vo);try{const e=Dn(!1),t=s();return Dn(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Bt(),r,t),t}finally{ke(o)}}function gc(e,t,n){const i=e+20,r=Bt(),s=Ct(r,i);return yc(r,bc(r,i)?dc(r,Wt(),t,s.transform,n,s):s.transform(n))}function fc(e,t,n,i){const r=e+20,s=Bt(),o=Ct(s,r);return yc(s,bc(s,r)?hc(s,Wt(),t,o.transform,n,i,o):o.transform(n,i))}function mc(e,t,n,i,r){const s=e+20,o=Bt(),a=Ct(o,s);return yc(o,bc(o,s)?function(e,t,n,i,r,s,o,a){const l=t+n;return To(e,l,r,s,o)?Do(e,l+3,a?i.call(a,r,s,o):i(r,s,o)):uc(e,l+3)}(o,Wt(),t,a.transform,n,i,r,a):a.transform(n,i,r))}function vc(e,t,n,i,r,s){const o=e+20,a=Bt(),l=Ct(a,o);return yc(a,bc(a,o)?function(e,t,n,i,r,s,o,a,l){const c=t+n;return Mo(e,c,r,s,o,a)?Do(e,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):uc(e,c+4)}(a,Wt(),t,l.transform,n,i,r,s,l):l.transform(n,i,r,s))}function bc(e,t){return e[1].data[t].pure}function yc(e,t){return ko.isWrapped(t)&&(t=ko.unwrap(t),e[$t()]=ns),t}const wc=class extends C{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,r=e=>null,s=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return e instanceof h&&e.add(o),o}};function _c(){return this._results[So()]()}class xc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=So(),n=xc.prototype;n[t]||(n[t]=_c)}get changes(){return this._changes||(this._changes=new wc)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=ti(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Ac{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ac(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new Cc(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Nc(e,t).matches&&this.queries[t].setDirty()}}class Sc{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class kc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,i);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new kc(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ec{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Ec(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(e,t,Pc(t,r)),this.matchTNodeWithReadOption(e,t,Hn(t,e,r,!1,!1))}else n===Vl?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Hn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===al||i===Gl||i===Vl&&4&t.type)this.addMatch(t.index,-2);else{const n=Hn(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Pc(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Dc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?sl(e,t):4&e.type?Hl(e,t):null}(t,e):-2===n?function(e,t,n){return n===al?sl(t,e):n===Vl?Hl(t,e):n===Gl?Ql(t,e):void 0}(e,t,i):Un(e,e[1],n,t)}function Oc(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const i=e.data,s=n.matches,o=[];for(let e=0;e<s.length;e+=2){const r=s[e];o.push(r<0?null:Dc(t,i[r],s[e+1],n.metadata.read))}r.matches=o}return r.matches}function Ic(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const o=Oc(e,t,r,n);for(let e=0;e<s.length;e+=2){const n=s[e];if(n>0)i.push(o[e/2]);else{const r=s[e+1],o=t[-n];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&Ic(t[1],t,r,i)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];Ic(n[1],n,r,i)}}}}}return i}function Tc(e){const t=Bt(),n=Rt(),i=Qt();Xt(i+1);const r=Nc(n,i);if(e.dirty&&Et(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?Ic(n,t,i,[]):Oc(n,t,r,i);e.reset(s,ll),e.notifyOnChanges()}return!0}return!1}function Mc(e,t,n){const i=Rt();i.firstCreatePass&&(Fc(i,new Sc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Lc(i,Bt(),t)}function Bc(e,t,n,i){const r=Rt();if(r.firstCreatePass){const s=Ft();Fc(r,new Sc(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Lc(r,Bt(),n)}function Rc(){return e=Bt(),t=Qt(),e[19].queries[t].queryList;var e,t}function Lc(e,t,n){const i=new xc(4==(4&n));Cs(e,t,i,i.destroy),null===t[19]&&(t[19]=new Cc),t[19].queries.push(new Ac(i))}function Fc(e,t,n){null===e.queries&&(e.queries=new kc),e.queries.track(new Ec(t,n))}function Nc(e,t){return e.queries.getByIndex(t)}function Vc(e,t){return Hl(e,t)}function zc(e=Ce.Default){const t=Bl(!0);if(null!=t||e&Ce.Optional)return t;pe("ChangeDetectorRef")}const jc=new Xn("Application Initializer");let Hc=(()=>{class e{constructor(e){this.appInits=e,this.resolve=rl,this.reject=rl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Zo(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(fi(jc,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Uc=new Xn("AppId"),Wc={provide:Uc,useFactory:function(){return`${$c()}${$c()}${$c()}`},deps:[]};function $c(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gc=new Xn("Platform Initializer"),qc=new Xn("Platform ID"),Yc=new Xn("appBootstrapListener");let Zc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Kc=new Xn("LocaleId"),Qc=new Xn("DefaultCurrencyCode");class Xc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Jc=function(e){return new oc(e)},eu=Jc,tu=function(e){return Promise.resolve(Jc(e))},nu=function(e){const t=Jc(e),n=mr(nt(e).declarations).reduce((e,t)=>{const n=tt(t);return n&&e.push(new nc(n)),e},[]);return new Xc(t,n)},iu=nu,ru=function(e){return Promise.resolve(nu(e))};let su=(()=>{class e{constructor(){this.compileModuleSync=eu,this.compileModuleAsync=tu,this.compileModuleAndAllComponentsSync=iu,this.compileModuleAndAllComponentsAsync=ru}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const ou=(()=>Promise.resolve(0))();function au(e){"undefined"==typeof Zone?ou.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class lu{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wc(!1),this.onMicrotaskEmpty=new wc(!1),this.onStable=new wc(!1),this.onError=new wc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,du(e),uu(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),du(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return hu(e),n.invokeTask(r,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),pu(e)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return hu(e),n.invoke(r,s,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),pu(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,du(e),uu(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!lu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(lu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,e,cu,rl,rl);try{return r.runTask(s,t,n)}finally{r.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const cu={};function uu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function du(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function hu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pu(e){e._nesting--,uu(e)}class gu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wc,this.onMicrotaskEmpty=new wc,this.onStable=new wc,this.onError=new wc}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let fu=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{lu.assertNotInAngularZone(),au(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())au(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(fi(lu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),mu=(()=>{class e{constructor(){this._applications=new Map,yu.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return yu.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class vu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let bu,yu=new vu,wu=!0,_u=!1;function xu(){return _u=!0,wu}const Au=new Xn("AllowMultipleToken");class Cu{constructor(e,t){this.name=e,this.token=t}}function Su(e,t,n=[]){const i="Platform: "+t,r=new Xn(i);return(t=[])=>{let s=ku();if(!s||s.injector.get(Au,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:no,useValue:"platform"});!function(e){if(bu&&!bu.destroyed&&!bu.injector.get(Au,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bu=e.get(Eu);const t=e.get(Gc,null);t&&t.forEach(e=>e())}(vo.create({providers:e,name:i}))}return function(e){const t=ku();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function ku(){return bu&&!bu.destroyed?bu:null}let Eu=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new gu:("zone.js"===e?void 0:e)||new lu({enableLongStackTrace:xu(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:lu,useValue:n}];return n.run(()=>{const t=vo.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(dr,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{s.handleError(e)}});r.onDestroy(()=>{Ou(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const i=n();return Zo(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(s,n,()=>{const e=r.injector.get(Hc);return e.runInitializers(),e.donePromise.then(()=>(Ga(r.injector.get(Kc,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Pu({},t);return function(e,t,n){const i=new oc(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Du);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${re(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(fi(vo))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function Pu(e,t){return Array.isArray(t)?t.reduce(Pu,e):Object.assign(Object.assign({},e),t)}let Du=(()=>{class e{constructor(e,t,n,i,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{lu.assertNotInAngularZone(),au(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{lu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=q(s,o.pipe(te()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof tl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Ul),r=n.create(vo.NULL,[],t||n.selector,i),s=r.location.nativeElement,o=r.injector.get(fu,null),a=o&&r.injector.get(mu);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Ou(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ou(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Yc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(vo),fi(dr),fi(il),fi(Hc))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function Ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Iu{}class Tu{}const Mu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Bu=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Mu}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("MYvV")(t).then(e=>e[i]).then(e=>Ru(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("MYvV")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+r]).then(e=>Ru(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(fi(su),fi(Tu,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function Ru(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Lu=Su(null,"core",[{provide:qc,useValue:"unknown"},{provide:Eu,deps:[vo]},{provide:mu,deps:[]},{provide:Zc,deps:[]}]),Fu=[{provide:Du,useClass:Du,deps:[lu,vo,dr,il,Hc]},{provide:tc,deps:[lu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Hc,useClass:Hc,deps:[[new wi,jc]]},{provide:su,useClass:su,deps:[]},Wc,{provide:kl,useFactory:function(){return Ll},deps:[]},{provide:Pl,useFactory:function(){return Fl},deps:[]},{provide:Kc,useFactory:function(e){return Ga(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new yi(Kc),new wi,new _i]]},{provide:Qc,useValue:"USD"}];let Nu=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(fi(Du))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:Fu}),e})();const Vu={production:!0,VERSION:n("kiQV").version,AUTHOR:n("kiQV").author};let zu=null;function ju(){return zu}const Hu=new Xn("DocumentToken");let Uu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:Wu,token:e,providedIn:"platform"}),e})();function Wu(){return fi(Gu)}const $u=new Xn("Location Initialized");let Gu=(()=>{class e extends Uu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=ju().getLocation(),this._history=ju().getHistory()}getBaseHrefFromDOM(){return ju().getBaseHref(this._doc)}onPopState(e){ju().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){ju().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){qu()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){qu()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:Yu,token:e,providedIn:"platform"}),e})();function qu(){return!!window.history.pushState}function Yu(){return new Gu(fi(Hu))}function Zu(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Ku(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Qu(e){return e&&"?"!==e[0]?"?"+e:e}let Xu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:Ju,token:e,providedIn:"root"}),e})();function Ju(e){const t=fi(Hu).location;return new td(fi(Uu),t&&t.origin||"")}const ed=new Xn("appBaseHref");let td=(()=>{class e extends Xu{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Zu(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Qu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const r=this.prepareExternalUrl(n+Qu(i));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){const r=this.prepareExternalUrl(n+Qu(i));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(fi(Uu),fi(ed,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),nd=(()=>{class e extends Xu{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Zu(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let r=this.prepareExternalUrl(n+Qu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){let r=this.prepareExternalUrl(n+Qu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(fi(Uu),fi(ed,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),id=(()=>{class e{constructor(e,t){this._subject=new wc,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Ku(sd(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Qu(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,sd(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qu(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qu(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(fi(Xu),fi(Uu))},e.normalizeQueryParams=Qu,e.joinWithSlash=Zu,e.stripTrailingSlash=Ku,e.\u0275prov=ge({factory:rd,token:e,providedIn:"root"}),e})();function rd(){return new id(fi(Xu),fi(Uu))}function sd(e){return e.replace(/\/index.html$/,"")}var od=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),ad=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),ld=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),cd=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),ud=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function dd(e,t){return md(Ha(e)[Wa.DateFormat],t)}function hd(e,t){return md(Ha(e)[Wa.TimeFormat],t)}function pd(e,t){return md(Ha(e)[Wa.DateTimeFormat],t)}function gd(e,t){const n=Ha(e),i=n[Wa.NumberSymbols][t];if(void 0===i){if(t===ud.CurrencyDecimal)return n[Wa.NumberSymbols][ud.Decimal];if(t===ud.CurrencyGroup)return n[Wa.NumberSymbols][ud.Group]}return i}function fd(e){if(!e[Wa.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Wa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function md(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function vd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const bd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,yd={},wd=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var _d=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),xd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Ad=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Cd(e,t,n,i){let r=function(e){if(Fd(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return Sd(t,n-1,i)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(bd))return function(e){const t=new Date(0);let n=0,i=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,l,c),t}(n)}const t=new Date(e);if(!Fd(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=kd(n,t)||t;let s,o=[];for(;t;){if(s=wd.exec(t),!s){o.push(t);break}{o=o.concat(s.slice(1));const e=o.pop();if(!e)break;t=e}}let a=r.getTimezoneOffset();i&&(a=Ld(i,a),r=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ld(t,i)-i))}(r,i));let l="";return o.forEach(e=>{const t=function(e){if(Rd[e])return Rd[e];let t;switch(e){case"G":case"GG":case"GGG":t=Od(Ad.Eras,ld.Abbreviated);break;case"GGGG":t=Od(Ad.Eras,ld.Wide);break;case"GGGGG":t=Od(Ad.Eras,ld.Narrow);break;case"y":t=Dd(xd.FullYear,1,0,!1,!0);break;case"yy":t=Dd(xd.FullYear,2,0,!0,!0);break;case"yyy":t=Dd(xd.FullYear,3,0,!1,!0);break;case"yyyy":t=Dd(xd.FullYear,4,0,!1,!0);break;case"Y":t=Bd(1);break;case"YY":t=Bd(2,!0);break;case"YYY":t=Bd(3);break;case"YYYY":t=Bd(4);break;case"M":case"L":t=Dd(xd.Month,1,1);break;case"MM":case"LL":t=Dd(xd.Month,2,1);break;case"MMM":t=Od(Ad.Months,ld.Abbreviated);break;case"MMMM":t=Od(Ad.Months,ld.Wide);break;case"MMMMM":t=Od(Ad.Months,ld.Narrow);break;case"LLL":t=Od(Ad.Months,ld.Abbreviated,ad.Standalone);break;case"LLLL":t=Od(Ad.Months,ld.Wide,ad.Standalone);break;case"LLLLL":t=Od(Ad.Months,ld.Narrow,ad.Standalone);break;case"w":t=Md(1);break;case"ww":t=Md(2);break;case"W":t=Md(1,!0);break;case"d":t=Dd(xd.Date,1);break;case"dd":t=Dd(xd.Date,2);break;case"E":case"EE":case"EEE":t=Od(Ad.Days,ld.Abbreviated);break;case"EEEE":t=Od(Ad.Days,ld.Wide);break;case"EEEEE":t=Od(Ad.Days,ld.Narrow);break;case"EEEEEE":t=Od(Ad.Days,ld.Short);break;case"a":case"aa":case"aaa":t=Od(Ad.DayPeriods,ld.Abbreviated);break;case"aaaa":t=Od(Ad.DayPeriods,ld.Wide);break;case"aaaaa":t=Od(Ad.DayPeriods,ld.Narrow);break;case"b":case"bb":case"bbb":t=Od(Ad.DayPeriods,ld.Abbreviated,ad.Standalone,!0);break;case"bbbb":t=Od(Ad.DayPeriods,ld.Wide,ad.Standalone,!0);break;case"bbbbb":t=Od(Ad.DayPeriods,ld.Narrow,ad.Standalone,!0);break;case"B":case"BB":case"BBB":t=Od(Ad.DayPeriods,ld.Abbreviated,ad.Format,!0);break;case"BBBB":t=Od(Ad.DayPeriods,ld.Wide,ad.Format,!0);break;case"BBBBB":t=Od(Ad.DayPeriods,ld.Narrow,ad.Format,!0);break;case"h":t=Dd(xd.Hours,1,-12);break;case"hh":t=Dd(xd.Hours,2,-12);break;case"H":t=Dd(xd.Hours,1);break;case"HH":t=Dd(xd.Hours,2);break;case"m":t=Dd(xd.Minutes,1);break;case"mm":t=Dd(xd.Minutes,2);break;case"s":t=Dd(xd.Seconds,1);break;case"ss":t=Dd(xd.Seconds,2);break;case"S":t=Dd(xd.FractionalSeconds,1);break;case"SS":t=Dd(xd.FractionalSeconds,2);break;case"SSS":t=Dd(xd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Id(_d.Short);break;case"ZZZZZ":t=Id(_d.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Id(_d.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Id(_d.Long);break;default:return null}return Rd[e]=t,t}(e);l+=t?t(r,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Sd(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function kd(e,t){const n=function(e){return Ha(e)[Wa.LocaleId]}(e);if(yd[n]=yd[n]||{},yd[n][t])return yd[n][t];let i="";switch(t){case"shortDate":i=dd(e,cd.Short);break;case"mediumDate":i=dd(e,cd.Medium);break;case"longDate":i=dd(e,cd.Long);break;case"fullDate":i=dd(e,cd.Full);break;case"shortTime":i=hd(e,cd.Short);break;case"mediumTime":i=hd(e,cd.Medium);break;case"longTime":i=hd(e,cd.Long);break;case"fullTime":i=hd(e,cd.Full);break;case"short":const t=kd(e,"shortTime"),n=kd(e,"shortDate");i=Ed(pd(e,cd.Short),[t,n]);break;case"medium":const r=kd(e,"mediumTime"),s=kd(e,"mediumDate");i=Ed(pd(e,cd.Medium),[r,s]);break;case"long":const o=kd(e,"longTime"),a=kd(e,"longDate");i=Ed(pd(e,cd.Long),[o,a]);break;case"full":const l=kd(e,"fullTime"),c=kd(e,"fullDate");i=Ed(pd(e,cd.Full),[l,c])}return i&&(yd[n][t]=i),i}function Ed(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Pd(e,t,n="-",i,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function Dd(e,t,n=0,i=!1,r=!1){return function(s,o){let a=function(e,t){switch(e){case xd.FullYear:return t.getFullYear();case xd.Month:return t.getMonth();case xd.Date:return t.getDate();case xd.Hours:return t.getHours();case xd.Minutes:return t.getMinutes();case xd.Seconds:return t.getSeconds();case xd.FractionalSeconds:return t.getMilliseconds();case xd.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,s);if((n>0||a>-n)&&(a+=n),e===xd.Hours)0===a&&-12===n&&(a=12);else if(e===xd.FractionalSeconds)return l=t,Pd(a,3).substr(0,l);var l;const c=gd(o,ud.MinusSign);return Pd(a,t,c,i,r)}}function Od(e,t,n=ad.Format,i=!1){return function(r,s){return function(e,t,n,i,r,s){switch(n){case Ad.Months:return function(e,t,n){const i=Ha(e),r=md([i[Wa.MonthsFormat],i[Wa.MonthsStandalone]],t);return md(r,n)}(t,r,i)[e.getMonth()];case Ad.Days:return function(e,t,n){const i=Ha(e),r=md([i[Wa.DaysFormat],i[Wa.DaysStandalone]],t);return md(r,n)}(t,r,i)[e.getDay()];case Ad.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(s){const e=function(e){const t=Ha(e);return fd(t),(t[Wa.ExtraData][2]||[]).map(e=>"string"==typeof e?vd(e):[vd(e[0]),vd(e[1])])}(t),n=function(e,t,n){const i=Ha(e);fd(i);const r=md([i[Wa.ExtraData][0],i[Wa.ExtraData][1]],t)||[];return md(r,n)||[]}(t,r,i),s=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=o>=t.hours&&a>=t.minutes,r=o<n.hours||o===n.hours&&a<n.minutes;if(t.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(e.hours===o&&e.minutes===a)return!0;return!1});if(-1!==s)return n[s]}return function(e,t,n){const i=Ha(e),r=md([i[Wa.DayPeriodsFormat],i[Wa.DayPeriodsStandalone]],t);return md(r,n)}(t,r,i)[o<12?0:1];case Ad.Eras:return function(e,t){return md(Ha(e)[Wa.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,s,e,t,n,i)}}function Id(e){return function(t,n,i){const r=-1*i,s=gd(n,ud.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case _d.Short:return(r>=0?"+":"")+Pd(o,2,s)+Pd(Math.abs(r%60),2,s);case _d.ShortGMT:return"GMT"+(r>=0?"+":"")+Pd(o,1,s);case _d.Long:return"GMT"+(r>=0?"+":"")+Pd(o,2,s)+":"+Pd(Math.abs(r%60),2,s);case _d.Extended:return 0===i?"Z":(r>=0?"+":"")+Pd(o,2,s)+":"+Pd(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function Td(e){return Sd(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Md(e,t=!1){return function(n,i){let r;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();r=1+Math.floor((t+e)/7)}else{const e=Td(n),t=function(e){const t=Sd(e,0,1).getDay();return Sd(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}return Pd(r,e,gd(i,ud.MinusSign))}}function Bd(e,t=!1){return function(n,i){return Pd(Td(n).getFullYear(),e,gd(i,ud.MinusSign),t)}}const Rd={};function Ld(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Fd(e){return e instanceof Date&&!isNaN(e.valueOf())}class Nd{}let Vd=(()=>{class e extends Nd{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return Ha(e)[Wa.PluralCase]}(t||this.locale)(e)){case od.Zero:return"zero";case od.One:return"one";case od.Two:return"two";case od.Few:return"few";case od.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(fi(Kc))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function zd(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}let jd=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Eo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+re(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(kl),Vo(Pl),Vo(al),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class Hd{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ud=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Hd(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new Wd(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new Wd(e,r);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl),Vo(kl))},e.\u0275dir=Je({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Wd{constructor(e,t){this.record=e,this.view=t}}let $d=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Gd,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){qd("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){qd("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl))},e.\u0275dir=Je({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Gd{constructor(){this.$implicit=null,this.ngIf=null}}function qd(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${re(t)}'.`)}class Yd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Zd=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Kd=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Yd(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl),Vo(Zd,1))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Qd=(()=>{class e{constructor(e,t,n){n._addDefault(new Yd(e,t))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl),Vo(Vl),Vo(Zd,1))},e.\u0275dir=Je({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Xd=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Pl),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Jd=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(Vo(Gl))},e.\u0275dir=Je({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[dt]}),e})();function eh(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${re(e)}'`)}class th{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class nh{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const ih=new nh,rh=new th;let sh=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Zo(t))return ih;if(Ko(t))return rh;throw eh(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(zc())},e.\u0275pipe=et({name:"async",type:e,pure:!1}),e})();const oh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let ah=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw eh(e,t);return t.replace(oh,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"titlecase",type:e,pure:!0}),e})(),lh=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw eh(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"uppercase",type:e,pure:!0}),e})(),ch=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return Cd(t,n,r||this.locale,i)}catch(s){throw eh(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(Vo(Kc))},e.\u0275pipe=et({name:"date",type:e,pure:!0}),e})(),uh=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=dh){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(Vo(Pl))},e.\u0275pipe=et({name:"keyvalue",type:e,pure:!1}),e})();function dh(e,t){const n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const r=String(n),s=String(i);return r==s?0:r<s?-1:1}let hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[{provide:Nd,useClass:Vd}]}),e})();function ph(e){return"browser"===e}let gh=(()=>{class e{}return e.\u0275prov=ge({token:e,providedIn:"root",factory:()=>new fh(fi(Hu),window)}),e})();class fh{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=mh(this.window.history)||mh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function mh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class vh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new vh,zu||(zu=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=yh||(yh=document.querySelector("base"),yh)?yh.getAttribute("href"):null;return null==t?null:(n=t,bh||(bh=document.createElement("a")),bh.setAttribute("href",n),"/"===bh.pathname.charAt(0)?bh.pathname:"/"+bh.pathname);var n}resetBaseElement(){yh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return zd(document.cookie,e)}}let bh,yh=null;const wh=new Xn("TRANSITION_ID"),_h=[{provide:jc,useFactory:function(e,t,n){return()=>{n.get(Hc).donePromise.then(()=>{const n=ju();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[wh,Hu,vo],multi:!0}];class xh{static init(){var e;e=new xh,yu=e}addToWindow(e){Re.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Re.getAllAngularTestabilities=()=>e.getAllTestabilities(),Re.getAllAngularRootElements=()=>e.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(e=>{const t=Re.getAllAngularTestabilities();let n=t.length,i=!1;const r=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?ju().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Ah=new Xn("EventManagerPlugins");let Ch=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(fi(Ah),fi(lu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class Sh{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=ju().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let kh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Eh=(()=>{class e extends kh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>ju().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Ph={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dh=/%COMP%/g;function Oh(e,t,n){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Oh(e,r,n):(r=r.replace(Dh,e),n.push(r))}return n}function Ih(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Th=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Mh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Oe.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Bh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Oe.ShadowDom:return new Rh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Oh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(fi(Ch),fi(Eh),fi(Uc))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class Mh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ph[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const r=Ph[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=Ph[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(vr.DashCase|vr.Important)?e.style.setProperty(t,n,i&vr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&vr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ih(n)):this.eventManager.addEventListener(e,t,Ih(n))}}class Bh extends Mh{constructor(e,t,n,i){super(e),this.component=n;const r=Oh(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Dh,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Dh,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Rh extends Mh{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Oh(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const e=document.createElement("style");e.textContent=r[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Lh=(()=>{class e extends Sh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Fh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Nh=new Xn("HammerGestureConfig"),Vh=new Xn("HammerLoader");let zh=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const jh=[{provide:Ah,useClass:(()=>{class e extends Sh{constructor(e,t,n,i){super(e),this._config=t,this.console=n,this.loader=i,this._loaderPromise=null}supports(e){return!(!Fh.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,n){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let i=!1,r=()=>{i=!0};return this._loaderPromise.then(()=>{window.Hammer?i||(r=this.addEventListener(e,t,n)):r=()=>{}}).catch(()=>{r=()=>{}}),()=>{r()}}return i.runOutsideAngular(()=>{const r=this._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(e)})};return r.on(t,s),()=>{r.off(t,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(Nh),fi(Zc),fi(Vh,8))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),multi:!0,deps:[Hu,Nh,Zc,[new wi,Vh]]},{provide:Nh,useClass:zh,deps:[]}];let Hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:jh}),e})();const Uh=["alt","control","meta","shift"],Wh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$h={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Gh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qh=(()=>{class e extends Sh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const r=e.parseEventName(n),s=e.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ju().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let s="";if(Uh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&$h.hasOwnProperty(t)&&(t=$h[t]))}return Wh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Uh.forEach(i=>{i!=n&&(0,Gh[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Yh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return fi(Zh)},token:e,providedIn:"root"}),e})(),Zh=(()=>{class e extends Yh{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case rr.NONE:return t;case rr.HTML:return Mi(t,"HTML")?Ti(t):nr(this._doc,String(t)).toString();case rr.STYLE:return Mi(t,"Style")?Ti(t):t;case rr.SCRIPT:if(Mi(t,"Script"))return Ti(t);throw new Error("unsafe value used in a script context");case rr.URL:return Bi(t),Mi(t,"URL")?Ti(t):Vi(String(t));case rr.RESOURCE_URL:if(Mi(t,"ResourceURL"))return Ti(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new Ei(e)}bypassSecurityTrustStyle(e){return new Pi(e)}bypassSecurityTrustScript(e){return new Di(e)}bypassSecurityTrustUrl(e){return new Oi(e)}bypassSecurityTrustResourceUrl(e){return new Ii(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return e=fi(eo),new Zh(e.get(Hu));var e},token:e,providedIn:"root"}),e})();const Kh=Su(Lu,"browser",[{provide:qc,useValue:"browser"},{provide:Gc,useValue:function(){vh.makeCurrent(),xh.init()},multi:!0},{provide:Hu,useFactory:function(){return function(e){mt=e}(document),document},deps:[]}]),Qh=[[],{provide:no,useValue:"root"},{provide:dr,useFactory:function(){return new dr},deps:[]},{provide:Ah,useClass:Lh,multi:!0,deps:[Hu,lu,qc]},{provide:Ah,useClass:qh,multi:!0,deps:[Hu]},[],{provide:Th,useClass:Th,deps:[Ch,Eh,Uc]},{provide:cl,useExisting:Th},{provide:kh,useExisting:Eh},{provide:Eh,useClass:Eh,deps:[Hu]},{provide:fu,useClass:fu,deps:[lu]},{provide:Ch,useClass:Ch,deps:[Ah,lu]},[]];let Xh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Uc,useValue:t.appId},{provide:wh,useExisting:Uc},_h]}}}return e.\u0275fac=function(t){return new(t||e)(fi(e,12))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:Qh,imports:[hh,Nu]}),e})();"undefined"!=typeof window&&window;class Jh{}function ep(e,t){return{type:7,name:e,definitions:t,options:{}}}function tp(e,t=null){return{type:4,styles:t,timings:e}}function np(e,t=null){return{type:2,steps:e,options:t}}function ip(e){return{type:6,styles:e,offset:null}}function rp(e,t,n){return{type:0,name:e,styles:t,options:n}}function sp(e){return{type:5,steps:e}}function op(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function ap(e=null){return{type:9,options:e}}function lp(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function cp(e){Promise.resolve(null).then(e)}class up{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){cp(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class dp{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const r=this.players.length;0==r?cp(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function hp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function pp(e){switch(e.length){case 0:return new up;case 1:return e[0];default:return new dp(e)}}function gp(e,t,n,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(e=>{const n=e.offset,i=n==l,u=i&&c||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),a){case"!":a=r[n];break;case"*":a=s[n];break;default:a=t.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function fp(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&mp(n,"start",e)));break;case"done":e.onDone(()=>i(n&&mp(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&mp(n,"destroy",e)))}}function mp(e,t,n){const i=n.totalTime,r=vp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function vp(e,t,n,i,r="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function bp(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function yp(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let wp=(e,t)=>!1,_p=(e,t)=>!1,xp=(e,t,n)=>[];const Ap=hp();(Ap||"undefined"!=typeof Element)&&(wp=(e,t)=>e.contains(t),_p=(()=>{if(Ap||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):_p}})(),xp=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let Cp=null,Sp=!1;function kp(e){Cp||(Cp=("undefined"!=typeof document?document.body:null)||{},Sp=!!Cp.style&&"WebkitAppearance"in Cp.style);let t=!0;return Cp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Cp.style,!t&&Sp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Cp.style),t}const Ep=_p,Pp=wp,Dp=xp;function Op(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Ip=(()=>{class e{validateStyleProperty(e){return kp(e)}matchesElement(e,t){return Ep(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Dp(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],o){return new up(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Tp=(()=>{class e{}return e.NOOP=new Ip,e})();function Mp(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Bp(parseFloat(t[1]),t[2])}function Bp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Rp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,r=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=Bp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Bp(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=e;if(!n){let n=!1,s=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:r,easing:s}}(e,t,n)}function Lp(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Fp(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Lp(e,n);return n}function Np(e,t,n){return n?t+":"+n+";":""}function Vp(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=Np(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Np(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function zp(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=Yp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),hp()&&Vp(e))}function jp(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Yp(t);e.style[n]=""}),hp()&&Vp(e))}function Hp(e){return Array.isArray(e)?1==e.length?e[0]:np(e):e}const Up=new RegExp("{{\\s*(.+?)\\s*}}","g");function Wp(e){let t=[];if("string"==typeof e){let n;for(;n=Up.exec(e);)t.push(n[1]);Up.lastIndex=0}return t}function $p(e,t,n){const i=e.toString(),r=i.replace(Up,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?e:r}function Gp(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const qp=/-+([a-z0-9])/g;function Yp(e){return e.replace(qp,(...e)=>e[1].toUpperCase())}function Zp(e,t){return 0===e||0===t}function Kp(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach(function(t){n[t]=Xp(e,t)})}}return t}function Qp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Xp(e,t){return window.getComputedStyle(e)[t]}function Jp(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(ng(r,o)),"<"!=s[0]||"*"==r&&"*"==o||t.push(ng(o,r))}(e,n,t)):n.push(e),n}const eg=new Set(["true","1"]),tg=new Set(["false","0"]);function ng(e,t){const n=eg.has(e)||tg.has(e),i=eg.has(t)||tg.has(t);return(r,s)=>{let o="*"==e||e==r,a="*"==t||t==s;return!o&&n&&"boolean"==typeof r&&(o=r?eg.has(e):tg.has(e)),!a&&i&&"boolean"==typeof s&&(a=s?eg.has(t):tg.has(t)),o&&a}}const ig=new RegExp("s*:selfs*,?","g");function rg(e,t,n){return new sg(e).build(t,n)}class sg{constructor(e){this._driver=e}build(e,t){const n=new og(t);return this._resetContextStyleTimingState(n),Qp(this,Hp(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=r.depCount,s.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(e=>{if(ag(e)){const t=e;Object.keys(t).forEach(e=>{Wp(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Gp(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Qp(this,Hp(e.animation),t);return{type:1,matchers:Jp(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:lg(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Qp(this,e,t)),options:lg(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Qp(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:lg(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return cg(Rp(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=cg(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||Rp(i,t),cg(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:ip({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=ip(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=s,i=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(ag(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},r=Wp(e);r.length&&r.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ag(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ag(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,s=s||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const d=c-1,h=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return l.forEach((e,i)=>{const s=u>0?i==d?1:u*i:r[i],o=s*g;t.currentTime=h+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Qp(this,Hp(e.animation),t),options:lg(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:lg(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:lg(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(ig,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,bp(t.collectedStyles,t.currentQuerySelector,{});const o=Qp(this,Hp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:lg(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Rp(e.timings,t.errors,!0);return{type:12,animation:Qp(this,Hp(e.animation),t),timings:n,options:null}}}class og{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ag(e){return!Array.isArray(e)&&"object"==typeof e}function lg(e){var t;return e?(e=Lp(e)).params&&(e.params=(t=e.params)?Lp(t):null):e={},e}function cg(e,t,n){return{duration:e,delay:t,easing:n}}function ug(e,t,n,i,r,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class dg{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const hg=new RegExp(":enter","g"),pg=new RegExp(":leave","g");function gg(e,t,n,i,r,s={},o={},a,l,c=[]){return(new fg).buildKeyframes(e,t,n,i,r,s,o,a,l,c)}class fg{buildKeyframes(e,t,n,i,r,s,o,a,l,c=[]){l=l||new dg;const u=new vg(e,t,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),Qp(this,n,u);const d=u.timelines.filter(e=>e.containsAnimation());if(d.length&&Object.keys(o).length){const e=d[d.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return d.length?d.map(e=>e.buildKeyframes()):[ug(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const r=null!=n.duration?Mp(n.duration):null,s=null!=n.delay?Mp(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Qp(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=mg);const e=Mp(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Qp(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Mp(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Qp(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Rp(t.params?$p(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Mp(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=mg);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Qp(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Qp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const mg={};class vg{constructor(e,t,n,i,r,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new bg(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=Mp(n.duration)),null!=n.delay&&(i.delay=Mp(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=$p(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,r=new vg(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=mg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new yg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,s){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(hg,"."+this._enterClassName)).replace(pg,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class bg{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new bg(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},s=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]="*"})):Fp(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=$p(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=Fp(r,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?e.add(n):"*"==i&&t.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=e.size?Gp(e.values()):[],s=t.size?Gp(t.values()):[];if(n){const e=i[0],t=Lp(e);e.offset=0,t.offset=1,i=[e,t]}return ug(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class yg extends bg{constructor(e,t,n,i,r,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=n+t,o=t/s,a=Fp(e[0],!1);a.offset=0,r.push(a);const l=Fp(e[0],!1);l.offset=wg(o),r.push(l);const c=e.length-1;for(let i=1;i<=c;i++){let o=Fp(e[i],!1);o.offset=wg((t+o.offset*n)/s),r.push(o)}n=s,t=0,i="",e=r}return ug(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function wg(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class _g{}class xg extends _g{normalizePropertyName(e,t){return Yp(e)}normalizeStyleValue(e,t,n,i){let r="";const s=n.toString().trim();if(Ag[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+r}}const Ag=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Cg(e,t,n,i,r,s,o,a,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Sg={};class kg{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}build(e,t,n,i,r,s,o,a,l,c){const u=[],d=this.ast.options&&this.ast.options.params||Sg,h=this.buildStyles(n,o&&o.params||Sg,u),p=a&&a.params||Sg,g=this.buildStyles(i,p,u),f=new Set,m=new Map,v=new Map,b="void"===i,y={params:Object.assign(Object.assign({},d),p)},w=c?[]:gg(e,t,this.ast.animation,r,s,h,g,y,l,u);let _=0;if(w.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),u.length)return Cg(t,this._triggerName,n,i,b,h,g,[],[],m,v,_,u);w.forEach(e=>{const n=e.element,i=bp(m,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=bp(v,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&f.add(n)});const x=Gp(f.values());return Cg(t,this._triggerName,n,i,b,h,g,w,x,m,v,_)}}class Eg{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Lp(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let s=r[e];s.length>1&&(s=$p(s,i,t)),n[e]=s})}}),n}}class Pg{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Eg(e.style,e.options&&e.options.params||{})}),Dg(this.states,"true","1"),Dg(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new kg(e,t,this.states))}),this.fallbackTransition=new kg(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Dg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Og=new dg;class Ig{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=rg(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,r=gp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let s;const o=new Map;if(r?(s=gg(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Og,i),s.forEach(e=>{const t=bp(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=pp(s.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,i){const r=vp(t,"","","");return fp(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const Tg=[],Mg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Rg{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=Lp(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Lg=new Rg("void");class Fg{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wg(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const s=bp(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);const a=bp(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wg(e,"ng-trigger"),Wg(e,"ng-trigger-"+t),a[t]=Lg),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const r=this._getTrigger(t),s=new Vg(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Wg(e,"ng-trigger"),Wg(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Rg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Lg),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),i=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{jp(e,n),zp(e,i)})}return}const c=bp(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),d=!1;if(!u){if(!i)return;u=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:d}),d||(Wg(e,"ng-animate-queued"),s.onStart(()=>{$g(e,"ng-animate-queued")})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),c.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const r=this._engine.statesByElement.get(e);if(r){const s=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&pp(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const r=t.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||Lg,a=new Rg("void"),l=new Vg(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Mg||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Wg(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(t=>{if(t.name==n.triggerName){const i=vp(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,fp(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Ng{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Fg(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=n[e[i]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(zg(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!zg(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wg(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$g(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(zg(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return zg(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return pp(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Mg,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Wg(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?pp(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new dg,i=[],r=new Map,s=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,d=Array.from(this.statesByElement.keys()),h=Ug(d,this.collectedEnterElements),p=new Map;let g=0;h.forEach((e,t)=>{const n="ng-enter"+g++;p.set(t,n),e.forEach(e=>Wg(e,n))});const f=[],m=new Set,v=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(f.push(e),m.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>m.add(e)):v.add(e))}const b=new Map,y=Ug(d,Array.from(m));y.forEach((e,t)=>{const n="ng-leave"+g++;b.set(t,n),e.forEach(e=>Wg(e,n))}),e.push(()=>{h.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>$g(e,n))}),y.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>$g(e,n))}),f.forEach(e=>{this.processLeaveNode(e)})});const w=[],_=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(w.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),d=b.get(r),h=p.get(r),g=this._buildInstruction(e,n,h,d,c);if(g.errors&&g.errors.length)_.push(g);else{if(c)return t.onStart(()=>jp(r,g.fromStyles)),t.onDestroy(()=>zp(r,g.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>jp(r,g.fromStyles)),t.onDestroy(()=>zp(r,g.toStyles)),void i.push(t);g.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,g.timelines),s.push({instruction:g,player:t,element:r}),g.queriedElements.forEach(e=>bp(o,e,[]).push(t)),g.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),g.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(_.length){const e=[];_.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,A=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(A.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{bp(x,t,[]).push(e),e.destroy()})});const C=f.filter(e=>Yg(e,a,l)),S=new Map;Hg(S,this.driver,v,l,"*").forEach(e=>{Yg(e,a,l)&&C.push(e)});const k=new Map;h.forEach((e,t)=>{Hg(k,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=S.get(e),n=k.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const E=[],P=[],D={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(c.has(t))return s.onDestroy(()=>zp(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=D;if(A.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=A.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>A.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,x,r,k,S);if(s.setRealPlayer(n),e===D)E.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=pp(t)),i.push(s)}}else jp(t,o.fromStyles),s.onDestroy(()=>zp(t,o.toStyles)),P.push(s),c.has(t)&&i.push(s)}),P.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=pp(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<f.length;O++){const e=f[O],t=e.__ng_removed;if($g(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=o.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Gg(this,e,i):this.processLeaveNode(e)}return f.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,r){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||"void"==r;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&s.push(t)})}}return(n||i)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==i,l=bp(n,e,[]);this._getPreviousPlayers(e,a,r,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}jp(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,d=t.timelines.map(t=>{const d=t.element;c.add(d);const h=d.__ng_removed;if(h&&h.removedBeforeQueried)return new up(t.duration,t.delay);const p=d!==a,g=function(e){const t=[];return qg(e,t),t}((n.get(d)||Tg).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===d),f=r.get(d),m=s.get(d),v=gp(0,this._normalizer,0,t.keyframes,f,m),b=this._buildPlayer(t,v,g);if(t.subTimeline&&i&&u.add(d),p){const t=new Vg(e,o,d);t.setRealPlayer(b),l.push(t)}return b});l.forEach(e=>{bp(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Wg(e,"ng-animating"));const h=pp(d);return h.onDestroy(()=>{c.forEach(e=>$g(e,"ng-animating")),zp(a,t.toStyles)}),u.forEach(e=>{bp(i,e,[]).push(h)}),h}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new up(e.duration,e.delay)}}class Vg{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new up,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>fp(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){bp(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function zg(e){return e&&1===e.nodeType}function jg(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Hg(e,t,n,i,r){const s=[];n.forEach(e=>s.push(jg(e)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Bg,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>jg(e,s[a++])),o}function Ug(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;function s(e){if(!e)return 1;let t=r.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:s(o),r.set(e,t),t}return t.forEach(e=>{const t=s(e);1!==t&&n.get(t).push(e)}),n}function Wg(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function $g(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Gg(e,t,n){pp(n).onDone(()=>e.processLeaveNode(t))}function qg(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof dp?qg(i.players,t):t.push(i)}}function Yg(e,t,n){const i=n.get(e);if(!i)return!1;let r=t.get(e);return r?i.forEach(e=>r.add(e)):t.set(e,i),n.delete(e),!0}class Zg{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ng(e,t,n),this._timelineEngine=new Ig(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,r){const s=e+"-"+i;let o=this._triggerCache[s];if(!o){const e=[],t=rg(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Pg(e,t)}(i,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=yp(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=yp(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kg(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=Xg(t[0]),t.length>1&&(i=Xg(t[t.length-1]))):t&&(n=Xg(t)),n||i?new Qg(e,n,i):null}let Qg=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&zp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(zp(this._element,this._initialStyles),this._endStyles&&(zp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(jp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jp(this._element,this._endStyles),this._endStyles=null),zp(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Xg(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];Jg(r)&&(t=t||{},t[r]=e[r])}return t}function Jg(e){return"display"===e||"position"===e}class ef{constructor(e,t,n,i,r,s,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=af(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),of(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),sf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){tf(this._element,this._name,"paused")}resume(){tf(this._element,this._name,"running")}setPosition(e){const t=nf(this._element,this._name);this._position=e*this._duration,of(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),sf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=af(e,"").split(","),i=rf(n,t);i>=0&&(n.splice(i,1),of(e,"",n.join(",")))}(this._element,this._name))}}function tf(e,t,n){of(e,"PlayState",n,nf(e,t))}function nf(e,t){const n=af(e,"");return n.indexOf(",")>0?rf(n.split(","),t):rf([n],t)}function rf(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function sf(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function of(e,t,n,i){const r="animation"+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function af(e,t){return e.style["animation"+t]||""}class lf{constructor(e,t,n,i,r,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ef(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Xp(this.element,n))})}this.currentSnapshot=e}}class cf extends up{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Op(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class uf{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return kp(e)}matchesElement(e,t){return Ep(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Dp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Op(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(e,t,n,i,r,s=[],o){const a=s.filter(e=>e instanceof lf),l={};Zp(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Kp(e,t,l));if(0==n)return new cf(e,c);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);const h=Kg(e,t),p=new lf(e,t,u,n,i,r,c,h);return p.onDestroy(()=>{var e;(e=d).parentNode.removeChild(e)}),p}}class df{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Xp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class hf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(pf().toString()),this._cssKeyframesDriver=new uf}validateStyleProperty(e){return kp(e)}matchesElement(e,t){return Ep(e,t)}containsElement(e,t){return Pp(e,t)}query(e,t,n){return Dp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(e=>e instanceof df);Zp(n,i)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Kg(e,t=Kp(e,t=t.map(e=>Fp(e,!1)),l));return new df(e,t,a,u)}}function pf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let gf=(()=>{class e extends Jh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Oe.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?np(e):e;return vf(this._renderer,null,t,"register",[n]),new ff(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(fi(cl),fi(Hu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class ff extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new mf(this._id,e,t||{},this._renderer)}}class mf{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return vf(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function vf(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}let bf=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new yf("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const s=t=>{Array.isArray(t)?t.forEach(s):this.engine.registerTrigger(i,r,e,t.name,t)};return t.data.animation.forEach(s),new wf(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(fi(cl),fi(Zg),fi(lu))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class yf{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class wf extends yf{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let _f=(()=>{class e extends Zg{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(Tp),fi(_g))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const xf=new Xn("AnimationModuleType"),Af=[{provide:Tp,useFactory:function(){return"function"==typeof pf()?new hf:new uf}},{provide:xf,useValue:"BrowserAnimations"},{provide:Jh,useClass:gf},{provide:_g,useFactory:function(){return new xg}},{provide:Zg,useClass:_f},{provide:cl,useFactory:function(e,t,n){return new bf(e,t,n)},deps:[Th,Zg,lu]}];let Cf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:Af,imports:[Xh]}),e})();function Sf(...e){if(1===e.length){const t=e[0];if(c(t))return kf(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return kf(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return kf(e=1===e.length&&c(e[0])?e[0]:e,null).pipe(E(e=>t(...e)))}return kf(e,null)}function kf(e,t){return new y(n=>{const i=e.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=F(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),r[a]=e},error:e=>n.error(e),complete:()=>{s++,s!==i&&c||(o===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}class Ef{}const Pf=new Xn("NgValueAccessor"),Df={provide:Pf,useExisting:ae(()=>Of),multi:!0};let Of=(()=>{class e extends Ef{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)(Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Xo("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[el([Df]),yo]}),e})();const If={provide:Pf,useExisting:ae(()=>Mf),multi:!0},Tf=new Xn("CompositionEventMode");let Mf=(()=>{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=ju()?ju().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)(Vo(ul),Vo(al),Vo(Tf,8))},e.\u0275dir=Je({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&&Xo("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:[el([If])]}),e})();function Bf(e){return null==e||0===e.length}function Rf(e){return null!=e&&"number"==typeof e.length}const Lf=new Xn("NgValidators"),Ff=new Xn("NgAsyncValidators"),Nf=/^(?=.{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 Vf{static min(e){return function(e){return t=>{if(Bf(t.value)||Bf(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(Bf(t.value)||Bf(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 zf(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return Bf(e.value)||Nf.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>Bf(t.value)||!Rf(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static maxLength(e){return jf(e)}static pattern(e){return Hf(e)}static nullValidator(e){return null}static compose(e){return Zf(e)}static composeAsync(e){return Qf(e)}}function zf(e){return Bf(e.value)?{required:!0}:null}function jf(e){return t=>Rf(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Hf(e){if(!e)return Uf;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(Bf(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function Uf(e){return null}function Wf(e){return null!=e}function $f(e){const t=Zo(e)?F(e):e;return Qo(t),t}function Gf(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 qf(e,t){return t.map(t=>t(e))}function Yf(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Zf(e){if(!e)return null;const t=e.filter(Wf);return 0==t.length?null:function(e){return Gf(qf(e,t))}}function Kf(e){return null!=e?Zf(Yf(e)):null}function Qf(e){if(!e)return null;const t=e.filter(Wf);return 0==t.length?null:function(e){return Sf(qf(e,t).map($f)).pipe(E(Gf))}}function Xf(e){return null!=e?Qf(Yf(e)):null}function Jf(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function em(e){return e._rawValidators}function tm(e){return e._rawAsyncValidators}let nm=(()=>{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=Kf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xf(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=Je({type:e}),e})(),im=(()=>{class e extends nm{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return rm(t||e)},e.\u0275dir=Je({type:e,features:[yo]}),e})();const rm=qn(im);class sm extends nm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class om{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 am=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(sm,2))},e.\u0275dir=Je({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&va("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:[yo]}),e})(),lm=(()=>{class e extends om{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(im,10))},e.\u0275dir=Je({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&va("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:[yo]}),e})();function cm(e,t){return[...t.path,e]}function um(e,t){pm(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&&fm(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&&fm(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 dm(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),gm(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function hm(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function pm(e,t,n){const i=em(e);null!==t.validator?e.setValidators(Jf(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const r=tm(e);if(null!==t.asyncValidator?e.setAsyncValidators(Jf(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){const n=()=>e.updateValueAndValidity();hm(t._rawValidators,n),hm(t._rawAsyncValidators,n)}}function gm(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=em(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=tm(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}if(n){const e=()=>{};hm(t._rawValidators,e),hm(t._rawAsyncValidators,e)}return i}function fm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function mm(e,t){pm(e,t,!1)}function vm(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function bm(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ym(e,t){if(!t)return null;Array.isArray(t);let n=void 0,i=void 0,r=void 0;return t.forEach(e=>{e.constructor===Mf?n=e:Object.getPrototypeOf(e.constructor)===Ef?i=e:r=e}),r||i||n||null}function wm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function _m(e){return(Sm(e)?e.validators:e)||null}function xm(e){return Array.isArray(e)?Kf(e):e||null}function Am(e,t){return(Sm(t)?t.asyncValidators:e)||null}function Cm(e){return Array.isArray(e)?Xf(e):e||null}function Sm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class km{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=xm(this._rawValidators),this._composedAsyncValidatorFn=Cm(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}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=xm(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Cm(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="PENDING",!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="DISABLED",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="VALID",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(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=$f(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 i=e;return t.forEach(e=>{i=i instanceof Pm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Dm&&i.at(e)||null}),i}(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 wc,this.statusChanges=new wc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_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){Sm(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Em extends km{constructor(e=null,t,n){super(_m(t),Am(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){wm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){wm(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 Pm extends km{constructor(e,t,n){super(_m(t),Am(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,i)=>{n.reset(e[i],{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 Em?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,i)=>{n=t(n,e,i)}),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 Dm extends km{constructor(e,t,n){super(_m(t),Am(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,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Em?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 Om={provide:im,useExisting:ae(()=>Tm)},Im=(()=>Promise.resolve(null))();let Tm=(()=>{class e extends im{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new wc,this.form=new Pm({},Kf(e),Xf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Im.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),um(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Im.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),wm(this._directives,e)})}addFormGroup(e){Im.then(()=>{const t=this._findContainer(e.path),n=new Pm({});mm(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Im.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Im.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,bm(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)(Vo(Lf,10),Vo(Ff,10))},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Xo("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[el([Om]),yo]}),e})();const Mm={provide:sm,useExisting:ae(()=>Rm)},Bm=(()=>Promise.resolve(null))();let Rm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this.control=new Em,this._registered=!1,this.update=new wc,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ym(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),vm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?cm(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(){um(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){Bm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Bm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(im,9),Vo(Lf,10),Vo(Ff,10),Vo(Pf,10))},e.\u0275dir=Je({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:[el([Mm]),yo,dt]}),e})(),Lm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Fm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();const Nm=new Xn("NgModelWithFormControlWarning"),Vm={provide:sm,useExisting:ae(()=>zm)};let zm=(()=>{class e extends sm{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new wc,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ym(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&dm(t,this,!1),um(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}vm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(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)(Vo(Lf,10),Vo(Ff,10),Vo(Pf,10),Vo(Nm,8))},e.\u0275dir=Je({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[el([Vm]),yo,dt]}),e._ngModelWarningSentOnce=!1,e})();const jm={provide:im,useExisting:ae(()=>Hm)};let Hm=(()=>{class e extends im{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 wc,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&&(gm(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 um(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),wm(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,bm(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&&(dm(t||null,e),n instanceof Em&&(um(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);mm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return gm(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pm(this.form,this,!1),this._oldForm&&gm(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(Lf,10),Vo(Ff,10))},e.\u0275dir=Je({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Xo("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[el([jm]),yo,dt]}),e})();const Um={provide:sm,useExisting:ae(()=>Wm)};let Wm=(()=>{class e extends sm{constructor(e,t,n,i,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new wc,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ym(0,i)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),vm(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 cm(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)(Vo(im,13),Vo(Lf,10),Vo(Ff,10),Vo(Pf,10),Vo(Nm,8))},e.\u0275dir=Je({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[el([Um]),yo,dt]}),e._ngModelWarningSentOnce=!1,e})();const $m={provide:Pf,useExisting:ae(()=>qm),multi:!0};function Gm(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let qm=(()=>{class e extends Ef{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=Gm(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)(Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Xo("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[el([$m]),yo]}),e})(),Ym=(()=>{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(Gm(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)(Vo(al),Vo(ul),Vo(qm,9))},e.\u0275dir=Je({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Zm={provide:Pf,useExisting:ae(()=>Qm),multi:!0};function Km(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Qm=(()=>{class e extends Ef{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<e.length;t++){const i=e.item(t),r=this._getOptionValue(i.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,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)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Xo("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[el([Zm]),yo]}),e})(),Xm=(()=>{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(Km(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Km(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)(Vo(al),Vo(ul),Vo(Qm,9))},e.\u0275dir=Je({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Jm={provide:Lf,useExisting:ae(()=>ev),multi:!0};let ev=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?zf(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({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&&Bo("required",t.required?"":null)},inputs:{required:"required"},features:[el([Jm])]}),e})();const tv={provide:Lf,useExisting:ae(()=>nv),multi:!0};let nv=(()=>{class e{constructor(){this._validator=Uf}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=jf("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[el([tv]),dt]}),e})();const iv={provide:Lf,useExisting:ae(()=>rv),multi:!0};let rv=(()=>{class e{constructor(){this._validator=Uf}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=Hf(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Bo("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[el([iv]),dt]}),e})(),sv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[Fm]]}),e})(),ov=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[sv]}),e})(),av=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Nm,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[sv]}),e})(),lv=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,r=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Pm(n,{asyncValidators:r,updateOn:s,validators:i})}control(e,t,n){return new Em(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Dm(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Em||e instanceof Pm||e instanceof Dm?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=ge({factory:function(){return new e},token:e,providedIn:av}),e})();function cv(...e){let t=e[e.length-1];return k(t)?(e.pop(),L(e,t)):G(e)}function uv(e,t){return j(e,t,1)}function dv(e,t){return function(n){return n.lift(new hv(e,t))}}class hv{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new pv(e,this.predicate,this.thisArg))}}class pv extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class gv{}class fv{}class mv{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof mv?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new mv;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof mv?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class vv{encodeKey(e){return bv(e)}encodeValue(e){return bv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function bv(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class yv{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new vv,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[r,s]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new yv({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function wv(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function _v(e){return"undefined"!=typeof Blob&&e instanceof Blob}function xv(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Av{constructor(e,t,n,i){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new mv),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new yv,this.urlWithParams=t}serializeBody(){return null===this.body?null:wv(this.body)||_v(this.body)||xv(this.body)||"string"==typeof this.body?this.body:this.body instanceof yv?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||xv(this.body)?null:_v(this.body)?this.body.type||null:wv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof yv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new Av(t,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var Cv=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class Sv{constructor(e,t=200,n="OK"){this.headers=e.headers||new mv,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class kv extends Sv{constructor(e={}){super(e),this.type=Cv.ResponseHeader}clone(e={}){return new kv({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Ev extends Sv{constructor(e={}){super(e),this.type=Cv.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Ev({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pv extends Sv{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Dv(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Ov=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof Av)i=e;else{let r=void 0;r=n.headers instanceof mv?n.headers:new mv(n.headers);let s=void 0;n.params&&(s=n.params instanceof yv?n.params:new yv({fromObject:n.params})),i=new Av(e,t,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=cv(i).pipe(uv(e=>this.handler.handle(e)));if(e instanceof Av||"events"===n.observe)return r;const s=r.pipe(dv(e=>e instanceof Ev));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(E(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(E(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(E(e=>e.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new yv).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Dv(n,t))}post(e,t,n={}){return this.request("POST",e,Dv(n,t))}put(e,t,n={}){return this.request("PUT",e,Dv(n,t))}}return e.\u0275fac=function(t){return new(t||e)(fi(gv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class Iv{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Tv=new Xn("HTTP_INTERCEPTORS");let Mv=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Bv=/^\)\]\}',?\n/;class Rv{}let Lv=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Fv=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new y(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,i=n.statusText||"OK",s=new mv(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new kv({headers:s,status:t,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Bv,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new Ev({body:l,headers:i,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new Pv({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=s(),r=new Pv({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(r)};let l=!1;const c=i=>{l||(t.next(s()),l=!0);let r={type:Cv.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:Cv.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:Cv.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(fi(Rv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const Nv=new Xn("XSRF_COOKIE_NAME"),Vv=new Xn("XSRF_HEADER_NAME");class zv{}let jv=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=zd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(qc),fi(Nv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Hv=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(zv),fi(Vv))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Uv=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Tv,[]);this.chain=e.reduceRight((e,t)=>new Iv(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(fv),fi(vo))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),Wv=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Hv,useClass:Mv}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Nv,useValue:t.cookieName}:[],t.headerName?{provide:Vv,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[Hv,{provide:Tv,useExisting:Hv,multi:!0},{provide:zv,useClass:jv},{provide:Nv,useValue:"XSRF-TOKEN"},{provide:Vv,useValue:"X-XSRF-TOKEN"}]}),e})(),$v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[Ov,{provide:gv,useClass:Uv},Fv,{provide:fv,useExisting:Fv},Lv,{provide:Rv,useExisting:Lv}],imports:[[Wv.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Gv extends C{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 _;return this._value}next(e){super.next(this._value=e)}}class qv extends f{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Yv extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Zv(e,t,n,i,r=new Yv(e,n,i)){if(!r.closed)return t instanceof y?t.subscribe(r):R(t)(r)}const Kv={};function Qv(...e){let t=void 0,n=void 0;return k(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&c(e[0])&&(e=e[0]),G(e,n).lift(new Xv(t))}class Xv{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Jv(e,this.resultSelector))}}class Jv extends qv{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Kv),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(Zv(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const i=this.values,r=this.toRespond?i[n]===Kv?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const eb=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function tb(...e){return W(1)(cv(...e))}const nb=new y(e=>e.complete());function ib(e){return e?function(e){return new y(t=>e.schedule(()=>t.complete()))}(e):nb}function rb(e){return new y(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?F(n):ib()).subscribe(t)})}function sb(e,t){return"function"==typeof t?n=>n.pipe(sb((n,i)=>F(e(n,i)).pipe(E((e,r)=>t(n,e,i,r))))):t=>t.lift(new ob(e))}class ob{constructor(e){this.project=e}call(e,t){return t.subscribe(new ab(e,this.project))}}class ab extends V{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new N(this),i=this.destination;i.add(n),this.innerSubscription=z(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const lb=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function cb(e){return t=>0===e?ib():t.lift(new ub(e))}class ub{constructor(e){if(this.total=e,this.total<0)throw new lb}call(e,t){return t.subscribe(new db(e,this.total))}}class db extends f{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()))}}function hb(...e){const t=e[e.length-1];return k(t)?(e.pop(),n=>tb(e,n,t)):t=>tb(e,t)}function pb(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new gb(e,t,n))}}class gb{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new fb(e,this.accumulator,this.seed,this.hasSeed))}}class fb extends f{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function mb(e){return function(t){const n=new vb(e),i=t.lift(n);return n.caught=i}}class vb{constructor(e){this.selector=e}call(e,t){return t.subscribe(new bb(e,this.selector,this.caught))}}class bb extends V{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 N(this);this.add(i);const r=z(n,i);r!==i&&this.add(r)}}}function yb(e){return function(t){return 0===e?ib():t.lift(new wb(e))}}class wb{constructor(e){if(this.total=e,this.total<0)throw new lb}call(e,t){return t.subscribe(new _b(e,this.total))}}class _b extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=t++%n;e.next(i[r])}}e.complete()}}function xb(e=Sb){return t=>t.lift(new Ab(e))}class Ab{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Cb(e,this.errorFactory))}}class Cb extends f{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Sb(){return new eb}function kb(e=null){return t=>t.lift(new Eb(e))}class Eb{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Pb(e,this.defaultValue))}}class Pb extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Db(e,t){const n=arguments.length>=2;return i=>i.pipe(e?dv((t,n)=>e(t,n,i)):b,cb(1),n?kb(t):xb(()=>new eb))}function Ob(){}function Ib(e,t,n){return function(i){return i.lift(new Tb(e,t,n))}}class Tb{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Mb(e,this.nextOrObserver,this.error,this.complete))}}class Mb extends f{constructor(e,t,n,i){super(e),this._tapNext=Ob,this._tapError=Ob,this._tapComplete=Ob,this._tapError=n||Ob,this._tapComplete=i||Ob,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Ob,this._tapError=t.error||Ob,this._tapComplete=t.complete||Ob)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Bb(e){return t=>t.lift(new Rb(e))}class Rb{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Lb(e,this.callback))}}class Lb extends f{constructor(e,t){super(e),this.add(new h(t))}}class Fb{constructor(e,t){this.id=e,this.url=t}}class Nb extends Fb{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vb extends Fb{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zb extends Fb{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jb extends Fb{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Hb extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ub extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wb extends Fb{constructor(e,t,n,i,r){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $b extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gb extends Fb{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qb{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Yb{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zb{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kb{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qb{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xb{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jb{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ey{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ty(e){return new ey(e)}function ny(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function iy(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const r={};for(let s=0;s<i.length;s++){const t=i[s],n=e[s];if(t.startsWith(":"))r[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ry(e,t){const n=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!sy(e[r],t[r]))return!1;return!0}function sy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),i=[...t].sort();return n.every((e,t)=>i[t]===e)}return e===t}function oy(e){return Array.prototype.concat.apply([],e)}function ay(e){return e.length>0?e[e.length-1]:null}function ly(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function cy(e){return Qo(e)?e:Zo(e)?F(Promise.resolve(e)):cv(e)}function uy(e,t,n){return n?function(e,t){return ry(e,t)}(e.queryParams,t.queryParams)&&dy(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>sy(e[n],t[n]))}(e.queryParams,t.queryParams)&&hy(e.root,t.root)}function dy(e,t){if(!vy(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!dy(e.children[n],t.children[n]))return!1}return!0}function hy(e,t){return py(e,t,t.segments)}function py(e,t,n){if(e.segments.length>n.length)return!!vy(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!vy(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!hy(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!vy(e.segments,i)&&!!e.children.primary&&py(e.children.primary,t,r)}}class gy{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ty(this.queryParams)),this._queryParamMap}toString(){return wy.serialize(this)}}class fy{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ly(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _y(this)}}class my{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ty(this.parameters)),this._parameterMap}toString(){return Py(this)}}function vy(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class by{}class yy{parse(e){const t=new My(e);return new gy(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+xy(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Cy(t)}=${Cy(e)}`).join("&"):`${Cy(t)}=${Cy(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const wy=new yy;function _y(e){return e.segments.map(e=>Py(e)).join("/")}function xy(e,t){if(!e.hasChildren())return _y(e);if(t){const t=e.children.primary?xy(e.children.primary,!1):"",n=[];return ly(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${xy(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ly(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),ly(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>"primary"===n?[xy(e.children.primary,!1)]:[`${n}:${xy(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${_y(e)}/${t[0]}`:`${_y(e)}/(${t.join("//")})`}}function Ay(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cy(e){return Ay(e).replace(/%3B/gi,";")}function Sy(e){return Ay(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ky(e){return decodeURIComponent(e)}function Ey(e){return ky(e.replace(/\+/g,"%20"))}function Py(e){return`${Sy(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Sy(e)}=${Sy(t[e])}`).join("")}`;var t}const Dy=/^[^\/()?;=#]+/;function Oy(e){const t=e.match(Dy);return t?t[0]:""}const Iy=/^[^=?&#]+/,Ty=/^[^?&#]+/;class My{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fy([],{}):new fy([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new fy(e,t)),n}parseSegment(){const e=Oy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new my(ky(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Oy(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Oy(this.remaining);e&&(n=e,this.capture(n))}e[ky(t)]=ky(n)}parseQueryParam(e){const t=function(e){const t=e.match(Iy);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Ty);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=Ey(t),r=Ey(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(r)}else e[i]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Oy(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");const s=this.parseChildren();t[r]=1===Object.keys(s).length?s.primary:new fy([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class By{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ry(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ry(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ly(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ly(e,this._root).map(e=>e.value)}}function Ry(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ry(e,n);if(t)return t}return null}function Ly(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Ly(e,n);if(i.length)return i.unshift(t),i}return[]}class Fy{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ny(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Vy extends By{constructor(e,t){super(e),this.snapshot=t,$y(this,e)}toString(){return this.snapshot.toString()}}function zy(e,t){const n=function(e,t){const n=new Uy([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Wy("",new Fy(n,[]))}(e,t),i=new Gv([new my("",{})]),r=new Gv({}),s=new Gv({}),o=new Gv({}),a=new Gv(""),l=new jy(i,r,o,a,s,"primary",t,n.root);return l.snapshot=n.root,new Vy(new Fy(l,[]),n)}class jy{constructor(e,t,n,i,r,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(e=>ty(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(e=>ty(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hy(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Uy{constructor(e,t,n,i,r,s,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ty(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ty(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wy extends By{constructor(e,t){super(t),this.url=e,$y(this,t)}toString(){return Gy(this._root)}}function $y(e,t){t.value._routerState=e,t.children.forEach(t=>$y(e,t))}function Gy(e){const t=e.children.length>0?` { ${e.children.map(Gy).join(", ")} } `:"";return`${e.value}${t}`}function qy(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ry(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ry(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!ry(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ry(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Yy(e,t){var n,i;return ry(e.params,t.params)&&vy(n=e.url,i=t.url)&&n.every((e,t)=>ry(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Yy(e.parent,t.parent))}function Zy(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return Zy(e,t,i);return Zy(e,t)})}(e,t,n);return new Fy(i,r)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Ky(t,e),e}{const n=new jy(new Gv((i=t.value).url),new Gv(i.params),new Gv(i.queryParams),new Gv(i.fragment),new Gv(i.data),i.outlet,i.component,i),r=t.children.map(t=>Zy(e,t));return new Fy(n,r)}}var i}function Ky(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)Ky(e.children[n],t.children[n])}function Qy(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Xy(e){return"object"==typeof e&&null!=e&&e.outlets}function Jy(e,t,n,i,r){let s={};return i&&ly(i,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new gy(n.root===e?t:ew(n.root,e,t),s,r)}function ew(e,t,n){const i={};return ly(e.children,(e,r)=>{i[r]=e===t?n:ew(e,t,n)}),new fy(e.segments,i)}class tw{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Qy(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Xy);if(i&&i!==ay(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class nw{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function iw(e,t,n){if(e||(e=new fy([],{})),0===e.segments.length&&e.hasChildren())return rw(e,t,n);const i=function(e,t,n){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=n.length)return s;const t=e.segments[r],o=n[i];if(Xy(o))break;const a=""+o,l=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!lw(a,l,t))return s;i+=2}else{if(!lw(a,{},t))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new fy(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new fy(e.segments.slice(i.pathIndex),e.children),rw(t,0,r)}return i.match&&0===r.length?new fy(e.segments,{}):i.match&&!e.hasChildren()?sw(e,t,n):i.match?rw(e,0,r):sw(e,t,n)}function rw(e,t,n){if(0===n.length)return new fy(e.segments,{});{const i=function(e){return Xy(e[0])?e[0].outlets:{primary:e}}(n),r={};return ly(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=iw(e.children[i],t,n))}),ly(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new fy(e.segments,r)}}function sw(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){const s=n[r];if(Xy(s)){const e=ow(s.outlets);return new fy(i,e)}if(0===r&&Qy(n[0])){i.push(new my(e.segments[t].path,aw(n[0]))),r++;continue}const o=Xy(s)?s.outlets.primary:""+s,a=r<n.length-1?n[r+1]:null;o&&a&&Qy(a)?(i.push(new my(o,aw(a))),r+=2):(i.push(new my(o,{})),r++)}return new fy(i,{})}function ow(e){const t={};return ly(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=sw(new fy([],{}),0,e))}),t}function aw(e){const t={};return ly(e,(e,n)=>t[n]=""+e),t}function lw(e,t,n){return e==n.path&&ry(t,n.parameters)}class cw{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),qy(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Ny(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ly(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Ny(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(e,t,n){const i=Ny(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new Xb(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Kb(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(qy(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),uw(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=r,t.outlet&&t.outlet.activateWith(i,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function uw(e){qy(e.value),e.children.forEach(uw)}class dw{constructor(e,t){this.routes=e,this.module=t}}function hw(e){return"function"==typeof e}function pw(e){return e instanceof gy}const gw=Symbol("INITIAL_VALUE");function fw(){return sb(e=>Qv(e.map(e=>e.pipe(cb(1),hb(gw)))).pipe(pb((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==gw)return e;if(i===gw&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||pw(i))return i}return e},e)},gw),dv(e=>e!==gw),E(e=>pw(e)?e:!0===e),cb(1)))}let mw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Wo(0,"router-outlet")},directives:function(){return[d_]},encapsulation:2}),e})();function vw(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];bw(i,yw(t,i))}}function bw(e,t){e.children&&vw(e.children,t)}function yw(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function ww(e){const t=e.children&&e.children.map(ww),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=mw),n}function _w(e){return e.outlet||"primary"}function xw(e,t){const n=e.filter(e=>_w(e)===t);return n.push(...e.filter(e=>_w(e)!==t)),n}const Aw={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Cw(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Aw):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||iy)(n,e,t);if(!r)return Object.assign({},Aw);const s={};ly(r.posParams,(e,t)=>{s[t]=e.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Sw(e,t,n,i,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>kw(e,t,n)&&"primary"!==_w(n))}(e,n,i)){const r=new fy(t,function(e,t,n,i){const r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&"primary"!==_w(s)){const n=new fy([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[_w(s)]=n}return r}(e,t,i,new fy(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>kw(e,t,n))}(e,n,i)){const s=new fy(e.segments,function(e,t,n,i,r,s){const o={};for(const a of i)if(kw(e,n,a)&&!r[_w(a)]){const n=new fy([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[_w(a)]=n}return Object.assign(Object.assign({},r),o)}(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new fy(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function kw(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ew(e,t,n,i){return!!(_w(e)===i||"primary"!==i&&kw(t,n,e))&&("**"===e.path||Cw(t,e,n).matched)}function Pw(e,t,n){return 0===t.length&&!e.children[n]}class Dw{constructor(e){this.segmentGroup=e||null}}class Ow{constructor(e){this.urlTree=e}}function Iw(e){return new y(t=>t.error(new Dw(e)))}function Tw(e){return new y(t=>t.error(new Ow(e)))}function Mw(e){return new y(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Bw{constructor(e,t,n,i,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(Ul)}apply(){const e=Sw(this.urlTree.root,[],[],this.config).segmentGroup,t=new fy(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(E(e=>this.createUrlTree(Rw(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(mb(e=>{if(e instanceof Ow)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Dw)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(E(t=>this.createUrlTree(Rw(t),e.queryParams,e.fragment))).pipe(mb(e=>{if(e instanceof Dw)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new fy([],{primary:e}):e;return new gy(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(E(e=>new fy([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return F(i).pipe(uv(i=>{const r=n.children[i],s=xw(t,i);return this.expandSegmentGroup(e,s,r,i).pipe(E(e=>({segment:e,outlet:i})))}),pb((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return i=>i.pipe(e?dv((t,n)=>e(t,n,i)):b,yb(1),n?kb(t):xb(()=>new eb))}())}expandSegment(e,t,n,i,r,s){return F(n).pipe(uv(o=>this.expandSegmentAgainstRoute(e,t,n,o,i,r,s).pipe(mb(e=>{if(e instanceof Dw)return cv(null);throw e}))),Db(e=>!!e),mb((e,n)=>{if(e instanceof eb||"EmptyError"===e.name){if(Pw(t,i,r))return cv(new fy([],{}));throw new Dw(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,r,s,o){return Ew(i,t,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):Iw(t):Iw(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tw(r):this.lineralizeSegments(n,r).pipe(j(n=>{const r=new fy(n,{});return this.expandSegment(e,r,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Cw(t,i,r);if(!o)return Iw(t);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Tw(u):this.lineralizeSegments(i,u).pipe(j(i=>this.expandSegment(e,t,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?cv(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(E(e=>(n._loadedConfig=e,new fy(i,{})))):cv(new fy(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=Cw(t,n,i);if(!s)return Iw(t);const l=i.slice(a);return this.getChildConfig(e,n,i).pipe(j(e=>{const i=e.module,s=e.routes,{segmentGroup:a,slicedSegments:c}=Sw(t,o,l,s),u=new fy(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,s,u).pipe(E(e=>new fy(o,e)));if(0===s.length&&0===c.length)return cv(new fy(o,{}));const d=_w(n)===r;return this.expandSegment(i,u,s,c,d?"primary":r,!0).pipe(E(e=>new fy(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?cv(new dw(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?cv(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(j(n=>n?this.configLoader.load(e.injector,t).pipe(E(e=>(t._loadedConfig=e,e))):function(e){return new y(t=>t.error(ny(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):cv(new dw([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;return i&&0!==i.length?cv(i.map(i=>{const r=e.get(i);let s;if(function(e){return e&&hw(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!hw(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return cy(s)})).pipe(fw(),Ib(e=>{if(!pw(e))return;const t=ny(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),E(e=>!0===e)):cv(!0)}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return cv(n);if(i.numberOfChildren>1||!i.children.primary)return Mw(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const r=this.createSegmentGroup(e,t.root,n,i);return new gy(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ly(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const r=this.createSegments(e,t.segments,n,i);let s={};return ly(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,i)}),new fy(r,s)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Rw(e){const t={};for(const n of Object.keys(e.children)){const i=Rw(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new fy(e.segments.concat(t.segments),t.children)}return e}(new fy(e.segments,t))}class Lw{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Fw{constructor(e,t){this.component=e,this.route=t}}function Nw(e,t,n){const i=e._root;return zw(i,t?t._root:null,n,[i.value])}function Vw(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function zw(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ny(t);return e.children.forEach(e=>{!function(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!vy(e.url,t.url);case"pathParamsOrQueryParamsChange":return!vy(e.url,t.url)||!ry(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yy(e,t)||!ry(e.queryParams,t.queryParams);case"paramsChange":default:return!Yy(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Lw(i)):(s.data=o.data,s._resolvedData=o._resolvedData),zw(e,t,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Fw(a.outlet.component,o))}else o&&jw(t,a,r),r.canActivateChecks.push(new Lw(i)),zw(e,null,s.component?a?a.children:null:n,i,r)}(e,s[e.value.outlet],n,i.concat([e.value]),r),delete s[e.value.outlet]}),ly(s,(e,t)=>jw(e,n.getContext(t),r)),r}function jw(e,t,n){const i=Ny(e),r=e.value;ly(i,(e,i)=>{jw(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Fw(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class Hw{}function Uw(e){return new y(t=>t.error(e))}class Ww{constructor(e,t,n,i,r,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const e=Sw(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new Uy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Fy(n,t),r=new Wy(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=Hy(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const r of Object.keys(t.children)){const i=t.children[r],s=xw(e,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=function(e){const t=[];for(const n of e){if(!$w(n)){t.push(n);continue}const e=t.find(e=>n.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...n.children):t.push(n)}return t}(n);return i.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,i);if(null!==e)return e}return Pw(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!Ew(e,t,n,i))return null;let r,s=[],o=[];if("**"===e.path){const i=n.length>0?ay(n).parameters:{};r=new Uy(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yw(e),_w(e),e.component,e,Gw(t),qw(t)+n.length,Zw(e))}else{const i=Cw(t,e,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Uy(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yw(e),_w(e),e.component,e,Gw(t),qw(t)+s.length,Zw(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Sw(t,s,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new Fy(r,e)]}if(0===a.length&&0===c.length)return[new Fy(r,[])];const u=_w(e)===i,d=this.processSegment(a,l,c,u?"primary":i);return null===d?null:[new Fy(r,d)]}}function $w(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Gw(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function qw(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Yw(e){return e.data||{}}function Zw(e){return e.resolve||{}}function Kw(e){return sb(t=>{const n=e(t);return n?F(n).pipe(E(()=>t)):cv(t)})}class Qw{}class Xw extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Jw=new Xn("ROUTES");class e_{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new dw(oy(i.injector.get(Jw,void 0,Ce.Self|Ce.Optional)).map(ww),i)}),mb(e=>{throw t._loader$=void 0,e}));return t._loader$=new Q(n,()=>new C).pipe(Y()),t._loader$}loadModuleFactory(e){return"string"==typeof e?F(this.loader.load(e)):cy(e()).pipe(j(e=>e instanceof Wl?cv(e):F(this.compiler.compileModuleAsync(e))))}}class t_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new n_,this.attachRef=null}}class n_{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new t_,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class i_{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function r_(e){throw e}function s_(e,t,n){return t.parse("/")}function o_(e,t){return cv(null)}let a_=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new C,this.errorHandler=r_,this.malformedUriErrorHandler=s_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:o_,afterPreactivation:o_},this.urlHandlingStrategy=new i_,this.routeReuseStrategy=new Xw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(Ul),this.console=r.get(Zc);const l=r.get(lu);this.isNgZoneEnabled=l instanceof lu&&lu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new gy(new fy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new e_(s,o,e=>this.triggerEvent(new qb(e)),e=>this.triggerEvent(new Yb(e))),this.routerState=zy(this.currentUrlTree,this.rootComponentType),this.transitions=new Gv({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(dv(e=>0!==e.id),E(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),sb(e=>{let n=!1,i=!1;return cv(e).pipe(Ib(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sb(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return cv(e).pipe(sb(e=>{const n=this.transitions.getValue();return t.next(new Nb(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?nb:Promise.resolve(e)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,sb(e=>function(e,t,n,i,r){return new Bw(e,t,n,i,r).apply()}(i,r,s,e.extractedUrl,o).pipe(E(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Ib(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return j(s=>function(e,t,n,i,r="emptyOnly",s="legacy"){try{const o=new Ww(e,t,n,i,r,s).recognize();return null===o?Uw(new Hw):cv(o)}catch(o){return Uw(o)}}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(E(e=>Object.assign(Object.assign({},s),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ib(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new Hb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=e,a=new Nb(n,this.serializeUrl(i),r,s);t.next(a);const l=zy(i,this.rootComponentType).snapshot;return cv(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),nb}),Kw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Ib(e=>{const t=new Ub(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),E(e=>Object.assign(Object.assign({},e),{guards:Nw(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return j(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?cv(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return F(e).pipe(j(e=>function(e,t,n,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?cv(s.map(s=>{const o=Vw(s,t,r);let a;if(function(e){return e&&hw(e.canDeactivate)}(o))a=cy(o.canDeactivate(e,t,n,i));else{if(!hw(o))throw new Error("Invalid CanDeactivate guard");a=cy(o(e,t,n,i))}return a.pipe(Db())})).pipe(fw()):cv(!0)}(e.component,e.route,n,t,i)),Db(e=>!0!==e,!0))}(o,i,r,e).pipe(j(n=>n&&"boolean"==typeof n?function(e,t,n,i){return F(t).pipe(uv(t=>tb(function(e,t){return null!==e&&t&&t(new Zb(e)),cv(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Qb(e)),cv(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>rb(()=>cv(t.guards.map(r=>{const s=Vw(r,t.node,n);let o;if(function(e){return e&&hw(e.canActivateChild)}(s))o=cy(s.canActivateChild(i,e));else{if(!hw(s))throw new Error("Invalid CanActivateChild guard");o=cy(s(i,e))}return o.pipe(Db())})).pipe(fw())));return cv(r).pipe(fw())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?cv(i.map(i=>rb(()=>{const r=Vw(i,t,n);let s;if(function(e){return e&&hw(e.canActivate)}(r))s=cy(r.canActivate(t,e));else{if(!hw(r))throw new Error("Invalid CanActivate guard");s=cy(r(t,e))}return s.pipe(Db())}))).pipe(fw()):cv(!0)}(e,t.route,n))),Db(e=>!0!==e,!0))}(i,s,e,t):cv(n)),E(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Ib(e=>{if(pw(e.guardsResult)){const t=ny(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new Wb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),dv(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new zb(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Kw(e=>{if(e.guards.canActivateChecks.length)return cv(e).pipe(Ib(e=>{const t=new $b(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),sb(e=>{let n=!1;return cv(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,j(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return cv(e);let s=0;return F(n).pipe(uv(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return cv({});const s={};return F(r).pipe(j(r=>function(e,t,n,i){const r=Vw(e,t,i);return cy(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Ib(e=>{s[r]=e}))),yb(1),j(()=>Object.keys(s).length===r.length?cv(s):nb))}(e._resolve,e,t,i).pipe(E(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Hy(e,n).resolve),null)))}(e.route,t,i,r)),Ib(()=>s++),yb(1),j(t=>s===n.length?cv(e):nb))})),Ib({next:()=>n=!0,complete:()=>{if(!n){const n=new zb(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,r}),Ib(e=>{const t=new Gb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Kw(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),E(e=>{const t=function(e,t,n){const i=Zy(e,t._root,n?n._root:void 0);return new Vy(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Ib(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,s=this.routeReuseStrategy,o=e=>this.triggerEvent(e),E(e=>(new cw(s,e.targetRouterState,e.currentRouterState,o).activate(r),e))),Ib({next(){n=!0},complete(){n=!0}}),Bb(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new zb(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),mb(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=pw(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new zb(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new jb(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var r;return nb}));var r,s,o}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(i,e,n,r)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){vw(e),this.config=e.map(ww),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,r){if(0===n.length)return Jy(t.root,t.root,t,i,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tw(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return ly(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new tw(n,t,i)}(n);if(s.toRoot())return Jy(t.root,new fy([],{}),t,i,r);const o=function(e,t,n){if(e.isAbsolute)return new nw(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new nw(e,e===t.root,0)}const i=Qy(e.commands[0])?0:1;return function(e,t,n){let i=e,r=t,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new nw(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?rw(o.segmentGroup,o.index,s.commands):iw(o.segmentGroup,o.index,s.commands);return Jy(o.segmentGroup,a,t,i,r)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=pw(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(pw(e))return uy(this.currentUrlTree,e,t);const n=this.parseUrl(e);return uy(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Vb(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((e,t)=>{l=e,c=t});const d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(fi(ei),fi(by),fi(n_),fi(id),fi(vo),fi(Iu),fi(su),fi(void 0))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),l_=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new C,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:u_(this.skipLocationChange),replaceUrl:u_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:u_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_),Vo(jy),Zn("tabindex"),Vo(ul),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Xo("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})(),c_=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new C,this.subscription=e.events.subscribe(e=>{e instanceof Vb&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:u_(this.skipLocationChange),replaceUrl:u_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:u_(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_),Vo(jy),Vo(Xu))},e.\u0275dir=Je({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Xo("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Fa("href",t.href,or),Bo("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[dt]}),e})();function u_(e){return""===e||!!e}let d_=(()=>{class e{constructor(e,t,n,i,r){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new wc,this.deactivateEvents=new wc,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new h_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(Vo(n_),Vo(Gl),Vo(il),Zn("name"),Vo(Ml))},e.\u0275dir=Je({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class h_{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===jy?this.route:e===n_?this.childContexts:this.parent.get(e,t)}}class p_{}class g_{preload(e,t){return cv(null)}}let f_=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new e_(t,n,t=>e.triggerEvent(new qb(t)),t=>e.triggerEvent(new Yb(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(dv(e=>e instanceof Vb),uv(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Ul);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return F(n).pipe(W(),E(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?cv(t._loadedConfig):this.loader.load(e.injector,t)).pipe(j(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(fi(a_),fi(Iu),fi(su),fi(vo),fi(p_))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),m_=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Nb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Vb&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Jb&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Jb(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(fi(a_),fi(gh),fi(void 0))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const v_=new Xn("ROUTER_CONFIGURATION"),b_=new Xn("ROUTER_FORROOT_GUARD"),y_=[id,{provide:by,useClass:yy},{provide:a_,useFactory:function(e,t,n,i,r,s,o,a={},l,c){const u=new a_(null,e,t,n,i,r,s,oy(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(a,u),a.enableTracing){const e=ju();u.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u},deps:[by,n_,id,vo,Iu,su,Jw,v_,[class{},new wi],[Qw,new wi]]},n_,{provide:jy,useFactory:function(e){return e.routerState.root},deps:[a_]},{provide:Iu,useClass:Bu},f_,g_,class{preload(e,t){return t().pipe(mb(()=>cv(null)))}},{provide:v_,useValue:{enableTracing:!1}}];function w_(){return new Cu("Router",a_)}let __=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[y_,S_(t),{provide:b_,useFactory:C_,deps:[[a_,new wi,new _i]]},{provide:v_,useValue:n||{}},{provide:Xu,useFactory:A_,deps:[Uu,[new yi(ed),new wi],v_]},{provide:m_,useFactory:x_,deps:[a_,gh,v_]},{provide:p_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:g_},{provide:Cu,multi:!0,useFactory:w_},[k_,{provide:jc,multi:!0,useFactory:E_,deps:[k_]},{provide:D_,useFactory:P_,deps:[k_]},{provide:Yc,multi:!0,useExisting:D_}]]}}static forChild(t){return{ngModule:e,providers:[S_(t)]}}}return e.\u0275fac=function(t){return new(t||e)(fi(b_,8),fi(a_,8))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();function x_(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new m_(e,t,n)}function A_(e,t,n={}){return n.useHash?new nd(e,t):new td(e,t)}function C_(e){return"guarded"}function S_(e){return[{provide:Jn,multi:!0,useValue:e},{provide:Jw,multi:!0,useValue:e}]}let k_=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new C}appInitializer(){return this.injector.get($u,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(a_),i=this.injector.get(v_);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?cv(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(v_),n=this.injector.get(f_),i=this.injector.get(m_),r=this.injector.get(a_),s=this.injector.get(Du);e===s.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(fi(vo))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function E_(e){return e.appInitializer.bind(e)}function P_(e){return e.bootstrapListener.bind(e)}const D_=new Xn("Router Initializer");function O_(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function I_(e,t){return function(n,i){t(n,i,e)}}function T_(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function M_(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})}n("meiF"),n("lTIg"),n("RQGG"),n("bC4P"),n("iWo5");var B_=n("E/Mt"),R_=n("1vRN"),L_=(n("39oe"),n("k4ps")),F_=n("r7QR"),N_=n("7OTs"),V_=(n("y08P"),n("wEJo"));function z_(e,t,n,i){return r(n)&&(i=n,n=void 0),i?z_(e,t,n).pipe(E(e=>c(e)?i(...e):i(e))):new y(i=>{j_(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function j_(e,t,n,i,r){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,r),s=()=>i.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),s=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),s=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)j_(e[s],t,n,i,r)}i.add(s)}function H_(e,t){return n=>n.lift(new U_(e,t))}n("B4Jq");class U_{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new W_(e,this.compare,this.keySelector))}}class W_ extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}const $_=B_.e,G_=["*"],q_=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e);let Y_=(()=>{class e{constructor(e,t){this.injector=e,this.el=t,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,Z_(this.el)}handleChangeEvent(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),Z_(this.el))}_handleBlurEvent(e){e===this.el.nativeElement&&(this.onTouched(),Z_(this.el))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let e;try{e=this.injector.get(sm)}catch(n){}if(!e)return;e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(()=>Z_(this.el)));const t=e.control;t&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(e=>{if(t[e]){const n=t[e].bind(t);t[e]=(...e)=>{n(...e),Z_(this.el)}}})}}return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=Je({type:e,hostBindings:function(e,t){1&e&&Xo("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),e})();const Z_=e=>{q_(()=>{const t=e.nativeElement,n=K_(t);Q_(t,n);const i=t.closest("ion-item");i&&Q_(i,n)})},K_=e=>{const t=e.classList,n=[];for(let i=0;i<t.length;i++){const e=t.item(i);null!==e&&X_(e,"ng-")&&n.push("ion-"+e.substr(3))}return n},Q_=(e,t)=>{const n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(e=>n.remove(e)),t.forEach(e=>n.add(e))},X_=(e,t)=>e.substr(0,t.length)===t;var J_;let ex=(()=>{let e=J_=class extends Y_{constructor(e,t){super(e,t)}writeValue(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,Z_(this.el)}_handleIonChange(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleIonChange(e.target)})},features:[el([{provide:Pf,useExisting:J_,multi:!0}]),yo]}),e})();var tx;let nx=(()=>{let e=tx=class extends Y_{constructor(e,t){super(e,t)}_handleIonChange(e){this.handleChangeEvent(e,e.value)}registerOnChange(e){super.registerOnChange(t=>{e(""===t?null:parseFloat(t))})}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleIonChange(e.target)})},features:[el([{provide:Pf,useExisting:tx,multi:!0}]),yo]}),e})();var ix;let rx=(()=>{let e=ix=class extends Y_{constructor(e,t){super(e,t)}_handleIonSelect(e){this.handleChangeEvent(e,e.checked)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&Xo("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[el([{provide:Pf,useExisting:ix,multi:!0}]),yo]}),e})();var sx;let ox=(()=>{let e=sx=class extends Y_{constructor(e,t){super(e,t)}_handleChangeEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[el([{provide:Pf,useExisting:sx,multi:!0}]),yo]}),e})();var ax;let lx=(()=>{let e=ax=class extends Y_{constructor(e,t){super(e,t)}_handleInputEvent(e){this.handleChangeEvent(e,e.value)}};return e.\u0275fac=function(t){return new(t||e)(Vo(vo),Vo(al))},e.\u0275dir=Je({type:e,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&Xo("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[el([{provide:Pf,useExisting:ax,multi:!0}]),yo]}),e})(),cx=(()=>{let e=class{constructor(e,t){this.doc=e,this.backButton=new C,this.keyboardDidShow=new C,this.keyboardDidHide=new C,this.pause=new C,this.resume=new C,this.resize=new C,t.run(()=>{let n;this.win=e.defaultView,this.backButton.subscribeWithPriority=function(e,n){return this.subscribe(i=>i.register(e,e=>t.run(()=>n(e))))},dx(this.pause,e,"pause"),dx(this.resume,e,"resume"),dx(this.backButton,e,"ionBackButton"),dx(this.resize,this.win,"resize"),dx(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),dx(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(e=>{n=e}),this.win&&this.win.cordova?e.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(e){return Object(B_.a)(this.win,e)}platforms(){return Object(B_.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(e){return ux(this.win.location.href,e)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(e){const t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(lu))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e(fi(Hu),fi(lu))},token:e,providedIn:"root"}),e=O_([I_(0,yi(Hu))],e),e})();const ux=(e,t)=>{t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},dx=(e,t,n)=>{t&&t.addEventListener(n,t=>{e.next(null!=t?t.detail:void 0)})};let hx=(()=>{let e=class{constructor(e,t,n,i){this.location=t,this.serializer=n,this.router=i,this.direction=gx,this.animated=fx,this.guessDirection="forward",this.lastNavId=-1,i&&i.events.subscribe(e=>{if(e instanceof Nb){const t=e.restoredState?e.restoredState.navigationId:e.id;this.guessDirection=t<this.lastNavId?"back":"forward",this.guessAnimation=e.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?e.id:t}}),e.backButton.subscribeWithPriority(0,e=>{this.pop(),e()})}navigateForward(e,t={}){return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateBack(e,t={}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateRoot(e,t={}){return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}back(e={animated:!0,animationDirection:"back"}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}pop(){return M_(this,void 0,void 0,function*(){let e=this.topOutlet;for(;e&&!(yield e.pop());)e=e.parentOutlet})}setDirection(e,t,n,i){this.direction=e,this.animated=px(e,t,n),this.animationBuilder=i}setTopOutlet(e){this.topOutlet=e}consumeTransition(){let e,t="root";const n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=gx,this.animated=fx,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}navigate(e,t){if(Array.isArray(e))return this.router.navigate(e,t);{const n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}};return e.\u0275fac=function(t){return new(t||e)(fi(cx),fi(id),fi(by),fi(a_,8))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e(fi(cx),fi(id),fi(by),fi(a_,8))},token:e,providedIn:"root"}),e=O_([I_(3,wi())],e),e})();const px=(e,t,n)=>{if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},gx="auto",fx=void 0,mx=(e,t)=>{const n=e.prototype;t.forEach(e=>{Object.defineProperty(n,e,{get(){return this.el[e]},set(t){this.z.runOutsideAngular(()=>this.el[e]=t)}})})},vx=(e,t)=>{const n=e.prototype;t.forEach(e=>{n[e]=function(){const t=arguments;return this.z.runOutsideAngular(()=>this.el[e].apply(this.el,t))}})},bx=(e,t,n)=>{n.forEach(n=>e[n]=z_(t,n))};function yx(e){return function(t){return e.inputs&&mx(t,e.inputs),e.methods&&vx(t,e.methods),t}}let wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-app"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),_x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-avatar"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e),e})(),Ax=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),Cx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e),e})(),Sx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["collapse"]})],e),e})(),kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),Ex=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["mode"]})],e),e})(),Px=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode","translucent"]})],e),e})(),Dx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),Ox=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e),e})(),Ix=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","mode","outline"]})],e),e})(),Tx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],e),e})(),Mx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e),e})(),Bx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],e),e})(),Rx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e),e})(),Lx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e),e})(),Fx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["activated","side"]})],e),e})(),Nx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["mode","translucent"]})],e),e})(),Vx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["fixed"]})],e),e})(),zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["collapse","mode","translucent"]})],e),e})(),jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],e),e})(),Hx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["alt","src"]})],e),e})(),Ux=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInfinite"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled","position","threshold"],methods:["complete"]})],e),e})(),Wx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["loadingSpinner","loadingText"]})],e),e})(),$x=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),Gx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],e),e})(),Yx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSwipe"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["side"]})],e),e})(),Zx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionDrag"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],e),e})(),Kx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode","position"]})],e),e})(),Qx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e),e})(),Xx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","lines","mode"]})],e),e})(),Jx=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e),e})(),eA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["autoHide","color","disabled","menu","mode","type"]})],e),e})(),tA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["autoHide","menu"]})],e),e})(),nA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),iA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","mode","name","value"]})],e),e})(),rA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["allowEmptySelection","name","value"]})],e),e})(),sA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],e),e})(),oA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-reorder"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),aA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionItemReorder"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled"],methods:["complete"]})],e),e})(),lA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-row"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),cA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),uA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],e),e})(),dA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled","layout","mode","type","value"]})],e),e})(),hA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e),e})(),pA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["disabled","value"]})],e),e})(),gA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-slide"]],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e})(),fA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e),e})(),mA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","duration","name","paused"]})],e),e})(),vA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionSplitPaneVisible"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["contentId","disabled","when"]})],e),e})(),bA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","size"]})],e),e})(),yA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,bx(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["checked","color","disabled","mode","name","value"]})],e),e})(),wA=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(al),Vo(lu))},e.\u0275cmp=qe({type:e,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["color","mode"]})],e),e})(),_A=(()=>{let e=class{get(e,t){const n=AA();return n?n.get(e,t):null}getBoolean(e,t){const n=AA();return!!n&&n.getBoolean(e,t)}getNumber(e,t){const n=AA();return n?n.getNumber(e,t):0}set(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const n=AA();n&&n.set(e,t)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();const xA=new Xn("USERCONFIG"),AA=()=>{if("undefined"!=typeof window){const e=window.Ionic;if(e&&e.config)return e.config}return null};class CA{constructor(e={}){this.data=e}get(e){return this.data[e]}}let SA=(()=>{let e=class{constructor(e,t){this.zone=e,this.appRef=t}create(e,t,n){return new kA(e,t,n,this.appRef,this.zone)}};return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(Du))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();class kA{constructor(e,t,n,i,r){this.resolver=e,this.injector=t,this.location=n,this.appRef=i,this.zone=r,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(e,t,n,i){return this.zone.run(()=>new Promise(r=>{r(EA(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,e,t,n,i))}))}removeViewFromDom(e,t){return this.zone.run(()=>new Promise(e=>{const n=this.elRefMap.get(t);if(n){n.destroy(),this.elRefMap.delete(t);const e=this.elEventsMap.get(t);e&&(e(),this.elEventsMap.delete(t))}e()}))}}const EA=(e,t,n,i,r,s,o,a,l,c,u)=>{const d=t.resolveComponentFactory(l),h=vo.create({providers:IA(c),parent:n}),p=i?i.createComponent(d,i.length,h):d.create(h),g=p.instance,f=p.location.nativeElement;if(c&&Object.assign(g,c),u)for(const v of u)f.classList.add(v);const m=DA(e,g,f);return a.appendChild(f),i||r.attachView(p.hostView),p.changeDetectorRef.reattach(),s.set(f,p),o.set(f,m),f},PA=[L_.a,L_.b,L_.c,L_.d,L_.e],DA=(e,t,n)=>e.run(()=>{const e=PA.filter(e=>"function"==typeof t[e]).map(e=>{const i=n=>t[e](n.detail);return n.addEventListener(e,i),()=>n.removeEventListener(e,i)});return()=>e.forEach(e=>e())}),OA=new Xn("NavParamsToken"),IA=e=>[{provide:OA,useValue:e},{provide:CA,useFactory:TA,deps:[OA]}],TA=e=>new CA(e),MA=(e,t)=>((e=e.filter(e=>e.stackId!==t.stackId)).push(t),e),BA=(e,t)=>{const n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},RA=(e,t)=>{if(!e)return;const n=LA(t);for(let i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},LA=e=>e.split("/").map(e=>e.trim()).filter(e=>""!==e),FA=e=>{e&&(e.ref.destroy(),e.unlistenEvents())};class NA{constructor(e,t,n,i,r,s){this.containerEl=t,this.router=n,this.navCtrl=i,this.zone=r,this.location=s,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==e?LA(e):void 0}createView(e,t){const n=BA(this.router,t),i=e&&e.location&&e.location.nativeElement,r=DA(this.zone,e.instance,i);return{id:this.nextId++,stackId:RA(this.tabsPrefix,n),unlistenEvents:r,element:i,ref:e,url:n}}getExistingView(e){const t=BA(this.router,e),n=this.views.find(e=>e.url===t);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(e){const t=this.navCtrl.consumeTransition();let{direction:n,animation:i,animationBuilder:r}=t;const s=this.activeView,o=((e,t)=>!t||e.stackId!==t.stackId)(e,s);o&&(n="back",i=void 0);const a=this.views.slice();let l;const c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const u=this.views.includes(e),d=this.insertView(e,n);u||e.ref.changeDetectorRef.detectChanges();const h=e.animationBuilder;return void 0!==r||"back"!==n||o||void 0===h||(r=h),s&&(s.animationBuilder=r),this.zone.runOutsideAngular(()=>this.wait(()=>(s&&s.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),this.transition(e,s,i,this.canGoBack(1),!1,r).then(()=>VA(e,d,a,this.location)).then(()=>({enteringView:e,direction:n,animation:i,tabSwitch:o})))))}canGoBack(e,t=this.getActiveStackId()){return this.getStack(t).length>e}pop(e,t=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(t);if(n.length<=e)return Promise.resolve(!1);const i=n[n.length-e-1];let r=i.url;const s=i.savedData;if(s){const e=s.get("primary");e&&e.route&&e.route._routerState&&e.route._routerState.snapshot&&e.route._routerState.snapshot.url&&(r=e.route._routerState.snapshot.url)}const{animationBuilder:o}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(r,Object.assign({},i.savedExtras,{animation:o})).then(()=>!0)})}startBackTransition(){const e=this.activeView;if(e){const t=this.getStack(e.stackId),n=t[t.length-2],i=n.animationBuilder;return this.wait(()=>this.transition(n,e,"back",this.canGoBack(2),!0,i))}return Promise.resolve()}endBackTransition(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&zA(this.activeView,this.views,this.views,this.location)}getLastUrl(e){const t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}getRootUrl(e){const t=this.getStack(e);return t.length>0?t[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(FA),this.activeView=void 0,this.views=[]}getStack(e){return this.views.filter(t=>t.stackId===e)}insertView(e,t){return this.activeView=e,this.views=((e,t,n)=>"root"===n?MA(e,t):"forward"===n?((e,t)=>(e.indexOf(t)>=0?e=e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):e.push(t),e))(e,t):((e,t)=>e.indexOf(t)>=0?e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):MA(e,t))(e,t))(this.views,e,t),this.views.slice()}transition(e,t,n,i,r,s){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);const o=e?e.element:void 0,a=t?t.element:void 0,l=this.containerEl;return o&&o!==a&&(o.classList.add("ion-page"),o.classList.add("ion-page-invisible"),o.parentElement!==l&&l.appendChild(o),l.commit)?l.commit(o,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:r,animationBuilder:s}):Promise.resolve(!1)}wait(e){return M_(this,void 0,void 0,function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=e()})}}const VA=(e,t,n,i)=>"function"==typeof requestAnimationFrame?new Promise(r=>{requestAnimationFrame(()=>{zA(e,t,n,i),r()})}):Promise.resolve(),zA=(e,t,n,i)=>{n.filter(e=>!t.includes(e)).forEach(FA),t.forEach(t=>{const n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){const e=t.element;e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})};let jA=(()=>{let e=class{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h){this.parentContexts=e,this.location=t,this.resolver=n,this.config=s,this.navCtrl=o,this.parentOutlet=h,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Gv(null),this.stackEvents=new wc,this.activateEvents=new wc,this.deactivateEvents=new wc,this.nativeEl=l.nativeElement,this.name=i||"primary",this.tabsPrefix="true"===r?BA(c,d):void 0,this.stackCtrl=new NA(this.tabsPrefix,this.nativeEl,c,o,u,a),e.onChildOutletCreated(this.name,this)}set animation(e){this.nativeEl.animation=e}set animated(e){this.nativeEl.animated=e}set swipeGesture(e){this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:e=>this.stackCtrl.endBackTransition(e)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}new Promise(e=>Object(R_.c)(this.nativeEl,e)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(e,t){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};const e=this.getContext();if(e.route){const t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}const e=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");let n;this._activatedRoute=e;let i=this.stackCtrl.getExistingView(e);if(i){n=this.activated=i.ref;const t=i.savedData;t&&(this.getContext().children.contexts=t),this.updateActivatedRouteProxy(n.instance,e)}else{const r=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new Gv(null),a=this.createActivatedRouteProxy(o,e),l=new HA(a,s,this.location.injector);n=this.activated=this.location.createComponent(r,this.location.length,l),o.next(n.instance),i=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=i,this.stackCtrl.setActive(i).then(e=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(e)})}canGoBack(e=1,t){return this.stackCtrl.canGoBack(e,t)}pop(e=1,t){return this.stackCtrl.pop(e,t)}getLastUrl(e){const t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}getLastRouteView(e){return this.stackCtrl.getLastUrl(e)}getRootView(e){return this.stackCtrl.getRootUrl(e)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(e,t){const n=new jy;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}proxyObservable(e,t){return e.pipe(dv(e=>!!e),sb(e=>this.currentActivatedRoute$.pipe(dv(t=>null!==t&&t.component===e),sb(e=>e&&e.activatedRoute[t]),H_())))}updateActivatedRouteProxy(e,t){const n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}};return e.\u0275fac=function(t){return new(t||e)(Vo(n_),Vo(Gl),Vo(il),Zn("name"),Zn("tabs"),Vo(_A),Vo(hx),Vo(id),Vo(al),Vo(a_),Vo(lu),Vo(jy),Vo(e,12))},e.\u0275dir=Je({type:e,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e=O_([I_(3,Qn("name")),I_(4,wi()),I_(4,Qn("tabs")),I_(12,_i()),I_(12,wi())],e),e})();class HA{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===jy?this.route:e===n_?this.childContexts:this.parent.get(e,t)}}let UA=(()=>{let e=class{constructor(e,t,n){this.routerOutlet=e,this.navCtrl=t,this.config=n}onClick(e){const t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}};return e.\u0275fac=function(t){return new(t||e)(Vo(jA,8),Vo(hx),Vo(_A))},e.\u0275dir=Je({type:e,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&Xo("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),e=O_([I_(0,wi())],e),e})(),WA=(()=>{let e=class{constructor(e,t,n,i,r){this.locationStrategy=e,this.navCtrl=t,this.elementRef=n,this.router=i,this.routerLink=r,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTargetUrlAndHref(){if(this.routerLink){const e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}onClick(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}};return e.\u0275fac=function(t){return new(t||e)(Vo(Xu),Vo(hx),Vo(al),Vo(a_),Vo(l_,8))},e.\u0275dir=Je({type:e,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&Xo("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[dt]}),e=O_([I_(4,wi())],e),e})(),$A=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(Vo(Vl))},e.\u0275dir=Je({type:e,selectors:[["","virtualFooter",""]]}),e})(),GA=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(Vo(Vl))},e.\u0275dir=Je({type:e,selectors:[["","virtualHeader",""]]}),e})(),qA=(()=>{let e=class{constructor(e,t){this.templateRef=e,this.viewContainer=t}};return e.\u0275fac=function(t){return new(t||e)(Vo(Vl),Vo(Gl))},e.\u0275dir=Je({type:e,selectors:[["","virtualItem",""]]}),e})(),YA=(()=>{let e=class{constructor(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(e){if(this.trackBy&&"items"in e){const n=e.items.currentValue;if(void 0===this.differ&&null!=n)try{this.differ=this.iterableDiffers.find(n).create(this.trackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(e,t,n){return this.z.run(()=>{let i;if(e){i=this.refMap.get(e);const n=i.context;n.$implicit=t.value,n.index=t.index}else i=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(t.type),{$implicit:t.value,index:n},n),e=ZA(i),this.refMap.set(e,i);return i.detectChanges(),e})}getComponent(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}};return e.\u0275fac=function(t){return new(t||e)(Vo(lu),Vo(kl),Vo(al))},e.\u0275cmp=qe({type:e,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,qA,1),Bc(n,GA,1),Bc(n,$A,1)),2&e){let e;Tc(e=Rc())&&(t.itmTmp=e.first),Tc(e=Rc())&&(t.hdrTmp=e.first),Tc(e=Rc())&&(t.ftrTmp=e.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[dt],ngContentSelectors:G_,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},encapsulation:2,changeDetection:0}),e=O_([yx({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],e),e})();const ZA=e=>{const t=e.rootNodes;for(let n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};class KA{constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,t,n){return this.ctrl.dismiss(e,t,n)}getTop(){return this.ctrl.getTop()}}let QA=(()=>{let e=class extends KA{constructor(){super(N_.c)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),XA=(()=>{let e=class extends KA{constructor(){super(N_.b)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),JA=(()=>{let e=class extends KA{constructor(){super(N_.k)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),eC=(()=>{let e=class{open(e){return F_.a.open(e)}close(e){return F_.a.close(e)}toggle(e){return F_.a.toggle(e)}enable(e,t){return F_.a.enable(e,t)}swipeGesture(e,t){return F_.a.swipeGesture(e,t)}isOpen(e){return F_.a.isOpen(e)}isEnabled(e){return F_.a.isEnabled(e)}get(e){return F_.a.get(e)}getOpen(){return F_.a.getOpen()}getMenus(){return F_.a.getMenus()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),tC=(()=>{let e=class extends KA{constructor(e,t,n){super(N_.l),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(fi(SA),fi(il),fi(vo))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),nC=(()=>{let e=class extends KA{constructor(e,t,n){super(N_.d),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return e.\u0275fac=function(t){return new(t||e)(fi(SA),fi(il),fi(vo))},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),iC=(()=>{let e=class extends KA{constructor(){super(N_.o)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:function(t){return e.\u0275fac(t)},providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();class rC{shouldDetach(e){return!1}shouldAttach(e){return!1}store(e,t){}retrieve(e){return null}shouldReuseRoute(e,t){if(e.routeConfig!==t.routeConfig)return!1;const n=e.params,i=t.params,r=Object.keys(n),s=Object.keys(i);if(r.length!==s.length)return!1;for(const o of r)if(i[o]!==n[o])return!1;return!0}}let sC=!1;const oC=(e,t,i)=>()=>{const r=t.defaultView;if(r&&"undefined"!=typeof window){sC&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),sC=!0,(r.Ionic=r.Ionic||{}).config=Object.assign({},e,{_zoneGate:e=>i.run(e)});const s="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(()=>{return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:q_,jmp:e=>i.runOutsideAngular(e),ael(e,t,n,i){e[s](t,n,i)},rel(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(V_.b&&V_.b.supports&&V_.b.supports("color","var(--c)")?Object(V_.d)():n.e(6).then(n.t.bind(null,"9qUq",7)).then(()=>(V_.n.$cssShim$=V_.q.__cssshim)?V_.n.$cssShim$.i():0)).then(()=>($_(),Object(V_.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)));var e})}};var aC;let lC=(()=>{let e=aC=class{static forRoot(e){return{ngModule:aC,providers:[{provide:xA,useValue:e},{provide:jc,useFactory:oC,multi:!0,deps:[xA,Hu,lu]}]}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[SA,tC,nC],imports:[[hh]]}),e})();var cC=n("Hfs6"),uC=n.n(cC);function dC(e){return!!e&&(e instanceof y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}class hC extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class pC extends hC{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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}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=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class gC extends pC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let fC=(()=>{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 mC extends fC{constructor(e,t=fC.now){super(e,()=>mC.delegate&&mC.delegate!==this?mC.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return mC.delegate&&mC.delegate!==this?mC.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}}}class vC extends mC{}const bC=new vC(gC);function yC(e,t){return new y(t?n=>t.schedule(wC,0,{error:e,subscriber:n}):t=>t.error(e))}function wC({error:e,subscriber:t}){t.error(e)}let _C=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return cv(this.value);case"E":return yC(this.error);case"C":return ib()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class xC extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(xC.dispatch,this.delay,new AC(e,this.destination)))}_next(e){this.scheduleMessage(_C.createNext(e))}_error(e){this.scheduleMessage(_C.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(_C.createComplete()),this.unsubscribe()}}class AC{constructor(e,t){this.notification=e,this.destination=t}}class CC extends C{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new SC(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new _;if(this.isStopped||this.hasError?s=h.EMPTY:(this.observers.push(e),s=new x(this,e)),i&&e.add(e=new xC(e,i)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||bC).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(e-i[s].time<n);)s++;return r>t&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}class SC{constructor(e,t){this.time=e,this.value=t}}function kC(e,t,n){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(c){let u;o++,!r||a?(a=!1,r=new CC(e,t,i),u=r.subscribe(this),s=c.subscribe({next(e){r.next(e)},error(e){a=!0,r.error(e)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):u=r.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,s&&!l&&n&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}class EC{}let PC=(()=>{class e extends EC{getTranslation(e){return cv({})}}return e.\u0275fac=function(t){return DC(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const DC=qn(PC);class OC{}let IC=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function TC(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,i,r,s=typeof e;if(s==typeof t&&"object"==s){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!TC(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!TC(e[i],t[i]))return!1;return!0}}return!1}function MC(e){return null!=e}function BC(e){return e&&"object"==typeof e&&!Array.isArray(e)}function RC(e,t){let n=Object.assign({},e);return BC(e)&&BC(t)&&Object.keys(t).forEach(i=>{BC(t[i])?i in e?n[i]=RC(e[i],t[i]):Object.assign(n,{[i]:t[i]}):Object.assign(n,{[i]:t[i]})}),n}class LC{}let FC=(()=>{class e extends LC{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!MC(e)||!MC(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let i=this.getValue(t,n);return MC(i)?i:e}):e}}return e.\u0275fac=function(t){return NC(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const NC=qn(FC);class VC{}let zC=(()=>{class e extends VC{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return jC(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const jC=qn(zC);class HC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new wc,this.onLangChange=new wc,this.onDefaultLangChange=new wc}}const UC=new Xn("USE_STORE"),WC=new Xn("USE_DEFAULT_LANG"),$C=new Xn("DEFAULT_LANGUAGE"),GC=new Xn("USE_EXTEND");let qC=(()=>{class e{constructor(e,t,n,i,r,s=!0,o=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=r,this.useDefaultLang=s,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new wc,this._onLangChange=new wc,this._onDefaultLangChange=new wc,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe(cb(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return cv(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(cb(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),cv(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(kC(1),cb(1));return this.loadingTranslations=t.pipe(E(t=>this.compiler.compileTranslations(t,e)),kC(1),cb(1)),this.loadingTranslations.subscribe({next:t=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},t),this.translations[e]):t,this.updateLangs(),this.pending=!1},error:e=>{this.pending=!1}}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?RC(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let i;if(t instanceof Array){let i={},r=!1;for(let s of t)i[s]=this.getParsedResult(e,s,n),dC(i[s])&&(r=!0);return r?Sf(t.map(e=>dC(i[e])?i[e]:cv(i[e]))).pipe(E(e=>{let n={};return e.forEach((e,i)=>{n[t[i]]=e}),n})):i}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),i=this.missingTranslationHandler.handle(e)}return void 0!==i?i:t}get(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(uv(n=>dC(n=this.getParsedResult(n,e,t))?n:cv(n)));{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return dC(n)?n:cv(n)}}getStreamOnTranslationChange(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return tb(rb(()=>this.get(e,t)),this.onTranslationChange.pipe(sb(n=>{const i=this.getParsedResult(n.translations,e,t);return"function"==typeof i.subscribe?i:cv(i)})))}stream(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');return tb(rb(()=>this.get(e,t)),this.onLangChange.pipe(sb(n=>{const i=this.getParsedResult(n.translations,e,t);return dC(i)?i:cv(i)})))}instant(e,t){if(!MC(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(dC(n)){if(e instanceof Array){let t={};return e.forEach((n,i)=>{t[e[i]]=e[i]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(fi(HC),fi(EC),fi(VC),fi(LC),fi(OC),fi(WC),fi(UC),fi(GC),fi($C))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),YC=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let i=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let r=this.translate.getParsedResult(n,e,t);dC(r.subscribe)?r.subscribe(i):i(r)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(TC(e,this.lastKey)&&TC(t,this.lastParams))return this.value;let n;if(MC(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),zc())},e.\u0275pipe=et({name:"translate",type:e,pure:!1}),e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),ZC=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:EC,useClass:PC},t.compiler||{provide:VC,useClass:zC},t.parser||{provide:LC,useClass:FC},t.missingTranslationHandler||{provide:OC,useClass:IC},HC,{provide:UC,useValue:t.isolate},{provide:WC,useValue:t.useDefaultLang},{provide:GC,useValue:t.extend},{provide:$C,useValue:t.defaultLanguage},qC]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:EC,useClass:PC},t.compiler||{provide:VC,useClass:zC},t.parser||{provide:LC,useClass:FC},t.missingTranslationHandler||{provide:OC,useClass:IC},{provide:UC,useValue:t.isolate},{provide:WC,useValue:t.useDefaultLang},{provide:GC,useValue:t.extend},{provide:$C,useValue:t.defaultLanguage},qC]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();var KC=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let QC=(()=>{class e{constructor(e,t,n){this.translate=e,this.router=t,this.toastController=n}success(e){return KC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-success",duration:3e3,message:t,position:"top"})).present()})}message(e){return KC(this,void 0,void 0,function*(){const t=e.includes("lang.")?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-primary",duration:3e3,message:t,position:"top"})).present()})}error(e){return KC(this,void 0,void 0,function*(){"object"==typeof e&&(e=e.toString());const t=e.indexOf("lang.")>-1?this.translate.instant(e):e;(yield this.toastController.create({cssClass:"notif-error",duration:3e3,message:t,position:"top"})).present()})}handleErrors(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}return e.\u0275fac=function(t){return new(t||e)(fi(qC),fi(a_),fi(iC))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();class XC{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class JC extends XC{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class eS extends XC{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class tS extends XC{constructor(e){super(),this.element=e instanceof al?e.nativeElement:e}}class nS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof JC?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof eS?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof tS?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class iS extends nS{constructor(e,t,n,i,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),n.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let rS=(()=>{class e extends nS{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new wc,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(Vo(il),Vo(Gl),Vo(Hu))},e.\u0275dir=Je({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[yo]}),e})(),sS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),oS=(()=>{class e{constructor(e,t,n){this.componentFactoryResolver=e,this.injector=t,this.appRef=n,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.mustRefreshCerts=!0,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}reset(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}getAppSession(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}initTemplate(e,t,n="adminMenu",i=""){document.getElementById(""+n).innerHTML="",this.portalHost=new iS(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);const r=new eS(e,t);this.portalHost.attach(r)}detachTemplate(e="adminMenu"){this.portalHost.detach()}}return e.\u0275fac=function(t){return new(t||e)(fi(il),fi(vo),fi(Du))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),aS=(()=>{class e{constructor(){}setAppSession(e){this.appSession=e}getAppSession(){return this.appSession}save(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}get(e){return localStorage.getItem(e+"_"+this.getAppSession())}remove(e){localStorage.removeItem(e+"_"+this.getAppSession())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lS=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.localStorage=r,this.navCtrl=s,this.authMode="default",this.changeKey=!1,this.casToken=null,this.coreUrl="",this.authUri="",this.user={},this.signatureRoles=[],this.authFailed=!1}cleanUrl(e){return this.localStorage.remove("MaarchCourrierUrl_"+e)}getToken(){return this.localStorage.get("MaarchParapheurToken")}setToken(e){this.localStorage.save("MaarchParapheurToken",e)}getRefreshToken(){return this.localStorage.get("MaarchParapheurRefreshToken")}setRefreshToken(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}clearTokens(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}refreshToken(){return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(Ib(e=>{this.setToken(e.token),this.updateUserInfo(e.token)}),mb(e=>(this.logout(),this.notificationService.error("lang.sessionExpired"),cv(!1))))}logout(e=!0,t=!1,n=!0){if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");["cas"].indexOf(this.authMode)>-1&&!t?this.SsoLogout(e):n&&this.http.get("../rest/authenticate/logout").subscribe(),this.http.get("../rest/authenticate/logout").pipe(Ib(()=>{this.clearTokens(),this.navCtrl.navigateRoot("/login")}),mb(e=>(this.notificationService.handleErrors(e),this.clearTokens(),this.navCtrl.navigateRoot("/login"),cv(!1)))).subscribe()}SsoLogout(e=!0){this.http.get("../rest/authenticate/logout").pipe(Ib(t=>{return n=this,void 0,r=function*(){this.redirectAfterLogout(e),window.location.href=t.logoutUrl},new((i=void 0)||(i=Promise))(function(e,t){function s(e){try{a(r.next(e))}catch(n){t(n)}}function o(e){try{a(r.throw(e))}catch(n){t(n)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(s,o)}a((r=r.apply(n,[])).next())});var n,i,r})).subscribe()}redirectAfterLogout(e=!0){null!==this.getToken()&&e&&this.cleanUrl(JSON.parse(atob(this.getToken().split(".")[1])).user.id),this.clearTokens()}saveTokens(e,t){this.setToken(e),this.setRefreshToken(t)}isAuth(){return null!==this.getToken()}updateUserInfo(e){const t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}updateUserInfoWithTokenRefresh(){this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:e=>{this.setToken(e.token),this.updateUserInfo(this.getToken())},error:e=>{this.notificationService.handleErrors(e)}})}setUser(e){this.user=e}getSignatureMode(e){return"visa"===e?"stamp":e}getWorkflowMode(e){return this.signatureRoles.filter(t=>t.id===e)[0].type}setCachedUrl(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}getCachedUrl(){return this.localStorage.get("MaarchParapheurCacheUrl")}cleanCachedUrl(){return this.localStorage.remove("MaarchParapheurCacheUrl")}getCasToken(){null!==window.location.search.match(/ticket=[.]*/g)&&(this.casToken=window.location.search.substring(1,window.location.search.length))}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(a_),fi(QC),fi(oS),fi(aS),fi(hx))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cS=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.router=t,this.notificationService=n,this.signaturesService=i,this.authService=r,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Gv(null)}addAuthHeader(e){const t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}intercept(e,t){return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(mb(n=>{if(this.byPassHandleErrors.filter(t=>e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1).length>0)return t.handle(e);if(401===n.status)return this.handle401Error(e,t);if("Password expired : User must change his password"===n.error.errors)return this.router.navigate(["/password-modification"]);{let t;return"GET"===e.method&&this.frontUrl.forEach(i=>{if(e.url.indexOf(i)>-1)return"../rest/documents/"===i&&(this.signaturesService.mainDocumentId=null),t=new Pv({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}),t=new Pv({error:n.error,status:n.status,statusText:n.statusText,headers:n.headers,url:n.url}),Promise.reject(t)}})))}handle401Error(e,t){return this.isRefreshing?this.refreshTokenSubject.pipe(dv(e=>null!=e),cb(1),sb(()=>(e=this.addAuthHeader(e),t.handle(e)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(sb(n=>(this.isRefreshing=!1,this.refreshTokenSubject.next(n.token),e=this.addAuthHeader(e),t.handle(e)))))}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(a_),fi(QC),fi(oS),fi(lS))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();function uS(e,t){if(1&e){const e=Yo();Ho(0,"div",2),Ho(1,"div",3),Ho(2,"button",4),dn(),Ho(3,"svg",5),Wo(4,"path",6),Uo(),hn(),Ho(5,"span",7),Oa(6,"Presentation Mode"),Uo(),Uo(),Ho(7,"button",8),dn(),Ho(8,"svg",5),Wo(9,"path",9),Uo(),hn(),Ho(10,"span",10),Oa(11,"Open"),Uo(),Uo(),Ho(12,"button",11),dn(),Ho(13,"svg",5),Wo(14,"path",12),Uo(),hn(),Ho(15,"span",13),Oa(16,"Print"),Uo(),Uo(),Ho(17,"button",14),dn(),Ho(18,"svg",5),Wo(19,"path",15),Uo(),hn(),Ho(20,"span",16),Oa(21,"Download"),Uo(),Uo(),Ho(22,"a",17),dn(),Ho(23,"svg",5),Wo(24,"path",18),Uo(),hn(),Ho(25,"span",19),Oa(26,"Current View"),Uo(),Uo(),Ho(27,"button",20),dn(),Ho(28,"svg",21),Wo(29,"path",22),Uo(),hn(),Ho(30,"span",23),Oa(31,"Go to First Page"),Uo(),Uo(),Ho(32,"button",24),Xo("click",function(){return Lt(e),ia().previousPage()}),dn(),Ho(33,"svg",21),Wo(34,"path",25),Uo(),hn(),Ho(35,"span",26),Oa(36,"Go to Previous Page"),Uo(),Uo(),Ho(37,"button",27),Xo("click",function(){return Lt(e),ia().nextPage()}),dn(),Ho(38,"svg",21),Wo(39,"path",28),Uo(),hn(),Ho(40,"span",29),Oa(41,"Go to Next Page"),Uo(),Uo(),Ho(42,"button",30),dn(),Ho(43,"svg",21),Wo(44,"path",31),Uo(),hn(),Ho(45,"span",32),Oa(46,"Go to Last Page"),Uo(),Uo(),Ho(47,"button",33),dn(),Ho(48,"svg",5),Wo(49,"path",34),Uo(),hn(),Ho(50,"span",35),Oa(51,"Rotate Clockwise"),Uo(),Uo(),Ho(52,"button",36),dn(),Ho(53,"svg",5),Wo(54,"path",37),Uo(),hn(),Ho(55,"span",38),Oa(56,"Rotate Counterclockwise"),Uo(),Uo(),Ho(57,"button",39),dn(),Ho(58,"svg",5),Wo(59,"path",40),Uo(),hn(),Ho(60,"span",41),Oa(61,"Text Selection Tool"),Uo(),Uo(),Ho(62,"button",42),dn(),Ho(63,"svg",5),Wo(64,"path",43),Uo(),hn(),Ho(65,"span",44),Oa(66,"Hand Tool"),Uo(),Uo(),Ho(67,"button",45),dn(),Ho(68,"svg",46),Wo(69,"path",47),Uo(),hn(),Ho(70,"span",48),Oa(71,"Vertical Scrolling"),Uo(),Uo(),Ho(72,"button",49),dn(),Ho(73,"svg",46),Wo(74,"path",50),Uo(),hn(),Ho(75,"span",51),Oa(76,"Horizontal Scrolling"),Uo(),Uo(),Ho(77,"button",52),dn(),Ho(78,"svg",46),Wo(79,"path",53),Uo(),hn(),Ho(80,"span",54),Oa(81,"Wrapped Scrolling"),Uo(),Uo(),Ho(82,"button",55),Xo("click",function(){return Lt(e),ia().onSpreadChange("off")}),dn(),Ho(83,"svg",56),Wo(84,"path",57),Uo(),hn(),Ho(85,"span",58),Oa(86,"No Spreads"),Uo(),Uo(),Ho(87,"button",59),Xo("click",function(){return Lt(e),ia().onSpreadChange("odd")}),dn(),Ho(88,"svg",46),Wo(89,"path",60),Uo(),hn(),Ho(90,"span",61),Oa(91,"Odd Spreads"),Uo(),Uo(),Ho(92,"button",62),Xo("click",function(){return Lt(e),ia().onSpreadChange("even")}),dn(),Ho(93,"svg",46),Wo(94,"path",63),Uo(),hn(),Ho(95,"span",64),Oa(96,"Even Spreads"),Uo(),Uo(),Ho(97,"button",65),dn(),Ho(98,"svg",66),Wo(99,"path",67),Wo(100,"path",68),Wo(101,"circle",69),Uo(),hn(),Ho(102,"span",70),Oa(103,"Document Properties\u2026"),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();ma("top",e.secondaryToolbarTop)("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","right top"),is(2),va("invisible",!e.showPresentationModeButton),is(5),va("invisible",!e.showOpenFileButton),is(5),va("invisible",!e.showPrintButton),is(5),va("invisible",!e.showDownloadButton),is(5),va("invisible",!e.showBookmarkButton),is(5),va("invisible",!e.showPagingButtons),is(5),va("invisible",!e.showPagingButtons),zo("disabled",e.disablePreviousPage),is(5),va("invisible",!e.showPagingButtons),zo("disabled",e.disableNextPage),is(5),va("invisible",!e.showPagingButtons),is(5),va("invisible",!e.showRotateButton),is(5),va("invisible",!e.showRotateButton),is(5),va("invisible",!e.showHandToolButton),is(5),va("invisible",!e.showHandToolButton),is(5),va("invisible",!e.showScrollingButton),is(5),va("invisible",!e.showScrollingButton),is(5),va("invisible",!e.showScrollingButton),is(5),va("invisible",!e.showSpreadButton),is(5),va("invisible",!e.showSpreadButton),is(5),va("invisible",!e.showSpreadButton),is(5),va("invisible",!e.showPropertiesButton)}}function dS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function hS(e,t){if(1&e){const e=Yo();Ho(0,"div",2),Ho(1,"div",3),Wo(2,"pdf-sidebar-toolbar"),Uo(),Ho(3,"pdf-sidebar-content",4),Xo("thumbnailDrawn",function(t){return Lt(e),ia().thumbnailDrawn.emit(t)}),Uo(),Wo(4,"div",5),Uo()}if(2&e){const e=ia();ma("top",e.sidebarPositionTop),is(1),ma("display",e.hideSidebarToolbar?"none":""),is(2),zo("customThumbnail",e.customThumbnail)("hideSidebarToolbar",e.hideSidebarToolbar)}}const pS=["*"],gS=["root"],fS=["pdfSecondaryToolbarComponent"],mS=["pdfsidebar"];function vS(e,t){1&e&&Wo(0,"link",48)}function bS(e,t){1&e&&Wo(0,"pdf-dark-theme")}function yS(e,t){1&e&&Wo(0,"pdf-light-theme")}function wS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function _S(e,t){}function xS(e,t){if(1&e&&(Ho(0,"div",3),qo(1,0),Uo()),2&e){const e=ia(),t=No(4);ma("transform","scale("+e.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",e.findbarLeft)("top",e.findbarTop),va("invisible",!e.showFindButton),is(1),zo("ngTemplateOutlet",e.customFindbarButtons?e.customFindbarButtons:t)}}function AS(e,t){1&e&&(Wo(0,"pdf-find-input-area",4),Wo(1,"pdf-findbar-options-one-container"),Wo(2,"pdf-findbar-options-two-container"),Wo(3,"pdf-findbar-options-three-container"),Wo(4,"pdf-findbar-message-container")),2&e&&zo("customFindbarInputArea",ia().customFindbarInputArea)}function CS(e,t){1&e&&(Ho(0,"div",2),Wo(1,"pdf-search-input-field"),Wo(2,"pdf-find-previous"),Wo(3,"pdf-find-next"),Uo())}const SS=["button"],kS="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",ES=["button1"],PS=["button2"],DS="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",OS="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function IS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function TS(e,t){if(1&e&&(Ho(0,"div",7),Ho(1,"div",8),Wo(2,"pdf-toggle-sidebar",9),Wo(3,"pdf-find-button",10),Wo(4,"pdf-paging-area",11),Uo(),Wo(5,"pdf-zoom-toolbar",12),Ho(6,"div",13),Wo(7,"pdf-hand-tool",14),Wo(8,"pdf-select-tool",15),Wo(9,"pdf-rotate-page",16),Wo(10,"pdf-presentation-mode",17),Wo(11,"pdf-open-file",18),Wo(12,"pdf-print",19),Wo(13,"pdf-download",20),Wo(14,"pdf-bookmark",21),Wo(15,"pdf-toggle-secondary-toolbar",22),Uo(),Uo()),2&e){const e=ia();is(2),zo("showSidebarButton",e.showSidebarButton),is(1),zo("showFindButton",e.showFindButton)("textLayer",e.textLayer),is(1),zo("showPagingButtons",e.showPagingButtons),is(1),zo("showZoomButtons",e.showZoomButtons)("zoomLevels",e.zoomLevels),is(2),zo("showHandToolButton",e.showHandToolButton),is(1),zo("showSelectToolButton",e.showHandToolButton),is(1),zo("showRotateButton",e.showRotateButton),is(1),zo("showPresentationModeButton",e.showPresentationModeButton),is(1),zo("showOpenFileButton",e.showOpenFileButton),is(1),zo("showPrintButton",e.showPrintButton),is(1),zo("showDownloadButton",e.showDownloadButton),is(1),zo("showBookmarkButton",e.showBookmarkButton),is(1),zo("showSecondaryToolbarButton",e.showSecondaryToolbarButton)}}const MS=["sizeSelector"];function BS(e,t){if(1&e&&(Ho(0,"option",5),Oa(1),Uo()),2&e){const e=t.$implicit;zo("id",e.id),Bo("value",e.value)("data-l10n-id",e.dataL10nId)("data-l10n-args",e.dataL10nArgs),is(1),Ta(" ",e.displayValue," ")}}const RS=["thumbnailViewTemplate"];function LS(e,t){1&e&&oa(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function FS(e,t){1&e&&(Ho(0,"a",8),Ho(1,"div",9),Wo(2,"div",10),Uo(),Uo())}const NS="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,VS=/Edge\/\d./i.test(navigator.userAgent),zS="undefined"==typeof ReadableStream||void 0===Promise.allSettled;let jS={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:()=>"./"+jS.assetsFolder+"/cmaps/",disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:()=>NS||VS||zS?"./"+jS.assetsFolder+"/pdf.worker-es5.js":"./"+jS.assetsFolder+"/pdf.worker.js"};window.pdfDefaultOptions?jS=window.pdfDefaultOptions:window.pdfDefaultOptions=jS;const HS={ERRORS:0,WARNINGS:1,INFOS:5};HS[HS.ERRORS]="ERRORS",HS[HS.WARNINGS]="WARNINGS",HS[HS.INFOS]="INFOS";const US={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};US[US.FOUND]="FOUND",US[US.NOT_FOUND]="NOT_FOUND",US[US.WRAPPED]="WRAPPED",US[US.PENDING]="PENDING";const WS=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"];let $S=(()=>{class e{addMissingStandardWidgets(){this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];const e=this.dummyComponentsContainer;if(e)for(let t=0;t<e.children.length;t++){const t=e.firstChild;t&&e.removeChild(t)}if(WS.forEach(e=>{if(this.needsDummyWidget(e)){const t=document.createElement("span");t.id=e,t.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(t)}}),this.needsDummyWidget("scaleSelect")){const e=document.createElement("select");e.id="scaleSelect",e.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(e)}}needsDummyWidget(e){return!document.getElementById(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&Wo(0,"span",0)},encapsulation:2}),e})(),GS=(()=>{class e{constructor(){this.onPDFJSInit=new C,this.pdfjsVersion=new CC(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(()=>{this.pdfjsVersion.next(window.pdfjsLib.version)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),qS=(()=>{class e{constructor(e,t){this.element=e,this.notificationService=t,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new wc,this.secondaryMenuIsEmpty=new wc,this.disablePreviousPage=!0,this.disableNextPage=!0;const n=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),n.unsubscribe()})}onPdfJsInit(){const e=window.PDFViewerApplication;e.eventBus.on("pagechanging",()=>{this.updateUIState()}),e.eventBus.on("pagerendered",()=>{this.updateUIState()})}updateUIState(){setTimeout(()=>{const e=window.PDFViewerApplication,t=e.pdfViewer.currentPageNumber,n=document.getElementById("previousPage");n&&(this.disablePreviousPage=Number(t)<=1,n.disabled=this.disablePreviousPage);const i=document.getElementById("nextPage");i&&(this.disableNextPage=t===e.pagesCount,i.disabled=this.disableNextPage)})}onSpreadChange(e){this.spreadChange.emit(e)}ngOnChanges(e){setTimeout(()=>this.checkVisibility())}onResize(){setTimeout(()=>this.checkVisibility())}ngAfterViewInit(){setTimeout(()=>this.checkVisibility())}ngOnInit(){setTimeout(()=>this.checkVisibility())}checkVisibility(){let e=0;const t=this.element.nativeElement.children.item(0);if(t){const n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}checkVisibilityRecursively(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;let t=0;const n=e.children;if(n&&n.length)for(let i=0;i<n.length&&0===t;i++){const e=n.item(i);e&&e instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(e))}return t}previousPage(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}nextPage(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&Xo("resize",function(){return t.onResize()},!1,gr)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[dt],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&(qo(0,0),Fo(1,uS,104,48,"ng-template",null,1,Vc)),2&e){const e=No(2);zo("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:e)}},directives:[Jd],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),e})();const YS={SELECT:0,HAND:1,ZOOM:2};YS[YS.SELECT]="SELECT",YS[YS.HAND]="HAND",YS[YS.ZOOM]="ZOOM";class ZS{constructor(e){this._zone=e,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}isMobile(){return"ontouchstart"in document.documentElement}onViewerTouchStart(e){if(this.initialPinchDistance=0,2===e.touches.length){const t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}onViewerTouchMove(e){const t=window.PDFViewerApplicationOptions;if(this.initialPinchDistance<=0||2!==e.touches.length)return;1!==this.pinchScale&&e.preventDefault();const n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,r=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;let s=Number(t.get("minZoom"));s||(s=.1),this.pinchScale<s&&(this.pinchScale=s);let o=Number(t.get("maxZoom"));o||(o=10),this.pinchScale>o&&(this.pinchScale=o),this.viewer.style.transform=`scale(${this.pinchScale})`,this.viewer.style.transformOrigin=`${i}px ${r}px`,e.preventDefault(),e.stopPropagation()}onViewerTouchEnd(e){const t=window.PDFViewerApplication;if(this.initialPinchDistance<=0)return;this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;const n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}resetPinchZoomParams(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}initializePinchZoom(){this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(()=>{document.addEventListener("touchstart",this.onViewerTouchStart.bind(this)),document.addEventListener("touchmove",this.onViewerTouchMove.bind(this),{passive:!1}),document.addEventListener("touchend",this.onViewerTouchEnd.bind(this))})}destroyPinchZoom(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}let KS=(()=>{class e{constructor(e,t){this.elementRef=e,this.ref=t,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new wc,this.hideSidebarToolbar=!0}showToolbarWhenNecessary(){const e=this.elementRef.nativeElement.querySelectorAll("button");let t=0;e.forEach(e=>{e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml))},e.\u0275cmp=qe({type:e,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:pS,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(sa(),Ho(0,"div"),Fo(1,dS,1,0,"ng-content",0),Uo(),Fo(2,hS,5,6,"ng-template",null,1,Vc)),2&e){const e=No(3);is(1),zo("ngTemplateOutlet",t.customSidebar?t.customSidebar:e)}},directives:function(){return[Jd,Hk,jk]},styles:[""]}),e})(),QS=(()=>{class e{constructor(e,t,n,i){this.ngZone=e,this.platformId=t,this.notificationService=n,this.location=i,this.customFindbarButtons=void 0,this.srcChange=new wc,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new wc,this.beforePrint=new wc,this.currentZoomFactor=new wc,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=HS.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new wc,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+jS.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new wc,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new wc,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new wc,this.thumbnailDrawn=new wc,this._page=void 0,this.pageChange=new wc,this.pageLabel=void 0,this.pageLabelChange=new wc,this.pagesLoaded=new wc,this.pageRendered=new wc,this.pdfDownloaded=new wc,this.pdfLoaded=new wc,this.pdfLoadingFailed=new wc,this.textLayer=void 0,this.textlayerRendered=new wc,this.textLayerRendered=new wc,this.updateFindMatchesCount=new wc,this.updateFindState=new wc,this.zoom=void 0,this.zoomChange=new wc,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}set src(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}set base64Src(e){const t=window.atob(e),n=t.length,i=new Uint8Array(n);for(let r=0;r<n;r++)i[r]=t.charCodeAt(r);this.src=i.buffer}set height(e){this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(()=>{this.checkHeight()})}get height(){return this._height}get showSidebarButton(){return this._showSidebarButton}set showSidebarButton(e){this._showSidebarButton=e;let t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}get page(){return this._page}set page(e){this._page=e?Number(e):void 0}get mobileFriendlyZoom(){return this._mobileFriendlyZoom}set mobileFriendlyZoom(e){"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e;let t=1;String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}set mobileZoom(e){this.mobileFriendlyZoom=e}get sidebarPositionTop(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}calcViewerPositionTop(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){const e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}iOSVersionRequiresES5(){const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}loadViewer(){if(window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n=this.iOSVersionRequiresES5(),i="undefined"==typeof ReadableStream||void 0===Promise.allSettled,r=this.minifiedJSLibraries?".min.js":".js",s=document.createElement("script"),o=jS.assetsFolder;i&&console.log("Using the ES5 version of the PDF viewer."),s.src=this.location.normalize(e||t||n||i?o+"/viewer-es5"+r:o+"/viewer"+r),s.type="text/javascript",s.async=!0,document.getElementsByTagName("head")[0].appendChild(s)}else setTimeout(()=>this.loadViewer(),25)}ngOnInit(){if(this.onResize(),ph(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){const e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),r=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!jS.workerSrc().endsWith(".min.js")){const e=jS.workerSrc();jS.workerSrc=()=>e.replace(".js",".min.js")}const s=jS.assetsFolder,o=document.createElement("script");o.src=this.location.normalize(e||t||i||n?s+"/pdf-es5"+r:s+"/pdf"+r),o.type="text/javascript",o.async=!0,document.getElementsByTagName("head")[0].appendChild(o)}window.webViewerLoad||this.loadViewer()}}ngAfterViewInit(){this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(()=>this.ngAfterViewInit(),50))}assignTabindexes(){if(this.startTabindex){const e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);const t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);const n=t.sort((e,t)=>e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x);for(let i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}showElementsRecursively(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(let t=0;t<e.childElementCount;t++){const n=e.children.item(t);n&&this.showElementsRecursively(n)}}collectElementPositions(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){const i=e.getBoundingClientRect(),r={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(r)}else if(e.childElementCount>0)for(let i=0;i<e.childElementCount;i++){const r=e.children.item(i),s=t.children.item(i);r&&s&&(n=this.collectElementPositions(r,s,n))}return n}doInitPDFViewer(){const t=document.querySelectorAll('link[type="application/l10n"]');if(0===t.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){const e=t[0].attributes.origin;e&&"ngx-extended-pdf-viewer"!==e.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}const n=e=>{document.removeEventListener("localized",n),this.initTimeout=setTimeout(()=>{this.shuttingDown||(this.afterLibraryInit(),this.openPDF(),this.assignTabindexes())},this.delayFirstView)};window.addEventListener("afterprint",e=>{this.afterPrint.emit()}),window.addEventListener("beforeprint",e=>{this.beforePrint.emit()}),document.addEventListener("localized",n),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors.");const i=()=>{this.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",i),this.enablePinchOnMobile&&(this.pinchOnMobileSupport=new ZS(this.ngZone))};document.addEventListener("webviewerloaded",i),this.activateTextlayerIfNecessary(null),setTimeout(()=>{if(!this.shuttingDown){this.primaryMenuVisible=!0,this.hideKebabMenuForSecondaryToolbar&&!this.showSecondaryToolbarButton&&(this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1)),this.calcViewerPositionTop(),this.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();const e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=this.filenameForDownload;const t=window.PDFViewerApplicationOptions;t.set("locale",this.language),t.set("imageResourcesPath",this.imageResourcesPath),t.set("minZoom",this.minZoom),t.set("maxZoom",this.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);const n=document.getElementById("printContainer");n&&document.getElementsByTagName("body")[0].appendChild(n)}},0)}afterLibraryInit(){this.notificationService.onPDFJSInit.next()}checkHeight(){const e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){let t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}onSpreadChange(e){this.spreadChange.emit(e)}activateTextlayerIfNecessary(e){void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(()=>{this.showFindButton=!1}),this.logLevel>=HS.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=HS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(()=>{const e=document.getElementById("viewFind");e&&e.classList.remove("invisible");const t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=HS.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(()=>{this.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=HS.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}overrideDefaultSettings(){const e=window.PDFViewerApplicationOptions;for(const i in jS)e.set(i,jS[i]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);let t=this.sidebarVisible;void 0===t&&(t=this.showSidebarOnLoad);const n=window.PDFViewerApplication;void 0!==t&&(n.sidebarViewOnLoad=t?1:0,n.appConfig&&(n.appConfig.sidebarViewOnLoad=t?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),n.pdfViewer&&(n.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),n.pdfViewer&&(n.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),n.pdfViewer&&(n.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}openPDF(){ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;const t=window.PDFViewerApplication;t.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(t.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),t.eventBus.on("textlayerrendered",e=>{this.textlayerRendered.emit(e),this.textLayerRendered.emit(e)}),t.eventBus.on("pagesloaded",e=>{if(this.pagesLoaded.emit(e),this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(t.pdfViewer.pagesRotation=e)}else t.pdfViewer.pagesRotation=0;setTimeout(()=>{this.shuttingDown||(this.nameddest?t.pdfLinkService.navigateTo(this.nameddest):this.page?t.page=Number(this.page):this.pageLabel&&(t.pdfViewer.currentPageLabel=this.pageLabel))}),this.setZoom()}),t.eventBus.on("pagerendered",e=>{this.ngZone.run(()=>{this.pageRendered.emit(e)})}),t.eventBus.on("download",e=>{this.ngZone.run(()=>{this.pdfDownloaded.emit(e)})}),t.eventBus.on("scalechanging",e=>{setTimeout(()=>{this.ngZone.run(()=>{this.currentZoomFactor.emit(e.scale);const t=this.root.nativeElement.querySelector("#scaleSelect");let n=this.zoom;t&&(n=t.value),"auto"!==n&&"page-fit"!==n&&"page-actual"!==n&&"page-width"!==n&&this.zoomChange.emit(100*e.scale)})})}),t.eventBus.on("rotationchanging",e=>{this.ngZone.run(()=>{this.rotationChange.emit(e.pagesRotation)})}),t.eventBus.on("fileinputchange",e=>{this.ngZone.run(()=>{const t=e.fileInput.value.replace("C:\\fakepath\\","");this.srcChange.emit(t)})}),t.eventBus.on("cursortoolchanged",e=>{this.ngZone.run(()=>{this.handToolChange.emit(e.tool===YS.HAND)})}),t.eventBus.on("sidebarviewchanged",e=>{this.ngZone.run(()=>{this.sidebarVisibleChange.emit(e.view>0),this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})});const n=()=>{this.ngZone.run(()=>{this.sidebarComponent&&this.sidebarComponent.showToolbarWhenNecessary()})};if(t.eventBus.on("outlineloaded",n),t.eventBus.on("attachmentsloaded",n),t.eventBus.on("layersloaded",n),t.eventBus.on("updatefindcontrolstate",e=>{this.updateFindMatchesCount&&(e.state===US.NOT_FOUND?this.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)),this.updateFindState&&this.updateFindState.emit(e.state)}),t.eventBus.on("updatefindmatchescount",e=>{this.updateFindMatchesCount&&e.matchesCount.total&&this.updateFindMatchesCount.emit(e.matchesCount)}),t.eventBus.on("pagechanging",e=>{this.shuttingDown||this.ngZone.run(()=>{const e=t.pdfViewer.currentPageNumber,n=t.pdfViewer.currentPageLabel;e!==this.page&&this.pageChange.emit(e),n!==this.pageLabel&&this.pageLabelChange.emit(n)})}),this.checkHeight(),this._src){const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),t.onError=e=>this.pdfLoadingFailed.emit(e),t.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:t.pagesCount}))}setTimeout(()=>{this.shuttingDown||this.page&&(t.page=Number(this.page))},100)}selectCursorTool(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}ngOnDestroy(){const t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();const e=t.eventBus;if(e){t.unbindEvents();for(const t in e._listeners)if(e._listeners[t]){const n=e._listeners[t];for(let e=0;e<n.length;e++)n[e]=void 0;e._listeners[t]=void 0}}t.eventBus=null}const n=document.getElementsByTagName("body");if(n[0]){const e=n[0].children;for(let t=e.length-1;t>=0;t--){const i=e.item(t);(i&&"printContainer"===i.id||i&&"fileInput"===i.id)&&n[0].removeChild(i)}}}isPrimaryMenuVisible(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}ngOnChanges(t){const n=window.PDFViewerApplication,i=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();const e={password:this.password,verbosity:this.logLevel};this._src.range&&(e.range=this._src.range),this.httpHeaders&&(e.httpHeaders=this.httpHeaders),this.authorization&&(e.withCredentials=!0,e.httpHeaders?e.httpHeaders.Authorization||(e.httpHeaders.Authorization=this.authorization):e.httpHeaders={Authorization:this.authorization}),n.open(this._src,e).then(()=>this.pdfLoaded.emit({pagesCount:n.pagesCount}),e=>this.pdfLoadingFailed.emit(e))}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&i.set("maxZoom",this.maxZoom),"minZoom"in t&&i.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=n.page&&(n.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==n.pdfViewer.currentPageLabel&&(n.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){const e=Number(this.rotation);0!==e&&90!==e&&180!==e&&270!==e||(n.pdfViewer.pagesRotation=e)}else n.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?n.pdfSidebar.open():n.pdfSidebar.close()),"filenameForDownload"in t&&(n.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&n.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(n.spreadModeOnLoad=2,n.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(n.spreadModeOnLoad=1,n.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(n.spreadModeOnLoad=0,n.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new ZS(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t){const e=i;e&&e.set("printResolution",this.printResolution)}if("ignoreKeyboard"in t&&i&&this.overrideDefaultSettings(),"ignoreKeys"in t&&i&&this.overrideDefaultSettings(),"acceptKeys"in t&&i&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&i){this.overrideDefaultSettings();const e=document.getElementById("viewer");this.showBorders?e.classList.remove("removePageBorders"):e.classList.add("removePageBorders"),n.pdfViewer&&(n.pdfViewer.removePageBorders=!this.showBorders);const t={source:e,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};n.eventBus.dispatch("scalechanging",t)}"showUnverifiedSignatures"in t&&n&&n.pdfDocument&&n.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(n.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}setZoom(){let e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");const t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}onResize(){const e=document.getElementsByClassName("html");if(e&&e.length>0){const e=document.getElementById("outerContainer");e&&(this.toolbarWidthInPixels=e.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}onContextMenu(){return this.contextMenuAllowed}onSecondaryMenuIsEmpty(e){this.hideKebabMenuForSecondaryToolbar=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(lu),Vo(qc),Vo(GS),Vo(id))},e.\u0275cmp=qe({type:e,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){if(1&e&&(Mc($S,1),Mc(gS,1),Mc(fS,1),Mc(mS,1)),2&e){let e;Tc(e=Rc())&&(t.dummyComponents=e.first),Tc(e=Rc())&&(t.root=e.first),Tc(e=Rc())&&(t.secondaryToolbarComponent=e.first),Tc(e=Rc())&&(t.sidebarComponent=e.first)}},hostBindings:function(e,t){1&e&&Xo("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[dt],ngContentSelectors:pS,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(sa(),Fo(0,vS,1,0,"link",0),Fo(1,bS,1,0,"pdf-dark-theme",1),Fo(2,yS,1,0,"pdf-light-theme",1),Wo(3,"pdf-dynamic-css",2),Ho(4,"div",3,4),Ho(6,"div",5),Ho(7,"div",6),Ho(8,"div",7),Xo("resize",function(){return t.onResize()},!1,gr),Ho(9,"div",8),Fo(10,wS,1,0,"ng-content",9),Uo(),Ho(11,"pdf-sidebar",10,11),Xo("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),Uo(),Ho(13,"div",12),Wo(14,"pdf-dummy-components"),Wo(15,"pdf-toolbar",13),Ho(16,"pdf-secondary-toolbar",14,15),Xo("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),Uo(),Wo(18,"pdf-findbar",16),Wo(19,"pdf-context-menu"),Ho(20,"div",17),Wo(21,"div",18),Uo(),Ho(22,"div",19),Ho(23,"div",20),Wo(24,"span",21),Ho(25,"button",22),Oa(26," More Information "),Uo(),Ho(27,"button",23),Oa(28," Less Information "),Uo(),Uo(),Ho(29,"div",24),Ho(30,"button",25),Oa(31,"Close"),Uo(),Uo(),Wo(32,"div",26),Wo(33,"textarea",27),Uo(),Uo(),Ho(34,"div",28),Ho(35,"div",29),Ho(36,"div",30),Ho(37,"div",31),Ho(38,"p",32),Oa(39," Enter the password to open this PDF file: "),Uo(),Uo(),Ho(40,"div",31),Wo(41,"input",33),Uo(),Ho(42,"div",34),Ho(43,"button",35),Ho(44,"span",36),Oa(45,"Cancel"),Uo(),Uo(),Ho(46,"button",37),Ho(47,"span",38),Oa(48,"OK"),Uo(),Uo(),Uo(),Uo(),Uo(),Wo(49,"pdf-document-properties-overlay",39),Ho(50,"div",40),Ho(51,"div",30),Ho(52,"div",31),Ho(53,"span",41),Oa(54,"Preparing document for printing\u2026"),Uo(),Uo(),Ho(55,"div",31),Wo(56,"progress",42),Ho(57,"span",43),Oa(58,"0%"),Uo(),Uo(),Ho(59,"div",34),Ho(60,"button",44),Ho(61,"span",45),Oa(62,"Cancel"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Wo(63,"div",46),Uo(),Uo(),Uo(),Fo(64,_S,0,0,"ng-template",null,47,Vc)),2&e){const e=No(65);zo("ngIf",t.useBrowserLocale),is(1),zo("ngIf","dark"===t.theme),is(1),zo("ngIf","light"===t.theme),is(1),zo("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),is(1),ma("height",t.height)("min-height",t.minHeight),is(3),ma("background-color",t.backgroundColor),is(3),zo("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:e),is(1),zo("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),is(4),zo("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),is(1),zo("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),is(2),zo("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),is(2),ma("top",t.viewerPositionTop),is(1),ma("background-color",t.backgroundColor)}},directives:function(){return[$d,zk,Jd,KS,$S,Bk,qS,rk,tk,nk,Wk,Uk]},encapsulation:2,changeDetection:0}),e.ngxExtendedPdfViewerInitialized=!1,e})(),XS=(()=>{class e{constructor(){}findMultiple(e,t={}){t=Object.assign({},t,{findMultipleSearchTexts:!0});const n=e.join("\n")+"\n";return this.find(n,t)}find(e,t={}){if(QS.ngxExtendedPdfViewerInitialized){const n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);const i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);const r=document.getElementById("findEntireWord");r&&(r.checked=t.wholeWords||!1);const s=document.getElementById("findIgnoreAccents");s&&(s.checked=t.ignoreAccents||!1);const o=t.findMultipleSearchTexts||e.includes("\n")||!1,a=document.getElementById("findMultipleSearchTexts");a&&(a.checked=o);const l=document.getElementById("individualWordsMode");l&&(l.checked=!1);const c=document.getElementById("findFuzzy");c&&(c.checked=t.fuzzySearch||!1);const u=o?document.getElementById("findInputMultiline"):document.getElementById("findInput");return u?(u instanceof HTMLTextAreaElement?(u.value=e,u.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):u instanceof HTMLInputElement&&(u.value=e,u.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),u.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}findNext(){if(QS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}findPrevious(){if(QS.ngxExtendedPdfViewerInitialized){const e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}print(e){const t=window.PDFViewerApplication,n=!!window.isInPDFPrintRange&&!e;n||(e||(e={}),this.setPrintRange(e)),window.printPDF(),n||t.eventBus.on("afterprint",()=>{this.removePrintRange()})}removePrintRange(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}setPrintRange(e){const t=window.PDFViewerApplication;window.isInPDFPrintRange=t=>this.isInPDFPrintRange(t,e),window.filteredPageCount=this.filteredPageCount(t.pagesCount,e)}filteredPageCount(e,t){let n=0;for(let i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}isInPDFPrintRange(e,t){const n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(e=>e===n)||t.included&&!t.included.some(e=>e===n))}getPageAsText_preview(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{e.getTextContent().then(e=>t(this.convertTextInfoToText(e)))})}getPageAsText(e){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((t,n)=>{t(e.getTextContent())})).then(e=>new Promise((t,n)=>{t(this.convertTextInfoToText(e))}))}convertTextInfoToText(e){return e?e.items.map(e=>e.str).join(""):""}getPageAsImage_preview(e,t,n,i){window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>{this.draw_preview(e,t,n,i)}).catch(e=>{i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}getPageAsImage(e,t){return window.PDFViewerApplication.pdfDocument.getPage(e).then(e=>new Promise((n,i)=>{n(this.draw(e,t))}))}draw(e,t){let n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);const i=e.getViewport({scale:n}),{ctx:r,canvas:s}=this.getPageDrawContext(i.width,i.height),o=i.clone();return e.render({canvasContext:r,viewport:o}).promise.then(()=>new Promise((e,t)=>{e(s.toDataURL())}))}draw_preview(e,t,n,i){let r=1;t.scale?r=t.scale:t.width?r=t.width/e.getViewport({scale:1}).width:t.height&&(r=t.height/e.getViewport({scale:1}).height);const s=e.getViewport({scale:r}),{ctx:o,canvas:a}=this.getPageDrawContext(s.width,s.height),l=s.clone();e.render({canvasContext:o,viewport:l}).promise.then(function(){const e=a.toDataURL();n(e)},function(e){i&&i(e)})}getPageDrawContext(e,t){const n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),JS=(()=>{class e{constructor(e){this.notificationService=e,this.showHandToolButton=!0,this.isSelected=!1;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===YS.HAND)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:YS.HAND})}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Xo("click",function(){return t.onClick()}),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Hand Tool"),Uo(),Uo()),2&e&&va("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),ek=(()=>{class e{constructor(){this.showBookmarkButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(Ho(0,"a",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Current View"),Uo(),Uo()),2&e&&va("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),tk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"div",1),Wo(2,"div",2),Wo(3,"div",3),Wo(4,"div",4),Uo())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),e})(),nk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(Ho(0,"div"),Ho(1,"div",0),Ho(2,"div",1),Ho(3,"span",2),Oa(4,"File name:"),Uo(),Ho(5,"p",3),Oa(6,"-"),Uo(),Uo(),Ho(7,"div",1),Ho(8,"span",4),Oa(9,"File size:"),Uo(),Ho(10,"p",5),Oa(11,"-"),Uo(),Uo(),Ho(12,"div",1),Ho(13,"span",6),Oa(14,"Title:"),Uo(),Ho(15,"p",7),Oa(16,"-"),Uo(),Uo(),Ho(17,"div",1),Ho(18,"span",8),Oa(19,"Author:"),Uo(),Ho(20,"p",9),Oa(21,"-"),Uo(),Uo(),Ho(22,"div",1),Ho(23,"span",10),Oa(24,"Subject:"),Uo(),Ho(25,"p",11),Oa(26,"-"),Uo(),Uo(),Ho(27,"div",1),Ho(28,"span",12),Oa(29,"Keywords:"),Uo(),Ho(30,"p",13),Oa(31,"-"),Uo(),Uo(),Ho(32,"div",1),Ho(33,"span",14),Oa(34,"Creation Date:"),Uo(),Ho(35,"p",15),Oa(36,"-"),Uo(),Uo(),Ho(37,"div",1),Ho(38,"span",16),Oa(39,"Modification Date:"),Uo(),Ho(40,"p",17),Oa(41,"-"),Uo(),Uo(),Ho(42,"div",1),Ho(43,"span",18),Oa(44,"Creator:"),Uo(),Ho(45,"p",19),Oa(46,"-"),Uo(),Uo(),Ho(47,"div",1),Ho(48,"span",20),Oa(49,"PDF Producer:"),Uo(),Ho(50,"p",21),Oa(51,"-"),Uo(),Uo(),Ho(52,"div",1),Ho(53,"span",22),Oa(54,"PDF Version:"),Uo(),Ho(55,"p",23),Oa(56,"-"),Uo(),Uo(),Ho(57,"div",1),Ho(58,"span",24),Oa(59,"Page Count:"),Uo(),Ho(60,"p",25),Oa(61,"-"),Uo(),Uo(),Ho(62,"div",1),Ho(63,"span",26),Oa(64,"Page Size:"),Uo(),Ho(65,"p",27),Oa(66,"-"),Uo(),Uo(),Wo(67,"div",28),Ho(68,"div",1),Ho(69,"span",29),Oa(70,"Fast Web View:"),Uo(),Ho(71,"p",30),Oa(72,"-"),Uo(),Uo(),Ho(73,"div",31),Ho(74,"button",32),Ho(75,"span",33),Oa(76,"Close"),Uo(),Uo(),Uo(),Uo(),Uo())},styles:[""]}),e})(),ik=(()=>{class e{constructor(){this.showDownloadButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Download"),Uo(),Uo()),2&e&&va("invisible",!t.showDownloadButton)},styles:[kS]}),e})(),rk=(()=>{class e{constructor(){this.showFindButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&(qo(0,0),Fo(1,xS,2,11,"ng-template",null,1,Vc),Fo(3,AS,5,1,"ng-template",null,2,Vc)),2&e){const e=No(2);zo("ngTemplateOutlet",t.customFindbar?t.customFindbar:e)}},directives:function(){return[Jd,gk,ok,lk,ak,sk]},styles:[""]}),e})(),sk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"span",1),Uo())},styles:[""]}),e})(),ok=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-find-highlight-all"),Wo(2,"pdf-find-match-case"),Uo())},directives:function(){return[hk,fk]},styles:[""]}),e})(),ak=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-find-ignore-accents"),Wo(2,"pdf-find-fuzzily"),Wo(3,"pdf-find-results-count"),Uo())},directives:function(){return[pk,dk,wk]},styles:[""]}),e})(),lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-find-entire-word"),Wo(2,"pdf-find-entire-phrase"),Uo())},directives:function(){return[uk,vk]},styles:[""]}),e})(),ck=(()=>{class e{constructor(){this.showFindButton=void 0,this.textLayer=void 0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Find"),Uo(),Uo()),2&e&&va("invisible",!t.showFindButton||!t.textLayer)},styles:[OS]}),e})(),uk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Whole words\n"),Uo())},styles:[""]}),e})(),dk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Fuzzy search\n"),Uo())},styles:[""]}),e})(),hk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Highlight all\n"),Uo())},styles:[""]}),e})(),pk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Ignore accents and diacritics\n"),Uo())},styles:[""]}),e})(),gk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(Fo(0,CS,4,0,"div",0),qo(1,1)),2&e&&(zo("ngIf",!t.customFindbarInputArea),is(1),zo("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[$d,Jd,Ik,yk,bk]},styles:[""]}),e})(),fk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Wo(0,"input",0),Ho(1,"label",1),Oa(2," Match case\n"),Uo())},styles:[""]}),e})(),mk=(()=>{class e{constructor(){this.individualWordsMode=!0,this.multipleSearchTexts=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=fe({factory:function(){return new e},token:e,providedIn:"root"}),e})(),vk=(()=>{class e{constructor(e){this.pdfFindbarService=e}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(mk))},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ho(0,"input",0),Xo("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),Uo(),Ho(1,"label",1),Oa(2," multiple search texts\n"),Uo(),Ho(3,"input",2),Xo("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),Uo(),Ho(4,"label",3),Oa(5," separated by word boundaries\n"),Uo()),2&e&&(zo("ngModel",t.pdfFindbarService.multipleSearchTexts),is(3),va("hidden",!t.pdfFindbarService.multipleSearchTexts),zo("ngModel",t.pdfFindbarService.individualWordsMode),is(1),va("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[Of,am,Rm],styles:[""]}),e})(),bk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Next"),Uo(),Uo())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),yk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Previous"),Uo(),Uo())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),e})(),wk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&Wo(0,"span",0)},styles:[""]}),e})(),_k=(()=>{class e{constructor(e){this.notificationService=e,this.disableFirstPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-first-page"]],viewQuery:function(e,t){if(1&e&&Mc(SS,1),2&e){let e;Tc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(Ho(0,"button",0,1),Xo("click",function(){return t.firstPage()}),dn(),Ho(2,"svg",2),Wo(3,"path",3),Uo(),hn(),Ho(4,"span",4),Oa(5,"First page"),Uo(),Uo()),2&e&&zo("disabled",t.disableFirstPage)},styles:[""]}),e})(),xk=(()=>{class e{constructor(e){this.notificationService=e,this.disableLastPage=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}firstPage(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}lastPage(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-last-page"]],viewQuery:function(e,t){if(1&e&&Mc(SS,1),2&e){let e;Tc(e=Rc())&&(t.button=e.first)}},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(Ho(0,"button",0,1),Xo("click",function(){return t.lastPage()}),dn(),Ho(2,"svg",2),Wo(3,"path",3),Uo(),hn(),Ho(4,"span",4),Oa(5,"Last page"),Uo(),Uo()),2&e&&zo("disabled",t.disableLastPage)},styles:[""]}),e})(),Ak=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Next"),Uo(),Uo())},styles:[""]}),e})(),Ck=(()=>{class e{constructor(){this.showOpenFileButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Open"),Uo(),Uo()),2&e&&va("invisible",!t.showOpenFileButton)},styles:[kS]}),e})(),Sk=(()=>{class e{constructor(){this.showPagingButtons=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(Wo(0,"input",0),Wo(1,"span",1)),2&e&&(va("invisible",!t.showPagingButtons),is(1),va("invisible",!t.showPagingButtons))},styles:[""]}),e})(),kk=(()=>{class e{constructor(){this.showPagingButtons=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-first-page",1),Wo(2,"pdf-previous-page",2),Uo(),Wo(3,"pdf-page-number",3),Ho(4,"div",4),Wo(5,"pdf-next-page",5),Wo(6,"pdf-last-page",2),Uo()),2&e&&(va("invisible",!t.showPagingButtons),is(3),zo("showPagingButtons",t.showPagingButtons),is(1),va("invisible",!t.showPagingButtons))},directives:function(){return[_k,Pk,Sk,Ak,xk]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),e})(),Ek=(()=>{class e{constructor(){this.showPresentationModeButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Presentation Mode"),Uo(),Uo()),2&e&&va("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),Pk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Previous"),Uo(),Uo())},styles:[""]}),e})(),Dk=(()=>{class e{constructor(){this.showPrintButton=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Print"),Uo(),Uo()),2&e&&va("invisible",!t.showPrintButton)},styles:[DS]}),e})(),Ok=(()=>{class e{constructor(e){this.notificationService=e,this.showRotateButton=!0,this.disableRotate=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}rotateCW(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}rotateCCW(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("updateuistate",e=>this.updateUIState(e))}updateUIState(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){if(1&e&&(Mc(ES,1),Mc(PS,1)),2&e){let e;Tc(e=Rc())&&(t.button1=e.first),Tc(e=Rc())&&(t.button2=e.first)}},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(Ho(0,"button",0,1),Xo("click",function(){return t.rotateCW()}),dn(),Ho(2,"svg",2),Wo(3,"path",3),Uo(),Uo(),hn(),Ho(4,"button",4,5),Xo("click",function(){return t.rotateCCW()}),dn(),Ho(6,"svg",2),Wo(7,"path",6),Uo(),Uo()),2&e&&(va("invisible",!t.showRotateButton),zo("disabled",t.disableRotate),is(4),va("invisible",!t.showRotateButton),zo("disabled",t.disableRotate))},styles:[DS]}),e})(),Ik=(()=>{class e{constructor(e){this.pdfFindbarService=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(mk))},e.\u0275cmp=qe({type:e,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(Wo(0,"input",0),Wo(1,"textarea",1)),2&e&&(va("hidden",!t.pdfFindbarService.individualWordsMode),zo("placeholder","Find in document\u2026"),is(1),va("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),e})(),Tk=(()=>{class e{constructor(){this.showSecondaryToolbarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Tools"),Uo(),Uo()),2&e&&va("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),e})(),Mk=(()=>{class e{constructor(){this.showSidebarButton=!0}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Toggle Sidebar"),Uo(),Uo()),2&e&&va("invisible",!t.showSidebarButton)},styles:[OS]}),e})(),Bk=(()=>{class e{constructor(){this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:pS,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(sa(),Ho(0,"div",0),Ho(1,"div",1),Fo(2,IS,1,0,"ng-content",2),Ho(3,"div",3),Ho(4,"div",4),Wo(5,"div",5),Uo(),Uo(),Uo(),Uo(),Fo(6,TS,16,15,"ng-template",null,6,Vc)),2&e){const e=No(7);va("invisible",!t.primaryMenuVisible),is(1),ma("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),is(1),zo("ngTemplateOutlet",t.customToolbar?t.customToolbar:e)}},directives:function(){return[Jd,Mk,ck,kk,Nk,JS,Vk,Ok,Ek,Ck,Dk,ik,ek,Tk]},styles:[""]}),e})(),Rk=(()=>{class e{constructor(){this._zoomLevels=[]}set zoomLevels(e){this._zoomLevels=e.map(e=>this.valueToZoomLevel(e))}ngOnInit(){}valueToZoomLevel(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);const t=Number(e);if(!t){const t=String(e);return{id:this.snakeToCamel(e+"Option"),value:t,dataL10nId:"page_scale_"+t.replace("page-",""),dataL10nArgs:void 0,displayValue:t}}const n=Math.round(100*t);return{id:"scale_"+n,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:`{ "scale": ${n} }`,displayValue:String(n)+"%"}}snakeToCamel(e){return e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace("-","").replace("_",""))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){if(1&e&&Mc(MS,1),2&e){let e;Tc(e=Rc())&&(t.sizeSelector=e.first)}},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(Ho(0,"span",0),Ho(1,"select",1,2),Fo(3,BS,2,5,"option",3),Wo(4,"option",4),Uo(),Uo()),2&e&&(is(3),zo("ngForOf",t._zoomLevels))},directives:[Ud,Ym,Xm],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),e})(),Lk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Oa(1," + "),Ho(2,"span",1),Oa(3,"Zoom In"),Uo(),Uo())},styles:[""]}),e})(),Fk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Oa(1," - "),Ho(2,"span",1),Oa(3,"Zoom Out"),Uo(),Uo())},styles:[""]}),e})(),Nk=(()=>{class e{constructor(){this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(Ho(0,"div",0),Wo(1,"pdf-zoom-out"),Wo(2,"pdf-zoom-in"),Wo(3,"pdf-zoom-dropdown",1),Uo()),2&e&&(va("invisible",!t.showZoomButtons),is(3),zo("zoomLevels",t.zoomLevels))},directives:[Fk,Lk,Rk],styles:[""]}),e})(),Vk=(()=>{class e{constructor(e){this.notificationService=e,this.showSelectToolButton=!0,this.isSelected=!0;const t=this.notificationService.onPDFJSInit.subscribe(()=>{this.onPdfJsInit(),t.unsubscribe()})}onPdfJsInit(){window.PDFViewerApplication.eventBus.on("cursortoolchanged",({tool:e})=>this.isSelected=e===YS.SELECT)}onClick(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:YS.SELECT})}}return e.\u0275fac=function(t){return new(t||e)(Vo(GS))},e.\u0275cmp=qe({type:e,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(Ho(0,"button",0),Xo("click",function(){return t.onClick()}),dn(),Ho(1,"svg",1),Wo(2,"path",2),Uo(),hn(),Ho(3,"span",3),Oa(4,"Text selection tool"),Uo(),Uo()),2&e&&va("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),e})(),zk=(()=>{class e{constructor(e,t){this.renderer=e,this.document=t,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}get style(){return`\n@media all and (max-width: ${this.xl}px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ${this.lg}px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.sm}px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ${this.xl}px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ${this.xxl}px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ${this.md}px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ${this.xs}px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  `}ngOnInit(){this.injectStyle()}ngOnChanges(){const e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;const t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}injectStyle(){const e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}ngOnDestroy(){const e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(ul),Vo(Hu))},e.\u0275cmp=qe({type:e,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[dt],decls:0,vars:0,template:function(e,t){},styles:[""]}),e})(),jk=(()=>{class e{constructor(){this.thumbnailDrawn=new wc,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=()=>this.pdfThumbnailGeneratorReady(),window.pdfThumbnailGenerator=(e,t,n,i,r)=>this.createThumbnail(e,t,n,i,r)}ngOnDestroy(){this.linkService=void 0}pdfThumbnailGeneratorReady(){if(!this.thumbnailViewTemplate)return!1;const e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}createThumbnail(e,t,n,i,r){this.linkService=t;const s=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),o=e.canvasWidth+2+"px",a=e.canvasHeight+2+"px",l=s.split("WIDTH_OF_RING").join(o).split("HEIGHT_OF_RING").join(a).split("PAGE_NUMBER").join(n),c=this.createElementFromHTML(l);c.classList.remove("pdf-viewer-template");const u=c;u.href=t.getAnchorUrl("#page="+n),r.then(e=>{u.title=e}),u.onclick=function(){return t.page=n,!1},e.anchor=u;const d=c.getElementsByClassName("image-container")[0];e.ring=d,e.div=c.getElementsByClassName("thumbnail")[0],i.appendChild(c),this.thumbnailDrawn.emit({thumbnail:c,container:i,pageId:n})}createElementFromHTML(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}onKeyDown(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}set hideSidebarToolbar(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){if(1&e&&Mc(RS,1),2&e){let e;Tc(e=Rc())&&(t.thumbnailViewTemplate=e.first)}},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:pS,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(sa(),Ho(0,"div",0),Ho(1,"div",null,1),Fo(3,LS,1,0,"ng-content",2),Uo(),Ho(4,"div",3),Xo("keydown",function(e){return t.onKeyDown(e)}),Uo(),Wo(5,"div",4),Wo(6,"div",5),Wo(7,"div",6),Uo(),Fo(8,FS,3,0,"ng-template",null,7,Vc)),2&e){const e=No(9);ma("top",t.top),is(3),zo("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:e)}},directives:[Jd],styles:[""]}),e})(),Hk=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"button",1),Ho(2,"span",2),Oa(3,"Thumbnails"),Uo(),dn(),Ho(4,"svg",3),Wo(5,"path",4),Uo(),Uo(),hn(),Ho(6,"button",5),Ho(7,"span",6),Oa(8,"Document Outline"),Uo(),dn(),Ho(9,"svg",3),Wo(10,"path",7),Uo(),Uo(),hn(),Ho(11,"button",8),Ho(12,"span",9),Oa(13,"Attachments"),Uo(),dn(),Ho(14,"svg",3),Wo(15,"path",10),Uo(),Uo(),hn(),Ho(16,"button",11),Ho(17,"span",12),Oa(18,"Layers"),Uo(),dn(),Ho(19,"svg",13),Wo(20,"path",14),Uo(),Uo(),Uo())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),e})(),Uk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})(),Wk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qe({type:e,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),e})();function $k(e,t,n){return!e||e.some(e=>function(e,t,n){let i=0,r=0;return(e=e.toLowerCase()).includes("ctrl+")&&(i|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(i|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(i|=2,e=e.replace("alt+","")),e.includes("shift+")&&(i|=4,e=e.replace("shift+","")),e.includes("meta+")&&(i|=8,e=e.replace("meta+","")),r="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===i:r===n&&t===i}(e,t,n))}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){const n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),r=n.get("acceptKeys");return"WHEEL"===t?!!$k(i,e,"WHEEL")||!!(r&&r.length>0)&&!$k(r,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&$k(i,e,t))||!!(r&&r.length>0)&&!$k(r,e,t)});let Gk=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[XS,GS,id,{provide:Xu,useClass:td}],imports:[[hh,ov]]}),e})();const qk=["contentRef"],Yk=["*"];let Zk=(()=>{let e=class{constructor(e){this.display="inline-block",this._dragDisabled=!1,this._elementRef=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}};return e.\u0275fac=function(t){return new(t||e)(Vo(al))},e.\u0275dir=Je({type:e,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&ma("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),e=O_([I_(0,yi(al)),T_("design:paramtypes",[al])],e),e})(),Kk=(()=>{let e=class{constructor(e,t,n){this._elementRef=e,this._renderer=t,this._document=n,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new wc,this.indexChanged=new wc,this.reachesLeftBound=new wc,this.reachesRightBound=new wc,this.snapAnimationFinished=new wc,this.dragStart=new wc,this.dragEnd=new wc,this.scrollbarWidth=this.getScrollbarWidth()+"px"}get isDragging(){return this._isDragging}get currIndex(){return this._index}set currIndex(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}get scrollbarHidden(){return this._scrollbarHidden}set scrollbarHidden(e){this._scrollbarHidden=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get xDisabled(){return this._xDisabled}set xDisabled(e){this._xDisabled=e}get yDisabled(){return this._yDisabled}set yDisabled(e){this._yDisabled=e}get xWheelEnabled(){return this._xWheelEnabled}set xWheelEnabled(e){this._xWheelEnabled=e}get dragDisabled(){return this._dragDisabled}set dragDisabled(e){this._dragDisabled=e}get snapDisabled(){return this._snapDisabled}set snapDisabled(e){this._snapDisabled=e}get snapOffset(){return this._snapOffset}set snapOffset(e){this._snapOffset=e}get snapDuration(){return this._snapDuration}set snapDuration(e){this._snapDuration=e}ngOnChanges(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}ngAfterViewInit(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",e=>{e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}ngAfterViewChecked(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}ngOnDestroy(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}onMouseMoveHandler(e){this.onMouseMove(e)}onMouseMove(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){const t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){const t=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-t+this.downY,this.downY=t}}}onMouseDownHandler(e){const t=this.locateDragScrollItem(e.target);if(t&&t.dragDisabled)return;this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;const n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}onScrollHandler(){this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isScrolling=!1,this.locateCurrentIndex(!0)},500))}onMouseUpHandler(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}moveLeft(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveRight(){const e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}moveTo(e){const t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}checkNavStatus(){setTimeout(()=>{const e=Boolean(this._children.length<=1),t=Boolean(this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth);e||t?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!0)):this.isScrollReachesRightEnd()?(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!0)):0===this._contentRef.nativeElement.scrollLeft&&this._contentRef.nativeElement.scrollWidth>this._contentRef.nativeElement.clientWidth?(this.reachesLeftBound.emit(!0),this.reachesRightBound.emit(!1)):(this.reachesLeftBound.emit(!1),this.reachesRightBound.emit(!1))},0)}onWheel(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}onWindowResize(){this.refreshWrapperDimensions(),this.checkNavStatus()}_setIsDragging(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}_startGlobalListening(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}_stopGlobalListening(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}disableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}enableScroll(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}hideScrollbar(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width",`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"height",`calc(100% + ${this.scrollbarWidth})`),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}showScrollbar(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}checkScrollbar(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":`calc(100% + ${this.scrollbarWidth})`),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":`calc(100% + ${this.scrollbarWidth})`)}setScrollBar(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}getScrollbarWidth(){const e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);const t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");const n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);const i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}refreshWrapperDimensions(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}scrollTo(e,t,n){const i=this;i.isAnimating=!0;const r=e.scrollLeft,s=t-r-this.snapOffset;let o=0;const a=function(){var t,l,c;o+=20,e.scrollLeft=(t=o,l=r,c=s,(t/=n/2)<1?c/2*t*t+l:-c/2*(--t*(t-2)-1)+l),o<n?i.scrollToTimer=setTimeout(a,20):setTimeout(()=>{i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)};a()}locateCurrentIndex(e){this.currentChildWidth((t,n,i,r,s)=>{this._contentRef.nativeElement.scrollLeft>=i&&this._contentRef.nativeElement.scrollLeft<=n?(n-this._contentRef.nativeElement.scrollLeft>t/2&&!this.isScrollReachesRightEnd()?(this.isAnimating||(this.currIndex=r),e&&this.scrollTo(this._contentRef.nativeElement,i,this.snapDuration)):0!==this._contentRef.nativeElement.scrollLeft&&(this.isAnimating||(this.currIndex=r+1),e&&this.scrollTo(this._contentRef.nativeElement,i+t,this.snapDuration)),s()):r+1===this._children.length-1&&(this.isAnimating||(this.currIndex=r+1),s())})}currentChildWidth(e){let t=0,n=!1;const i=function(){n=!0},r=this._children.toArray();for(let s=0;s<r.length&&s!==r.length-1&&!n;s++){const n=r[s]._elementRef.nativeElement.clientWidth;e(n,t+r[s+1]._elementRef.nativeElement.clientWidth,t,s,i),t+=n}}toChildrenLocation(){let e=0;const t=this._children.toArray();for(let n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}locateDragScrollItem(e){let t=null;const n=this._children.toArray();for(let i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}markElDimension(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");const e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}maximumIndex(e,t){let n=0,i=0;for(let r=0;r<=t.length;r++){const s=t[t.length-1-r];if(!s)break;{const t=s._elementRef.nativeElement;let r=t.clientWidth;if(0===r&&t.firstElementChild&&(r=s._elementRef.nativeElement.firstElementChild.clientWidth),i+=r,!(i<e))break;n++}}return t.length-n}isScrollReachesRightEnd(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}adjustMarginToLastChild(){if(this._children&&this._children.length>0&&this.hideScrollbar){const e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}};return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ul),Vo(Hu))},e.\u0275cmp=qe({type:e,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){if(1&e&&Bc(n,Zk,0),2&e){let e;Tc(e=Rc())&&(t._children=e)}},viewQuery:function(e,t){if(1&e&&Mc(qk,3),2&e){let e;Tc(e=Rc())&&(t._contentRef=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&Xo("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,gr),2&e&&ma("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[dt],ngContentSelectors:Yk,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(sa(),Ho(0,"div",0,1),oa(2),Uo())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),e=O_([I_(0,yi(al)),I_(1,yi(ul)),I_(2,yi(Hu)),T_("design:paramtypes",[al,ul,Object])],e),e})(),Qk=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();class Xk{constructor(e,t){this.x=e,this.y=t}static fromEvent(e,t=null){if(this.isMouseEvent(e))return new Xk(e.clientX,e.clientY);if(null===t||1===e.changedTouches.length)return new Xk(e.changedTouches[0].clientX,e.changedTouches[0].clientY);for(let n=0;n<e.changedTouches.length;n++)if(e.changedTouches[n].target===t)return new Xk(e.changedTouches[n].clientX,e.changedTouches[n].clientY)}static isMouseEvent(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}static isIPosition(e){return!!e&&"x"in e&&"y"in e}static getCurrent(e){let t=new Xk(0,0);if(window){const n=window.getComputedStyle(e);if(n){let e=parseInt(n.getPropertyValue("left"),10),i=parseInt(n.getPropertyValue("top"),10);t.x=isNaN(e)?0:e,t.y=isNaN(i)?0:i}return t}return console.error("Not Supported!"),null}static copy(e){return new Xk(0,0).set(e)}get value(){return{x:this.x,y:this.y}}add(e){return this.x+=e.x,this.y+=e.y,this}subtract(e){return this.x-=e.x,this.y-=e.y,this}multiply(e){this.x*=e,this.y*=e}divide(e){this.x/=e,this.y/=e}reset(){return this.x=0,this.y=0,this}set(e){return this.x=e.x,this.y=e.y,this}}class Jk{constructor(e,t){this.parent=e,this.renderer=t,this._added=!1;let n=t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(n,"width","100%"),t.setStyle(n,"height","100%"),t.setStyle(n,"background-color","transparent"),t.setStyle(n,"top","0"),t.setStyle(n,"left","0"),this._helper=n}add(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}remove(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}dispose(){this._helper=null,this._added=!1}get el(){return this._helper}}let eE=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new Xk(0,0),this.tempTrans=new Xk(0,0),this.currTrans=new Xk(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new wc,this.stopped=new wc,this.edge=new wc,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new wc,this.endOffset=new wc,this._helperBlock=new Jk(e.nativeElement,t)}set zIndex(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}set ngDraggable(e){if(null!=e&&""!==e){this.allowDrag=!!e;let t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}ngOnInit(){if(this.allowDrag){let e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}ngOnDestroy(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}ngOnChanges(e){if(e.position&&!e.position.isFirstChange()){let t=e.position.currentValue;this.moving?this.needTransform=!0:(Xk.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}ngAfterViewInit(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}getDragEl(){return this.handle?this.handle:this.el.nativeElement}resetPosition(){Xk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}moveTo(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}transform(){let e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);let n=`translate(${Math.round(e)}px, ${Math.round(t)}px)`;this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}pickUp(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;const e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}subscribeEvents(){this.draggingSub=z_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(z_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(z_(document,"mouseup",{passive:!1}).subscribe(()=>this.putBack())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(z_(document,"mouseleave",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(z_(document,"touchend",{passive:!1}).subscribe(()=>this.putBack())),this.draggingSub.add(z_(document,"touchcancel",{passive:!1}).subscribe(()=>this.putBack()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}boundsCheck(){if(this.bounds){let e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}getCurrentOffset(){return this.currTrans.value}putBack(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(Xk.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();const e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}checkHandleTarget(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(let n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}onMouseDown(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=Xk.fromEvent(e,this.getDragEl()),this.pickUp())}onMouseMove(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(Xk.fromEvent(e,this.getDragEl())))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&Xo("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[dt]}),e})();class tE{constructor(e,t,n,i,r){this.parent=e,this.renderer=t,this.type=n,this.css=i,this.onMouseDown=r;let s=t.createElement("div");t.addClass(s,"ng-resizable-handle"),t.addClass(s,i),"se"===n&&t.addClass(s,"ng-resizable-diagonal"),this.parent&&e.appendChild(s),this._onResize=e=>{r(e,this)},s.addEventListener("mousedown",this._onResize,{passive:!1}),s.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=s}dispose(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}get el(){return this._handle}}class nE{constructor(e,t){this.width=e,this.height=t}static getCurrent(e){let t=new nE(0,0);if(window){const n=window.getComputedStyle(e);return n&&(t.width=parseInt(n.getPropertyValue("width"),10),t.height=parseInt(n.getPropertyValue("height"),10)),t}return console.error("Not Supported!"),null}static copy(e){return new nE(0,0).set(e)}set(e){return this.width=e.width,this.height=e.height,this}}let iE=(()=>{class e{constructor(e,t){this.el=e,this.renderer=t,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new wc,this.rzResizing=new wc,this.rzStop=new wc,this._helperBlock=new Jk(e.nativeElement,t)}set ngResizable(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}ngOnChanges(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}ngOnInit(){this.updateResizable()}ngOnDestroy(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}ngAfterViewInit(){const e=this.el.nativeElement;this._initSize=nE.getCurrent(e),this._initPos=Xk.getCurrent(e),this._currSize=nE.copy(this._initSize),this._currPos=Xk.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}resetSize(){this._currSize=nE.copy(this._initSize),this._currPos=Xk.copy(this._initPos),this.doResize()}getStatus(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}updateResizable(){const e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}updateAspectRatio(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{let e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}updateContainment(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}createHandles(){if(!this.rzHandles)return;let e;if("string"==typeof this.rzHandles){e="all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(",");for(let t of e){let e=this.createHandleByType(t,"ng-resizable-"+t);e&&(this._handleType.push(t),this._handles[t]=e)}}else{e=Object.keys(this.rzHandles);for(let t of e){let e=this.createHandleByType(t,this.rzHandles[t]);e&&(this._handleType.push(t),this._handles[t]=e)}}}createHandleByType(e,t){const n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new tE(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}removeHandles(){for(let e of this._handleType)this._handles[e].dispose();this._handleType=[],this._handles={}}onMouseDown(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=Xk.fromEvent(e),this.startResize(t),this.subscribeEvents()))}subscribeEvents(){this.draggingSub=z_(document,"mousemove",{passive:!1}).subscribe(e=>this.onMouseMove(e)),this.draggingSub.add(z_(document,"touchmove",{passive:!1}).subscribe(e=>this.onMouseMove(e))),this.draggingSub.add(z_(document,"mouseup",{passive:!1}).subscribe(()=>this.onMouseLeave())),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(z_(document,"mouseleave",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(z_(document,"touchend",{passive:!1}).subscribe(()=>this.onMouseLeave())),this.draggingSub.add(z_(document,"touchcancel",{passive:!1}).subscribe(()=>this.onMouseLeave()))}unsubscribeEvents(){this.draggingSub.unsubscribe(),this.draggingSub=null}onMouseLeave(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}onMouseMove(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(Xk.fromEvent(e)),this.onResizing())}startResize(e){const t=this.el.nativeElement;this._origSize=nE.getCurrent(t),this._origPos=Xk.getCurrent(t),this._currSize=nE.copy(this._origSize),this._currPos=Xk.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}stopResize(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}onResizing(){this.rzResizing.emit(this.getResizingEvent())}getResizingEvent(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}updateDirection(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}resizeTo(e){e.subtract(this._origMousePos);const t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}doResize(){const e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}adjustByRatio(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){const e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{const e=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e}}checkBounds(){if(this._containment){const e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){const e=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-e),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){const t=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-t),this._currSize.width=e,this._currSize.height=t,this._adjusted=!0}}}}checkSize(){const e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}getBounding(){const e=this._containment,t=window.getComputedStyle(e);if(t){let n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}resetBounding(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}getGridSize(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ul))},e.\u0275dir=Je({type:e,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[dt]}),e})(),rE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})();function sE(e,t){return function(n,i){t(n,i,e)}}let oE=(()=>{let e=class{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=ph(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(!this.documentIsAccessible||!this.check(e))return"";{e=encodeURIComponent(e);const n=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(n[1])}catch(t){return n[1]}}}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(t=>{const[n,i]=t.split("=");e[decodeURIComponent(n.replace(/^ /,""))]=decodeURIComponent(i)}),e}set(e,t,n,i,r,s,o="Lax"){if(!this.documentIsAccessible)return;let a=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(a+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(a+="path="+i+";"),r&&(a+="domain="+r+";"),!1===s&&"None"===o&&(s=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),s&&(a+="secure;"),a+="sameSite="+o+";",this.document.cookie=a}delete(e,t,n,i,r="Lax"){this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,r)}deleteAll(e,t,n,i="Lax"){if(!this.documentIsAccessible)return;const r=this.getAll();for(const s in r)r.hasOwnProperty(s)&&this.delete(s,e,t,n,i)}getCookieRegExp(e){const t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}};return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(qc))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(qc))},token:e,providedIn:"root"}),e=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}([sE(0,yi(Hu)),sE(1,yi(qc))],e),e})();function aE(e){return"string"==typeof e}let lE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),cE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),uE=(()=>{let e=class{transform(e,t=0,n="",i=!0){if(!aE(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"shorten",type:e,pure:!0}),e})(),dE=(()=>{let e=class{transform(e){return aE(e)?function(e){const[t,...n]=e.split(/\s/g);return[t.toLowerCase().split(/(?=['|-])/g).map(e=>e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)).join(""),...n].join(" ")}(e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"ucfirst",type:e,pure:!0}),e})(),hE=(()=>{let e=class{constructor(){this.latinMap={\u00c1:"A",\u0102:"A",\u1eae:"A",\u1eb6:"A",\u1eb0:"A",\u1eb2:"A",\u1eb4:"A",\u01cd:"A",\u00c2:"A",\u1ea4:"A",\u1eac:"A",\u1ea6:"A",\u1ea8:"A",\u1eaa:"A",\u00c4:"A",\u01de:"A",\u0226:"A",\u01e0:"A",\u1ea0:"A",\u0200:"A",\u00c0:"A",\u1ea2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00c5:"A",\u01fa:"A",\u1e00:"A",\u023a:"A",\u00c3:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY",\u1e02:"B",\u1e04:"B",\u0181:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0106:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0108:"C",\u010a:"C",\u0187:"C",\u023b:"C",\u010e:"D",\u1e10:"D",\u1e12:"D",\u1e0a:"D",\u1e0c:"D",\u018a:"D",\u1e0e:"D",\u01f2:"D",\u01c5:"D",\u0110:"D",\u018b:"D",\u01f1:"DZ",\u01c4:"DZ",\u00c9:"E",\u0114:"E",\u011a:"E",\u0228:"E",\u1e1c:"E",\u00ca:"E",\u1ebe:"E",\u1ec6:"E",\u1ec0:"E",\u1ec2:"E",\u1ec4:"E",\u1e18:"E",\u00cb:"E",\u0116:"E",\u1eb8:"E",\u0204:"E",\u00c8:"E",\u1eba:"E",\u0206:"E",\u0112:"E",\u1e16:"E",\u1e14:"E",\u0118:"E",\u0246:"E",\u1ebc:"E",\u1e1a:"E",\ua76a:"ET",\u1e1e:"F",\u0191:"F",\u01f4:"G",\u011e:"G",\u01e6:"G",\u0122:"G",\u011c:"G",\u0120:"G",\u0193:"G",\u1e20:"G",\u01e4:"G",\u1e2a:"H",\u021e:"H",\u1e28:"H",\u0124:"H",\u2c67:"H",\u1e26:"H",\u1e22:"H",\u1e24:"H",\u0126:"H",\u00cd:"I",\u012c:"I",\u01cf:"I",\u00ce:"I",\u00cf:"I",\u1e2e:"I",\u0130:"I",\u1eca:"I",\u0208:"I",\u00cc:"I",\u1ec8:"I",\u020a:"I",\u012a:"I",\u012e:"I",\u0197:"I",\u0128:"I",\u1e2c:"I",\ua779:"D",\ua77b:"F",\ua77d:"G",\ua782:"R",\ua784:"S",\ua786:"T",\ua76c:"IS",\u0134:"J",\u0248:"J",\u1e30:"K",\u01e8:"K",\u0136:"K",\u2c69:"K",\ua742:"K",\u1e32:"K",\u0198:"K",\u1e34:"K",\ua740:"K",\ua744:"K",\u0139:"L",\u023d:"L",\u013d:"L",\u013b:"L",\u1e3c:"L",\u1e36:"L",\u1e38:"L",\u2c60:"L",\ua748:"L",\u1e3a:"L",\u013f:"L",\u2c62:"L",\u01c8:"L",\u0141:"L",\u01c7:"LJ",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1e4a:"N",\u1e44:"N",\u1e46:"N",\u01f8:"N",\u019d:"N",\u1e48:"N",\u0220:"N",\u01cb:"N",\u00d1:"N",\u01ca:"NJ",\u00d3:"O",\u014e:"O",\u01d1:"O",\u00d4:"O",\u1ed0:"O",\u1ed8:"O",\u1ed2:"O",\u1ed4:"O",\u1ed6:"O",\u00d6:"O",\u022a:"O",\u022e:"O",\u0230:"O",\u1ecc:"O",\u0150:"O",\u020c:"O",\u00d2:"O",\u1ece:"O",\u01a0:"O",\u1eda:"O",\u1ee2:"O",\u1edc:"O",\u1ede:"O",\u1ee0:"O",\u020e:"O",\ua74a:"O",\ua74c:"O",\u014c:"O",\u1e52:"O",\u1e50:"O",\u019f:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u00d5:"O",\u1e4c:"O",\u1e4e:"O",\u022c:"O",\u01a2:"OI",\ua74e:"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1e54:"P",\u1e56:"P",\ua752:"P",\u01a4:"P",\ua754:"P",\u2c63:"P",\ua750:"P",\ua758:"Q",\ua756:"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1e58:"R",\u1e5a:"R",\u1e5c:"R",\u0210:"R",\u0212:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua73e:"C",\u018e:"E",\u015a:"S",\u1e64:"S",\u0160:"S",\u1e66:"S",\u015e:"S",\u015c:"S",\u0218:"S",\u1e60:"S",\u1e62:"S",\u1e68:"S",\u1e9e:"SS",\u0164:"T",\u0162:"T",\u1e70:"T",\u021a:"T",\u023e:"T",\u1e6a:"T",\u1e6c:"T",\u01ac:"T",\u1e6e:"T",\u01ae:"T",\u0166:"T",\u2c6f:"A",\ua780:"L",\u019c:"M",\u0245:"V",\ua728:"TZ",\u00da:"U",\u016c:"U",\u01d3:"U",\u00db:"U",\u1e76:"U",\u00dc:"U",\u01d7:"U",\u01d9:"U",\u01db:"U",\u01d5:"U",\u1e72:"U",\u1ee4:"U",\u0170:"U",\u0214:"U",\u00d9:"U",\u1ee6:"U",\u01af:"U",\u1ee8:"U",\u1ef0:"U",\u1eea:"U",\u1eec:"U",\u1eee:"U",\u0216:"U",\u016a:"U",\u1e7a:"U",\u0172:"U",\u016e:"U",\u0168:"U",\u1e78:"U",\u1e74:"U",\ua75e:"V",\u1e7e:"V",\u01b2:"V",\u1e7c:"V",\ua760:"VY",\u1e82:"W",\u0174:"W",\u1e84:"W",\u1e86:"W",\u1e88:"W",\u1e80:"W",\u2c72:"W",\u1e8c:"X",\u1e8a:"X",\u00dd:"Y",\u0176:"Y",\u0178:"Y",\u1e8e:"Y",\u1ef4:"Y",\u1ef2:"Y",\u01b3:"Y",\u1ef6:"Y",\u1efe:"Y",\u0232:"Y",\u024e:"Y",\u1ef8:"Y",\u0179:"Z",\u017d:"Z",\u1e90:"Z",\u2c6b:"Z",\u017b:"Z",\u1e92:"Z",\u0224:"Z",\u1e94:"Z",\u01b5:"Z",\u0132:"IJ",\u0152:"OE",\u1d00:"A",\u1d01:"AE",\u0299:"B",\u1d03:"B",\u1d04:"C",\u1d05:"D",\u1d07:"E",\ua730:"F",\u0262:"G",\u029b:"G",\u029c:"H",\u026a:"I",\u0281:"R",\u1d0a:"J",\u1d0b:"K",\u029f:"L",\u1d0c:"L",\u1d0d:"M",\u0274:"N",\u1d0f:"O",\u0276:"OE",\u1d10:"O",\u1d15:"OU",\u1d18:"P",\u0280:"R",\u1d0e:"N",\u1d19:"R",\ua731:"S",\u1d1b:"T",\u2c7b:"E",\u1d1a:"R",\u1d1c:"U",\u1d20:"V",\u1d21:"W",\u028f:"Y",\u1d22:"Z",\u00e1:"a",\u0103:"a",\u1eaf:"a",\u1eb7:"a",\u1eb1:"a",\u1eb3:"a",\u1eb5:"a",\u01ce:"a",\u00e2:"a",\u1ea5:"a",\u1ead:"a",\u1ea7:"a",\u1ea9:"a",\u1eab:"a",\u00e4:"a",\u01df:"a",\u0227:"a",\u01e1:"a",\u1ea1:"a",\u0201:"a",\u00e0:"a",\u1ea3:"a",\u0203:"a",\u0101:"a",\u0105:"a",\u1d8f:"a",\u1e9a:"a",\u00e5:"a",\u01fb:"a",\u1e01:"a",\u2c65:"a",\u00e3:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay",\u1e03:"b",\u1e05:"b",\u0253:"b",\u1e07:"b",\u1d6c:"b",\u1d80:"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0109:"c",\u0255:"c",\u010b:"c",\u0188:"c",\u023c:"c",\u010f:"d",\u1e11:"d",\u1e13:"d",\u0221:"d",\u1e0b:"d",\u1e0d:"d",\u0257:"d",\u1d91:"d",\u1e0f:"d",\u1d6d:"d",\u1d81:"d",\u0111:"d",\u0256:"d",\u018c:"d",\u0131:"i",\u0237:"j",\u025f:"j",\u0284:"j",\u01f3:"dz",\u01c6:"dz",\u00e9:"e",\u0115:"e",\u011b:"e",\u0229:"e",\u1e1d:"e",\u00ea:"e",\u1ebf:"e",\u1ec7:"e",\u1ec1:"e",\u1ec3:"e",\u1ec5:"e",\u1e19:"e",\u00eb:"e",\u0117:"e",\u1eb9:"e",\u0205:"e",\u00e8:"e",\u1ebb:"e",\u0207:"e",\u0113:"e",\u1e17:"e",\u1e15:"e",\u2c78:"e",\u0119:"e",\u1d92:"e",\u0247:"e",\u1ebd:"e",\u1e1b:"e",\ua76b:"et",\u1e1f:"f",\u0192:"f",\u1d6e:"f",\u1d82:"f",\u01f5:"g",\u011f:"g",\u01e7:"g",\u0123:"g",\u011d:"g",\u0121:"g",\u0260:"g",\u1e21:"g",\u1d83:"g",\u01e5:"g",\u1e2b:"h",\u021f:"h",\u1e29:"h",\u0125:"h",\u2c68:"h",\u1e27:"h",\u1e23:"h",\u1e25:"h",\u0266:"h",\u1e96:"h",\u0127:"h",\u0195:"hv",\u00ed:"i",\u012d:"i",\u01d0:"i",\u00ee:"i",\u00ef:"i",\u1e2f:"i",\u1ecb:"i",\u0209:"i",\u00ec:"i",\u1ec9:"i",\u020b:"i",\u012b:"i",\u012f:"i",\u1d96:"i",\u0268:"i",\u0129:"i",\u1e2d:"i",\ua77a:"d",\ua77c:"f",\u1d79:"g",\ua783:"r",\ua785:"s",\ua787:"t",\ua76d:"is",\u01f0:"j",\u0135:"j",\u029d:"j",\u0249:"j",\u1e31:"k",\u01e9:"k",\u0137:"k",\u2c6a:"k",\ua743:"k",\u1e33:"k",\u0199:"k",\u1e35:"k",\u1d84:"k",\ua741:"k",\ua745:"k",\u013a:"l",\u019a:"l",\u026c:"l",\u013e:"l",\u013c:"l",\u1e3d:"l",\u0234:"l",\u1e37:"l",\u1e39:"l",\u2c61:"l",\ua749:"l",\u1e3b:"l",\u0140:"l",\u026b:"l",\u1d85:"l",\u026d:"l",\u0142:"l",\u01c9:"lj",\u017f:"s",\u1e9c:"s",\u1e9b:"s",\u1e9d:"s",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u1d6f:"m",\u1d86:"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1e4b:"n",\u0235:"n",\u1e45:"n",\u1e47:"n",\u01f9:"n",\u0272:"n",\u1e49:"n",\u019e:"n",\u1d70:"n",\u1d87:"n",\u0273:"n",\u00f1:"n",\u01cc:"nj",\u00f3:"o",\u014f:"o",\u01d2:"o",\u00f4:"o",\u1ed1:"o",\u1ed9:"o",\u1ed3:"o",\u1ed5:"o",\u1ed7:"o",\u00f6:"o",\u022b:"o",\u022f:"o",\u0231:"o",\u1ecd:"o",\u0151:"o",\u020d:"o",\u00f2:"o",\u1ecf:"o",\u01a1:"o",\u1edb:"o",\u1ee3:"o",\u1edd:"o",\u1edf:"o",\u1ee1:"o",\u020f:"o",\ua74b:"o",\ua74d:"o",\u2c7a:"o",\u014d:"o",\u1e53:"o",\u1e51:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u00f5:"o",\u1e4d:"o",\u1e4f:"o",\u022d:"o",\u01a3:"oi",\ua74f:"oo",\u025b:"e",\u1d93:"e",\u0254:"o",\u1d97:"o",\u0223:"ou",\u1e55:"p",\u1e57:"p",\ua753:"p",\u01a5:"p",\u1d71:"p",\u1d88:"p",\ua755:"p",\u1d7d:"p",\ua751:"p",\ua759:"q",\u02a0:"q",\u024b:"q",\ua757:"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1e59:"r",\u1e5b:"r",\u1e5d:"r",\u0211:"r",\u027e:"r",\u1d73:"r",\u0213:"r",\u1e5f:"r",\u027c:"r",\u1d72:"r",\u1d89:"r",\u024d:"r",\u027d:"r",\u2184:"c",\ua73f:"c",\u0258:"e",\u027f:"r",\u015b:"s",\u1e65:"s",\u0161:"s",\u1e67:"s",\u015f:"s",\u015d:"s",\u0219:"s",\u1e61:"s",\u1e63:"s",\u1e69:"s",\u0282:"s",\u1d74:"s",\u1d8a:"s",\u023f:"s",\u0261:"g",\u00df:"ss",\u1d11:"o",\u1d13:"o",\u1d1d:"u",\u0165:"t",\u0163:"t",\u1e71:"t",\u021b:"t",\u0236:"t",\u1e97:"t",\u2c66:"t",\u1e6b:"t",\u1e6d:"t",\u01ad:"t",\u1e6f:"t",\u1d75:"t",\u01ab:"t",\u0288:"t",\u0167:"t",\u1d7a:"th",\u0250:"a",\u1d02:"ae",\u01dd:"e",\u1d77:"g",\u0265:"h",\u02ae:"h",\u02af:"h",\u1d09:"i",\u029e:"k",\ua781:"l",\u026f:"m",\u0270:"m",\u1d14:"oe",\u0279:"r",\u027b:"r",\u027a:"r",\u2c79:"r",\u0287:"t",\u028c:"v",\u028d:"w",\u028e:"y",\ua729:"tz",\u00fa:"u",\u016d:"u",\u01d4:"u",\u00fb:"u",\u1e77:"u",\u00fc:"u",\u01d8:"u",\u01da:"u",\u01dc:"u",\u01d6:"u",\u1e73:"u",\u1ee5:"u",\u0171:"u",\u0215:"u",\u00f9:"u",\u1ee7:"u",\u01b0:"u",\u1ee9:"u",\u1ef1:"u",\u1eeb:"u",\u1eed:"u",\u1eef:"u",\u0217:"u",\u016b:"u",\u1e7b:"u",\u0173:"u",\u1d99:"u",\u016f:"u",\u0169:"u",\u1e79:"u",\u1e75:"u",\u1d6b:"ue",\ua778:"um",\u2c74:"v",\ua75f:"v",\u1e7f:"v",\u028b:"v",\u1d8c:"v",\u2c71:"v",\u1e7d:"v",\ua761:"vy",\u1e83:"w",\u0175:"w",\u1e85:"w",\u1e87:"w",\u1e89:"w",\u1e81:"w",\u2c73:"w",\u1e98:"w",\u1e8d:"x",\u1e8b:"x",\u1d8d:"x",\u00fd:"y",\u0177:"y",\u00ff:"y",\u1e8f:"y",\u1ef5:"y",\u1ef3:"y",\u01b4:"y",\u1ef7:"y",\u1eff:"y",\u0233:"y",\u1e99:"y",\u024f:"y",\u1ef9:"y",\u017a:"z",\u017e:"z",\u1e91:"z",\u0291:"z",\u2c6c:"z",\u017c:"z",\u1e93:"z",\u0225:"z",\u1e95:"z",\u1d76:"z",\u1d8e:"z",\u0290:"z",\u01b6:"z",\u0240:"z",\ufb00:"ff",\ufb03:"ffi",\ufb04:"ffl",\ufb01:"fi",\ufb02:"fl",\u0133:"ij",\u0153:"oe",\ufb06:"st",\u2090:"a",\u2091:"e",\u1d62:"i",\u2c7c:"j",\u2092:"o",\u1d63:"r",\u1d64:"u",\u1d65:"v",\u2093:"x"}}transform(e,t="\\s"){return aE(e)?e.replace(/[^A-Za-z0-9]/g,e=>this.latinMap[e]||e):e}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=et({name:"latinise",type:e,pure:!0}),e})(),pE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),gE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),fE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),mE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})(),vE=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[lE,pE,gE,fE,cE,mE]}),e})();function bE(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}const yE=new mC(pC);function wE(e,t=yE){return n=>n.lift(new _E(e,t))}class _E{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new xE(e,this.dueTime,this.scheduler))}}class xE extends f{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(AE,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 AE(e){e.debouncedNext()}function CE(e){return null!=e&&""+e!="false"}function SE(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function kE(e){return Array.isArray(e)?e:[e]}function EE(e){return null==e?"":"string"==typeof e?e:e+"px"}function PE(e){return e instanceof al?e.nativeElement:e}let DE;try{DE="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(NK){DE=!1}let OE,IE,TE,ME=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ph(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!DE)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(fi(qc))},e.\u0275prov=ge({factory:function(){return new e(fi(qc))},token:e,providedIn:"root"}),e})(),BE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();function RE(e){return function(){if(null==OE&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>OE=!0}))}finally{OE=OE||!1}return OE}()?e:!!e.capture}function LE(){if(null==IE){if("object"!=typeof document||!document)return IE=!1,IE;if("scrollBehavior"in document.documentElement.style)IE=!0;else{const e=Element.prototype.scrollTo;IE=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return IE}function FE(e){if(function(){if(null==TE){const e="undefined"!=typeof document?document.head:null;TE=!(!e||!e.createShadowRoot&&!e.attachShadow)}return TE}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}let NE=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),VE=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=PE(e);return new y(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new C,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(fi(NE))},e.\u0275prov=ge({factory:function(){return new e(fi(NE))},token:e,providedIn:"root"}),e})(),zE=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new wc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=CE(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=SE(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(wE(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(VE),Vo(al),Vo(lu))},e.\u0275dir=Je({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),jE=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[NE]}),e})();function HE(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}let UE=0;const WE=new Map;let $E=null,GE=(()=>{class e{constructor(e){this._document=e}describe(e,t,n){if(!this._canBeDescribed(e,t))return;const i=qE(t,n);"string"!=typeof t?(YE(t),WE.set(i,{messageElement:t,referenceCount:0})):WE.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;const i=qE(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){const e=WE.get(i);e&&0===e.referenceCount&&this._deleteMessageElement(i)}$E&&0===$E.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll("[cdk-describedby-host]");for(let t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");$E&&this._deleteMessagesContainer(),WE.clear()}_createMessageElement(e,t){const n=this._document.createElement("div");YE(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),$E.appendChild(n),WE.set(qE(e,t),{messageElement:n,referenceCount:0})}_deleteMessageElement(e){const t=WE.get(e),n=t&&t.messageElement;$E&&n&&$E.removeChild(n),WE.delete(e)}_createMessagesContainer(){if(!$E){const e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),$E=this._document.createElement("div"),$E.id="cdk-describedby-message-container",$E.style.visibility="hidden",$E.classList.add("cdk-visually-hidden"),this._document.body.appendChild($E)}}_deleteMessagesContainer(){$E&&$E.parentNode&&($E.parentNode.removeChild($E),$E=null)}_removeCdkDescribedByReferenceIds(e){const t=HE(e,"aria-describedby").filter(e=>0!=e.indexOf("cdk-describedby-message"));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const n=WE.get(t);!function(e,t,n){const i=HE(e,t);i.some(e=>e.trim()==n.trim())||(i.push(n.trim()),e.setAttribute(t,i.join(" ")))}(e,"aria-describedby",n.messageElement.id),e.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(e,t){const n=WE.get(t);n.referenceCount--,function(e,t,n){const i=HE(e,t).filter(e=>e!=n.trim());i.length?e.setAttribute(t,i.join(" ")):e.removeAttribute(t)}(e,"aria-describedby",n.messageElement.id),e.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(e,t){const n=HE(e,"aria-describedby"),i=WE.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu))},token:e,providedIn:"root"}),e})();function qE(e,t){return"string"==typeof e?`${t||""}/${e}`:e}function YE(e){e.id||(e.id="cdk-describedby-message-"+UE++)}class ZE{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=h.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,e instanceof xc&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ib(e=>this._pressedLetters.push(e)),wE(e),dv(()=>this._pressedLetters.length>0),E(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,r=t[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||bE(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof xc?this._items.toArray():this._items}}class KE extends ZE{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class QE extends ZE{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let XE=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(NK){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){if(-1===eP(t))return!1;if(!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),r=eP(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||JE(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(ME))},token:e,providedIn:"root"}),e})();function JE(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function eP(e){if(!JE(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class tP{constructor(e,t,n,i,r=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(cb(1)).subscribe(e)}}let nP=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new tP(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(fi(XE),fi(lu),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(XE),fi(lu),fi(Hu))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&&Element;const iP=new Xn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),rP=new Xn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let sP=(()=>{class e{constructor(e,t,n,i){this._ngZone=t,this._defaultOptions=i,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){const n=this._defaultOptions;let i,r;return 1===t.length&&"number"==typeof t[0]?r=t[0]:[i,r]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}return e.\u0275fac=function(t){return new(t||e)(fi(iP,8),fi(lu),fi(Hu),fi(rP,8))},e.\u0275prov=ge({factory:function(){return new e(fi(iP,8),fi(lu),fi(Hu),fi(rP,8))},token:e,providedIn:"root"}),e})();function oP(e){return 0===e.buttons}function aP(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const lP=new Xn("cdk-focus-monitor-default-options"),cP=RE({passive:!0,capture:!0});let uP=(()=>{class e{constructor(e,t,n,i){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=oP(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{aP(e)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=dP(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=dP(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let i=t;i;i=i.parentElement)n.call(this,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(e,t=!1){const n=PE(e);if(!this._platform.isBrowser||1!==n.nodeType)return cv(null);const i=FE(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;const s={checkChildren:t,subject:new C,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=PE(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const i=PE(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=dP(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===dP(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,cP),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,cP)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,cP),e.addEventListener("mousedown",this._documentMousedownListener,cP),e.addEventListener("touchstart",this._documentTouchstartListener,cP),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cP),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cP),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,cP),e.removeEventListener("mousedown",this._documentMousedownListener,cP),e.removeEventListener("touchstart",this._documentTouchstartListener,cP),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,i)=>{(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(ME),fi(Hu,8),fi(lP,8))},e.\u0275prov=ge({factory:function(){return new e(fi(lu),fi(ME),fi(Hu,8),fi(lP,8))},token:e,providedIn:"root"}),e})();function dP(e){return e.composedPath?e.composedPath()[0]:e.target}let hP=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(fi(ME),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(ME),fi(Hu))},token:e,providedIn:"root"}),e})(),pP=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275fac=function(t){return new(t||e)(fi(hP))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[BE,jE]]}),e})();const gP=new Xn("cdk-dir-doc",{providedIn:"root",factory:function(){return mi(Hu)}});let fP=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new wc,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(fi(gP,8))},e.\u0275prov=ge({factory:function(){return new e(fi(gP,8))},token:e,providedIn:"root"}),e})(),mP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})();const vP=new pl("11.2.5");function bP(e,t){if(1&e&&Wo(0,"mat-pseudo-checkbox",4),2&e){const e=ia();zo("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function yP(e,t){if(1&e&&(Ho(0,"span",5),Oa(1),Uo()),2&e){const e=ia();is(1),Ta("(",e.group.label,")")}}const wP=["*"];let _P=(()=>{class e{}return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e})(),xP=(()=>{class e{}return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e})();const AP=new pl("11.2.5"),CP=new Xn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let SP,kP=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return xu()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&AP.full!==vP.full&&console.warn("The Angular Material version ("+AP.full+") does not match the Angular CDK version ("+vP.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275fac=function(t){return new(t||e)(fi(hP),fi(CP,8),fi(Hu))},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[mP],mP]}),e})();function EP(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=CE(e)}}}function PP(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}}function DP(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=CE(e)}}}function OP(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?SE(e):this.defaultTabIndex}}}function IP(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new C}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}function TP(e){return class extends e{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}try{SP="undefined"!=typeof Intl}catch(NK){SP=!1}let MP=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),BP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})();class RP{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const LP={enterDuration:450,exitDuration:400},FP=RE({passive:!0}),NP=["mousedown","touchstart"],VP=["mouseup","mouseleave","touchend","touchcancel"];class zP{constructor(e,t,n,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=PE(n))}fadeInRipple(e,t,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},LP),n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const s=n.radius||function(e,t,n){const i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,i),o=e-i.left,a=t-i.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-s+"px",c.style.top=a-s+"px",c.style.height=2*s+"px",c.style.width=2*s+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new RP(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const e=u===this._mostRecentTransientRipple;u.state=1,n.persistent||e&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,i=Object.assign(Object.assign({},LP),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=PE(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(NP))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(VP),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=oP(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!aP(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,FP)})})}_removeTriggerEvents(){this._triggerElement&&(NP.forEach(e=>{this._triggerElement.removeEventListener(e,this,FP)}),this._pointerUpEventsRegistered&&VP.forEach(e=>{this._triggerElement.removeEventListener(e,this,FP)}))}}const jP=new Xn("mat-ripple-global-options");let HP=(()=>{class e{constructor(e,t,n,i,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new zP(this,t,e,n)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(lu),Vo(ME),Vo(jP,8),Vo(xf,8))},e.\u0275dir=Je({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&va("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),UP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP,BE],kP]}),e})(),WP=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(Vo(xf,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&va("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),$P=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP]]}),e})();const GP=new Xn("MAT_OPTION_PARENT_COMPONENT");class qP{}const YP=EP(qP);let ZP=0,KP=(()=>{class e extends YP{constructor(e){var t;super(),this._labelId="mat-optgroup-label-"+ZP++,this._inert=null!==(t=null==e?void 0:e.inertGroups)&&void 0!==t&&t}}return e.\u0275fac=function(t){return new(t||e)(Vo(GP,8))},e.\u0275dir=Je({type:e,inputs:{label:"label"},features:[yo]}),e})();const QP=new Xn("MatOptgroup");let XP=0;class JP{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let eD=(()=>{class e{constructor(e,t,n,i){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+XP++,this.onSelectionChange=new wc,this._stateChanges=new C}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=CE(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){13!==e.keyCode&&32!==e.keyCode||bE(e)||(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new JP(this,e))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(void 0),Vo(KP))},e.\u0275dir=Je({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e})(),tD=(()=>{class e extends eD{constructor(e,t,n,i){super(e,t,n,i)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(GP,8),Vo(QP,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Xo("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Fa("id",t.id),Bo("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),va("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[yo],ngContentSelectors:wP,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(sa(),Fo(0,bP,1,2,"mat-pseudo-checkbox",0),Ho(1,"span",1),oa(2),Uo(),Fo(3,yP,2,1,"span",2),Wo(4,"div",3)),2&e&&(zo("ngIf",t.multiple),is(3),zo("ngIf",t.group&&t.group._inert),is(1),zo("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[$d,HP,WP],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function nD(e,t,n){if(n.length){let i=t.toArray(),r=n.toArray(),s=0;for(let t=0;t<e+1;t++)i[t].group&&i[t].group===r[s]&&s++;return s}return 0}let iD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[UP,hh,kP,$P]]}),e})();class rD extends pC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class sD extends mC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const oD=new sD(rD);let aD=1;const lD=(()=>Promise.resolve())(),cD={};function uD(e){return e in cD&&(delete cD[e],!0)}const dD={setImmediate(e){const t=aD++;return cD[t]=!0,lD.then(()=>uD(t)&&e()),t},clearImmediate(e){uD(e)}};class hD extends pC{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=dD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(dD.clearImmediate(t),e.scheduled=void 0)}}class pD extends mC{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const gD=new pD(hD);class fD{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new mD(e,this.durationSelector))}}class mD extends V{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=z(n,new N(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function vD(e){return!c(e)&&e-parseFloat(e)+1>=0}function bD(e=0,t,n){let i=-1;return vD(t)?i=Number(t)<1?1:Number(t):k(t)&&(n=t),k(n)||(n=yE),new y(t=>{const r=vD(e)?e:+e-n.now();return n.schedule(yD,r,{index:0,period:i,subscriber:t})})}function yD(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function wD(e,t=yE){return n=()=>bD(e,t),function(e){return e.lift(new fD(n))};var n}function _D(e){return t=>t.lift(new xD(e))}class xD{constructor(e){this.notifier=e}call(e,t){const n=new AD(e),i=z(this.notifier,new N(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class AD extends V{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class CD{constructor(e=!1,t,n=!0){this._multiple=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new C,t&&t.length&&(e?t.forEach(e=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let SD=(()=>{class e{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new y(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(wD(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):cv()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(dv(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=PE(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>z_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(ME),fi(Hu,8))},e.\u0275prov=ge({factory:function(){return new e(fi(lu),fi(ME),fi(Hu,8))},token:e,providedIn:"root"}),e})(),kD=(()=>{class e{constructor(e,t,n){this._platform=e,this._change=new C,this._changeListener=e=>{this._change.next(e)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(wD(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(fi(ME),fi(lu),fi(Hu,8))},e.\u0275prov=ge({factory:function(){return new e(fi(ME),fi(lu),fi(Hu,8))},token:e,providedIn:"root"}),e})(),ED=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),PD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[mP,BE,ED],mP,ED]}),e})();class DD{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new OD(e,this.predicate,this.inclusive))}}class OD extends f{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}const ID=LE();class TD{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=EE(-this._previousScrollPosition.left),e.style.top=EE(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ID&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ID&&(t.scrollBehavior=i,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class MD{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class BD{enable(){}disable(){}attach(){}}function RD(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function LD(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class FD{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();RD(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ND=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new BD,this.close=e=>new MD(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new TD(this._viewportRuler,this._document),this.reposition=e=>new FD(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(fi(SD),fi(kD),fi(lu),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(SD),fi(kD),fi(lu),fi(Hu))},token:e,providedIn:"root"}),e})();class VD{constructor(e){if(this.scrollStrategy=new BD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class zD{constructor(e,t,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class jD{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let HD=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu))},token:e,providedIn:"root"}),e})(),UD=(()=>{class e extends HD{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu))},token:e,providedIn:"root"}),e})(),WD=(()=>{class e extends HD{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(t))break;r._outsidePointerEvents.next(e)}}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(ME))},token:e,providedIn:"root"}),e})();const $D=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let GD=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||$D){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),$D?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(ME))},token:e,providedIn:"root"}),e})();class qD{constructor(e,t,n,i,r,s,o,a,l){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new C,this._attachments=new C,this._detachments=new C,this._locationChanges=h.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEvents=new C,this._outsidePointerEvents=new C,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(cb(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=EE(this._config.width),e.height=EE(this._config.height),e.minWidth=EE(this._config.minWidth),e.minHeight=EE(this._config.minHeight),e.maxWidth=EE(this._config.maxWidth),e.maxHeight=EE(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;kE(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(_D(q(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const YD=/([A-Za-z%]+)$/;class ZD{constructor(e,t,n,i,r){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(e,s),a=this._getOverlayPoint(o,t,s),l=this._getOverlayFit(a,t,n,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:s,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:a,originPoint:o,position:s,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&KD(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}_getOverlayFit(e,t,n,i){const r=XD(t);let{x:s,y:o}=e,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(s+=a),l&&(o+=l);let c=0-o,u=o+r.height-n.height,d=this._subtractOverflows(r.width,0-s,s+r.width-n.width),h=this._subtractOverflows(r.height,c,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,r=n.right-t.x,s=QD(this._overlayRef.getConfig().minHeight),o=QD(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=XD(t),r=this._viewportRect,s=Math.max(e.x+i.width-r.width,0),o=Math.max(e.y+i.height-r.height,0),a=Math.max(r.top-n.top-e.y,0),l=Math.max(r.left-n.left-e.x,0);let c=0,u=0;return c=i.width<=r.width?l||-s:e.x<this._viewportMargin?r.left-n.left-e.x:0,u=i.height<=r.height?a||-o:e.y<this._viewportMargin?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:u},{x:e.x+c,y:e.y+u}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new jD(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,l,c;if("top"===t.overlayY)s=e.y,r=n.height-s+this._viewportMargin;else if("bottom"===t.overlayY)o=n.height-e.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;r=2*t,s=e.y-t,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)c=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)l=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-i/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=EE(n.height),i.top=EE(n.top),i.bottom=EE(n.bottom),i.width=EE(n.width),i.left=EE(n.left),i.right=EE(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=EE(e)),r&&(i.maxWidth=EE(r))}this._lastBoundingBoxSize=n,KD(this._boundingBox.style,i)}_resetBoundingBoxStyles(){KD(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){KD(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();KD(n,this._getExactOverlayY(t,e,i)),KD(n,this._getExactOverlayX(t,e,i))}else n.position="static";let o="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=EE(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=EE(s.maxWidth):r&&(n.maxWidth="")),KD(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=EE(r.y),i}_getExactOverlayX(e,t,n){let i,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=EE(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:LD(e,n),isOriginOutsideView:RD(e,n),isOverlayClipped:LD(t,n),isOverlayOutsideView:RD(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&kE(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof al)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function KD(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function QD(e){if("number"!=typeof e&&null!=e){const[t,n]=e.split(YD);return n&&"px"!==n?null:parseFloat(t)}return e||null}function XD(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class JD{constructor(e,t,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new ZD(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const r=new zD(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class eO{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let tO=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new eO}connectedTo(e,t,n){return new JD(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new ZD(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(fi(kD),fi(Hu),fi(ME),fi(GD))},e.\u0275prov=ge({factory:function(){return new e(fi(kD),fi(Hu),fi(ME),fi(GD))},token:e,providedIn:"root"}),e})(),nO=0,iO=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new VD(e);return r.direction=r.direction||this._directionality.value,new qD(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+nO++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Du)),new iS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(fi(ND),fi(GD),fi(il),fi(tO),fi(UD),fi(vo),fi(lu),fi(Hu),fi(fP),fi(id),fi(WD))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})();const rO=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],sO=new Xn("cdk-connected-overlay-scroll-strategy");let oO=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(al))},e.\u0275dir=Je({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),aO=(()=>{class e{constructor(e,t,n,i,r){this._overlay=e,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.EMPTY,this._attachSubscription=h.EMPTY,this._detachSubscription=h.EMPTY,this._positionSubscription=h.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new wc,this.positionChange=new wc,this.attach=new wc,this.detach=new wc,this.overlayKeydown=new wc,this.overlayOutsideClick=new wc,this._templatePortal=new eS(t,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=CE(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=CE(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=CE(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=CE(e)}get push(){return this._push}set push(e){this._push=CE(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=rO);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27!==e.keyCode||this.disableClose||bE(e)||(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new VD({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return n=>n.lift(new DD(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(Vl),Vo(Gl),Vo(sO),Vo(fP,8))},e.\u0275dir=Je({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[dt]}),e})();const lO={provide:sO,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let cO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[iO,lO],imports:[[mP,sS,PD],PD]}),e})();const uO=["underline"],dO=["connectionContainer"],hO=["inputContainer"],pO=["label"];function gO(e,t){1&e&&($o(0),Ho(1,"div",14),Wo(2,"div",15),Wo(3,"div",16),Wo(4,"div",17),Uo(),Ho(5,"div",18),Wo(6,"div",15),Wo(7,"div",16),Wo(8,"div",17),Uo(),Go())}function fO(e,t){1&e&&(Ho(0,"div",19),oa(1,1),Uo())}function mO(e,t){if(1&e&&($o(0),oa(1,2),Ho(2,"span"),Oa(3),Uo(),Go()),2&e){const e=ia(2);is(3),Ia(e._control.placeholder)}}function vO(e,t){1&e&&oa(0,3,["*ngSwitchCase","true"])}function bO(e,t){1&e&&(Ho(0,"span",23),Oa(1," *"),Uo())}function yO(e,t){if(1&e){const e=Yo();Ho(0,"label",20,21),Xo("cdkObserveContent",function(){return Lt(e),ia().updateOutlineGap()}),Fo(2,mO,4,1,"ng-container",12),Fo(3,vO,1,0,"ng-content",12),Fo(4,bO,2,0,"span",22),Uo()}if(2&e){const e=ia();va("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),zo("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Bo("for",e._control.id)("aria-owns",e._control.id),is(2),zo("ngSwitchCase",!1),is(1),zo("ngSwitchCase",!0),is(1),zo("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function wO(e,t){1&e&&(Ho(0,"div",24),oa(1,4),Uo())}function _O(e,t){if(1&e&&(Ho(0,"div",25,26),Wo(2,"span",27),Uo()),2&e){const e=ia();is(2),va("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function xO(e,t){1&e&&(Ho(0,"div"),oa(1,5),Uo()),2&e&&zo("@transitionMessages",ia()._subscriptAnimationState)}function AO(e,t){if(1&e&&(Ho(0,"div",31),Oa(1),Uo()),2&e){const e=ia(2);zo("id",e._hintLabelId),is(1),Ia(e.hintLabel)}}function CO(e,t){if(1&e&&(Ho(0,"div",28),Fo(1,AO,2,2,"div",29),oa(2,6),Wo(3,"div",30),oa(4,7),Uo()),2&e){const e=ia();zo("@transitionMessages",e._subscriptAnimationState),is(1),zo("ngIf",e.hintLabel)}}const SO=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kO=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],EO=new Xn("MatError"),PO={transitionMessages:ep("transitionMessages",[rp("enter",ip({opacity:1,transform:"translateY(0%)"})),op("void => enter",[ip({opacity:0,transform:"translateY(-5px)"}),tp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let DO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e}),e})();const OO=new Xn("MatHint");let IO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["mat-label"]]}),e})(),TO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["mat-placeholder"]]}),e})();const MO=new Xn("MatPrefix"),BO=new Xn("MatSuffix");let RO=0;class LO{constructor(e){this._elementRef=e}}const FO=PP(LO,"primary"),NO=new Xn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),VO=new Xn("MatFormField");let zO=(()=>{class e extends FO{constructor(e,t,n,i,r,s,o,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+RO++,this._labelId="mat-form-field-label-"+RO++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=CE(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(hb(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_D(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(_D(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),q(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hb(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hb(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(_D(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,z_(this._label.nativeElement,"transitionend").pipe(cb(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=e.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let e=0;e<o.length;e++)l+=o[e].offsetWidth;t=Math.abs(a-s)-5,n=l>0?.75*l+10:0}for(let o=0;o<r.length;o++)r[o].style.width=t+"px";for(let o=0;o<s.length;o++)s[o].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(al),Vo(fP,8),Vo(NO,8),Vo(ME),Vo(lu),Vo(xf,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,DO,1),Bc(n,DO,3),Bc(n,IO,1),Bc(n,IO,3),Bc(n,TO,1),Bc(n,EO,1),Bc(n,OO,1),Bc(n,MO,1),Bc(n,BO,1)),2&e){let e;Tc(e=Rc())&&(t._controlNonStatic=e.first),Tc(e=Rc())&&(t._controlStatic=e.first),Tc(e=Rc())&&(t._labelChildNonStatic=e.first),Tc(e=Rc())&&(t._labelChildStatic=e.first),Tc(e=Rc())&&(t._placeholderChild=e.first),Tc(e=Rc())&&(t._errorChildren=e),Tc(e=Rc())&&(t._hintChildren=e),Tc(e=Rc())&&(t._prefixChildren=e),Tc(e=Rc())&&(t._suffixChildren=e)}},viewQuery:function(e,t){if(1&e&&(Mc(uO,1),Mc(dO,3),Mc(hO,1),Mc(pO,1)),2&e){let e;Tc(e=Rc())&&(t.underlineRef=e.first),Tc(e=Rc())&&(t._connectionContainerRef=e.first),Tc(e=Rc())&&(t._inputContainerRef=e.first),Tc(e=Rc())&&(t._label=e.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&va("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[el([{provide:VO,useExisting:e}]),yo],ngContentSelectors:kO,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(sa(SO),Ho(0,"div",0),Ho(1,"div",1,2),Xo("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),Fo(3,gO,9,0,"ng-container",3),Fo(4,fO,2,0,"div",4),Ho(5,"div",5,6),oa(7),Ho(8,"span",7),Fo(9,yO,5,16,"label",8),Uo(),Uo(),Fo(10,wO,2,0,"div",9),Uo(),Fo(11,_O,3,4,"div",10),Ho(12,"div",11),Fo(13,xO,2,1,"div",12),Fo(14,CO,5,2,"div",13),Uo(),Uo()),2&e&&(is(3),zo("ngIf","outline"==t.appearance),is(1),zo("ngIf",t._prefixChildren.length),is(5),zo("ngIf",t._hasFloatingLabel()),is(1),zo("ngIf",t._suffixChildren.length),is(1),zo("ngIf","outline"!=t.appearance),is(1),zo("ngSwitch",t._getDisplayedMessages()),is(1),zo("ngSwitchCase","error"),is(1),zo("ngSwitchCase","hint"))},directives:[$d,Zd,Kd,zE],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[PO.transitionMessages]},changeDetection:0}),e})(),jO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,jE],kP]}),e})();function HO(e,t=yE){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new UO(i,t))}class UO{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new WO(e,this.delay,this.scheduler))}}class WO extends f{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,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(WO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new $O(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(_C.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(_C.createComplete()),this.unsubscribe()}}class $O{constructor(e,t){this.time=e,this.notification=t}}const GO={provide:new Xn("mat-autocomplete-scroll-strategy"),deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let qO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[GO],imports:[[cO,iD,kP,hh],ED,iD,kP]}),e})(),YO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[pP,kP],kP]}),e})();class ZO{constructor(e){this.total=e}call(e,t){return t.subscribe(new KO(e,this.total))}}class KO extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}const QO=new Set;let XO,JO=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):eI}matchMedia(e){return this._platform.WEBKIT&&function(e){if(!QO.has(e))try{XO||(XO=document.createElement("style"),XO.setAttribute("type","text/css"),document.head.appendChild(XO)),XO.sheet&&(XO.sheet.insertRule(`@media ${e} {.fx-query-test{ }}`,0),QO.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(fi(ME))},e.\u0275prov=ge({factory:function(){return new e(fi(ME))},token:e,providedIn:"root"}),e})();function eI(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let tI=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return nI(kE(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=Qv(nI(kE(e)).map(e=>this._registerQuery(e).observable));return t=tb(t.pipe(cb(1)),t.pipe(e=>e.lift(new ZO(1)),wE(0))),t.pipe(E(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:n})=>{t.matches=t.matches||e,t.breakpoints[n]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),n={observable:new y(e=>{const n=t=>this._zone.run(()=>e.next(t));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(hb(t),E(({matches:t})=>({query:e,matches:t})),_D(this._destroySubject)),mql:t};return this._queries.set(e,n),n}}return e.\u0275fac=function(t){return new(t||e)(fi(JO),fi(lu))},e.\u0275prov=ge({factory:function(){return new e(fi(JO),fi(lu))},token:e,providedIn:"root"}),e})();function nI(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function iI(e,t){}const rI=new Xn("MatBottomSheetData");class sI{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}}const oI={bottomSheetState:ep("state",[rp("void, hidden",ip({transform:"translateY(100%)"})),rp("visible",ip({transform:"translateY(0%)"})),op("visible => void, visible => hidden",tp(`${xP.COMPLEX} ${_P.ACCELERATION_CURVE}`)),op("void => visible",tp(`${xP.EXITING} ${_P.DECELERATION_CURVE}`))])};let aI=(()=>{class e extends nS{constructor(e,t,n,i,r,s){super(),this._elementRef=e,this._changeDetectorRef=t,this._focusTrapFactory=n,this.bottomSheetConfig=s,this._animationState="void",this._animationStateChanged=new wc,this._elementFocusedBeforeOpened=null,this.attachDomPortal=e=>(this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(e)),this._document=r,this._breakpointSubscription=i.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",i.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),this._toggleClass("mat-bottom-sheet-container-large",i.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),this._toggleClass("mat-bottom-sheet-container-xlarge",i.isMatched("(min-width: 1920px)"))})}attachComponentPortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_toggleClass(e,t){const n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}_validatePortalAttached(){this._portalOutlet.hasAttached()}_setPanelClass(){const e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(t=>e.classList.add(t)):t&&e.classList.add(t)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus())}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Ml),Vo(nP),Vo(tI),Vo(Hu,8),Vo(sI))},e.\u0275cmp=qe({type:e,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){if(1&e&&Mc(rS,3),2&e){let e;Tc(e=Rc())&&(t._portalOutlet=e.first)}},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Jo("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(Bo("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),Na("@state",t._animationState))},features:[yo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fo(0,iI,0,0,"ng-template",0)},directives:[rS],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[oI.bottomSheetState]}}),e})(),lI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[cO,kP,sS],kP]}),e})();class cI{constructor(e,t){this._overlayRef=t,this._afterDismissed=new C,this._afterOpened=new C,this.containerInstance=e,this.disableClose=e.bottomSheetConfig.disableClose,e._animationStateChanged.pipe(dv(e=>"done"===e.phaseName&&"visible"===e.toState),cb(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(dv(e=>"done"===e.phaseName&&"hidden"===e.toState),cb(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),t.dispose()}),t.detachments().pipe(cb(1)).subscribe(()=>{this._afterDismissed.next(this._result),this._afterDismissed.complete()}),q(t.backdropClick(),t.keydownEvents().pipe(dv(e=>27===e.keyCode))).subscribe(e=>{this.disableClose||"keydown"===e.type&&bE(e)||(e.preventDefault(),this.dismiss())})}dismiss(e){this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(dv(e=>"start"===e.phaseName),cb(1)).subscribe(e=>{this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100),this._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}afterDismissed(){return this._afterDismissed}afterOpened(){return this._afterOpened}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}}const uI=new Xn("mat-bottom-sheet-default-options");let dI=(()=>{class e{constructor(e,t,n,i){this._overlay=e,this._injector=t,this._parentBottomSheet=n,this._defaultOptions=i,this._bottomSheetRefAtThisLevel=null}get _openedBottomSheetRef(){const e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}open(e,t){const n=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new sI,t),i=this._createOverlay(n),r=this._attachContainer(i,n),s=new cI(r,i);if(e instanceof Vl)r.attachTemplatePortal(new eS(e,null,{$implicit:n.data,bottomSheetRef:s}));else{const t=new JC(e,void 0,this._createInjector(n,s)),i=r.attachComponentPortal(t);s.instance=i.instance}return s.afterDismissed().subscribe(()=>{this._openedBottomSheetRef==s&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>s.containerInstance.enter()),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}_attachContainer(e,t){const n=vo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:sI,useValue:t}]}),i=new JC(aI,t.viewContainerRef,n);return e.attach(i).instance}_createOverlay(e){const t=new VD({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}_createInjector(e,t){const n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:cI,useValue:t},{provide:rI,useValue:e.data}];return!e.direction||n&&n.get(fP,null)||i.push({provide:fP,useValue:{value:e.direction,change:cv()}}),vo.create({parent:n||this._injector,providers:i})}}return e.\u0275fac=function(t){return new(t||e)(fi(iO),fi(vo),fi(e,12),fi(uI,8))},e.\u0275prov=ge({factory:function(){return new e(fi(iO),fi(eo),fi(e,12),fi(uI,8))},token:e,providedIn:lI}),e})();const hI=["mat-button",""],pI=["*"],gI=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class fI{constructor(e){this._elementRef=e}}const mI=PP(EP(DP(fI)));let vI=(()=>{class e extends mI{constructor(e,t,n){super(e),this._focusMonitor=t,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of gI)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(uP),Vo(xf,8))},e.\u0275cmp=qe({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&Mc(HP,1),2&e){let e;Tc(e=Rc())&&(t.ripple=e.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(Bo("disabled",t.disabled||null),va("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[yo],attrs:hI,ngContentSelectors:pI,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(sa(),Ho(0,"span",0),oa(1),Uo(),Wo(2,"span",1),Wo(3,"span",2)),2&e&&(is(2),va("mat-button-ripple-round",t.isRoundButton||t.isIconButton),zo("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[HP],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e})(),bI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[UP,kP],kP]}),e})(),yI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})(),wI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),_I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[UP,kP,jE,wI],kP,wI]}),e})();function xI(e,t){}class AI{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const CI={dialogContainer:ep("dialogContainer",[rp("void, exit",ip({opacity:0,transform:"scale(0.7)"})),rp("enter",ip({transform:"none"})),op("* => enter",tp("150ms cubic-bezier(0, 0, 0.2, 1)",ip({transform:"none",opacity:1}))),op("* => void, * => exit",tp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ip({opacity:0})))])};let SI=(()=>{class e extends nS{constructor(e,t,n,i,r,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=r,this._focusMonitor=s,this._animationStateChanged=new wc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(nP),Vo(Ml),Vo(Hu,8),Vo(AI),Vo(uP))},e.\u0275dir=Je({type:e,viewQuery:function(e,t){if(1&e&&Mc(rS,3),2&e){let e;Tc(e=Rc())&&(t._portalOutlet=e.first)}},features:[yo]}),e})(),kI=(()=>{class e extends SI{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return EI(t||e)},e.\u0275cmp=qe({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Jo("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Fa("id",t._id),Bo("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Na("@dialogContainer",t._state))},features:[yo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Fo(0,xI,0,0,"ng-template",0)},directives:[rS],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[CI.dialogContainer]}}),e})();const EI=qn(kI);let PI=0;class DI{constructor(e,t,n="mat-dialog-"+PI++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new C,this._afterClosed=new C,this._beforeClosed=new C,this._state=0,t._id=n,t._animationStateChanged.pipe(dv(e=>"opened"===e.state),cb(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(dv(e=>"closed"===e.state),cb(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(dv(e=>27===e.keyCode&&!this.disableClose&&!bE(e))).subscribe(e=>{e.preventDefault(),OI(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():OI(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(dv(e=>"closing"===e.state),cb(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function OI(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const II=new Xn("MatDialogData"),TI=new Xn("mat-dialog-default-options"),MI=new Xn("mat-dialog-scroll-strategy"),BI={provide:MI,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.block()}};let RI=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new C,this._afterOpenedAtThisLevel=new C,this._ariaHiddenElements=new Map,this.afterAllClosed=rb(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hb(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new AI)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new VD({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=vo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:AI,useValue:t}]}),i=new JC(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof Vl)t.attachTemplatePortal(new eS(e,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,t),s=t.attachComponentPortal(new JC(e,i.viewContainerRef,n));r.componentInstance=s.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(fP,null)||r.push({provide:fP,useValue:{value:e.direction,change:cv()}}),vo.create({parent:i||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(vo),Vo(void 0),Vo(void 0),Vo(GD),Vo(void 0),Vo(ei),Vo(ei),Vo(Xn))},e.\u0275dir=Je({type:e}),e})(),LI=(()=>{class e extends RI{constructor(e,t,n,i,r,s,o){super(e,t,i,s,o,r,DI,kI,II)}}return e.\u0275fac=function(t){return new(t||e)(fi(iO),fi(vo),fi(id,8),fi(TI,8),fi(MI),fi(e,12),fi(GD))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),FI=0,NI=(()=>{class e{constructor(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+FI++}ngOnInit(){this._dialogRef||(this._dialogRef=function(e,t){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(e=>e.id===n.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(DI,8),Vo(al),Vo(LI))},e.\u0275dir=Je({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Fa("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),VI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),zI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})(),jI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[LI,BI],imports:[[cO,sS,kP],kP]}),e})(),HI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),UI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,HI,sS]]}),e})();const WI=["*"];function $I(e){return Error(`Unable to find icon with the name "${e}"`)}function GI(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function qI(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class YI{constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}}let ZI=(()=>{class e{constructor(e,t,n,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,i){return this._addSvgIconConfig(e,t,new YI(n,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,i){const r=this._sanitizer.sanitize(rr.HTML,n);if(!r)throw qI(n);return this._addSvgIconConfig(e,t,new YI("",r,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new YI(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){const i=this._sanitizer.sanitize(rr.HTML,t);if(!i)throw qI(t);return this._addSvgIconSetConfig(e,new YI("",i,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(rr.RESOURCE_URL,e);if(!t)throw GI(e);const n=this._cachedIconsByUrl.get(t);return n?cv(KI(n)):this._loadSvgIconFromConfig(new YI(e,null)).pipe(Ib(e=>this._cachedIconsByUrl.set(t,e)),E(e=>KI(e)))}getNamedSvgIcon(e,t=""){const n=QI(t,e);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):yC($I(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?cv(KI(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(E(e=>KI(e)))}_getSvgFromIconSetConfigs(e,t){const n=this._extractIconWithNameFromAnySet(e,t);return n?cv(n):Sf(t.filter(e=>!e.svgText).map(e=>this._loadSvgIconSetFromConfig(e).pipe(mb(t=>{const n=this._sanitizer.sanitize(rr.RESOURCE_URL,e.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${t.message}`)),cv(null)})))).pipe(E(()=>{const n=this._extractIconWithNameFromAnySet(e,t);if(!n)throw $I(e);return n}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){const t=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(t,e,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ib(t=>e.svgText=t),E(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?cv(null):this._fetchIcon(e).pipe(Ib(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){const i=e.querySelector(`[id="${t}"]`);if(!i)return null;const r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const s=this._svgElementFromString("<svg></svg>");return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(e){const t=this._svgElementFromString("<svg></svg>"),n=e.attributes;for(let i=0;i<n.length;i++){const{name:e,value:r}=n[i];"id"!==e&&t.setAttribute(e,r)}for(let i=0;i<e.childNodes.length;i++)e.childNodes[i].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[i].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){var t;const{url:n,options:i}=e,r=null!==(t=null==i?void 0:i.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const s=this._sanitizer.sanitize(rr.RESOURCE_URL,n);if(!s)throw GI(n);const o=this._inProgressUrlFetches.get(s);if(o)return o;const a=this._httpClient.get(s,{responseType:"text",withCredentials:r}).pipe(Bb(()=>this._inProgressUrlFetches.delete(s)),te());return this._inProgressUrlFetches.set(s,a),a}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(QI(e,t),n),this}_addSvgIconSetConfig(e,t){const n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){const r=this._resolvers[i](t,e);if(r)return(n=r).url&&n.options?new YI(r.url,null,r.options):new YI(r,null)}var n}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov,8),fi(Yh),fi(Hu,8),fi(dr))},e.\u0275prov=ge({factory:function(){return new e(fi(Ov,8),fi(Yh),fi(Hu,8),fi(dr))},token:e,providedIn:"root"}),e})();function KI(e){return e.cloneNode(!0)}function QI(e,t){return e+":"+t}class XI{constructor(e){this._elementRef=e}}const JI=PP(XI),eT=new Xn("mat-icon-location",{providedIn:"root",factory:function(){const e=mi(Hu),t=e?e.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),tT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nT=tT.map(e=>`[${e}]`).join(", "),iT=/^url\(['"]?#(.*?)['"]?\)$/;let rT=(()=>{class e extends JI{constructor(e,t,n,i,r){super(e),this._iconRegistry=t,this._location=i,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.EMPTY,n||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=CE(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let i=0;i<t.length;i++)t[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((t,n)=>{t.forEach(t=>{n.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(nT),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<t.length;i++)tT.forEach(e=>{const r=t[i],s=r.getAttribute(e),o=s?s.match(iT):null;if(o){let t=n.get(r);t||(t=[],n.set(r,t)),t.push({name:e,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(cb(1)).subscribe(e=>this._setSvgElement(e),e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${n}! ${e.message}`))})}}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(ZI),Zn("aria-hidden"),Vo(eT),Vo(dr))},e.\u0275cmp=qe({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(Bo("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),va("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[yo],ngContentSelectors:WI,decls:1,vars:0,template:function(e,t){1&e&&(sa(),oa(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),sT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})(),oT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[BE]]}),e})(),aT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[MP],imports:[[oT,jO,kP],oT,jO]}),e})(),lT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP],kP]}),e})(),cT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[BP,UP,kP,$P,hh],BP,kP,$P,lT]}),e})();const uT=["trigger"],dT=["panel"];function hT(e,t){if(1&e&&(Ho(0,"span",8),Oa(1),Uo()),2&e){const e=ia();is(1),Ia(e.placeholder)}}function pT(e,t){if(1&e&&(Ho(0,"span",12),Oa(1),Uo()),2&e){const e=ia(2);is(1),Ia(e.triggerValue)}}function gT(e,t){1&e&&oa(0,0,["*ngSwitchCase","true"])}function fT(e,t){1&e&&(Ho(0,"span",9),Fo(1,pT,2,1,"span",10),Fo(2,gT,1,0,"ng-content",11),Uo()),2&e&&(zo("ngSwitch",!!ia().customTrigger),is(2),zo("ngSwitchCase",!0))}function mT(e,t){if(1&e){const e=Yo();Ho(0,"div",13),Ho(1,"div",14,15),Xo("@transformPanel.done",function(t){return Lt(e),ia()._panelDoneAnimatingStream.next(t.toState)})("keydown",function(t){return Lt(e),ia()._handleKeydown(t)}),oa(3,1),Uo(),Uo()}if(2&e){const e=ia();zo("@transformPanelWrap",void 0),is(1),La("mat-select-panel ",e._getPanelTheme(),""),ma("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),zo("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Bo("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const vT=[[["mat-select-trigger"]],"*"],bT=["mat-select-trigger","*"],yT={transformPanelWrap:ep("transformPanelWrap",[op("* => void",lp("@transformPanel",[ap()],{optional:!0}))]),transformPanel:ep("transformPanel",[rp("void",ip({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),rp("showing",ip({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),rp("showing-multiple",ip({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),op("void => *",tp("120ms cubic-bezier(0, 0, 0.2, 1)")),op("* => void",tp("100ms 25ms linear",ip({opacity:0})))])};let wT=0;const _T=new Xn("mat-select-scroll-strategy"),xT=new Xn("MAT_SELECT_CONFIG"),AT={provide:_T,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class CT{constructor(e,t){this.source=e,this.value=t}}class ST{constructor(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const kT=DP(OP(EP(IP(ST)))),ET=new Xn("MatSelectTrigger");let PT=(()=>{class e extends kT{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h,p){var g,f,m;super(r,i,o,a,c),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=n,this._dir=s,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(e,t)=>e===t,this._uid="mat-select-"+wT++,this._triggerAriaLabelledBy=null,this._destroy=new C,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+wT++,this._panelDoneAnimatingStream=new C,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(m=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==m&&m,this.ariaLabel="",this.optionSelectionChanges=rb(()=>{const e=this.options;return e?e.changes.pipe(hb(e),sb(()=>q(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.pipe(cb(1),sb(()=>this.optionSelectionChanges))}),this.openedChange=new wc,this._openedStream=this.openedChange.pipe(dv(e=>e),E(()=>{})),this._closedStream=this.openedChange.pipe(dv(e=>!e),E(()=>{})),this.selectionChange=new wc,this.valueChange=new wc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=CE(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=CE(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=CE(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=SE(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new CD(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(H_(),_D(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(_D(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(hb(null),_D(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!bE(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){const t=this.selected;r.onKeydown(e);const n=this.selected;n&&t!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||bE(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const n=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==n&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(cb(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(e=>e.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(e=>this._selectValue(e)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{if(this._selectionModel.isSelected(t))return!1;try{return null!=t.value&&this._compareWith(t.value,e)}catch(n){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new KE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(_D(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(_D(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=q(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(_D(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),q(...this.options.map(e=>e._stateChanges)).pipe(_D(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return e.\u0275fac=function(t){return new(t||e)(Vo(kD),Vo(Ml),Vo(lu),Vo(MP),Vo(al),Vo(fP,8),Vo(Tm,8),Vo(Hm,8),Vo(VO,8),Vo(sm,10),Zn("tabindex"),Vo(_T),Vo(sP),Vo(xT,8))},e.\u0275dir=Je({type:e,viewQuery:function(e,t){if(1&e&&(Mc(uT,1),Mc(dT,1),Mc(aO,1)),2&e){let e;Tc(e=Rc())&&(t.trigger=e.first),Tc(e=Rc())&&(t.panel=e.first),Tc(e=Rc())&&(t.overlayDir=e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[yo,dt]}),e})(),DT=(()=>{class e extends PT{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(_D(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(cb(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(e){const t=nD(e,this.options,this.optionGroups),n=this._getItemHeight();var i,r,s;this.panel.nativeElement.scrollTop=(r=n,256,(i=(e+t)*n)<(s=this.panel.nativeElement.scrollTop)?i:i+r>s+256?Math.max(0,i-256+r):s)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new CT(this,e)}_calculateOverlayOffsetX(){const e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let e=this._selectionModel.selected[0]||this.options.first;r=e&&e.group?32:16}n||(r*=-1);const s=0-(e.left+r-(n?i:0)),o=e.right+r-t.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,s=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,i,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,n){const i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=nD(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return e.\u0275fac=function(t){return OT(t||e)},e.\u0275cmp=qe({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,ET,1),Bc(n,tD,1),Bc(n,QP,1)),2&e){let e;Tc(e=Rc())&&(t.customTrigger=e.first),Tc(e=Rc())&&(t.options=e),Tc(e=Rc())&&(t.optionGroups=e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&Xo("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(Bo("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),va("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[el([{provide:DO,useExisting:e},{provide:GP,useExisting:e}]),yo],ngContentSelectors:bT,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(sa(vT),Ho(0,"div",0,1),Xo("click",function(){return t.toggle()}),Ho(3,"div",2),Fo(4,hT,2,1,"span",3),Fo(5,fT,3,2,"span",4),Uo(),Ho(6,"div",5),Wo(7,"div",6),Uo(),Uo(),Fo(8,mT,4,14,"ng-template",7),Xo("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const e=No(1);Bo("aria-owns",t.panelOpen?t.id+"-panel":null),is(3),zo("ngSwitch",t.empty),Bo("id",t._valueId),is(1),zo("ngSwitchCase",!0),is(1),zo("ngSwitchCase",!1),is(3),zo("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[oO,Zd,Kd,aO,Qd,jd],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[yT.transformPanelWrap,yT.transformPanel]},changeDetection:0}),e})();const OT=qn(DT);let IT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[AT],imports:[[hh,cO,iD,kP],ED,jO,iD,kP]}),e})();const TT={tooltipState:ep("state",[rp("initial, void, hidden",ip({opacity:0,transform:"scale(0)"})),rp("visible",ip({transform:"scale(1)"})),op("* => visible",tp("200ms cubic-bezier(0, 0, 0.2, 1)",sp([ip({opacity:0,transform:"scale(0)",offset:0}),ip({opacity:.5,transform:"scale(0.99)",offset:.5}),ip({opacity:1,transform:"scale(1)",offset:1})]))),op("* => hidden",tp("100ms cubic-bezier(0, 0, 0.2, 1)",ip({opacity:0})))])},MT=RE({passive:!0}),BT=new Xn("mat-tooltip-scroll-strategy"),RT={provide:BT,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},LT=new Xn("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let FT=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new C,this._handleKeydown=e=>{this._isTooltipVisible()&&27===e.keyCode&&!bE(e)&&(e.preventDefault(),e.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),r.runOutsideAngular(()=>{t.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=CE(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_D(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,MT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new JC(NT,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(_D(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return t.positionChanges.pipe(_D(this._destroyed)).subscribe(e=>{this._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(_D(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t||"below"==t?n={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={originX:"end",originY:"center"});const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let n;"above"==t?n={overlayX:"center",overlayY:"bottom"}:"below"==t?n={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?n={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(cb(1),_D(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",e=>this._wheelListener(e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([e,t])=>{this._elementRef.nativeElement.addEventListener(e,t,MT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(al),Vo(SD),Vo(Gl),Vo(lu),Vo(ME),Vo(GE),Vo(uP),Vo(BT),Vo(fP,8),Vo(LT,8),Vo(Hu))},e.\u0275dir=Je({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),e})(),NT=(()=>{class e{constructor(e,t){this._changeDetectorRef=e,this._breakpointObserver=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new C,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(e){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},e)}hide(e){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ml),Vo(tI))},e.\u0275cmp=qe({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Xo("click",function(){return t._handleBodyInteraction()},!1,fr)("auxclick",function(){return t._handleBodyInteraction()},!1,fr),2&e&&ma("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(Ho(0,"div",0),Xo("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),pc(1,"async"),Oa(2),Uo()),2&e){let e=null;va("mat-tooltip-handset",null==(e=gc(1,5,t._isHandset))?null:e.matches),zo("ngClass",t.tooltipClass)("@state",t._visibility),is(2),Ia(t.message)}},directives:[jd],pipes:[sh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[TT.tooltipState]},changeDetection:0}),e})(),VT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[RT],imports:[[pP,hh,cO,kP],kP,ED]}),e})();function zT(e,t){if(1&e&&(Ho(0,"mat-option",19),Oa(1),Uo()),2&e){const e=t.$implicit;zo("value",e),is(1),Ta(" ",e," ")}}function jT(e,t){if(1&e){const e=Yo();Ho(0,"mat-form-field",16),Ho(1,"mat-select",17),Xo("selectionChange",function(t){return Lt(e),ia(2)._changePageSize(t.value)}),Fo(2,zT,2,2,"mat-option",18),Uo(),Uo()}if(2&e){const e=ia(2);zo("appearance",e._formFieldAppearance)("color",e.color),is(1),zo("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),is(1),zo("ngForOf",e._displayedPageSizeOptions)}}function HT(e,t){if(1&e&&(Ho(0,"div",20),Oa(1),Uo()),2&e){const e=ia(2);is(1),Ia(e.pageSize)}}function UT(e,t){if(1&e&&(Ho(0,"div",12),Ho(1,"div",13),Oa(2),Uo(),Fo(3,jT,3,6,"mat-form-field",14),Fo(4,HT,2,1,"div",15),Uo()),2&e){const e=ia();is(2),Ta(" ",e._intl.itemsPerPageLabel," "),is(1),zo("ngIf",e._displayedPageSizeOptions.length>1),is(1),zo("ngIf",e._displayedPageSizeOptions.length<=1)}}function WT(e,t){if(1&e){const e=Yo();Ho(0,"button",21),Xo("click",function(){return Lt(e),ia().firstPage()}),dn(),Ho(1,"svg",7),Wo(2,"path",22),Uo(),Uo()}if(2&e){const e=ia();zo("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Bo("aria-label",e._intl.firstPageLabel)}}function $T(e,t){if(1&e){const e=Yo();dn(),hn(),Ho(0,"button",23),Xo("click",function(){return Lt(e),ia().lastPage()}),dn(),Ho(1,"svg",7),Wo(2,"path",24),Uo(),Uo()}if(2&e){const e=ia();zo("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Bo("aria-label",e._intl.lastPageLabel)}}let GT=(()=>{class e{constructor(){this.changes=new C,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,n)=>{if(0==n||0==t)return"0 of "+n;const i=e*t;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+t,n):i+t} of ${n}`}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();const qT={provide:GT,deps:[[new wi,new _i,GT]],useFactory:function(e){return e||new GT}},YT=new Xn("MAT_PAGINATOR_DEFAULT_OPTIONS");class ZT{}const KT=EP(TP(ZT));let QT=(()=>{class e extends KT{constructor(e,t,n){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new wc,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:e,pageSizeOptions:t,hidePageSize:i,showFirstLastButtons:r}=n;null!=e&&(this._pageSize=e),null!=t&&(this._pageSizeOptions=t),null!=i&&(this._hidePageSize=i),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(SE(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=SE(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(SE(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(e=>SE(e)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=CE(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=CE(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){const t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,t)=>e-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return e.\u0275fac=function(t){return new(t||e)(Vo(GT),Vo(Ml),Vo(void 0))},e.\u0275dir=Je({type:e,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[yo]}),e})(),XT=(()=>{class e extends QT{constructor(e,t,n){super(e,t,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return e.\u0275fac=function(t){return new(t||e)(Vo(GT),Vo(Ml),Vo(YT,8))},e.\u0275cmp=qe({type:e,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[yo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"div",1),Fo(2,UT,5,3,"div",2),Ho(3,"div",3),Ho(4,"div",4),Oa(5),Uo(),Fo(6,WT,3,5,"button",5),Ho(7,"button",6),Xo("click",function(){return t.previousPage()}),dn(),Ho(8,"svg",7),Wo(9,"path",8),Uo(),Uo(),hn(),Ho(10,"button",9),Xo("click",function(){return t.nextPage()}),dn(),Ho(11,"svg",7),Wo(12,"path",10),Uo(),Uo(),Fo(13,$T,3,5,"button",11),Uo(),Uo(),Uo()),2&e&&(is(2),zo("ngIf",!t.hidePageSize),is(3),Ta(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),is(1),zo("ngIf",t.showFirstLastButtons),is(1),zo("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Bo("aria-label",t._intl.previousPageLabel),is(3),zo("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Bo("aria-label",t._intl.nextPageLabel),is(3),zo("ngIf",t.showFirstLastButtons))},directives:[$d,vI,FT,zO,DT,Ud,tD],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),e})(),JT=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[qT],imports:[[hh,bI,IT,VT,kP]]}),e})(),eM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[kP,hh],kP]}),e})(),tM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,BE,ED],ED,kP]}),e})(),nM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({}),e})(),iM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[nM,UP,kP,jE],nM,kP]}),e})(),rM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP],kP]}),e})(),sM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[cO,sS,hh,bI,kP],kP]}),e})();const oM=["mat-sort-header",""];function aM(e,t){if(1&e){const e=Yo();Ho(0,"div",3),Xo("@arrowPosition.start",function(){return Lt(e),ia()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Lt(e),ia()._disableViewStateAnimation=!1}),Wo(1,"div",4),Ho(2,"div",5),Wo(3,"div",6),Wo(4,"div",7),Wo(5,"div",8),Uo(),Uo()}if(2&e){const e=ia();zo("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),is(2),zo("@indicator",e._getArrowDirectionState()),is(1),zo("@leftPointer",e._getArrowDirectionState()),is(1),zo("@rightPointer",e._getArrowDirectionState())}}const lM=["*"],cM=new Xn("MAT_SORT_DEFAULT_OPTIONS");class uM{}const dM=TP(EP(uM));let hM=(()=>{class e extends dM{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new C,this.start="asc",this._direction="",this.sortChange=new wc}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=CE(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,n,i;if(!e)return"";const r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear);let s=function(e,t){let n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Vo(cM,8))},e.\u0275dir=Je({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[yo,dt]}),e})();const pM=xP.ENTERING+" "+_P.STANDARD_CURVE,gM={indicator:ep("indicator",[rp("active-asc, asc",ip({transform:"translateY(0px)"})),rp("active-desc, desc",ip({transform:"translateY(10px)"})),op("active-asc <=> active-desc",tp(pM))]),leftPointer:ep("leftPointer",[rp("active-asc, asc",ip({transform:"rotate(-45deg)"})),rp("active-desc, desc",ip({transform:"rotate(45deg)"})),op("active-asc <=> active-desc",tp(pM))]),rightPointer:ep("rightPointer",[rp("active-asc, asc",ip({transform:"rotate(45deg)"})),rp("active-desc, desc",ip({transform:"rotate(-45deg)"})),op("active-asc <=> active-desc",tp(pM))]),arrowOpacity:ep("arrowOpacity",[rp("desc-to-active, asc-to-active, active",ip({opacity:1})),rp("desc-to-hint, asc-to-hint, hint",ip({opacity:.54})),rp("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ip({opacity:0})),op("* => asc, * => desc, * => active, * => hint, * => void",tp("0ms")),op("* <=> *",tp(pM))]),arrowPosition:ep("arrowPosition",[op("* => desc-to-hint, * => desc-to-active",tp(pM,sp([ip({transform:"translateY(-25%)"}),ip({transform:"translateY(0)"})]))),op("* => hint-to-desc, * => active-to-desc",tp(pM,sp([ip({transform:"translateY(0)"}),ip({transform:"translateY(25%)"})]))),op("* => asc-to-hint, * => asc-to-active",tp(pM,sp([ip({transform:"translateY(25%)"}),ip({transform:"translateY(0)"})]))),op("* => hint-to-asc, * => active-to-asc",tp(pM,sp([ip({transform:"translateY(0)"}),ip({transform:"translateY(-25%)"})]))),rp("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ip({transform:"translateY(0)"})),rp("hint-to-desc, active-to-desc, desc",ip({transform:"translateY(-25%)"})),rp("hint-to-asc, active-to-asc, asc",ip({transform:"translateY(25%)"}))]),allowChildren:ep("allowChildren",[op("* <=> *",[lp("@*",ap(),{optional:!0})])])};let fM=(()=>{class e{constructor(){this.changes=new C,this.sortButtonLabel=e=>"Change sorting for "+e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();const mM={provide:fM,deps:[[new wi,new _i,fM]],useFactory:function(e){return e||new fM}};class vM{}const bM=EP(vM);let yM=(()=>{class e extends bM{constructor(e,t,n,i,r,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=n,this._columnDef=i,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=CE(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=q(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(fM),Vo(Ml),Vo(hM,8),Vo("MAT_SORT_HEADER_COLUMN_DEF",8),Vo(uP),Vo(al))},e.\u0275cmp=qe({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&Xo("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(Bo("aria-sort",t._getAriaSortAttribute()),va("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[yo],attrs:oM,ngContentSelectors:lM,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(sa(),Ho(0,"div",0),Ho(1,"div",1),oa(2),Uo(),Fo(3,aM,6,6,"div",2),Uo()),2&e&&(va("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),Bo("tabindex",t._isDisabled()?null:0),is(3),zo("ngIf",t._renderArrow()))},directives:[$d],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[gM.indicator,gM.leftPointer,gM.rightPointer,gM.arrowOpacity,gM.arrowPosition,gM.allowChildren]},changeDetection:0}),e})(),wM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[mM],imports:[[hh,kP]]}),e})(),_M=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[PD]]}),e})(),xM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[_M,kP],kP]}),e})(),AM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[hh,kP,sS,UP,jE,pP],kP]}),e})();const CM=["mat-menu-item",""],SM=["*"];function kM(e,t){if(1&e){const e=Yo();Ho(0,"div",0),Xo("keydown",function(t){return Lt(e),ia()._handleKeydown(t)})("click",function(){return Lt(e),ia().closed.emit("click")})("@transformMenu.start",function(t){return Lt(e),ia()._onAnimationStart(t)})("@transformMenu.done",function(t){return Lt(e),ia()._onAnimationDone(t)}),Ho(1,"div",1),oa(2),Uo(),Uo()}if(2&e){const e=ia();zo("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Bo("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const EM={transformMenu:ep("transformMenu",[rp("void",ip({opacity:0,transform:"scale(0.8)"})),op("void => enter",tp("120ms cubic-bezier(0, 0, 0.2, 1)",ip({opacity:1,transform:"scale(1)"}))),op("* => void",tp("100ms 25ms linear",ip({opacity:0})))]),fadeInItems:ep("fadeInItems",[rp("showing",ip({opacity:1})),op("void => *",[ip({opacity:0}),tp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},PM=new Xn("MatMenuContent"),DM=new Xn("MAT_MENU_PANEL");class OM{}const IM=DP(EP(OM));let TM=(()=>{class e extends IM{constructor(e,t,n,i){super(),this._elementRef=e,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new C,this._focused=new C,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,t;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++){const t=i[r];null===(e=t.parentNode)||void 0===e||e.removeChild(t)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(Hu),Vo(uP),Vo(DM,8))},e.\u0275cmp=qe({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&Xo("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(Bo("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),va("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[yo],attrs:CM,ngContentSelectors:SM,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(sa(),oa(0),Wo(1,"div",0)),2&e&&(is(1),zo("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[HP],encapsulation:2,changeDetection:0}),e})();const MM=new Xn("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let BM=0,RM=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._ngZone=t,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new xc,this._tabSubscription=h.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new C,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new wc,this.close=this.closed,this.panelId="mat-menu-panel-"+BM++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=CE(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=CE(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new QE(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hb(this._directDescendantItems),sb(e=>q(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(hb(this._directDescendantItems),sb(e=>q(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,n=this._keyManager;switch(t){case 27:bE(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(cb(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(e=>e.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}setPositionClasses(e=this.xPosition,t=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(hb(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(lu),Vo(MM))},e.\u0275dir=Je({type:e,contentQueries:function(e,t,n){if(1&e&&(Bc(n,PM,1),Bc(n,TM,1),Bc(n,TM,0)),2&e){let e;Tc(e=Rc())&&(t.lazyContent=e.first),Tc(e=Rc())&&(t._allItems=e),Tc(e=Rc())&&(t.items=e)}},viewQuery:function(e,t){if(1&e&&Mc(Vl,1),2&e){let e;Tc(e=Rc())&&(t.templateRef=e.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),LM=(()=>{class e extends RM{constructor(e,t,n){super(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(lu),Vo(MM))},e.\u0275cmp=qe({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&Bo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[el([{provide:DM,useExisting:e}]),yo],ngContentSelectors:SM,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(sa(),Fo(0,kM,3,6,"ng-template"))},directives:[jd],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[EM.transformMenu,EM.fadeInItems]},changeDetection:0}),e})();const FM=new Xn("mat-menu-scroll-strategy"),NM={provide:FM,deps:[iO],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},VM=RE({passive:!0});let zM=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this._overlay=e,this._element=t,this._viewContainerRef=n,this._menuItemInstance=s,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=e=>{aP(e)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new wc,this.onMenuOpen=this.menuOpened,this.menuClosed=new wc,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof RM?r:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,VM),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(e=>{this._destroyMenu(e),"click"!==e&&"tab"!==e||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,VM),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof RM&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,t instanceof RM?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(dv(e=>"void"===e.toState),cb(1),_D(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new VD({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[i,r],[a,l]=[t,n],c=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",n=a="end"===t?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:s,overlayX:l,overlayY:i,offsetY:c},{originX:t,originY:o,overlayX:a,overlayY:r,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:r,offsetY:-c}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return q(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:cv(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(dv(e=>e!==this._menuItemInstance),dv(()=>this._menuOpen)):cv(),t)}_handleMousedown(e){oP(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(dv(e=>e===this._menuItemInstance&&!e.disabled),HO(0,gD)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof RM&&this.menu._isAnimating?this.menu._animationDone.pipe(cb(1),HO(0,gD),_D(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new eS(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(Vo(iO),Vo(al),Vo(Gl),Vo(FM),Vo(DM,8),Vo(TM,10),Vo(fP,8),Vo(uP))},e.\u0275dir=Je({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&Xo("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&Bo("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e})(),jM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[NM],imports:[kP]}),e})(),HM=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[NM],imports:[[hh,kP,UP,cO,jM],ED,kP,jM]}),e})();function UM(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function WM(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function $M(e,t){const n=t?"":"none";WM(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function GM(e,t){const n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function qM(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function YM(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function ZM(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function KM(e,t,n){const{top:i,bottom:r,left:s,right:o}=e;return n>=i&&n<=r&&t>=s&&t<=o}function QM(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function XM(e,t,n,i){const{top:r,right:s,bottom:o,left:a,width:l,height:c}=e,u=l*t,d=c*t;return i>r-d&&i<o+d&&n>a-u&&n<s+u}class JM{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ZM(e)})})}handleScroll(e){const t=e.target,n=this.positions.get(t);if(!n)return null;const i=t===this._document?t.documentElement:t,r=n.scrollPosition;let s,o;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();s=e.top,o=e.left}else s=t.scrollTop,o=t.scrollLeft;const a=r.top-s,l=r.left-o;return this.positions.forEach((e,n)=>{e.clientRect&&t!==n&&i.contains(n)&&QM(e.clientRect,a,l)}),r.top=s,r.left=o,{top:a,left:l}}}function eB(e){const t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?rB(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||iB(e,t),tB("canvas",e,t,rB),tB("input, textarea, select",e,t,iB),t}function tB(e,t,n,i){const r=t.querySelectorAll(e);if(r.length){const t=n.querySelectorAll(e);for(let e=0;e<r.length;e++)i(r[e],t[e])}}let nB=0;function iB(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${nB++}`)}function rB(e,t){const n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(NK){}}const sB=RE({passive:!0}),oB=RE({passive:!1});class aB{constructor(e,t,n,i,r,s){this._config=t,this._document=n,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new C,this._pointerMoveSubscription=h.EMPTY,this._pointerUpSubscription=h.EMPTY,this._scrollSubscription=h.EMPTY,this._resizeSubscription=h.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new C,this.started=new C,this.released=new C,this.ended=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.moved=this._moveEvents,this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const n=e.target;return!!n&&(n===t||t.contains(n))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),n=this._dropContainer;if(!t)return void this._endDragSequence(e);n&&(n.isDragging()||n.isReceiving())||(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),e.preventDefault();const n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{const e=this._activeTransform;e.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new JM(n,r),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=CE(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>$M(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>PE(e)),this._handles.forEach(e=>$M(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=PE(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,oB),t.addEventListener("touchstart",this._pointerDown,sB)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?PE(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&uB(this._rootElement),uB(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),$M(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),$M(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&uB(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&uB(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(e){dB(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,n=e.parentNode,i=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();n.insertBefore(s,e),GM(e,!1),this._document.body.appendChild(n.replaceChild(r,e)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,o).appendChild(i),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const n=this.isDragging(),i=dB(t),r=!i&&0!==t.button,s=this._rootElement,o=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),n||r||o)return;this._handles.length&&(this._rootElementTapHighlight=s.style.webkitTapHighlightColor||"",s.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{this._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=ZM(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){GM(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const t=this._dropContainer,n=t.getItemIndex(this),i=this._getPointerPositionOnPage(e),r=this._getDragDistance(this._getPointerPositionOnPage(e)),s=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:r}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r}),t.drop(this,n,this._initialIndex,this._initialContainer,s,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:i}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._preview.style.transform=lB(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y)}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,n=e?e.template:null;let i;if(n&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,r=e.viewContainer.createEmbeddedView(n,e.context);r.detectChanges(),i=hB(r,this._document),this._previewRef=r,e.matchSize?pB(i,t):i.style.transform=lB(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;i=eB(e),pB(i,e.getBoundingClientRect())}return WM(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),$M(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>i.classList.add(e)):i.classList.add(t)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=lB(e.left,e.top);const t=function(e){const t=getComputedStyle(e),n=YM(t,"transition-property"),i=n.find(e=>"transform"===e||"all"===e);if(!i)return 0;const r=n.indexOf(i),s=YM(t,"transition-duration"),o=YM(t,"transition-delay");return qM(s[r])+qM(o[r])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const n=t=>{(!t||t.target===this._preview&&"transform"===t.propertyName)&&(this._preview.removeEventListener("transitionend",n),e(),clearTimeout(i))},i=setTimeout(n,1.5*t);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=hB(this._placeholderRef,this._document)):n=eB(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t){const n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,s=dB(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-n.left+(s.pageX-r.left-o.left),y:r.top-n.top+(s.pageY-r.top-o.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),n=dB(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=i,t.y=r,t.matrixTransform(e.inverse())}}return{x:i,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,r=this._boundaryRect,s=this._previewRect,o=r.top+t,a=r.bottom-(s.height-t);n=cB(n,r.left+e,r.right-(s.width-e)),i=cB(i,o,a)}return{x:n,y:i}}_updatePointerDirectionDelta(e){const{x:t,y:n}=e,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),o=Math.abs(n-r.y);return s>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,$M(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,oB),e.removeEventListener("touchstart",this._pointerDown,sB)}_applyRootElementTransform(e,t){const n=lB(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const r=n.left-i.left,s=i.right-n.right,o=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(r>0&&(e+=r),s>0&&(e-=s)):e=0,n.height>i.height?(o>0&&(t+=o),a>0&&(t-=a)):t=0,e===this._passiveTransform.x&&t===this._passiveTransform.y||this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:dB(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&QM(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=FE(this._rootElement)),this._cachedShadowRoot}}function lB(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function cB(e,t,n){return Math.max(t,Math.min(n,e))}function uB(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function dB(e){return"t"===e.type[0]}function hB(e,t){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];const i=t.createElement("div");return n.forEach(e=>i.appendChild(e)),i}function pB(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=lB(t.left,t.top)}function gB(e,t){return Math.max(0,Math.min(t,e))}class fB{constructor(e,t,n,i,r){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.sorted=new C,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new C,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=yE){return(!vD(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=yE),new y(n=>(n.add(t.schedule(UM,e,{subscriber:n,counter:0,period:e})),n))}(0,oD).pipe(_D(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?vB(e,-t):2===this._verticalScrollDirection&&vB(e,t),1===this._horizontalScrollDirection?bB(e,-t):2===this._horizontalScrollDirection&&bB(e,t)})},this.element=PE(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new JM(n,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,n,i){let r;this._draggingStarted(),null==i?(r=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(e,t,n))):r=i;const s=this._activeDraggables,o=s.indexOf(e),a=e.getPlaceholderElement();let l=s[r];if(l===e&&(l=s[r+1]),o>-1&&s.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(a,t),s.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){const t=s[0].getRootElement();t.parentNode.insertBefore(a,t),s.unshift(e)}else PE(this.element).appendChild(a),s.push(e);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,i,r,s){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:s})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=PE(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?mB("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,i){if(this.sortingDisabled||!this._clientRect||!XM(this._clientRect,.05,t,n))return;const r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,n,i);if(-1===s&&r.length>0)return;const o="horizontal"===this._orientation,a=mB(r,t=>t.drag===e),l=r[s],c=l.clientRect,u=a>s?1:-1,d=this._getItemOffsetPx(r[a].clientRect,c,u),h=this._getSiblingOffsetPx(a,r,u),p=r.slice();!function(e,t,n){const i=gB(t,e.length-1),r=gB(n,e.length-1);if(i===r)return;const s=e[i],o=r<i?-1:1;for(let a=i;a!==r;a+=o)e[a]=e[a+o];e[r]=s}(r,a,s),this.sorted.next({previousIndex:a,currentIndex:s,container:this,item:e}),r.forEach((t,n)=>{if(p[n]===t)return;const i=t.drag===e,r=i?d:h,s=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(s.style.transform=`translate3d(${Math.round(t.offset)}px, 0, 0)`,QM(t.clientRect,0,r)):(s.style.transform=`translate3d(0, ${Math.round(t.offset)}px, 0)`,QM(t.clientRect,r,0))}),this._previousSwap.overlaps=KM(c,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,i=0,r=0;if(this._parentPositions.positions.forEach((s,o)=>{o!==this._document&&s.clientRect&&!n&&XM(s.clientRect,.05,e,t)&&([i,r]=function(e,t,n,i){const r=yB(t,i),s=wB(t,n);let o=0,a=0;if(r){const t=e.scrollTop;1===r?t>0&&(o=1):e.scrollHeight-t>e.clientHeight&&(o=2)}if(s){const t=e.scrollLeft;1===s?t>0&&(a=1):e.scrollWidth-t>e.clientWidth&&(a=2)}return[o,a]}(o,s.clientRect,e,t),(i||r)&&(n=o))}),!i&&!r){const{width:s,height:o}=this._viewportRuler.getViewportSize(),a={width:s,height:o,top:0,right:s,bottom:o,left:0};i=yB(a,t),r=wB(a,e),n=window}!n||i===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=r,this._scrollNode=n,(i||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=PE(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=PE(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,clientRect:ZM(t)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const e=PE(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{const t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,n){const i="horizontal"===this._orientation,r=t[e].clientRect,s=t[e+-1*n];let o=r[i?"width":"height"]*n;if(s){const e=i?"left":"top",t=i?"right":"bottom";-1===n?o-=s.clientRect[e]-r[t]:o+=r[e]-s.clientRect[t]}return o}_getItemOffsetPx(e,t,n){const i="horizontal"===this._orientation;let r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}{const r=n[0].clientRect;return i?e<=r.left:t<=r.top}}_getItemIndexFromPointerPosition(e,t,n,i){const r="horizontal"===this._orientation,s=mB(this._itemPositions,({drag:s,clientRect:o},a,l)=>{if(s===e)return l.length<2;if(i){const e=r?i.x:i.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return r?t>=Math.floor(o.left)&&t<Math.floor(o.right):n>=Math.floor(o.top)&&n<Math.floor(o.bottom)});return-1!==s&&this.sortPredicate(s,e,this)?s:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&KM(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(i=>i._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._clientRect||!KM(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;const i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;const r=PE(this.element);return i===r||r.contains(i)}_startReceiving(e,t){const n=this._activeSiblings;!n.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{QM(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=FE(PE(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function mB(e,t){for(let n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function vB(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function bB(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function yB(e,t){const{top:n,bottom:i,height:r}=e,s=.05*r;return t>=n-s&&t<=n+s?1:t>=i-s&&t<=i+s?2:0}function wB(e,t){const{left:n,right:i,width:r}=e,s=.05*r;return t>=n-s&&t<=n+s?1:t>=i-s&&t<=i+s?2:0}const _B=RE({passive:!1,capture:!0});let xB=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new C,this.pointerUp=new C,this.scroll=new C,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_B)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_B)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_B}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:_B}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(fi(lu),fi(Hu))},e.\u0275prov=ge({factory:function(){return new e(fi(lu),fi(Hu))},token:e,providedIn:"root"}),e})();const AB={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let CB=(()=>{class e{constructor(e,t,n,i){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(e,t=AB){return new aB(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new fB(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(fi(Hu),fi(lu),fi(kD),fi(xB))},e.\u0275prov=ge({factory:function(){return new e(fi(Hu),fi(lu),fi(kD),fi(xB))},token:e,providedIn:"root"}),e})();const SB=new Xn("CDK_DRAG_PARENT"),kB=new Xn("CDK_DRAG_CONFIG"),EB=new Xn("CdkDropList"),PB=new Xn("CdkDragHandle"),DB=new Xn("CdkDragPlaceholder"),OB=new Xn("CdkDragPreview");let IB=(()=>{class e{constructor(t,n,i,r,s,o,a,l,c,u,d){this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=s,this._dir=a,this._changeDetectorRef=c,this._selfHandle=u,this._parentDrag=d,this._destroyed=new C,this.started=new wc,this.released=new wc,this.ended=new wc,this.entered=new wc,this.exited=new wc,this.dropped=new wc,this.moved=new y(e=>{const t=this._dragRef.moved.pipe(E(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5,zIndex:null==o?void 0:o.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),o&&this._assignDefaults(o),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=CE(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(cb(1),_D(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(hb(this._handles),Ib(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),sb(e=>q(...e.map(e=>e._stateChanges.pipe(hb(e))))),_D(this._destroyed)).subscribe(e=>{const t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(e){const t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?TB(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?TB(this.element.nativeElement,e):PE(e):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:SE(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(r),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(cb(1)).subscribe(()=>{var n,i;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(null===(n=r.classList)||void 0===n?void 0:n.contains("cdk-drag")){t.withParent((null===(i=e._dragInstances.find(e=>e.element.nativeElement===r))||void 0===i?void 0:i._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:n,constrainPosition:i,previewClass:r,boundaryElement:s,draggingDisabled:o,rootElementSelector:a}=e;this.disabled=null!=o&&o,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),s&&(this.boundaryElement=s),a&&(this.rootElementSelector=a)}}return e.\u0275fac=function(t){return new(t||e)(Vo(al),Vo(EB,12),Vo(Hu),Vo(lu),Vo(Gl),Vo(kB,8),Vo(fP,8),Vo(CB),Vo(Ml),Vo(PB,10),Vo(SB,12))},e.\u0275dir=Je({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){if(1&e&&(Bc(n,OB,1),Bc(n,DB,1),Bc(n,PB,1)),2&e){let e;Tc(e=Rc())&&(t._previewTemplate=e.first),Tc(e=Rc())&&(t._placeholderTemplate=e.first),Tc(e=Rc())&&(t._handles=e)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&va("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[el([{provide:SB,useExisting:e}]),dt]}),e._dragInstances=[],e})();function TB(e,t){let n=e.parentElement;for(;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}let MB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[CB],imports:[ED]}),e})();const BB=(e,t,n)=>{if(0===n||0===t)return"";const i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),`${e+1} / ${Math.ceil(n/t)}`};function RB(){const e=new GT;return e.itemsPerPageLabel="Afficher:",e.nextPageLabel="Page suivante",e.previousPageLabel="Page pr\xe9c\xe9dente",e.getRangeLabel=BB,e}let LB=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({providers:[{provide:GT,useValue:RB()}],imports:[[tM,cT,jI,lI,UP,MB,sM,bI,sT,eM,yI,aT,UI,HM,AM,rM,IT,iM,YO,xM,JT,wM,qO,_I],tM,cT,jI,lI,UP,MB,sM,bI,sT,eM,yI,aT,UI,HM,AM,rM,IT,iM,YO,xM,JT,wM,qO,_I]}),e})(),FB=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(II),Vo(DI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(Ho(0,"div"),Ho(1,"h1",0),Oa(2),pc(3,"translate"),Uo(),Wo(4,"div",1),pc(5,"translate"),Ho(6,"div",2),Ho(7,"button",3),Xo("click",function(){return t.dialogRef.close()}),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo()),2&e&&(La("modalContent ",t.data.mode,""),is(2),Ia(gc(3,6,t.data.title)),is(2),zo("innerHTML",gc(5,8,t.data.msg),sr),is(4),Ia(gc(9,10,"lang.ok")))},directives:[NI,VI,zI,vI],pipes:[YC],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})(),NB=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this.translate=e,this.http=t,this.router=n,this.signaturesService=i,this.cookieService=r,this.authService=s,this.localStorage=o,this.dialog=a,this.menu=l}canActivate(e,t){if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):this.http.get("../rest/authenticationInformations").pipe(E(e=>(this.authService.authMode=e.connection,this.authService.changeKey=e.changeKey,this.authService.coreUrl=e.coreUrl,this.authService.authUri=e.authUri,this.localStorage.setAppSession(e.instanceId),!0)));if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");let e=this.authService.getToken();if(null===e||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(E(n=>(this.authService.authMode=n.connection,this.authService.changeKey=n.changeKey,this.authService.coreUrl=n.coreUrl,this.authService.authUri=n.authUri,this.localStorage.setAppSession(n.instanceId),e=this.authService.getToken(),null!==e?(this.authService.user=JSON.parse(atob(e.split(".")[1])).user,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData(),this.authService.changeKey&&this.dialog.open(FB,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(this.authService.setCachedUrl(t.url.replace(/^\//g,"")),this.authService.logout(),!1))));if(void 0===this.authService.user.id){const t=JSON.parse(atob(e.split(".")[1]));this.authService.user=t.user,this.authService.authMode=t.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}setData(){0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(e=>{this.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],this.authService.signatureRoles=this.authService.signatureRoles.concat(e.map(e=>Object.assign(Object.assign({},e),{type:"sign"})))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(e=>{this.signaturesService.signaturesList=e.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture})}}return e.\u0275fac=function(t){return new(t||e)(fi(qC),fi(Ov),fi(a_),fi(oS),fi(oE),fi(lS),fi(aS),fi(LI),fi(eC))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function VB(e,t){if(1&e&&(Ho(0,"ion-col"),Ho(1,"ion-button",7),Ho(2,"div",8),Wo(3,"ion-icon",9),Ho(4,"ion-label",10),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-note",11),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Uo()),2&e){const e=t.$implicit;is(1),zo("routerLink",e.route),is(2),zo("name",e.icon),is(2),Ia(gc(6,4,"lang."+e.id)),is(3),Ta(" ",gc(9,6,"lang."+e.id+"Desc"),"")}}const zB=function(e){return[e]};let jB=(()=>{class e{constructor(e,t,n){this.signaturesService=e,this.authService=t,this.menu=n}ngOnInit(){this.menu.enable(!1,"right-menu")}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(lS),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content",null,4),Ho(9,"ion-grid"),Ho(10,"ion-row",5),Fo(11,VB,10,8,"ion-col",6),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,4,"lang.administration")),is(5),zo("ngClass",lc(6,zB,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),is(1),zo("ngForOf",t.authService.user.administrativePrivileges))},directives:[zx,wA,Sx,eA,bA,Mx,Vx,lA,jd,Ud,Tx,Cx,WA,l_,jx,Kx,nA],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),e})();function HB(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function UB(e,t){if(1&e&&($o(0),Fo(1,HB,3,4,"div",14),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function WB(e,t){if(1&e){const e=Yo();Ho(0,"div",16),Ho(1,"ion-searchbar",17),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(2,"translate"),Uo(),Uo()}2&e&&(is(1),zo("placeholder",gc(2,1,"lang.filter")))}function $B(e,t){if(1&e&&(Ho(0,"div",16),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function GB(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",7),Ho(1,"ion-label",18),Fo(2,$B,2,1,"div",19),Uo(),Ho(3,"ion-button",20),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.delete(i)}),pc(4,"translate"),Wo(5,"ion-icon",21),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia();is(1),la("routerLink","/administration/users/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,4,"lang.delete")),zo("disabled",e.id===n.authService.user.id)}}let qB=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=r,this.notificationService=s,this.authService=o,this.alertController=a,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/users?mode=all").pipe(E(e=>e.users),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.userList=e,this.sortedData=this.userList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/users/"+e.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:t=>{const n=this.userList.findIndex(t=>t.id===e.id);this.userList.splice(n,1),this.sortedData=this.userList.slice(),this.notificationService.success("lang.userDeleted")},error:e=>{this.notificationService.handleErrors(e)}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(oS),Vo(QC),Vo(lS),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),pc(8,"translate"),Uo(),Uo(),Ho(9,"ion-toolbar",1),Ho(10,"ion-buttons",2),Ho(11,"ion-button",4),Oa(12),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-title",5),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Ho(17,"ion-content",null,6),Ho(19,"ion-list"),Ho(20,"ion-item",7),Ho(21,"ion-label",8),Xo("matSortChange",function(e){return t.sortData(e)}),Fo(22,UB,2,1,"ng-container",9),Fo(23,WB,3,3,"div",10),Uo(),Ho(24,"ion-button",11),Wo(25,"ion-icon"),Uo(),Uo(),Ho(26,"ion-virtual-scroll",12),Fo(27,GB,6,6,"ion-item",13),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ma("",gc(7,10,"lang.administration")," ",gc(8,12,"lang.manage_usersAlt"),""),is(6),Ta(" ",gc(13,14,"lang.userCreation")," "),is(3),Ma("",t.userList.length," ",gc(16,16,"lang.manage_usersAlt"),""),is(6),zo("matSortActive",t.displayedColumns[1]),is(1),zo("ngForOf",t.displayedColumns),is(1),zo("ngIf",t.displayedColumns.indexOf("actions")>-1),is(3),zo("items",t.sortedData))},directives:[zx,wA,Sx,eA,xx,UA,bA,Cx,WA,l_,Mx,Qx,Gx,Kx,hM,Ud,$d,jx,YA,qA,yM,cA,lx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function YB(e,t){1&e&&(Wo(0,"div",5),pc(1,"translate")),2&e&&zo("innerHTML",gc(1,1,ia().data.msg),sr)}let ZB=(()=>{class e{constructor(e,t,n){this.translate=e,this.data=t,this.dialogRef=n,null===this.data.msg&&(this.data.msg="")}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(II),Vo(DI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(Ho(0,"div"),Ho(1,"h1",0),Oa(2),pc(3,"translate"),Uo(),Fo(4,YB,2,3,"div",1),Ho(5,"div",2),Ho(6,"button",3),Xo("click",function(){return t.dialogRef.close("yes")}),Oa(7),pc(8,"translate"),Uo(),Ho(9,"button",4),Xo("click",function(){return t.dialogRef.close("no")}),Oa(10),pc(11,"translate"),Uo(),Uo(),Uo()),2&e&&(La("modalContent ",t.data.mode,""),is(2),Ia(gc(3,7,t.data.title)),is(2),zo("ngIf",null!==t.data.msg),is(3),Ia(gc(8,9,"lang.yes")),is(3),Ia(gc(11,11,"lang.no")))},directives:[NI,$d,zI,vI,VI],pipes:[YC],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),e})();function KB(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Ho(4,"ion-checkbox",27),Xo("ionChange",function(t){Lt(e);const n=ia().$implicit;return ia(2).toggleSignMode(n,t.detail.checked)}),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia(2);is(1),ma("color",e.color),is(1),Ia(gc(3,5,"lang."+e.id)),is(2),zo("checked",t.user.signatureModes.indexOf(e.id)>-1)("disabled","stamp"===e.id)}}function QB(e,t){if(1&e&&($o(0),Fo(1,KB,5,7,"ion-item",11),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","visa"!==e.id)}}function XB(e,t){if(1&e&&(Ho(0,"ion-note",33),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(3);is(1),Ta(" ",gc(2,1,e.handlePassword.errorMsg),"")}}function JB(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",28),Ho(1,"ion-button",29),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPassword=!t.hideNewPassword}),Wo(2,"ion-icon",30),Uo(),Ho(3,"ion-label",14),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-input",31),Xo("ngModelChange",function(t){return Lt(e),ia(2).passwordRest.newPassword=t})("ionChange",function(){Lt(e);const t=ia(2);return t.checkPasswordValidity(t.passwordRest.newPassword)}),Uo(),Fo(7,XB,3,3,"ion-note",32),Uo()}if(2&e){const e=ia(2);is(2),zo("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),is(2),Ia(gc(5,5,"lang.newPassword")),is(2),zo("type",e.hideNewPassword?"password":"text")("ngModel",e.passwordRest.newPassword),is(1),zo("ngIf",e.handlePassword.error&&e.passwordRest.newPassword.length>0)}}function eR(e,t){1&e&&(Ho(0,"ion-note",33),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.passwordNotMatch"),""))}function tR(e,t){1&e&&(Ho(0,"ion-note",36),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.samePassword"),""))}function nR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",28),Ho(1,"ion-button",29),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Wo(2,"ion-icon",30),Uo(),Ho(3,"ion-label",14),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-input",34),Xo("ngModelChange",function(t){return Lt(e),ia(2).passwordRest.passwordConfirmation=t}),Uo(),Fo(7,eR,3,3,"ion-note",32),Fo(8,tR,3,3,"ion-note",35),Uo()}if(2&e){const e=ia(2);is(2),zo("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),is(2),Ia(gc(5,6,"lang.passwordConfirmation")),is(2),zo("type",e.hideNewPasswordConfirm?"password":"text")("ngModel",e.passwordRest.passwordConfirmation),is(1),zo("ngIf",e.passwordRest.passwordConfirmation!==e.passwordRest.newPassword&&e.passwordRest.passwordConfirmation.length>0),is(1),zo("ngIf",e.passwordRest.passwordConfirmation===e.passwordRest.newPassword&&e.passwordRest.newPassword.length>0&&e.passwordRest.passwordConfirmation.length>0&&!e.handlePassword.error)}}function iR(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"form",12,13),Xo("ngSubmit",function(){return Lt(e),ia().onSubmit()}),Ho(3,"ion-content"),Ho(4,"ion-item"),Ho(5,"ion-label",14),Oa(6),pc(7,"translate"),Uo(),Ho(8,"ion-input",15),Xo("ngModelChange",function(t){return Lt(e),ia().user.login=t}),Uo(),Uo(),Ho(9,"ion-item"),Ho(10,"ion-label",14),Oa(11),pc(12,"translate"),Uo(),Ho(13,"ion-input",16),Xo("ngModelChange",function(t){return Lt(e),ia().user.firstname=t}),Uo(),Uo(),Ho(14,"ion-item"),Ho(15,"ion-label",14),Oa(16),pc(17,"translate"),Uo(),Ho(18,"ion-input",17),Xo("ngModelChange",function(t){return Lt(e),ia().user.lastname=t}),Uo(),Uo(),Ho(19,"ion-item"),Ho(20,"ion-label",14),Oa(21),pc(22,"translate"),Uo(),Ho(23,"ion-input",18),Xo("ngModelChange",function(t){return Lt(e),ia().user.email=t}),Uo(),Uo(),Ho(24,"ion-item"),Ho(25,"ion-label"),Oa(26),pc(27,"translate"),Uo(),Ho(28,"ion-toggle",19),Xo("ngModelChange",function(t){return Lt(e),ia().user.isRest=t})("ionChange",function(t){return Lt(e),ia().getPassRules(t)}),Uo(),Uo(),Ho(29,"ion-list"),Ho(30,"ion-list-header"),Ho(31,"ion-label",20),Oa(32),pc(33,"translate"),Uo(),Uo(),Fo(34,QB,2,1,"ng-container",21),Uo(),Fo(35,JB,8,7,"ion-item",22),Fo(36,nR,9,8,"ion-item",22),Ho(37,"ion-item",23),Ho(38,"div",24),Ho(39,"ion-button",25),Ho(40,"ion-label",26),Oa(41),pc(42,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Go()}if(2&e){const e=No(2),t=ia();is(6),Ta("",gc(7,23,"lang.login")," *"),is(2),zo("maxlength",128)("readonly",!t.creationMode)("ngModel",t.user.login),is(3),Ta("",gc(12,25,"lang.firstname")," *"),is(2),zo("maxlength",128)("ngModel",t.user.firstname),is(3),Ta("",gc(17,27,"lang.lastname")," *"),is(2),zo("maxlength",128)("ngModel",t.user.lastname),is(3),Ta("",gc(22,29,"lang.email")," *"),is(2),zo("maxlength",128)("ngModel",t.user.email),is(3),Ia(gc(27,31,"lang.restUser")),is(2),zo("disabled",!t.creationMode)("ngModel",t.user.isRest)("checked",t.user.isRest),is(4),Ia(gc(33,33,"lang.signatureModes")),is(2),zo("ngForOf",t.authService.signatureRoles),is(1),zo("ngIf",t.user.isRest),is(1),zo("ngIf",t.user.isRest),is(3),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(42,35,"lang.validate"))}}function rR(e,t){if(1&e&&(Ho(0,"ion-item"),Ho(1,"ion-label"),Oa(2),Uo(),Uo()),2&e){const e=t.$implicit;is(2),Ia(e.label)}}function sR(e,t){if(1&e&&(Ho(0,"ion-list"),Fo(1,rR,3,1,"ion-item",21),Uo()),2&e){const e=ia(2);is(1),zo("ngForOf",e.user.groups)}}function oR(e,t){1&e&&(Ho(0,"ion-list",38),Ho(1,"ion-item",39),Ho(2,"ion-label",40),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.noAssociatedGroup")))}function aR(e,t){if(1&e&&($o(0),Ho(1,"ion-content"),Fo(2,sR,2,1,"ion-list",11),Fo(3,oR,5,3,"ion-list",37),Uo(),Go()),2&e){const e=ia();is(2),zo("ngIf",e.user.groups.length>0),is(1),zo("ngIf",0===e.user.groups.length)}}let lR=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.userCreation"),this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},this.loading=!1):(this.creationMode=!1,this.http.get("../rest/users/"+e.id).pipe(E(e=>e.user),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.user=e,this.userClone=JSON.parse(JSON.stringify(this.user)),this.title=this.user.firstname+" "+this.user.lastname,this.user.isRest&&this.getPassRules({detail:{checked:!0}})}}))})}canValidate(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}onSubmit(){this.creationMode?this.createUser():this.modifyUser()}modifyUser(){this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(Bb(()=>this.loading=!1),Ib(()=>{this.authService.user.id===this.user.id&&this.authService.updateUserInfoWithTokenRefresh(),""!==this.passwordRest.newPassword&&this.updateRestUser(),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userUpdated")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}updateRestUser(){const e=new mv({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:e}).subscribe(()=>{this.passwordRest.newPassword="",this.passwordRest.passwordConfirmation=""},e=>{this.notificationService.handleErrors(e)})}createUser(){this.loading=!0,this.http.post("../rest/users",this.user).pipe(Bb(()=>this.loading=!1),Ib(e=>{this.user.isRest&&(this.user.id=e.id,this.updateRestUser()),this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userAdded")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}delete(){this.dialog.open(ZB,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/users/"+this.user.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/users"]),this.notificationService.success("lang.userDeleted")}}))})}cancel(){this.router.navigate(["/administration/users"])}getPassRules(e){e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)}))}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}toggleSignMode(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(t=>t!==e.id)}initTab(e){this.currentTool=e}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Ho(7,"ion-avatar",4),Wo(8,"img",5),Uo(),Uo(),Uo(),Ho(9,"ion-header"),Ho(10,"ion-toolbar"),Ho(11,"ion-segment",6),Xo("ionChange",function(e){return t.initTab(e.detail.value)}),Ho(12,"ion-segment-button",7),Ho(13,"ion-label"),Oa(14),pc(15,"translate"),Uo(),Wo(16,"ion-icon",8),Uo(),Ho(17,"ion-segment-button",9),Ho(18,"ion-label"),Oa(19),pc(20,"translate"),Uo(),Wo(21,"ion-icon",10),Uo(),Uo(),Uo(),Uo(),Fo(22,iR,43,37,"ng-container",11),Fo(23,aR,4,2,"ng-container",11)),2&e&&(zo("translucent",!0),is(6),Ia(t.title),is(2),zo("src",t.user.picture,or),is(3),zo("value",t.currentTool),is(3),Ia(gc(15,9,"lang.informations")),is(3),zo("disabled",t.creationMode),is(2),Ia(gc(20,11,"lang.manage_groups")),is(3),zo("ngIf","info"===t.currentTool),is(1),zo("ngIf","groups"===t.currentTool))},directives:[zx,wA,Sx,eA,xx,UA,bA,_x,uA,ox,dA,Kx,jx,$d,Lm,lm,Tm,Mx,Gx,$x,lx,ev,rv,nv,am,Rm,yA,ex,Qx,Xx,Ud,Cx,Ox,nA],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),e})();function cR(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function uR(e,t){if(1&e&&($o(0),Fo(1,cR,3,4,"div",14),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function dR(e,t){if(1&e){const e=Yo();Ho(0,"div",16),Ho(1,"ion-searchbar",17),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(2,"translate"),Uo(),Uo()}2&e&&(is(1),zo("placeholder",gc(2,1,"lang.filter")))}function hR(e,t){if(1&e&&(Ho(0,"div",16),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function pR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",7),Ho(1,"ion-label",18),Fo(2,hR,2,1,"div",19),Uo(),Ho(3,"ion-button",20),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.delete(i)}),pc(4,"translate"),Wo(5,"ion-icon",21),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia();is(1),la("routerLink","/administration/groups/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,3,"lang.delete"))}}let gR=(()=>{class e{constructor(e,t,n,i,r,s,o){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=r,this.notificationService=s,this.alertController=o,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ionViewWillEnter(){this.http.get("../rest/groups").pipe(E(e=>e.groups),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.groupList=e,this.sortedData=this.groupList.slice()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+e.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:t=>{const n=this.groupList.findIndex(t=>t.id===e.id);this.groupList.splice(n,1),this.sortedData=this.groupList.slice(),this.notificationService.success("lang.groupDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(oS),Vo(QC),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){if(1&e&&(Mc(XT,3),Mc(hM,3)),2&e){let e;Tc(e=Rc())&&(t.paginator=e.first),Tc(e=Rc())&&(t.sort=e.first)}},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),pc(8,"translate"),Uo(),Uo(),Ho(9,"ion-toolbar",1),Ho(10,"ion-buttons",2),Ho(11,"ion-button",4),Oa(12),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-title",5),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Ho(17,"ion-content",null,6),Ho(19,"ion-list"),Ho(20,"ion-item",7),Ho(21,"ion-label",8),Xo("matSortChange",function(e){return t.sortData(e)}),Fo(22,uR,2,1,"ng-container",9),Fo(23,dR,3,3,"div",10),Uo(),Ho(24,"ion-button",11),Wo(25,"ion-icon"),Uo(),Uo(),Ho(26,"ion-virtual-scroll",12),Fo(27,pR,6,5,"ion-item",13),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ma("",gc(7,10,"lang.administration")," ",gc(8,12,"lang.manage_groupsAlt"),""),is(6),Ta(" ",gc(13,14,"lang.groupCreation")," "),is(3),Ma("",t.groupList.length," ",gc(16,16,"lang.manage_groupsAlt"),""),is(6),zo("matSortActive",t.displayedColumns[0]),is(1),zo("ngForOf",t.displayedColumns),is(1),zo("ngIf",t.displayedColumns.indexOf("actions")>-1),is(3),zo("items",t.sortedData))},directives:[zx,wA,Sx,eA,xx,UA,bA,Cx,WA,l_,Mx,Qx,Gx,Kx,hM,Ud,$d,jx,YA,qA,yM,cA,lx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function fR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",6),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).selectUser(n)}),Ho(1,"ion-label"),Oa(2),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ma(" ",e.firstname," ",e.lastname," ")}}function mR(e,t){if(1&e&&(Ho(0,"ion-list"),Ho(1,"ion-virtual-scroll",4),Fo(2,fR,3,2,"ion-item",5),Uo(),Uo()),2&e){const e=ia();is(1),zo("items",e.usersList)}}function vR(e,t){1&e&&(Ho(0,"ion-item",7),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.emptyUsers")))}let bR=(()=>{class e{constructor(e,t){this.http=e,this.modalController=t,this.usersList=[]}ngOnInit(){this.http.get("../rest/users?mode=all").pipe(E(e=>e.users)).subscribe({next:e=>{this.usersList=e.filter(e=>-1===this.users.findIndex(t=>t.id===e.id))}})}selectUser(e){this.modalController.dismiss(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-users"]],inputs:{users:"users"},decls:8,vars:6,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 35%;",4,"ngIf"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","35%"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo(),Ho(5,"ion-content"),Fo(6,mR,3,1,"ion-list",2),Fo(7,vR,4,3,"ion-item",3),Uo()),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,4,"lang.users")),is(3),zo("ngIf",t.usersList.length>0),is(1),zo("ngIf",0===t.usersList.length))},directives:[zx,wA,bA,Mx,$d,Qx,YA,qA,Gx,Kx],pipes:[YC],encapsulation:2}),e})();var yR=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function wR(e,t){1&e&&(Ho(0,"ion-item",18),Ho(1,"ion-label",19),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ta("",gc(3,1,"lang.privileges")," :"))}function _R(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",20),Ho(1,"ion-toggle",21),Xo("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){Lt(e);const n=t.$implicit;return ia().togglePrivilege(n,!0)}),Uo(),Ho(2,"ion-label",22),Xo("click",function(){Lt(e);const n=t.$implicit;return ia().togglePrivilege(n,!1)}),Oa(3),pc(4,"translate"),Uo(),Uo()}if(2&e){const e=t.$implicit;is(1),zo("name",e.id)("checked",e.checked)("ngModel",e.checked),is(2),Ia(gc(4,4,"lang."+e.id+"Admin"))}}function xR(e,t){1&e&&(Ho(0,"ion-item",18),Ho(1,"ion-label",19),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ta("",gc(3,1,"lang.linkedUsers")," :"))}function AR(e,t){if(1&e&&(Ho(0,"div",34),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function CR(e,t){if(1&e&&($o(0),Fo(1,AR,3,4,"div",33),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function SR(e,t){if(1&e){const e=Yo();Ho(0,"div",35),Ho(1,"ion-button",36),Xo("click",function(){return Lt(e),ia(2).openUserList()}),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ta(" ",gc(3,1,"lang.add")," "))}function kR(e,t){if(1&e&&(Ho(0,"div",42),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function ER(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",37),Ho(1,"ion-label",38),Fo(2,kR,2,1,"div",39),Uo(),Ho(3,"ion-button",40),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia(2);return n.stopPropagation(),r.unlinkUser(i)}),pc(4,"translate"),Wo(5,"ion-icon",41),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia(2);is(1),la("routerLink","/administration/users/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,3,"lang.unlinkUser"))}}function PR(e,t){if(1&e){const e=Yo();Ho(0,"ion-infinite-scroll",43),Xo("ionInfinite",function(t){return Lt(e),ia(2).loadData(t)}),Wo(1,"ion-infinite-scroll-content",44),pc(2,"translate"),Uo()}2&e&&(is(1),zo("loadingText",gc(2,1,"lang.loadingMoreData")))}function DR(e,t){1&e&&(Ho(0,"ion-item",45),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.emptyGroupUsers")))}function OR(e,t){if(1&e){const e=Yo();Ho(0,"ion-content",23),Ho(1,"ion-list"),Ho(2,"ion-item",24),$o(3,14),Ho(4,"ion-label",25),Xo("matSortChange",function(t){return Lt(e),ia().sortData(t)}),Fo(5,CR,2,1,"ng-container",26),Fo(6,SR,4,3,"div",27),Uo(),Go(),Ho(7,"ion-button",28),Wo(8,"ion-icon"),Uo(),Uo(),Ho(9,"ion-virtual-scroll",29),Fo(10,ER,6,5,"ion-item",30),Uo(),Fo(11,PR,3,3,"ion-infinite-scroll",31),Uo(),Fo(12,DR,4,3,"ion-item",32),Uo()}if(2&e){const e=ia();is(4),zo("matSortActive",e.displayedColumns[1]),is(1),zo("ngForOf",e.displayedColumns),is(1),zo("ngIf",e.displayedColumns.indexOf("actions")>-1),is(3),zo("items",e.sortedData),is(2),zo("ngIf",e.group.users.length>7),is(1),zo("ngIf",0===e.group.users.length)}}function IR(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",46),Xo("click",function(){return Lt(e),ia().deleteGroup()}),Ho(1,"ion-label",16),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ia(gc(3,1,"lang.delete")))}let TR=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.popoverController=l,this.modalController=c,this.alertController=u,this.latinisePipe=d,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}ngOnInit(){this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.groupCreation"),this.loading=!1,this.groupClone=JSON.parse(JSON.stringify(this.group))):(this.creationMode=!1,this.usersList=[],this.http.get("../rest/groups/"+e.id).pipe(E(e=>e.group),Bb(()=>{this.loading=!1})).subscribe({next:e=>{this.group=e,this.groupClone=JSON.parse(JSON.stringify(this.group)),this.title=this.group.label,this.updateDataTable()}}),this.http.get("../rest/users?mode=all").pipe(E(e=>e.users)).subscribe({next:e=>{this.usersList=e}}))})}updateDataTable(){this.sortedData=this.group.users.slice()}openUserList(e){return yR(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:bR,componentProps:{users:this.group.users}});yield e.present();const{data:t}=yield e.onWillDismiss();void 0!==t&&this.linkUser(t)})}canValidate(){return this.group.label!==this.groupClone.label}onSubmit(){this.creationMode?this.createGroup():this.modifyGroup()}linkUser(e){this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:()=>{this.group.users.push(e),this.updateDataTable(),this.notificationService.success("lang.userAdded")}})}unlinkUser(e){return yR(this,void 0,void 0,function*(){if(e.id===this.authService.user.id){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.deleteUser(e)}}]});yield t.present()}else this.deleteUser(e)})}deleteUser(e){this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:()=>{const t=this.group.users.findIndex(t=>t.id===e.id);this.group.users.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.userDeleted")}})}modifyGroup(){this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupUpdated")}})}createGroup(){this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:e=>{this.router.navigate(["/administration/groups/"+e.id]),this.notificationService.success("lang.groupAdded")}})}deleteGroup(){return yR(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/groups/"+this.group.id).subscribe({next:()=>{this.router.navigate(["/administration/groups"]),this.notificationService.success("lang.groupDeleted")}})}}]});yield e.present()})}togglePrivilege(e,t){return yR(this,void 0,void 0,function*(){if("manage_groups"===e.id&&e.checked){t||(e.checked=!e.checked);const n=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:()=>{this.updatePrivilege(e)}}]});yield n.present()}else t||(e.checked=!e.checked),setTimeout(()=>{this.updatePrivilege(e)},200)})}updatePrivilege(e){this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:()=>{this.notificationService.success("lang.privilegeUpdated"),this.authService.updateUserInfoWithTokenRefresh()}})}cancel(){this.router.navigate(["/administration/groups"])}sortData(e){const t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.group.users.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}loadData(e){this.http.get("../rest/groups/"+this.group.id).pipe(Ib(t=>{this.group.users=t.group.users,e.target.complete(),e.target.disabled=!0})).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(nC),Vo(tC),Vo(XA),Vo(hE))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-group"]],viewQuery:function(e,t){if(1&e&&(Mc(XT,1),Mc(hM,1)),2&e){let e;Tc(e=Rc())&&(t.paginator=e.first),Tc(e=Rc())&&(t.sort=e.first)}},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],[2,"margin-left","4x","display","flex","width","50%",3,"placeholder","ionChange"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 5px;",4,"ngIf"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","5px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Ho(7,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-content"),Ho(10,"ion-item"),Ho(11,"ion-label",6),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",7),Xo("ngModelChange",function(e){return t.group.label=e}),Uo(),Uo(),Fo(15,wR,4,3,"ion-item",8),Ho(16,"div",9),Fo(17,_R,5,6,"ion-item",10),Uo(),Fo(18,xR,4,3,"ion-item",8),Ho(19,"ion-searchbar",11),Xo("ionChange",function(e){return t.applyFilter(e.detail.value)}),pc(20,"translate"),Uo(),Fo(21,OR,13,6,"ion-content",12),Ho(22,"ion-item",13),Ho(23,"div",14),Ho(24,"ion-button",15),Ho(25,"ion-label",16),Oa(26),pc(27,"translate"),Uo(),Uo(),Fo(28,IR,4,3,"ion-button",17),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(6),Ia(t.title),is(6),Ta("",gc(13,17,"lang.label")," *"),is(2),zo("maxlength",128)("ngModel",t.group.label),is(1),zo("ngIf",!t.creationMode),is(1),va("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),is(1),zo("ngForOf",t.group.privileges),is(1),zo("ngIf",!t.creationMode),is(1),zo("placeholder",gc(20,19,"lang.filter")),is(2),zo("ngIf",!t.creationMode),is(3),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(27,21,"lang.validate")),is(2),zo("ngIf",!t.creationMode)}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,nv,am,Rm,$d,Ud,cA,Cx,yA,ex,Qx,hM,jx,YA,qA,yM,WA,l_,Ux,Wx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),e})();function MR(e,t){if(1&e&&(Ho(0,"ion-select-option",10),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e.id)("disabled",!e.allowed),is(1),Ta(" ",gc(2,3,"lang."+e.id+"Connection"),"")}}function BR(e,t){if(1&e){const e=Yo();Ho(0,"ion-select",8),Xo("ionChange",function(t){return Lt(e),ia().changeConnection(t.detail.value)}),pc(1,"translate"),Fo(2,MR,3,5,"ion-select-option",9),Uo()}if(2&e){const e=ia();aa("cancelText",gc(1,3,"lang.cancel")),zo("value",e.currentConnection.id),is(2),zo("ngForOf",e.connectionList)}}function RR(e,t){if(1&e&&(Ho(0,"ion-col"),Ho(1,"ion-button",11),Ho(2,"div",12),Wo(3,"ion-icon",13),Ho(4,"ion-label",14),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-note",15),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Uo()),2&e){const e=t.$implicit;is(1),zo("routerLink",e.route),is(2),zo("name",e.icon),is(2),Ta("",gc(6,4,"lang."+e.id)," "),is(3),Ta(" ",gc(9,6,"lang."+e.id+"Desc"),"")}}let LR=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.signaturesService=t,this.notificationService=n,this.alertController=i,this.authService=r,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"},{id:"manage_cas_configuration",icon:"server-sharp",route:"/administration/connections/cas"}],this.id=0,this.label="",this.connectionList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(Bb(()=>this.loading=!1)).subscribe({next:e=>{this.label=e.configurations.label,this.id=e.configurations.id,this.connectionList=e.configurations.availableConnections;const t=this.connectionList.findIndex(t=>t.id===e.configurations.value);this.currentConnection=void 0!==this.connectionList[t]?this.connectionList[t]:this.connectionList[0]}})}changeConnection(e){return t=this,void 0,i=function*(){this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.connectionModeUpdated"),this.authService.authMode=e}})},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(QC),Vo(XA),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"ion-content",null,4),Ho(10,"ion-item"),Ho(11,"ion-label",5),Oa(12),pc(13,"translate"),Uo(),Fo(14,BR,3,5,"ion-select",6),Uo(),Ho(15,"ion-grid"),Ho(16,"ion-row"),Fo(17,RR,10,8,"ion-col",7),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,5,"lang.manage_connections")),is(6),Ia(gc(13,7,"lang.connectionMode")),is(2),zo("ngIf",t.currentConnection),is(3),zo("ngForOf",t.privileges))},directives:[zx,wA,Sx,eA,xx,UA,bA,Mx,Gx,Kx,$d,Vx,lA,Ud,hA,ox,pA,Tx,Cx,WA,l_,jx,nA],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),e})();function FR(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;zo("mat-sort-header",e),is(1),Ta(" ",gc(2,2,"lang."+e)," ")}}function NR(e,t){if(1&e&&($o(0),Fo(1,FR,3,4,"div",14),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf","actions"!==e)}}function VR(e,t){if(1&e){const e=Yo();Ho(0,"div",16),Ho(1,"ion-searchbar",17),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(2,"translate"),Uo(),Uo()}2&e&&(is(1),zo("placeholder",gc(2,1,"lang.filter")))}function zR(e,t){if(1&e&&(Ho(0,"div",16),Oa(1),Uo()),2&e){const e=t.$implicit,n=ia().$implicit;is(1),Ta(" ",n[e]," ")}}function jR(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",7),Ho(1,"ion-label",18),Fo(2,zR,2,1,"div",19),Uo(),Ho(3,"ion-button",20),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.delete(i)}),pc(4,"translate"),Wo(5,"ion-icon",21),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia();is(1),la("routerLink","/administration/connections/ldaps/",e.id,""),is(1),zo("ngForOf",n.displayedColumns),is(1),aa("title",gc(4,3,"lang.delete"))}}let HR=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.signaturesService=r,this.notificationService=s,this.authService=o,this.alertController=a,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}updateDataTable(){this.sortedData=this.ldapList.slice()}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(t=>{let n=!1;return this.displayedColumns.forEach(i=>{t[i]&&this.latinisePipe.transform(t[i].toLowerCase()).includes(e)&&(n=!0)}),n})}ngOnInit(){}ionViewWillEnter(){this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(Bb(()=>this.loading=!1)).subscribe({next:e=>{this.ldapList=e.configurations,this.updateDataTable()}})}delete(e){return t=this,void 0,i=function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/configurations/"+e.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{const t=this.ldapList.findIndex(t=>t.id===e.id);this.ldapList.splice(t,1),this.updateDataTable(),this.notificationService.success("lang.ldapDeleted")}})}}]});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}sortData(e){const t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort((t,n)=>function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)):t}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(oS),Vo(QC),Vo(lS),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),pc(8,"translate"),Uo(),Uo(),Ho(9,"ion-toolbar",1),Ho(10,"ion-buttons",2),Ho(11,"ion-button",4),Oa(12),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-title",5),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Ho(17,"ion-content",null,6),Ho(19,"ion-list"),Ho(20,"ion-item",7),Ho(21,"ion-label",8),Xo("matSortChange",function(e){return t.sortData(e)}),Fo(22,NR,2,1,"ng-container",9),Fo(23,VR,3,3,"div",10),Uo(),Ho(24,"ion-button",11),Wo(25,"ion-icon"),Uo(),Uo(),Ho(26,"ion-virtual-scroll",12),Fo(27,jR,6,5,"ion-item",13),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ma("",gc(7,10,"lang.administration")," ",gc(8,12,"lang.manage_ldap_configurationsAlt")," "),is(6),Ta(" ",gc(13,14,"lang.ldapCreation")," "),is(3),Ma("",t.ldapList.length," ",gc(16,16,"lang.manage_ldap_configurationsAlt"),""),is(6),zo("matSortActive",t.displayedColumns[0]),is(1),zo("ngForOf",t.displayedColumns),is(1),zo("ngIf",t.displayedColumns.indexOf("actions")>-1),is(3),zo("items",t.sortedData))},directives:[zx,wA,Sx,eA,xx,UA,bA,Cx,WA,l_,Mx,Qx,Gx,Kx,hM,Ud,$d,jx,YA,qA,yM,cA,lx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function UR(e,t){return t?n=>n.pipe(UR((n,i)=>F(e(n,i)).pipe(E((e,r)=>t(n,e,i,r))))):t=>t.lift(new WR(e))}class WR{constructor(e){this.project=e}call(e,t){return t.subscribe(new $R(e,this.project))}}class $R extends V{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new N(this),n=this.destination;n.add(t);const i=z(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function GR(e,t){1&e&&($o(0),Oa(1),pc(2,"translate"),Go()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.connectionInProgress"),"... "))}function qR(e,t){if(1&e&&($o(0),Oa(1),Go()),2&e){const e=ia(2);is(1),Ta(" ",e.ldapTest.result," ")}}function YR(e,t){if(1&e&&(Ho(0,"div",16),Fo(1,GR,3,3,"ng-container",17),Fo(2,qR,2,1,"ng-container",17),Uo()),2&e){const e=ia();is(1),zo("ngIf",e.loadingTest),is(1),zo("ngIf",""!==e.ldapTest.result)}}let ZR=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.translate=t,this.latinisePipe=n,this.dialog=i,this.notificationService=r,this.alertController=s,this.loadingTest=!1}ngOnInit(){}testLdap(){this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Ib(()=>{this.notificationService.success("lang.ldapUpdated")}),UR(()=>this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}})),Ib(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Bb(()=>this.loadingTest=!1),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(Ib(e=>{this.ldapTest.result=e.informations,e.connection&&this.notificationService.success("lang.ldapConnectionSucceeded")}),Bb(()=>this.loadingTest=!1),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(hE),Vo(LI),Vo(QC),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"form",3,4),Xo("ngSubmit",function(){return t.testLdap()}),Ho(9,"ion-content",null,5),Ho(11,"ion-item"),Ho(12,"ion-label",6),Oa(13),pc(14,"translate"),Uo(),Ho(15,"ion-input",7),Xo("ngModelChange",function(e){return t.ldapTest.login=e}),Uo(),Uo(),Ho(16,"ion-item"),Ho(17,"ion-label",6),Oa(18),pc(19,"translate"),Uo(),Ho(20,"ion-input",8),Xo("ngModelChange",function(e){return t.ldapTest.password=e}),Uo(),Uo(),Ho(21,"ion-card"),Ho(22,"ion-card-header"),Ho(23,"ion-card-subtitle",9),Oa(24),pc(25,"translate"),Uo(),Uo(),Ho(26,"ion-card-content"),Ho(27,"ion-item"),Ho(28,"ion-label",1),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-input",10),Xo("ngModelChange",function(e){return t.ldap.value.uri=e}),Uo(),Uo(),Ho(32,"ion-item"),Ho(33,"ion-label",1),Oa(34),pc(35,"translate"),Uo(),Wo(36,"ion-input",11),Uo(),Fo(37,YR,3,2,"div",12),Uo(),Uo(),Uo(),Ho(38,"ion-footer",13),Ho(39,"ion-toolbar"),Ho(40,"ion-buttons",14),Ho(41,"ion-button",15),Ho(42,"ion-label"),Oa(43),pc(44,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(5),Ia(gc(6,14,"lang.connectionTest")),is(8),Ta("",gc(14,16,"lang.login")," *"),is(2),zo("ngModel",t.ldapTest.login),is(3),Ta("",gc(19,18,"lang.password")," *"),is(2),zo("ngModel",t.ldapTest.password),is(4),Ta("",gc(25,20,"lang.ldapInformations")," :"),is(5),Ta("",gc(30,22,"lang.uri")," :"),is(2),zo("ngModel",t.ldap.value.uri),is(3),Ta("",gc(35,24,"lang.login")," :"),is(2),zo("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),is(1),zo("ngIf",""!==t.ldapTest.result||t.loadingTest),is(4),zo("disabled",!e.form.valid||t.loadingTest),is(2),Ia(gc(44,26,"lang.connectionTest"))}},directives:[zx,wA,Sx,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,am,Rm,kx,Px,Dx,Ex,$d,Nx,Cx],pipes:[YC],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function KR(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",18),Xo("click",function(){return Lt(e),ia().checkConnection()}),Ho(1,"ion-label",15),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ia(gc(3,1,"lang.connectionTest")))}function QR(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",19),Xo("click",function(){return Lt(e),ia().delete()}),Ho(1,"ion-label",15),Oa(2),pc(3,"translate"),Uo(),Uo()}if(2&e){const e=ia();zo("disabled","ldap"===e.authService.authMode&&1===e.ldap.count),is(2),Ia(gc(3,2,"lang.delete"))}}let XR=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.modalController=l,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}ngOnInit(){this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(e=>{void 0===e.id?(this.creationMode=!0,this.title=this.translate.instant("lang.ldapCreation"),this.loading=!1):(this.creationMode=!1,this.http.get("../rest/configurations/"+e.id).pipe(E(e=>e.configuration),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.ldap=e,this.ldapClone=JSON.parse(JSON.stringify(this.ldap)),this.title=this.ldap.label}}))})}canValidate(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}onSubmit(){this.creationMode?this.createLdap():this.modifyLdap()}modifyLdap(){this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapUpdated")}})}createLdap(){this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapAdded")}})}delete(){this.dialog.open(ZB,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(e=>{"yes"===e&&(this.loading=!0,this.http.delete("../rest/configurations/"+this.ldap.id).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.router.navigate(["/administration/connections/ldaps"]),this.notificationService.success("lang.ldapDeleted")}}))})}cancel(){this.router.navigate(["/administration/connections/ldaps"])}checkConnection(e){return t=this,void 0,i=function*(){const e=yield this.modalController.create({component:ZR,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});yield e.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Ho(7,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-content"),Ho(10,"ion-item"),Ho(11,"ion-label",6),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",7),Xo("ngModelChange",function(e){return t.ldap.label=e}),Uo(),Uo(),Ho(15,"ion-item"),Ho(16,"ion-label",6),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-input",8),Xo("ngModelChange",function(e){return t.ldap.value.uri=e}),Uo(),Uo(),Ho(20,"ion-item"),Ho(21,"ion-label",6),Oa(22),pc(23,"translate"),Uo(),Ho(24,"ion-input",9),Xo("ngModelChange",function(e){return t.ldap.value.baseDN=e}),Uo(),Ho(25,"ion-note"),Oa(26,"ex: dc=maarch,dc=com"),Uo(),Uo(),Ho(27,"ion-item"),Ho(28,"ion-label",6),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-input",10),Xo("ngModelChange",function(e){return t.ldap.value.prefix=e}),Uo(),Ho(32,"ion-note"),Oa(33,"ex: MAARCH"),Uo(),Uo(),Ho(34,"ion-item"),Ho(35,"ion-label",6),Oa(36),pc(37,"translate"),Uo(),Ho(38,"ion-input",11),Xo("ngModelChange",function(e){return t.ldap.value.suffix=e}),Uo(),Ho(39,"ion-note"),Oa(40,"ex: @maarch.com"),Uo(),Uo(),Ho(41,"ion-item",12),Ho(42,"div",13),Ho(43,"ion-button",14),Ho(44,"ion-label",15),Oa(45),pc(46,"translate"),Uo(),Uo(),Fo(47,KR,4,3,"ion-button",16),Fo(48,QR,4,4,"ion-button",17),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(6),Ia(t.title),is(6),Ta("",gc(13,16,"lang.label")," *"),is(2),zo("ngModel",t.ldap.label),is(3),Ta("",gc(18,18,"lang.uri")," *"),is(2),zo("ngModel",t.ldap.value.uri),is(3),Ia(gc(23,20,"lang.baseDN")),is(2),zo("ngModel",t.ldap.value.baseDN),is(5),Ia(gc(30,22,"lang.prefix")),is(2),zo("ngModel",t.ldap.value.prefix),is(5),Ia(gc(37,24,"lang.suffix")),is(2),zo("ngModel",t.ldap.value.suffix),is(5),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(46,26,"lang.validate")),is(2),zo("ngIf",!t.creationMode),is(1),zo("ngIf",!t.creationMode)}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,am,Rm,nA,Cx,$d],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();function JR(e,t){if(1&e&&(Ho(0,"ion-item"),Wo(1,"ion-icon",13),Ho(2,"ion-label",14),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e){const e=ia();is(1),zo("color","close-outline"===e.emailSendResult.icon?"danger":"primary")("name",e.emailSendResult.icon),is(1),zo("color","close-outline"===e.emailSendResult.icon?"danger":"primary"),is(1),Ia(gc(4,4,e.emailSendResult.msg))}}function eL(e,t){if(1&e&&(Ho(0,"div",15),Oa(1),Uo()),2&e){const e=ia();is(1),Ta(" ",e.emailSendResult.debug," ")}}let tL=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.translate=t,this.dialog=n,this.notificationService=i,this.alertController=r,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}ngOnInit(){}testEmailSend(){this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};const e={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",e).pipe(Ib(e=>{this.emailSendResult=e.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:e.informations,error:!0}}),Bb(()=>this.emailSendLoading=!1)).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(LI),Vo(QC),Vo(XA))},e.\u0275cmp=qe({type:e,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"form",3,4),Xo("ngSubmit",function(){return t.testEmailSend()}),Ho(9,"ion-content",null,5),Ho(11,"ion-item"),Ho(12,"ion-label",6),Oa(13),pc(14,"translate"),Uo(),Ho(15,"ion-input",7),Xo("ngModelChange",function(e){return t.recipientTest=e}),Uo(),Uo(),Fo(16,JR,5,6,"ion-item",8),Fo(17,eL,2,1,"div",9),Uo(),Ho(18,"ion-footer",10),Ho(19,"ion-toolbar"),Ho(20,"ion-buttons",11),Ho(21,"ion-button",12),Ho(22,"ion-label"),Oa(23),pc(24,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(5),Ia(gc(6,9,"lang.emailSendTest")),is(8),Ta("",gc(14,11,"lang.mailTo")," *"),is(2),zo("ngModel",t.recipientTest)("disabled",t.emailSendLoading),is(1),zo("ngIf",""!=t.emailSendResult.msg),is(1),zo("ngIf",t.emailSendResult.error),is(4),zo("disabled",!e.form.valid||t.emailSendLoading),is(2),Ia(gc(24,13,"lang.connectionTest"))}},directives:[zx,wA,Sx,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,rv,am,Rm,$d,Nx,Cx,jx],pipes:[YC],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),e})();function nL(e,t){if(1&e&&(Ho(0,"ion-select-option",27),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e.id),is(1),Ta("",gc(2,2,e.label)," ")}}function iL(e,t){if(1&e&&(Ho(0,"ion-select-option",27),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e.id),is(1),Ta(" ",gc(2,2,e.label)," ")}}function rL(e,t){if(1&e){const e=Yo();Ho(0,"form",5,6),Xo("ngSubmit",function(){return Lt(e),ia().onSubmit()}),Ho(2,"ion-content"),Ho(3,"ion-item"),Ho(4,"ion-label",7),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-select",8),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.type=t}),Fo(8,nL,3,4,"ion-select-option",9),Uo(),Uo(),Ho(9,"ion-grid"),Ho(10,"ion-row"),Ho(11,"ion-col",10),Ho(12,"ion-item"),Ho(13,"ion-label",7),Oa(14),pc(15,"translate"),Uo(),Ho(16,"ion-select",11),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.secure=t}),Fo(17,iL,3,4,"ion-select-option",9),Uo(),Uo(),Uo(),Ho(18,"ion-col",12),Ho(19,"ion-item"),Ho(20,"ion-label",7),Oa(21),pc(22,"translate"),Uo(),Ho(23,"ion-input",13),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.host=t}),Uo(),Uo(),Uo(),Ho(24,"ion-col",10),Ho(25,"ion-item"),Ho(26,"ion-label",7),Oa(27),pc(28,"translate"),Uo(),Ho(29,"ion-input",14),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.port=t}),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(30,"ion-item"),Ho(31,"ion-toggle",15),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.auth=t})("ngModelChange",function(){return Lt(e),ia().cleanAuthInfo()}),Uo(),Ho(32,"ion-label"),Oa(33),pc(34,"translate"),Uo(),Uo(),Ho(35,"ion-item"),Ho(36,"ion-label",7),Oa(37),pc(38,"translate"),Uo(),Ho(39,"ion-input",16),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.user=t}),Uo(),Uo(),Ho(40,"ion-item",17),Ho(41,"ion-button",18),Xo("click",function(){Lt(e);const t=ia();return t.hidePassword=!t.hidePassword}),Wo(42,"ion-icon",19),Uo(),Ho(43,"ion-label",7),Oa(44),Uo(),Ho(45,"ion-input",20),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.password=t}),Uo(),Uo(),Ho(46,"ion-item"),Ho(47,"ion-label",7),Oa(48),pc(49,"translate"),Uo(),Ho(50,"ion-input",21),Xo("ngModelChange",function(t){return Lt(e),ia().sendmail.from=t}),Uo(),Uo(),Ho(51,"ion-item",22),Ho(52,"div",23),Ho(53,"ion-button",24),Xo("click",function(){return Lt(e),ia().checkConnection()}),Ho(54,"ion-label",25),Oa(55),pc(56,"translate"),Uo(),Uo(),Ho(57,"ion-button",26),Ho(58,"ion-label",25),Oa(59),pc(60,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=No(1),t=ia();is(5),Ta("",gc(6,34,"lang.configurationType")," *"),is(2),zo("ngModel",t.sendmail.type),is(1),zo("ngForOf",t.smtpTypeList),is(6),Ta("",gc(15,36,"lang.smtpAuth")," * "),is(2),zo("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.secure)("value",t.sendmail.secure),is(1),zo("ngForOf",t.smtpSecList),is(4),Ta("",gc(22,38,"lang.host")," *"),is(2),zo("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.host),is(4),Ta("",gc(28,40,"lang.port")," *"),is(2),zo("disabled","smtp"!=t.sendmail.type)("ngModel",t.sendmail.port),is(2),zo("ngModel",t.sendmail.auth)("checked",t.sendmail.auth)("disabled","smtp"!=t.sendmail.type),is(2),Ia(gc(34,42,"lang.enableAuth")),is(4),Ta("",gc(38,44,"lang.id")," *"),is(2),zo("ngModel",t.sendmail.user)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type),is(3),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(2),Ma("",t.passwordLanguage," ",t.sendmail.passwordAlreadyExists?"":"*",""),is(1),zo("type",t.hidePassword?"password":"text")("ngModel",t.sendmail.password)("disabled",!t.sendmail.auth||"smtp"!=t.sendmail.type)("required",!t.sendmail.passwordAlreadyExists),is(3),Ia(gc(49,46,"lang.mailFrom")),is(2),zo("ngModel",t.sendmail.from)("disabled","smtp"!=t.sendmail.type),is(5),Ia(gc(56,48,"lang.connectionTest")),is(2),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(60,50,"lang.validate"))}}let sL=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.http=e,this.translate=t,this.route=n,this.signaturesService=i,this.notificationService=r,this.dialog=s,this.authService=o,this.modalController=a,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}ngOnInit(){this.route.params.subscribe(()=>{this.http.get("../rest/configurations/1").pipe(E(e=>e.configuration),Bb(()=>this.loading=!1)).subscribe({next:e=>{this.sendmail=e.value,this.sendmailLabel=e.label,this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.title=this.translate.instant("lang.manage_email_configuration"),this.passwordLanguage=this.translate.instant(this.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}canValidate(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}onSubmit(){this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(Bb(()=>this.loading=!1)).subscribe({next:()=>{this.sendmailClone=JSON.parse(JSON.stringify(this.sendmail)),this.notificationService.success("lang.emailConfigurationUpdated")}})}cleanAuthInfo(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}checkConnection(e){return t=this,void 0,i=function*(){const e=JSON.parse(JSON.stringify(this.authService.user));JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit();const t=yield this.modalController.create({component:tL,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:e.email}});yield t.present()},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Fo(7,rL,61,52,"form",4)),2&e&&(zo("translucent",!0),is(6),Ia(t.title),is(1),zo("ngIf",!t.loading))},directives:[zx,wA,Sx,eA,xx,UA,bA,$d,Lm,lm,Tm,Mx,Gx,Kx,hA,ox,ev,am,Rm,Ud,Vx,lA,Tx,$x,lx,nx,yA,ex,Cx,jx,rv,pA],pipes:[YC],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),e})();function oL(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function aL(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function lL(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,r,s,o=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),o=null,s=e.apply(i,r),o||(i=r=null)};return function(){var c=Date.now();a||!1!==n.leading||(a=c);var u=t-(c-a);return i=this,r=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),a=c,s=e.apply(i,r),o||(i=r=null)):o||!1===n.trailing||(o=setTimeout(l,u)),s}}(lL.prototype._strokeUpdate,this.throttle):lL.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}oL.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},oL.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},oL.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},aL.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,s=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),o=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var a=s-t,l=o-n;e+=Math.sqrt(a*a+l*l)}t=s,n=o}return e},aL.prototype._point=function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e},lL.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},lL.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,s=n.width||this._canvas.width/r,o=n.height||this._canvas.height/r;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,s,o)},this._isEmpty=!1},lL.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},lL.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},lL.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},lL.prototype.isEmpty=function(){return this._isEmpty},lL.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},lL.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],r=i&&t.distanceTo(i)<this.minDistance;if(!i||!r){var s=this._addPoint(t),o=s.curve,a=s.widths;o&&a&&this._drawCurve(o,a.start,a.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},lL.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},lL.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},lL.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},lL.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},lL.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new oL(e-i.left,t-i.top,n||(new Date).getTime())},lL.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var r=new aL(t[1],i,n.c1,t[2]),s=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:s}}return{}},lL.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,r=e.y-t.y,s=t.x-n.x,o=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,c=(t.x+n.x)/2,u=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),h=Math.sqrt(s*s+o*o),p=h/(d+h),g=t.x-(c+(a-c)*p),f=t.y-(u+(l-u)*p);return{c1:new oL(a+g,l+f),c2:new oL(c+g,u+f)}},lL.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},lL.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},lL.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},lL.prototype._drawCurve=function(e,t,n){var i=this._ctx,r=n-t,s=Math.floor(e.length());i.beginPath();for(var o=0;o<s;o+=1){var a=o/s,l=a*a,c=l*a,u=1-a,d=u*u,h=d*u,p=h*e.startPoint.x;p+=3*d*a*e.control1.x,p+=3*u*l*e.control2.x;var g=h*e.startPoint.y;g+=3*d*a*e.control1.y,g+=3*u*l*e.control2.y,this._drawPoint(p+=c*e.endPoint.x,g+=c*e.endPoint.y,t+c*r)}i.closePath(),i.fill()},lL.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},lL.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var r=e[i];if(r.length>1)for(var s=0;s<r.length;s+=1){var o=r[s],a=new oL(o.x,o.y,o.time),l=o.color;if(0===s)this.penColor=l,this._reset(),this._addPoint(a);else if(s!==r.length-1){var c=this._addPoint(a),u=c.curve,d=c.widths;u&&d&&t(u,d,l)}}else this._reset(),n(r[0])}},lL.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,s=n.height/i,o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"width",n.width),o.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),o.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),o.appendChild(n)});var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+s+'" width="'+r+'" height="'+s+'">',l=o.innerHTML;if(void 0===l){var c=document.createElement("dummy"),u=o.childNodes;c.innerHTML="";for(var d=0;d<u.length;d+=1)c.appendChild(u[d].cloneNode(!0));l=c.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},lL.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},lL.prototype.toData=function(){return this._data};var cL=lL;let uL=(()=>{class e{constructor(e){this.elementRef=e,this.options=this.options||{},this.onBeginEvent=new wc,this.onEndEvent=new wc}ngAfterContentInit(){const e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new cL(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}ngOnDestroy(){const e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}resizeCanvas(){const e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}toData(){return this.signaturePad?this.signaturePad.toData():[]}fromData(e){this.signaturePad.fromData(e)}toDataURL(e,t){return this.signaturePad.toDataURL(e,t)}fromDataURL(e,t={}){!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}clear(){this.signaturePad.clear()}isEmpty(){return this.signaturePad.isEmpty()}off(){this.signaturePad.off()}on(){this.signaturePad.on()}set(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}onBegin(){this.onBeginEvent.emit(!0)}onEnd(){this.onEndEvent.emit(!0)}queryPad(){return this.signaturePad}}return e.\u0275fac=function(t){return new(t||e)(Vo(al))},e.\u0275cmp=qe({type:e,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&Wo(0,"canvas")},encapsulation:2}),e})(),dL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[]]}),e})();const hL=["signaturePad"],pL=function(e,t){return{"border-color":e,"background-color":t}};function gL(e,t){if(1&e){const e=Yo();$o(0,20),Ho(1,"input",21),Xo("change",function(){Lt(e);const n=t.$implicit;return ia().onColorChange(n)}),Uo(),Go()}if(2&e){const e=t.$implicit,n=ia();is(1),zo("checked",0===n.idx)("value",e.id)("ngStyle",cc(3,pL,e.id,e.id))}}let fL=(()=>{class e{constructor(e,t,n,i,r,s,o){this.translate=e,this.http=t,this.signaturesService=n,this.notificationService=i,this.authService=r,this.localStorage=s,this.modalController=o,this.reloaded=new wc,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}ngAfterViewInit(){this.localStorage.get("signature")}onColorChange(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}onDotChange(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}drawComplete(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}drawClear(){this.signaturePad.clear(),this.haveSigned=!1}closePad(){this.modalController.dismiss("cancel")}saveSignature(){this.disableState=!0,this.haveSigned=!0;const e=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(e));const t={id:0,encodedSignature:e,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",t).pipe(Bb(()=>{this.disableState=!1})).subscribe(e=>{t.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:t.id,encodedSignature:t.encodedSignature}),this.modalController.dismiss("reload"),this.notificationService.success("lang.signatureRegistered")})}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Ov),Vo(oS),Vo(QC),Vo(lS),Vo(aS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-pad"]],viewQuery:function(e,t){if(1&e&&Mc(hL,1),2&e){let e;Tc(e=Rc())&&(t.signaturePad=e.first)}},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",2,"margin-top","10px",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.closePad()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-header",0),Ho(9,"ion-toolbar",5),Ho(10,"section",6),Ho(11,"div",7),Fo(12,gL,2,6,"ng-container",8),Uo(),Ho(13,"button",9),Xo("click",function(){return t.drawClear()}),Oa(14),pc(15,"translate"),Uo(),Ho(16,"div",7),Ho(17,"input",10),Xo("input",function(e){return t.onDotChange(e.target.value)}),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(18,"ion-content",null,11),Ho(20,"article",12),Ho(21,"section",13),Ho(22,"signature-pad",14,15),Xo("onEndEvent",function(){return t.drawComplete()}),Uo(),Uo(),Wo(24,"div",16),Uo(),Uo(),Ho(25,"ion-footer",17),Ho(26,"ion-button",18),Xo("click",function(){return t.closePad()}),Ho(27,"ion-label"),Oa(28),pc(29,"translate"),Uo(),Uo(),Ho(30,"ion-button",19),Xo("click",function(){return t.saveSignature()}),Ho(31,"ion-label"),Oa(32),pc(33,"translate"),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,8,"lang.createNewSignature")),is(5),zo("translucent",!0),is(4),zo("ngForOf",t.penColors),is(2),Ia(gc(15,10,"lang.erase")),is(8),zo("options",t.signaturePadOptions),is(6),Ia(gc(29,12,"lang.cancel")),is(4),Ia(gc(33,14,"lang.save")))},directives:[zx,wA,bA,Sx,Cx,jx,Ud,Mx,uL,Nx,Kx,Xd],pipes:[YC],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})();var mL=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const vL=["slides"];function bL(e,t){if(1&e&&(Ho(0,"small",10),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2);is(1),Ma("",e.currentWorflow.signaturePositions.length," ",gc(2,2,"lang.prePositionings"),"")}}function yL(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",4),Ho(1,"ion-toolbar",5),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Fo(5,bL,3,4,"small",6),Uo(),Ho(6,"ion-buttons",7),Ho(7,"ion-button",8),Xo("click",function(){return Lt(e),ia().dismissModal()}),Wo(8,"ion-icon",9),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(3),Ta("",gc(4,3,"lang.signatures")," "),is(2),zo("ngIf",e.signPosMode)}}function wL(e,t){1&e&&(Ho(0,"ion-item",26),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.emptySignList")))}function _L(e,t){1&e&&(Ho(0,"ion-label",37),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.substitutedSignature")))}function xL(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",38),Ho(1,"ion-button",39),Xo("click",function(){Lt(e);const t=ia().$implicit;return ia(4).selectSignature(t)}),pc(2,"translate"),Wo(3,"ion-icon",40),Uo(),Uo()}2&e&&(is(1),zo("title",gc(2,1,"lang.selectSignature")))}function AL(e,t){if(1&e){const e=Yo();Ho(0,"ion-card",30),Ho(1,"img",31),Xo("click",function(){Lt(e);const n=t.$implicit,i=ia(4);return"document"===i.target?i.selectSignature(n):""}),Uo(),Ho(2,"ion-toolbar",32),Fo(3,_L,3,3,"ion-label",33),Fo(4,xL,4,3,"ion-buttons",34),Ho(5,"ion-buttons",7),Ho(6,"ion-button",35),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(4).removeSignature(n)}),pc(7,"translate"),Wo(8,"ion-icon",36),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=ia(4);is(1),la("id","imgSign_",n,""),zo("src",i.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),or),is(2),zo("ngIf",e.substituted),is(1),zo("ngIf","document"===i.target),is(2),zo("title",gc(7,5,"lang.removeSignature"))}}function CL(e,t){if(1&e&&(Ho(0,"ion-slide",27),Ho(1,"div",28),Fo(2,AL,9,7,"ion-card",29),Uo(),Uo()),2&e){const e=t.$implicit;is(2),zo("ngForOf",e)}}function SL(e,t){if(1&e&&(Ho(0,"ion-slides",22,23),Fo(2,wL,4,3,"ion-item",24),Fo(3,CL,3,1,"ion-slide",25),Uo()),2&e){const e=ia(2);va("hideSwiper",0===e.signaturesList.length),zo("options",e.slideOpts),is(2),zo("ngIf",0===e.signaturesList.length),is(1),zo("ngForOf",e.signaturesList)}}function kL(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",17),Xo("click",function(){return Lt(e),ia(2).addNewDate()}),pc(1,"translate"),Wo(2,"ion-icon",41),Uo()}2&e&&zo("title",gc(1,1,"lang.addNewDate"))}function EL(e,t){if(1&e){const e=Yo();$o(0),Fo(1,SL,4,5,"ion-slides",11),Ho(2,"ion-fab",12),Ho(3,"ion-fab-button",13),Wo(4,"ion-icon",14),Uo(),Ho(5,"ion-fab-list",15),Fo(6,kL,3,3,"ion-fab-button",16),Ho(7,"ion-fab-button",17),Xo("click",function(){return Lt(e),No(14).click()}),pc(8,"translate"),Wo(9,"ion-icon",18),Uo(),Ho(10,"ion-fab-button",17),Xo("click",function(){return Lt(e),ia().openSignatures()}),pc(11,"translate"),Wo(12,"ion-icon",19),Uo(),Uo(),Uo(),Ho(13,"input",20,21),Xo("change",function(t){return Lt(e),ia().handleFileInput(t.target.files)}),Uo(),Go()}if(2&e){const e=ia();is(1),zo("ngIf",!e.loading),is(5),zo("ngIf","document"===e.target),is(1),zo("title",gc(8,4,"lang.importNewSignature")),is(3),zo("title",gc(11,6,"lang.createNewSignature"))}}function PL(e,t){1&e&&(Ho(0,"div",42),Wo(1,"ion-icon",43),Ho(2,"div"),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ta(" ",gc(4,1,"lang.certifiedDocumentMsg")," "))}let DL=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u){this.http=e,this.signaturesService=t,this.notificationService=n,this.authService=i,this.modalController=r,this.translate=s,this.localStorage=o,this.alertController=a,this.bottomSheetRef=l,this.sanitization=c,this.renderer=u,this.target="document",this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}dismissModal(){this.modalController.dismiss("cancel")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}ngOnInit(){this.initSignatures(),"document"===this.target?(this.getImgDimensions(this.content),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns()):this.loading=!1}initSignatures(){this.signaturesList=[];let e=[],t=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(n=>{6===t?(this.signaturesList.push(e),e=[n],t=0):(e.push(n),t++)}),e.length>0&&this.signaturesList.push(e)}ionViewDidEnter(){this.loading=!1}openSignatures(){return mL(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:fL,cssClass:"my-custom-class"});yield e.present();const{data:t}=yield e.onWillDismiss();"reload"===t&&this.initSignatures()})}mustPrePosSignature(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}selectSignature(e){const t=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=t.naturalWidth;let n=25;this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,n=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=n;const i=this.currentWorflow.signaturePositions.filter(e=>e.page===this.signaturesService.currentPage),r=this.currentWorflow.signaturePositions.filter(e=>e.page!==this.signaturesService.currentPage);this.mustPrePosSignature(i,r)?(i.length>0&&(e.positionX=i[0].positionX,e.positionY=i[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),r.length>0&&r.forEach(t=>{e.positionX=t.positionX,e.positionY=t.positionY,this.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===i.length&&r.length>0?{redirectPage:r[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}addNewDate(){const e=this.currentWorflow.datePositions.filter(e=>e.page===this.signaturesService.currentPage),t=this.currentWorflow.datePositions.filter(e=>e.page!==this.signaturesService.currentPage);if(0===e.length&&0===t.length){const e={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};e.positionX=60,e.positionY=80,this.storeDate(e,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else e.length>0&&this.storeDate({width:e[0].width,height:e[0].height,positionX:e[0].positionX,positionY:e[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),t.forEach(e=>{this.storeDate({width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},e.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(e=>e.page)}).subscribe(e=>{this.notificationService.success(e)}),this.modalController.dismiss(0===e.length&&t.length>0?{redirectPage:t[0].page}:"success")}storeSignature(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}storeDate(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}removeSignature(e){return mL(this,void 0,void 0,function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.wantDeleteSignature"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/users/"+this.authService.user.id+"/signatures/"+e.id).subscribe(()=>{this.signaturesService.signaturesList=this.signaturesService.signaturesList.filter(t=>t.id!==e.id),this.notificationService.success("lang.signatureDeleted"),this.initSignatures()},e=>{this.notificationService.error(e.error.errors)})}}]});yield t.present()})}toggleAllPage(){this.inAllPage=!this.inAllPage}tapEvent(e,t,n){this.count++,setTimeout(()=>{1===this.count?this.count=0:this.count>1&&(this.count=0,this.selectSignature(e))},250)}handleFileInput(e){const t=e.item(0);if(t.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=n=>{const i=e.result.toString().replace("data:"+t.type+";base64,","");this.localStorage.save("signature",JSON.stringify(i));const r={id:0,encodedSignature:i,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",r).subscribe(e=>{r.id=e.signatureId,this.signaturesService.signaturesList.unshift({id:r.id,encodedSignature:r.encodedSignature}),this.initSignatures(),this.notificationService.success("lang.signatureRegistered")})},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}getImgDimensions(e){const t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,e=>e.charCodeAt(0)),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(QC),Vo(lS),Vo(tC),Vo(qC),Vo(aS),Vo(XA),Vo(dI),Vo(Yh),Vo(ul))},e.\u0275cmp=qe({type:e,selectors:[["app-signatures"]],viewQuery:function(e,t){if(1&e&&Mc(vL,1),2&e){let e;Tc(e=Rc())&&(t.slides=e.first)}},inputs:{currentWorflow:"currentWorflow",content:"content",target:"target"},decls:5,vars:3,consts:[[3,"translucent",4,"ngIf"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[1,"secondary"],["pager","true",3,"options","hideSwiper",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click",4,"ngIf"],["color","light",3,"title","click"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["class","emptySignList","lines","none",4,"ngIf"],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],["lines","none",1,"emptySignList"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],["color","default",2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start",4,"ngIf"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["name","calendar-outline"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(Fo(0,yL,9,5,"ion-header",0),Ho(1,"ion-content",1),Xo("wheel",function(e){return t.signaturesService.stampLock?null:t.scroll(e)}),Fo(2,EL,15,8,"ng-container",2),Fo(3,PL,5,3,"ng-template",null,3,Vc),Uo()),2&e){const e=No(4);zo("ngIf","document"===t.target),is(2),zo("ngIf",!t.signaturesService.stampLock)("ngIfElse",e)}},directives:[$d,Mx,zx,wA,bA,Sx,Cx,jx,Rx,Lx,Fx,fA,Ud,Gx,Kx,gA,kx],pipes:[YC],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}.emptySignList[_ngcontent-%COMP%]{text-align:center;display:inherit;height:100%!important;font-size:30px;opacity:.5}.hideSwiper[_ngcontent-%COMP%]{--bullet-background-active:none}"]}),e})();const OL=["mainContent"],IL=["canvas"],TL=["img"],ML=["nav"],BL=function(e,t){return{"border-color":e,"background-color":t}};function RL(e,t){if(1&e&&($o(0,28),Wo(1,"input",29),Go()),2&e){const e=t.$implicit,n=ia(2);is(1),zo("checked",0===n.idx)("value",e.id)("ngStyle",cc(3,BL,e.id,e.id))}}function LL(e,t){if(1&e){const e=Yo();Ho(0,"ion-content",null,8),Ho(2,"div",9),Fo(3,RL,2,6,"ng-container",10),Wo(4,"hr"),Ho(5,"i",11),Xo("click",function(){return Lt(e),ia().undo()}),Uo(),Uo(),Ho(6,"ion-fab",12),Ho(7,"ion-fab-button",13),Wo(8,"ion-icon",14),Uo(),Ho(9,"ion-fab-list",15),Ho(10,"ion-fab-button",16),Xo("click",function(t){Lt(e);const n=ia();return t.stopPropagation(),n.editMode=!n.editMode}),pc(11,"translate"),pc(12,"translate"),Wo(13,"ion-icon",17),Uo(),Ho(14,"ion-fab-button",18),Xo("click",function(t){Lt(e);const n=ia();return t.stopPropagation(),n.getImageDimensions(!n.originalSize)}),pc(15,"translate"),pc(16,"translate"),Wo(17,"ion-icon",17),Uo(),Uo(),Uo(),Ho(18,"div",19),Ho(19,"drag-scroll",20,21),Ho(21,"div",22,23),Ho(23,"ion-img",24,25),Xo("ionImgDidLoad",function(t){return Lt(e),ia().imageLoaded(t)}),Uo(),Wo(25,"canvas",26,27),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(3),zo("ngForOf",e.penColors),is(7),zo("color",e.editMode?"danger":"success")("title",e.editMode?gc(11,19,"lang.lockEdition"):gc(12,21,"lang.unlockEdition")),is(3),zo("name",e.editMode?"lock-closed-outline":"lock-open-outline"),is(1),zo("title",e.originalSize?gc(15,23,"lang.originalSize"):gc(16,25,"lang.screenSize")),is(3),zo("name",e.originalSize?"scan-outline":"crop-outline"),is(2),ma("max-width",e.areaWidth,"px"),is(2),ma("width",e.areaWidth,"px")("height",e.areaHeight,"px"),is(2),ma("width",e.areaWidth,"px")("height",e.areaHeight,"px"),zo("src",e.content),is(2),ma("display",e.editMode?"initial":"none")}}let FL=(()=>{class e{constructor(e,t,n,i,r){this.signaturesService=e,this.notificationService=t,this.authService=n,this.localStorage=i,this.modalController=r,this.triggerEvent=new wc,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}ngOnInit(){setTimeout(()=>{this.loading=!1},100)}imageLoaded(e){this.getImageDimensions(!1)}getImageDimensions(e=!1){this.originalSize=e;const t=new Image;t.onload=n=>{this.areaWidth=n.target.naturalWidth,this.areaHeight=n.target.naturalHeight,e||this.getAreaDimension(),this.editMode&&setTimeout(()=>{const e=$("#myBounds").offset();let n,i,r;n=1===Math.sign(e.top)||this.precentScrollTop<=Math.abs(e.top)?this.precentScrollTop-e.top:-1===Math.sign(e.top)&&this.precentScrollTop<=-Math.sign(e.top)?2*(this.precentScrollTop-e.top):100*(this.precentScrollTop-e.top);const s=this.precentScrollLeft-e.left;i=this.precentScrollLeft-document.documentElement.offsetLeft,r=this.precentScrollTop-document.documentElement.offsetTop,i=i/this.areaWidth*100,r=r/this.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(s,n),t.style.transform="translate(-"+i+"%,-"+r+"%) scale(2)",this.initPad()},200)},t.src=this.content}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}dismissModal(){this.modalController.dismiss("cancel")}initPad(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}validateAnnotation(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}undo(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(QC),Vo(lS),Vo(aS),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){if(1&e&&(Mc(OL,1),Mc(IL,1),Mc(TL,1),Mc(ML,1,Kk)),2&e){let e;Tc(e=Rc())&&(t.mainContent=e.first),Tc(e=Rc())&&(t.canvas=e.first),Tc(e=Rc())&&(t.img=e.first),Tc(e=Rc())&&(t.ds=e.first)}},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo(),Fo(5,LL,27,27,"ion-content",2),Ho(6,"ion-footer",3),Ho(7,"div",4),Ho(8,"ion-button",5),Xo("click",function(){return t.dismissModal()}),Ho(9,"ion-label",6),Oa(10),pc(11,"translate"),Uo(),Uo(),Ho(12,"ion-button",7),Xo("click",function(){return t.validateAnnotation()}),Ho(13,"ion-label",6),Oa(14),pc(15,"translate"),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,5,"lang.annotateDocument")),is(2),zo("ngIf",!t.loading),is(5),Ia(gc(11,7,"lang.cancel")),is(4),Ia(gc(15,9,"lang.save")))},directives:[zx,wA,bA,$d,Nx,Cx,Kx,Mx,Ud,Rx,Lx,jx,Fx,Kk,Hx,Xd],pipes:[YC],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),e})(),NL=(()=>{class e{constructor(e,t,n){this.http=e,this.signaturesService=t,this.router=n,this.currentIndex=0,this.offset=0,this.limit=10}resfreshDocuments(e=!1){this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(t=>{this.signaturesService.documentsList=t.documents,this.signaturesService.documentsListCount=t.count,e&&this.router.navigate(void 0!==this.signaturesService.documentsList[this.currentIndex]?["/documents/"+this.signaturesService.documentsList[this.currentIndex].id]:this.signaturesService.documentsList.length>0?["/documents/"+this.signaturesService.documentsList[0].id]:["/home"])})}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(oS),fi(a_))},e.\u0275prov=ge({token:e,factory:e.\u0275fac}),e})(),VL=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(NL),Vo(lS),Vo(cI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"h1"),Wo(2,"i",1),Uo(),Ho(3,"p"),Oa(4),pc(5,"translate"),Uo(),Ho(6,"p",2),Oa(7),Uo(),Ho(8,"p",3),Oa(9),pc(10,"translate"),pc(11,"date"),pc(12,"translate"),pc(13,"date"),Uo(),Uo()),2&e&&(is(4),Ia(gc(5,7,"lang.documentRefusedAs")),is(3),Ma("",t.authService.user.firstname," ",t.authService.user.lastname,""),is(2),Ra("",gc(10,9,"lang.onRange")," ",fc(11,11,t.date,"dd/MM/yyyy")," ",gc(12,14,"lang.atRange")," ",fc(13,16,t.date,"HH:mm"),""))},pipes:[YC,ch],styles:[""]}),e})();const zL=["slides"];function jL(e,t){1&e&&(Ho(0,"span",16),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta("(",gc(2,1,"lang.mainDocument"),")"))}function HL(e,t){1&e&&(Ho(0,"span",16),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta("(",gc(2,1,"lang.attachment"),")"))}const UL=function(e){return{background:e}};function WL(e,t){if(1&e){const e=Yo();Ho(0,"ion-slide"),Ho(1,"div",12),Ho(2,"div",13),Xo("click",function(){Lt(e);const n=t.index;return ia(2).loadDoc(n)}),Uo(),Ho(3,"div",14),Oa(4),Fo(5,jL,3,3,"span",15),Fo(6,HL,3,3,"span",15),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=ia(2);is(2),va("current",n==i.currentDocId),zo("ngStyle",lc(6,UL,"url("+e.imgContent[1]+") no-repeat scroll center center / contain")),is(2),Ta(" ",e.title,"\xa0"),is(1),zo("ngIf",0==n),is(1),zo("ngIf",n>0)}}function $L(e,t){if(1&e&&(Ho(0,"ion-slides",9,10),Fo(2,WL,7,8,"ion-slide",11),Uo()),2&e){const e=ia();zo("options",e.slideOpts),is(2),zo("ngForOf",e.docList)}}let GL=(()=>{class e{constructor(e,t,n,i){this.http=e,this.signaturesService=t,this.sanitizer=n,this.menu=i,this.triggerEvent=new wc,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}ngOnInit(){this.docList.forEach((e,t)=>{void 0===e.imgContent[1]&&t>0&&this.http.get("../rest/attachments/"+e.id+"/thumbnails/1").subscribe(t=>{e.imgContent[1]="data:image/png;base64,"+t.fileContent})})}ngAfterViewInit(){this.loading=!1}loadDoc(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}scroll(e){this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(()=>{this.scrolling=!1},500))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(Yh),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-list"]],viewQuery:function(e,t){if(1&e&&Mc(zL,1),2&e){let e;Tc(e=Rc())&&(t.slides=e.first)}},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Ho(6,"b",6),Oa(7),Uo(),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Ho(10,"ion-content",7),Xo("wheel",function(e){return t.scroll(e)}),Fo(11,$L,3,2,"ion-slides",8),Uo()),2&e&&(zo("translucent",!0),is(7),Ia(t.docList.length),is(1),Ta("\xa0",gc(9,4,"lang.attachedElements"),""),is(3),zo("ngIf",!t.loading))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,$d,fA,Ud,gA,Xd],pipes:[YC],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),e})(),qL=(()=>{class e{constructor(e,t){this.translate=e,this.latinisePipe=t}empty(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}isDate(e){return e instanceof Date&&!isNaN(e.valueOf())}formatFrenchDateToTechnicalDate(e){if(this.empty(e))return e;{let t=e.split("-");return t=t.concat(t[t.length-1].split(" ")),t.splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),`${t[2]}-${t[1]}-${t[0]} ${t[3]}`}}formatFrenchDateToObjectDate(e,t="-"){if(this.empty(e))return e;{let n=e.split(t);return n=n.concat(n[n.length-1].split(" ")),n.splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date(`${n[2]}-${n[1]}-${n[0]} ${n[3]}`)}}formatDateObjectToDateString(e,t=!1,n="dd-mm-yyyy"){if(null!==e){const i=[];n.split("-").forEach(t=>{if("dd"===t){let t=e.getDate();t=("00"+t).slice(-2),i.push(t)}else if("mm"===t){let t=e.getMonth()+1;t=("00"+t).slice(-2),i.push(t)}else if("yyyy"===t){const t=e.getFullYear();i.push(t)}});let r="";return t&&(r=" 23:59:59"),`${i.join("-")}${r}`}return e}formatSerializedDateToDateString(e){return this.formatDateObjectToDateString(new Date(e))}listSortingDataAccessor(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}filterUnSensitive(e,t,n){let i=!1;return t=this.latinisePipe.transform(t),n.forEach(n=>{let r=e[n];"string"!=typeof e[n]&&(r=void 0===r?"":JSON.stringify(r)),i=i||this.latinisePipe.transform(r.toLowerCase()).includes(t)}),i}formatBytes(e,t=2){if("number"==typeof e){if(0===e)return"0 Octet";const n=1024,i=t<0?0:t,r=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],s=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,s)).toFixed(i))+" "+r[s]}return e}}return e.\u0275fac=function(t){return new(t||e)(fi(qC),fi(hE))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var YL=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let ZL=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.translate=t,this.notificationService=n,this.signaturesService=i,this.functionsService=r,this.alertController=s}sendDocument(e,t,n=null,i=null,r=null,s=null){return new Promise(o=>YL(this,void 0,void 0,function*(){let a={};this.signaturesService.currentAction>0?(a.signatures=null===s?yield this.getElementsFromDoc():s,null!==n&&(a=Object.assign(Object.assign({},a),n),a.step="hashCertificate"),null!==t&&(a.note=t),null!==i&&(a.signatureLength=i),this.functionsService.empty(r)||(a.tmpUniqueId=r),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,a).pipe(Ib(e=>{o(null===n||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),mb(e=>(this.notificationService.handleErrors(e),o(403===e.status&&null),cv(!1)))).subscribe()):o(!1)}))}getElementsFromDoc(){return YL(this,void 0,void 0,function*(){return new Promise(e=>YL(this,void 0,void 0,function*(){const t=[];for(let e=1;e<=this.signaturesService.totalPage;e++){if(this.signaturesService.datesContent[e])for(let n=0;n<this.signaturesService.datesContent[e].length;n++){const i=this.signaturesService.datesContent[e][n],r=yield this.getSvgContent(n);t.push({encodedImage:r.replace("data:image/svg+xml;base64,",""),width:i.width,height:i.height,positionX:i.positionX,positionY:i.positionY,type:"SVG",page:e})}this.signaturesService.signaturesContent[e]&&this.signaturesService.signaturesContent[e].forEach(n=>{t.push({encodedImage:n.encodedSignature,width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})}),this.signaturesService.notesContent[e]&&this.signaturesService.notesContent[e].forEach(n=>{t.push({encodedImage:n.fullPath.replace("data:image/png;base64,",""),width:n.width,positionX:n.positionX,positionY:n.positionY,type:"PNG",page:e})})}e(t)}))})}getSvgContent(e){return new Promise(t=>{const n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),r=new Blob([i],{type:"image/svg+xml"}),s=new FileReader;s.readAsDataURL(r),s.onloadend=()=>{t(s.result)}})}checkGroupMail(e,t){return new Promise(n=>YL(this,void 0,void 0,function*(){this.functionsService.empty(e.mailingId)?n([this.signaturesService.mainDocumentId]):this.http.get(`../rest/documents/${this.signaturesService.mainDocumentId}/linkedMailing`).pipe(Ib(e=>YL(this,void 0,void 0,function*(){if(e.documents.length>1){const i=yield this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:()=>{n(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:()=>{n([this.signaturesService.mainDocumentId])}}]});yield i.present()}else n([this.signaturesService.mainDocumentId])})),mb(e=>(this.notificationService.handleErrors(e),n([]),cv(!1)))).subscribe()}))}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(qC),fi(QC),fi(oS),fi(qL),fi(XA))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value(e,t){return new Uint8Array(Array.prototype.slice.call(this,e,t))}});var KL=/iPhone/i,QL=/iPod/i,XL=/iPad/i,JL=/\biOS-universal(?:.+)Mac\b/i,eF=/\bAndroid(?:.+)Mobile\b/i,tF=/Android/i,nF=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,iF=/Silk/i,rF=/Windows Phone/i,sF=/\bWindows(?:.+)ARM\b/i,oF=/BlackBerry/i,aF=/BB10/i,lF=/Opera Mini/i,cF=/\b(CriOS|Chrome)(?:.+)Mobile/i,uF=/Mobile(?:.+)Firefox\b/i,dF=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream},hF=n("OmFT");function pF(e,t){let n=0;if(1===e.length)return e[0];for(let i=e.length-1;i>=0;i--)n+=e[e.length-1-i]*Math.pow(2,t*i);return n}function gF(e,t,n=-1){const i=n;let r=e,s=0,o=Math.pow(2,t);for(let a=1;a<8;a++){if(e<o){let e;if(i<0)e=new ArrayBuffer(a),s=a;else{if(i<a)return new ArrayBuffer(0);e=new ArrayBuffer(i),s=i}const n=new Uint8Array(e);for(let i=a-1;i>=0;i--){const e=Math.pow(2,i*t);n[s-i-1]=Math.floor(r/e),r-=n[s-i-1]*e}return e}o*=Math.pow(2,t)}return new ArrayBuffer(0)}function fF(...e){let t=0,n=0;for(const s of e)t+=s.length;const i=new ArrayBuffer(t),r=new Uint8Array(i);for(const s of e)r.set(s,n),n+=s.length;return r}function mF(){const e=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){const t=0===e[0]&&0==(128&e[1]);(255===e[0]&&128&e[1]||t)&&this.warnings.push("Needlessly long format")}const t=new ArrayBuffer(this.valueHex.byteLength),n=new Uint8Array(t);for(let o=0;o<this.valueHex.byteLength;o++)n[o]=0;n[0]=128&e[0];const i=pF(n,8),r=new ArrayBuffer(this.valueHex.byteLength),s=new Uint8Array(r);for(let o=0;o<this.valueHex.byteLength;o++)s[o]=e[o];return s[0]&=127,pF(s,8)-i}function vF(e,t){const n=e.toString(10);if(t<n.length)return"";const i=t-n.length,r=new Array(i);for(let s=0;s<i;s++)r[s]="0";return r.join("").concat(n)}function bF(){if("undefined"==typeof BigInt)throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function yF(e){let t=0,n=0;for(let r=0;r<e.length;r++)t+=e[r].byteLength;const i=new Uint8Array(t);for(let r=0;r<e.length;r++){const t=e[r];i.set(new Uint8Array(t),n),n+=t.byteLength}return i.buffer}function wF(e,t,n,i){return t instanceof Uint8Array?t.byteLength?n<0?(e.error="Wrong parameter: inputOffset less than zero",!1):i<0?(e.error="Wrong parameter: inputLength less than zero",!1):!(t.byteLength-n-i<0&&(e.error="End of input reached before message was fully decoded (inconsistent offset and length values)",1)):(e.error="Wrong parameter: inputBuffer has zero length",!1):(e.error="Wrong parameter: inputBuffer must be 'Uint8Array'",!1)}n("mNvP"),Math.log(2);class _F{constructor(){this.items=[]}write(e){this.items.push(e)}final(){return yF(this.items)}}const xF=[new Uint8Array([1])],AF=new ArrayBuffer(0),CF=new Uint8Array(0);function SF(e){var t;return(t=class extends e{constructor(...e){var t;super(...e);const n=e[0]||{};this.isHexOnly=null!==(t=n.isHexOnly)&&void 0!==t&&t,this.valueHexView=n.valueHex?hF.BufferSourceConverter.toUint8Array(n.valueHex):CF}get valueHex(){return this.valueHexView.slice().buffer}set valueHex(e){this.valueHexView=new Uint8Array(e)}fromBER(e,t,n){const i=e instanceof ArrayBuffer?new Uint8Array(e):e;if(!wF(this,i,t,n))return-1;const r=t+n;return this.valueHexView=i.subarray(t,r),this.valueHexView.length?(this.blockLength=n,r):(this.warnings.push("Zero buffer length"),t)}toBER(e=!1){return this.isHexOnly?e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer:(this.error="Flag 'isHexOnly' is not set, abort",AF)}toJSON(){return{...super.toJSON(),isHexOnly:this.isHexOnly,valueHex:hF.Convert.ToHex(this.valueHexView)}}}).NAME="hexBlock",t}class kF{constructor({blockLength:e=0,error:t="",warnings:n=[],valueBeforeDecode:i=CF}={}){this.blockLength=e,this.error=t,this.warnings=n,this.valueBeforeDecodeView=hF.BufferSourceConverter.toUint8Array(i)}static blockName(){return this.NAME}get valueBeforeDecode(){return this.valueBeforeDecodeView.slice().buffer}set valueBeforeDecode(e){this.valueBeforeDecodeView=new Uint8Array(e)}toJSON(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:hF.Convert.ToHex(this.valueBeforeDecodeView)}}}kF.NAME="baseBlock";class EF extends kF{fromBER(e,t,n){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}toBER(e,t){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}EF.NAME="valueBlock";class PF extends(SF(kF)){constructor({idBlock:e={}}={}){var t,n,i,r;super(),e?(this.isHexOnly=null!==(t=e.isHexOnly)&&void 0!==t&&t,this.valueHexView=e.valueHex?hF.BufferSourceConverter.toUint8Array(e.valueHex):CF,this.tagClass=null!==(n=e.tagClass)&&void 0!==n?n:-1,this.tagNumber=null!==(i=e.tagNumber)&&void 0!==i?i:-1,this.isConstructed=null!==(r=e.isConstructed)&&void 0!==r&&r):(this.tagClass=-1,this.tagNumber=-1,this.isConstructed=!1)}toBER(e=!1){let t=0;switch(this.tagClass){case 1:t|=0;break;case 2:t|=64;break;case 3:t|=128;break;case 4:t|=192;break;default:return this.error="Unknown tag class",AF}if(this.isConstructed&&(t|=32),this.tagNumber<31&&!this.isHexOnly){const n=new Uint8Array(1);if(!e){let e=this.tagNumber;e&=31,t|=e,n[0]=t}return n.buffer}if(!this.isHexOnly){const n=gF(this.tagNumber,7),i=new Uint8Array(n),r=n.byteLength,s=new Uint8Array(r+1);if(s[0]=31|t,!e){for(let e=0;e<r-1;e++)s[e+1]=128|i[e];s[r]=i[r-1]}return s.buffer}const n=new Uint8Array(this.valueHexView.byteLength+1);if(n[0]=31|t,!e){const e=this.valueHexView;for(let t=0;t<e.length-1;t++)n[t+1]=128|e[t];n[this.valueHexView.byteLength]=e[e.length-1]}return n.buffer}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;switch(192&r[0]){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:return this.error="Unknown tag class",-1}this.isConstructed=32==(32&r[0]),this.isHexOnly=!1;const s=31&r[0];if(31!==s)this.tagNumber=s,this.blockLength=1;else{let e=1,t=this.valueHexView=new Uint8Array(255),n=255;for(;128&r[e];){if(t[e-1]=127&r[e],e++,e>=r.length)return this.error="End of input reached before message was fully decoded",-1;if(e===n){n+=255;const e=new Uint8Array(n);for(let n=0;n<t.length;n++)e[n]=t[n];t=this.valueHexView=new Uint8Array(n)}}this.blockLength=e+1,t[e-1]=127&r[e];const i=new Uint8Array(e);for(let r=0;r<e;r++)i[r]=t[r];t=this.valueHexView=new Uint8Array(e),t.set(i),this.blockLength<=9?this.tagNumber=pF(t,7):(this.isHexOnly=!0,this.warnings.push("Tag too long, represented as hex-coded"))}if(1===this.tagClass&&this.isConstructed)switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:return this.error="Constructed encoding used for primitive type",-1}return t+this.blockLength}toJSON(){return{...super.toJSON(),tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed}}}PF.NAME="identificationBlock";class DF extends kF{constructor({lenBlock:e={}}={}){var t,n,i;super(),this.isIndefiniteForm=null!==(t=e.isIndefiniteForm)&&void 0!==t&&t,this.longFormUsed=null!==(n=e.longFormUsed)&&void 0!==n&&n,this.length=null!==(i=e.length)&&void 0!==i?i:0}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;if(255===r[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===r[0],this.isIndefiniteForm)return this.blockLength=1,t+this.blockLength;if(this.longFormUsed=!!(128&r[0]),!1===this.longFormUsed)return this.length=r[0],this.blockLength=1,t+this.blockLength;const s=127&r[0];if(s>8)return this.error="Too big integer",-1;if(s+1>r.length)return this.error="End of input reached before message was fully decoded",-1;const o=t+1,a=i.subarray(o,o+s);return 0===a[s-1]&&this.warnings.push("Needlessly long encoded length"),this.length=pF(a,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=s+1,t+this.blockLength}toBER(e=!1){let t,n;if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return t=new ArrayBuffer(1),!1===e&&(n=new Uint8Array(t),n[0]=128),t;if(this.longFormUsed){const i=gF(this.length,8);if(i.byteLength>127)return this.error="Too big length",AF;if(t=new ArrayBuffer(i.byteLength+1),e)return t;const r=new Uint8Array(i);n=new Uint8Array(t),n[0]=128|i.byteLength;for(let e=0;e<i.byteLength;e++)n[e+1]=r[e];return t}return t=new ArrayBuffer(1),!1===e&&(n=new Uint8Array(t),n[0]=this.length),t}toJSON(){return{...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length}}}DF.NAME="lengthBlock";const OF={};class IF extends kF{constructor({name:e="",optional:t=!1,primitiveSchema:n,...i}={},r){super(i),this.name=e,this.optional=t,n&&(this.primitiveSchema=n),this.idBlock=new PF(i),this.lenBlock=new DF(i),this.valueBlock=r?new r(i):new EF(i)}fromBER(e,t,n){const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}toBER(e,t){const n=t||new _F;t||TF(this);const i=this.idBlock.toBER(e);if(n.write(i),this.lenBlock.isIndefiniteForm)n.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(e,n),n.write(new ArrayBuffer(2));else{const t=this.valueBlock.toBER(e);this.lenBlock.length=t.byteLength;const i=this.lenBlock.toBER(e);n.write(i),n.write(t)}return t?AF:n.final()}toJSON(){const e={...super.toJSON(),idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional};return this.primitiveSchema&&(e.primitiveSchema=this.primitiveSchema.toJSON()),e}toString(e="ascii"){return"ascii"===e?this.onAsciiEncoding():hF.Convert.ToHex(this.toBER())}onAsciiEncoding(){return`${this.constructor.NAME} : ${hF.Convert.ToHex(this.valueBlock.valueBeforeDecodeView)}`}isEqual(e){return this===e||e instanceof this.constructor&&function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),i=new Uint8Array(t);for(let r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}(this.toBER(),e.toBER())}}function TF(e){if(e instanceof OF.Constructed)for(const t of e.valueBlock.value)TF(t)&&(e.lenBlock.isIndefiniteForm=!0);return!!e.lenBlock.isIndefiniteForm}IF.NAME="BaseBlock";class MF extends IF{constructor({value:e="",...t}={},n){super(t,n),e&&this.fromString(e)}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}fromBER(e,t,n){const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}onAsciiEncoding(){return`${this.constructor.NAME} : '${this.valueBlock.value}'`}}MF.NAME="BaseStringBlock";class BF extends(SF(EF)){constructor({isHexOnly:e=!0,...t}={}){super(t),this.isHexOnly=e}}var RF,LF,FF;BF.NAME="PrimitiveValueBlock";class NF extends IF{constructor(e={}){super(e,BF),this.idBlock.isConstructed=!1}}function VF(e,t=0,n=e.length){const i=t;let r=new IF({},EF);const s=new kF;if(!wF(s,e,t,n))return r.error=s.error,{offset:-1,result:r};if(!e.subarray(t,t+n).length)return r.error="Zero buffer length",{offset:-1,result:r};let o=r.idBlock.fromBER(e,t,n);if(r.idBlock.warnings.length&&r.warnings.concat(r.idBlock.warnings),-1===o)return r.error=r.idBlock.error,{offset:-1,result:r};if(o=r.lenBlock.fromBER(e,t=o,n-=r.idBlock.blockLength),r.lenBlock.warnings.length&&r.warnings.concat(r.lenBlock.warnings),-1===o)return r.error=r.lenBlock.error,{offset:-1,result:r};if(t=o,n-=r.lenBlock.blockLength,!r.idBlock.isConstructed&&r.lenBlock.isIndefiniteForm)return r.error="Indefinite length form used for primitive encoding form",{offset:-1,result:r};let a=IF;switch(r.idBlock.tagClass){case 1:if(r.idBlock.tagNumber>=37&&!1===r.idBlock.isHexOnly)return r.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:r};switch(r.idBlock.tagNumber){case 0:if(r.idBlock.isConstructed&&r.lenBlock.length>0)return r.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:r};a=OF.EndOfContent;break;case 1:a=OF.Boolean;break;case 2:a=OF.Integer;break;case 3:a=OF.BitString;break;case 4:a=OF.OctetString;break;case 5:a=OF.Null;break;case 6:a=OF.ObjectIdentifier;break;case 10:a=OF.Enumerated;break;case 12:a=OF.Utf8String;break;case 13:a=OF.RelativeObjectIdentifier;break;case 14:a=OF.TIME;break;case 15:return r.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:r};case 16:a=OF.Sequence;break;case 17:a=OF.Set;break;case 18:a=OF.NumericString;break;case 19:a=OF.PrintableString;break;case 20:a=OF.TeletexString;break;case 21:a=OF.VideotexString;break;case 22:a=OF.IA5String;break;case 23:a=OF.UTCTime;break;case 24:a=OF.GeneralizedTime;break;case 25:a=OF.GraphicString;break;case 26:a=OF.VisibleString;break;case 27:a=OF.GeneralString;break;case 28:a=OF.UniversalString;break;case 29:a=OF.CharacterString;break;case 30:a=OF.BmpString;break;case 31:a=OF.DATE;break;case 32:a=OF.TimeOfDay;break;case 33:a=OF.DateTime;break;case 34:a=OF.Duration;break;default:{const e=r.idBlock.isConstructed?new OF.Constructed:new OF.Primitive;e.idBlock=r.idBlock,e.lenBlock=r.lenBlock,e.warnings=r.warnings,r=e}}break;case 2:case 3:case 4:default:a=r.idBlock.isConstructed?OF.Constructed:OF.Primitive}return r=function(e,t){if(e instanceof t)return e;const n=new t;return n.idBlock=e.idBlock,n.lenBlock=e.lenBlock,n.warnings=e.warnings,n.valueBeforeDecodeView=e.valueBeforeDecodeView,n}(r,a),o=r.fromBER(e,t,r.lenBlock.isIndefiniteForm?n:r.lenBlock.length),r.valueBeforeDecodeView=e.subarray(i,i+r.blockLength),{offset:o,result:r}}function zF(e){if(!e.byteLength){const e=new IF({},EF);return e.error="Input buffer has zero length",{offset:-1,result:e}}return VF(hF.BufferSourceConverter.toUint8Array(e).slice(),0,e.byteLength)}OF.Primitive=NF,NF.NAME="PRIMITIVE";class jF extends EF{constructor({value:e=[],isIndefiniteForm:t=!1,...n}={}){super(n),this.value=e,this.isIndefiniteForm=t}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;if(this.valueBeforeDecodeView=i.subarray(t,t+n),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),t;let r=t;for(;(this.isIndefiniteForm?1:n)>0;){const e=VF(i,r,n);if(-1===e.offset)return this.error=e.result.error,this.warnings.concat(e.result.warnings),-1;if(r=e.offset,this.blockLength+=e.result.blockLength,n-=e.result.blockLength,this.value.push(e.result),this.isIndefiniteForm&&"EndOfContent"===e.result.constructor.NAME)break}return this.isIndefiniteForm&&("EndOfContent"===this.value[this.value.length-1].constructor.NAME?this.value.pop():this.warnings.push("No EndOfContent block encoded")),r}toBER(e,t){const n=t||new _F;for(let i=0;i<this.value.length;i++)this.value[i].toBER(e,n);return t?AF:n.final()}toJSON(){const e={...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,value:[]};for(const t of this.value)e.value.push(t.toJSON());return e}}jF.NAME="ConstructedValueBlock";class HF extends IF{constructor(e={}){super(e,jF),this.idBlock.isConstructed=!0}fromBER(e,t,n){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;const i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}onAsciiEncoding(){const e=[];for(const n of this.valueBlock.value)e.push(n.toString("ascii").split("\n").map(e=>"  "+e).join("\n"));const t=3===this.idBlock.tagClass?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return e.length?`${t} :\n${e.join("\n")}`:t+" :"}}OF.Constructed=HF,HF.NAME="CONSTRUCTED";class UF extends EF{fromBER(e,t,n){return t}toBER(e){return AF}}UF.override="EndOfContentValueBlock";class WF extends IF{constructor(e={}){super(e,UF),this.idBlock.tagClass=1,this.idBlock.tagNumber=0}}OF.EndOfContent=WF,WF.NAME="EndOfContent";class $F extends IF{constructor(e={}){super(e,EF),this.idBlock.tagClass=1,this.idBlock.tagNumber=5}fromBER(e,t,n){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=n,t+n>e.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+n}toBER(e,t){const n=new ArrayBuffer(2);if(!e){const e=new Uint8Array(n);e[0]=5,e[1]=0}return t&&t.write(n),n}onAsciiEncoding(){return""+this.constructor.NAME}}OF.Null=$F,$F.NAME="NULL";class GF extends(SF(EF)){constructor({value:e,...t}={}){super(t),this.valueHexView=t.valueHex?hF.BufferSourceConverter.toUint8Array(t.valueHex):new Uint8Array(1),e&&(this.value=e)}get value(){for(const e of this.valueHexView)if(e>0)return!0;return!1}set value(e){this.valueHexView[0]=e?255:0}fromBER(e,t,n){const i=hF.BufferSourceConverter.toUint8Array(e);return wF(this,i,t,n)?(this.valueHexView=i.subarray(t,t+n),n>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,mF.call(this),this.blockLength=n,t+n):-1}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}GF.NAME="BooleanValueBlock";class qF extends IF{constructor(e={}){super(e,GF),this.idBlock.tagClass=1,this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}OF.Boolean=qF,qF.NAME="BOOLEAN";class YF extends(SF(jF)){constructor({isConstructed:e=!1,...t}={}){super(t),this.isConstructed=e}fromBER(e,t,n){let i=0;if(this.isConstructed){if(this.isHexOnly=!1,i=jF.prototype.fromBER.call(this,e,t,n),-1===i)return i;for(let e=0;e<this.value.length;e++){const t=this.value[e].constructor.NAME;if("EndOfContent"===t){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only",-1}if("OCTET STRING"!==t)return this.error="OCTET STRING may consists of OCTET STRINGs only",-1}}else this.isHexOnly=!0,i=super.fromBER(e,t,n),this.blockLength=n;return i}toBER(e,t){return this.isConstructed?jF.prototype.toBER.call(this,e,t):e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),isConstructed:this.isConstructed}}}YF.NAME="OctetStringValueBlock";class ZF extends IF{constructor({idBlock:e={},lenBlock:t={},...n}={}){var i,r;null!==(i=n.isConstructed)&&void 0!==i||(n.isConstructed=!!(null===(r=n.value)||void 0===r?void 0:r.length)),super({idBlock:{isConstructed:n.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!n.isIndefiniteForm},...n},YF),this.idBlock.tagClass=1,this.idBlock.tagNumber=4}fromBER(e,t,n){if(this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,0===n)return 0===this.idBlock.error.length&&(this.blockLength+=this.idBlock.blockLength),0===this.lenBlock.error.length&&(this.blockLength+=this.lenBlock.blockLength),t;if(!this.valueBlock.isConstructed){const r=(e instanceof ArrayBuffer?new Uint8Array(e):e).subarray(t,t+n);try{if(r.byteLength){const e=VF(r,0,r.byteLength);-1!==e.offset&&e.offset===n&&(this.valueBlock.value=[e.result])}}catch(i){}}return super.fromBER(e,t,n)}onAsciiEncoding(){return this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length?HF.prototype.onAsciiEncoding.call(this):`${this.constructor.NAME} : ${hF.Convert.ToHex(this.valueBlock.valueHexView)}`}getValue(){if(!this.idBlock.isConstructed)return this.valueBlock.valueHexView.slice().buffer;const e=[];for(const t of this.valueBlock.value)t instanceof ZF&&e.push(t.valueBlock.valueHexView);return hF.BufferSourceConverter.concat(e)}}OF.OctetString=ZF,ZF.NAME="OCTET STRING";class KF extends(SF(jF)){constructor({unusedBits:e=0,isConstructed:t=!1,...n}={}){super(n),this.unusedBits=e,this.isConstructed=t,this.blockLength=this.valueHexView.byteLength}fromBER(e,t,n){if(!n)return t;let i=-1;if(this.isConstructed){if(i=jF.prototype.fromBER.call(this,e,t,n),-1===i)return i;for(const e of this.value){const t=e.constructor.NAME;if("EndOfContent"===t){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if("BIT STRING"!==t)return this.error="BIT STRING may consists of BIT STRINGs only",-1;const n=e.valueBlock;if(this.unusedBits>0&&n.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=n.unusedBits}return i}const r=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,r,t,n))return-1;const s=r.subarray(t,t+n);if(this.unusedBits=s[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){const e=s.subarray(1);try{if(e.byteLength){const t=VF(e,0,e.byteLength);-1!==t.offset&&t.offset===n-1&&(this.value=[t.result])}}catch(o){}}return this.valueHexView=s.subarray(1),this.blockLength=s.length,t+n}toBER(e,t){if(this.isConstructed)return jF.prototype.toBER.call(this,e,t);if(e)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return AF;const n=new Uint8Array(this.valueHexView.length+1);return n[0]=this.unusedBits,n.set(this.valueHexView,1),n.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}KF.NAME="BitStringValueBlock";class QF extends IF{constructor({idBlock:e={},lenBlock:t={},...n}={}){var i,r;null!==(i=n.isConstructed)&&void 0!==i||(n.isConstructed=!!(null===(r=n.value)||void 0===r?void 0:r.length)),super({idBlock:{isConstructed:n.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!n.isIndefiniteForm},...n},KF),this.idBlock.tagClass=1,this.idBlock.tagNumber=3}fromBER(e,t,n){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,super.fromBER(e,t,n)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return HF.prototype.onAsciiEncoding.call(this);{const e=[],t=this.valueBlock.valueHexView;for(const i of t)e.push(i.toString(2).padStart(8,"0"));const n=e.join("");return`${this.constructor.NAME} : ${n.substring(0,n.length-this.valueBlock.unusedBits)}`}}}function XF(e,t){const n=new Uint8Array([0]),i=new Uint8Array(e),r=new Uint8Array(t);let s=i.slice(0);const o=s.length-1,a=r.slice(0),l=a.length-1;let c=0,u=0;for(let d=l<o?o:l;d>=0;d--,u++){switch(!0){case u<a.length:c=s[o-u]+a[l-u]+n[0];break;default:c=s[o-u]+n[0]}switch(n[0]=c/10,!0){case u>=s.length:s=fF(new Uint8Array([c%10]),s);break;default:s[o-u]=c%10}}return n[0]>0&&(s=fF(n,s)),s}function JF(e){if(e>=xF.length)for(let t=xF.length;t<=e;t++){const e=new Uint8Array([0]);let n=xF[t-1].slice(0);for(let t=n.length-1;t>=0;t--){const i=new Uint8Array([(n[t]<<1)+e[0]]);e[0]=i[0]/10,n[t]=i[0]%10}e[0]>0&&(n=fF(e,n)),xF.push(n)}return xF[e]}function eN(e,t){let n=0;const i=new Uint8Array(e),r=new Uint8Array(t),s=i.slice(0),o=s.length-1,a=r.slice(0),l=a.length-1;let c,u=0;for(let d=l;d>=0;d--,u++)switch(c=s[o-u]-a[l-u]-n,!0){case c<0:n=1,s[o-u]=c+10;break;default:n=0,s[o-u]=c}if(n>0)for(let d=o-l+1;d>=0;d--,u++){if(c=s[o-u]-n,!(c<0)){n=0,s[o-u]=c;break}n=1,s[o-u]=c+10}return s.slice()}OF.BitString=QF,QF.NAME="BIT STRING";class tN extends(SF(EF)){constructor({value:e,...t}={}){super(t),this._valueDec=0,t.valueHex&&this.setValueHex(),void 0!==e&&(this.valueDec=e)}setValueHex(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=mF.call(this)))}set valueDec(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function(e){const t=e<0?-1*e:e;let n=128;for(let i=1;i<8;i++){if(t<=n){if(e<0){const e=gF(n-t,8,i);return new Uint8Array(e)[0]|=128,e}let r=gF(t,8,i),s=new Uint8Array(r);if(128&s[0]){const e=r.slice(0),t=new Uint8Array(e);r=new ArrayBuffer(r.byteLength+1),s=new Uint8Array(r);for(let n=0;n<e.byteLength;n++)s[n+1]=t[n];s[0]=0}return r}n*=Math.pow(2,8)}return new ArrayBuffer(0)}(e))}get valueDec(){return this._valueDec}fromDER(e,t,n,i=0){const r=this.fromBER(e,t,n);if(-1===r)return r;const s=this.valueHexView;return 0===s[0]&&0!=(128&s[1])?this.valueHexView=s.subarray(1):0!==i&&s.length<i&&(i-s.length>1&&(i=s.length+1),this.valueHexView=s.subarray(i-s.length)),r}toDER(e=!1){const t=this.valueHexView;switch(!0){case 0!=(128&t[0]):{const e=new Uint8Array(this.valueHexView.length+1);e[0]=0,e.set(t,1),this.valueHexView=e}break;case 0===t[0]&&0==(128&t[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}fromBER(e,t,n){const i=super.fromBER(e,t,n);return-1===i||this.setValueHex(),i}toBER(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){const e=8*this.valueHexView.length-1;let t,n=new Uint8Array(8*this.valueHexView.length/3),i=0;const r=this.valueHexView;let s="",o=!1;for(let a=r.byteLength-1;a>=0;a--){t=r[a];for(let r=0;r<8;r++){if(1==(1&t))switch(i){case e:n=eN(JF(i),n),s="-";break;default:n=XF(n,JF(i))}i++,t>>=1}}for(let a=0;a<n.length;a++)n[a]&&(o=!0),o&&(s+="0123456789".charAt(n[a]));return!1===o&&(s+="0123456789".charAt(0)),s}}RF=tN,tN.NAME="IntegerValueBlock",Object.defineProperty(RF.prototype,"valueHex",{set:function(e){this.valueHexView=new Uint8Array(e),this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}});class nN extends IF{constructor(e={}){super(e,tN),this.idBlock.tagClass=1,this.idBlock.tagNumber=2}toBigInt(){return bF(),BigInt(this.valueBlock.toString())}static fromBigInt(e){bF();const t=BigInt(e),n=new _F,i=t.toString(16).replace(/^-/,""),r=new Uint8Array(hF.Convert.FromHex(i));if(t<0){const e=new Uint8Array(r.length+(128&r[0]?1:0));e[0]|=128;const i=BigInt("0x"+hF.Convert.ToHex(e)),s=hF.BufferSourceConverter.toUint8Array(hF.Convert.FromHex((i+t).toString(16)));s[0]|=128,n.write(s)}else 128&r[0]&&n.write(new Uint8Array([0])),n.write(r);return new nN({valueHex:n.final()})}convertToDER(){const e=new nN({valueHex:this.valueBlock.valueHexView});return e.valueBlock.toDER(),e}convertFromDER(){return new nN({valueHex:0===this.valueBlock.valueHexView[0]?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()}`}}OF.Integer=nN,nN.NAME="INTEGER";class iN extends nN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=10}}OF.Enumerated=iN,iN.NAME="ENUMERATED";class rN extends(SF(EF)){constructor({valueDec:e=-1,isFirstSid:t=!1,...n}={}){super(n),this.valueDec=e,this.isFirstSid=t}fromBER(e,t,n){if(!n)return t;const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(let o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);const s=new Uint8Array(this.blockLength);for(let o=0;o<this.blockLength;o++)s[o]=this.valueHexView[o];return this.valueHexView=s,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=pF(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}set valueBigInt(e){bF();let t=BigInt(e).toString(2);for(;t.length%7;)t="0"+t;const n=new Uint8Array(t.length/7);for(let i=0;i<n.length;i++)n[i]=parseInt(t.slice(7*i,7*i+7),2)+(i+1<n.length?128:0);this.fromBER(n.buffer,0,n.length)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);const t=this.valueHexView,n=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)n[e]=128|t[e];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}const t=gF(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",AF;const n=new Uint8Array(t.byteLength);if(!e){const e=new Uint8Array(t),i=t.byteLength-1;for(let t=0;t<i;t++)n[t]=128|e[t];n[i]=e[i]}return n}toString(){let e="";if(this.isHexOnly)e=hF.Convert.ToHex(this.valueHexView);else if(this.isFirstSid){let t=this.valueDec;this.valueDec<=39?e="0.":this.valueDec<=79?(e="1.",t-=40):(e="2.",t-=80),e+=t.toString()}else e=this.valueDec.toString();return e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec,isFirstSid:this.isFirstSid}}}rN.NAME="sidBlock";class sN extends EF{constructor({value:e="",...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,n){let i=t;for(;n>0;){const t=new rN;if(i=t.fromBER(e,i,n),-1===i)return this.blockLength=0,this.error=t.error,i;0===this.value.length&&(t.isFirstSid=!0),this.blockLength+=t.blockLength,n-=t.blockLength,this.value.push(t)}return i}toBER(e){const t=[];for(let n=0;n<this.value.length;n++){const i=this.value[n].toBER(e);if(0===i.byteLength)return this.error=this.value[n].error,AF;t.push(i)}return yF(t)}fromString(e){this.value=[];let t=0,n=0,i="",r=!1;do{if(n=e.indexOf(".",t),i=-1===n?e.substring(t):e.substring(t,n),t=n+1,r){const e=this.value[0];let t=0;switch(e.valueDec){case 0:break;case 1:t=40;break;case 2:t=80;break;default:return void(this.value=[])}const n=parseInt(i,10);if(isNaN(n))return;e.valueDec=n+t,r=!1}else{const e=new rN;if(i>Number.MAX_SAFE_INTEGER){bF();const t=BigInt(i);e.valueBigInt=t}else if(e.valueDec=parseInt(i,10),isNaN(e.valueDec))return;this.value.length||(e.isFirstSid=!0,r=!0),this.value.push(e)}}while(-1!==n)}toString(){let e="",t=!1;for(let n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;let i=this.value[n].toString();0!==n&&(e+="."),t?(i=`{${i}}`,this.value[n].isFirstSid?e=`2.{${i} - 80}`:e+=i):e+=i}return e}toJSON(){const e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}sN.NAME="ObjectIdentifierValueBlock";class oN extends IF{constructor(e={}){super(e,sN),this.idBlock.tagClass=1,this.idBlock.tagNumber=6}getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}OF.ObjectIdentifier=oN,oN.NAME="OBJECT IDENTIFIER";class aN extends(SF(kF)){constructor({valueDec:e=0,...t}={}){super(t),this.valueDec=e}fromBER(e,t,n){if(0===n)return t;const i=hF.BufferSourceConverter.toUint8Array(e);if(!wF(this,i,t,n))return-1;const r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(let o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);const s=new Uint8Array(this.blockLength);for(let o=0;o<this.blockLength;o++)s[o]=this.valueHexView[o];return this.valueHexView=s,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=pF(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);const t=this.valueHexView,n=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)n[e]=128|t[e];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}const t=gF(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",AF;const n=new Uint8Array(t.byteLength);if(!e){const e=new Uint8Array(t),i=t.byteLength-1;for(let t=0;t<i;t++)n[t]=128|e[t];n[i]=e[i]}return n.buffer}toString(){let e="";return e=this.isHexOnly?hF.Convert.ToHex(this.valueHexView):this.valueDec.toString(),e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}}aN.NAME="relativeSidBlock";class lN extends EF{constructor({value:e="",...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,n){let i=t;for(;n>0;){const t=new aN;if(i=t.fromBER(e,i,n),-1===i)return this.blockLength=0,this.error=t.error,i;this.blockLength+=t.blockLength,n-=t.blockLength,this.value.push(t)}return i}toBER(e,t){const n=[];for(let i=0;i<this.value.length;i++){const t=this.value[i].toBER(e);if(0===t.byteLength)return this.error=this.value[i].error,AF;n.push(t)}return yF(n)}fromString(e){this.value=[];let t=0,n=0,i="";do{n=e.indexOf(".",t),i=-1===n?e.substring(t):e.substring(t,n),t=n+1;const r=new aN;if(r.valueDec=parseInt(i,10),isNaN(r.valueDec))return!0;this.value.push(r)}while(-1!==n);return!0}toString(){let e="",t=!1;for(let n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;let i=this.value[n].toString();0!==n&&(e+="."),t?(i=`{${i}}`,e+=i):e+=i}return e}toJSON(){const e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}lN.NAME="RelativeObjectIdentifierValueBlock";class cN extends IF{constructor(e={}){super(e,lN),this.idBlock.tagClass=1,this.idBlock.tagNumber=13}getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}OF.RelativeObjectIdentifier=cN,cN.NAME="RelativeObjectIdentifier";class uN extends HF{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=16}}OF.Sequence=uN,uN.NAME="SEQUENCE";class dN extends HF{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=17}}OF.Set=dN,dN.NAME="SET";class hN extends(SF(EF)){constructor({...e}={}){super(e),this.isHexOnly=!0,this.value=""}toJSON(){return{...super.toJSON(),value:this.value}}}hN.NAME="StringValueBlock";class pN extends hN{}pN.NAME="SimpleStringValueBlock";class gN extends MF{constructor({...e}={}){super(e,pN)}fromBuffer(e){this.valueBlock.value=String.fromCharCode.apply(null,hF.BufferSourceConverter.toUint8Array(e))}fromString(e){const t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e.charCodeAt(i);this.valueBlock.value=e}}gN.NAME="SIMPLE STRING";class fN extends gN{fromBuffer(e){this.valueBlock.valueHexView=hF.BufferSourceConverter.toUint8Array(e);try{this.valueBlock.value=hF.Convert.ToUtf8String(e)}catch(t){this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`),this.valueBlock.value=hF.Convert.ToBinary(e)}}fromString(e){this.valueBlock.valueHexView=new Uint8Array(hF.Convert.FromUtf8String(e)),this.valueBlock.value=e}}fN.NAME="Utf8StringValueBlock";class mN extends fN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=12}}OF.Utf8String=mN,mN.NAME="UTF8String";class vN extends gN{fromBuffer(e){this.valueBlock.value=hF.Convert.ToUtf16String(e),this.valueBlock.valueHexView=hF.BufferSourceConverter.toUint8Array(e)}fromString(e){this.valueBlock.value=e,this.valueBlock.valueHexView=new Uint8Array(hF.Convert.FromUtf16String(e))}}vN.NAME="BmpStringValueBlock";class bN extends vN{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=30}}OF.BmpString=bN,bN.NAME="BMPString";class yN extends gN{fromBuffer(e){const t=ArrayBuffer.isView(e)?e.slice().buffer:e.slice(0),n=new Uint8Array(t);for(let i=0;i<n.length;i+=4)n[i]=n[i+3],n[i+1]=n[i+2],n[i+2]=0,n[i+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(t))}fromString(e){const t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(4*t);for(let i=0;i<t;i++){const t=gF(e.charCodeAt(i),8),r=new Uint8Array(t);if(r.length>4)continue;const s=4-r.length;for(let e=r.length-1;e>=0;e--)n[4*i+e+s]=r[e]}this.valueBlock.value=e}}yN.NAME="UniversalStringValueBlock";class wN extends yN{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=28}}OF.UniversalString=wN,wN.NAME="UniversalString";class _N extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=18}}OF.NumericString=_N,_N.NAME="NumericString";class xN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=19}}OF.PrintableString=xN,xN.NAME="PrintableString";class AN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=20}}OF.TeletexString=AN,AN.NAME="TeletexString";class CN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=21}}OF.VideotexString=CN,CN.NAME="VideotexString";class SN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=22}}OF.IA5String=SN,SN.NAME="IA5String";class kN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=25}}OF.GraphicString=kN,kN.NAME="GraphicString";class EN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=26}}OF.VisibleString=EN,EN.NAME="VisibleString";class PN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=27}}OF.GeneralString=PN,PN.NAME="GeneralString";class DN extends gN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=29}}OF.CharacterString=DN,DN.NAME="CharacterString";class ON extends EN{constructor({value:e,valueDate:t,...n}={}){if(super(n),this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,e){this.fromString(e),this.valueBlock.valueHexView=new Uint8Array(e.length);for(let t=0;t<e.length;t++)this.valueBlock.valueHexView[t]=e.charCodeAt(t)}t&&(this.fromDate(t),this.valueBlock.valueHexView=new Uint8Array(this.toBuffer())),this.idBlock.tagClass=1,this.idBlock.tagNumber=23}fromBuffer(e){this.fromString(String.fromCharCode.apply(null,hF.BufferSourceConverter.toUint8Array(e)))}toBuffer(){const e=this.toString(),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return t}fromDate(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))}fromString(e){const t=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi.exec(e);if(null===t)return void(this.error="Wrong input string for conversion");const n=parseInt(t[1],10);this.year=n>=50?1900+n:2e3+n,this.month=parseInt(t[2],10),this.day=parseInt(t[3],10),this.hour=parseInt(t[4],10),this.minute=parseInt(t[5],10),this.second=parseInt(t[6],10)}toString(e="iso"){if("iso"===e){const e=new Array(7);return e[0]=vF(this.year<2e3?this.year-1900:this.year-2e3,2),e[1]=vF(this.month,2),e[2]=vF(this.day,2),e[3]=vF(this.hour,2),e[4]=vF(this.minute,2),e[5]=vF(this.second,2),e[6]="Z",e.join("")}return super.toString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}OF.UTCTime=ON,ON.NAME="UTCTime";class IN extends ON{constructor(e={}){var t;super(e),null!==(t=this.millisecond)&&void 0!==t||(this.millisecond=0),this.idBlock.tagClass=1,this.idBlock.tagNumber=24}fromDate(e){super.fromDate(e),this.millisecond=e.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(e){let t,n=!1,i="",r="",s=0,o=0,a=0;if("Z"===e[e.length-1])i=e.substring(0,e.length-1),n=!0;else{const t=new Number(e[e.length-1]);if(isNaN(t.valueOf()))throw new Error("Wrong input string for conversion");i=e}if(n){if(-1!==i.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==i.indexOf("-"))throw new Error("Wrong input string for conversion")}else{let e=1,t=i.indexOf("+"),n="";if(-1===t&&(t=i.indexOf("-"),e=-1),-1!==t){if(n=i.substring(t+1),i=i.substring(0,t),2!==n.length&&4!==n.length)throw new Error("Wrong input string for conversion");let r=parseInt(n.substring(0,2),10);if(isNaN(r.valueOf()))throw new Error("Wrong input string for conversion");if(o=e*r,4===n.length){if(r=parseInt(n.substring(2,4),10),isNaN(r.valueOf()))throw new Error("Wrong input string for conversion");a=e*r}}}let l=i.indexOf(".");if(-1===l&&(l=i.indexOf(",")),-1!==l){const e=new Number("0"+i.substring(l));if(isNaN(e.valueOf()))throw new Error("Wrong input string for conversion");s=e.valueOf(),r=i.substring(0,l)}else r=i;switch(!0){case 8===r.length:if(t=/(\d{4})(\d{2})(\d{2})/gi,-1!==l)throw new Error("Wrong input string for conversion");break;case 10===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==l){let e=60*s;this.minute=Math.floor(e),e=60*(e-this.minute),this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 12===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==l){let e=60*s;this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 14===r.length:t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==l&&(this.millisecond=Math.floor(1e3*s));break;default:throw new Error("Wrong input string for conversion")}const c=t.exec(r);if(null===c)throw new Error("Wrong input string for conversion");for(let u=1;u<c.length;u++)switch(u){case 1:this.year=parseInt(c[u],10);break;case 2:this.month=parseInt(c[u],10);break;case 3:this.day=parseInt(c[u],10);break;case 4:this.hour=parseInt(c[u],10)+o;break;case 5:this.minute=parseInt(c[u],10)+a;break;case 6:this.second=parseInt(c[u],10);break;default:throw new Error("Wrong input string for conversion")}if(!1===n){const e=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=e.getUTCFullYear(),this.month=e.getUTCMonth(),this.day=e.getUTCDay(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds(),this.millisecond=e.getUTCMilliseconds()}}toString(e="iso"){if("iso"===e){const e=[];return e.push(vF(this.year,4)),e.push(vF(this.month,2)),e.push(vF(this.day,2)),e.push(vF(this.hour,2)),e.push(vF(this.minute,2)),e.push(vF(this.second,2)),0!==this.millisecond&&(e.push("."),e.push(vF(this.millisecond,3))),e.push("Z"),e.join("")}return super.toString(e)}toJSON(){return{...super.toJSON(),millisecond:this.millisecond}}}OF.GeneralizedTime=IN,IN.NAME="GeneralizedTime";class TN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=31}}OF.DATE=TN,TN.NAME="DATE";class MN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=32}}OF.TimeOfDay=MN,MN.NAME="TimeOfDay";class BN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=33}}OF.DateTime=BN,BN.NAME="DateTime";class RN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=34}}OF.Duration=RN,RN.NAME="Duration";class LN extends mN{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=14}}OF.TIME=LN,LN.NAME="TIME";class FN{constructor({name:e="",optional:t=!1}={}){this.name=e,this.optional=t}}class NN extends FN{constructor({value:e=[],...t}={}){super(t),this.value=e}}class VN extends FN{constructor({value:e=new FN,local:t=!1,...n}={}){super(n),this.value=e,this.local=t}}class zN{constructor({data:e=CF}={}){this.dataView=hF.BufferSourceConverter.toUint8Array(e)}get data(){return this.dataView.slice().buffer}set data(e){this.dataView=hF.BufferSourceConverter.toUint8Array(e)}fromBER(e,t,n){const i=t+n;return this.dataView=hF.BufferSourceConverter.toUint8Array(e).subarray(t,i),i}toBER(e){return this.dataView.slice().buffer}}function jN(e,t,n){if(n instanceof NN){for(let i=0;i<n.value.length;i++)if(jN(e,t,n.value[i]).verified)return{verified:!0,result:e};{const e={verified:!1,result:{error:"Wrong values for Choice type"}};return n.hasOwnProperty("name")&&(e.name=n.name),e}}if(n instanceof FN)return n.hasOwnProperty("name")&&(e[n.name]=t),{verified:!0,result:e};if(e instanceof Object==0)return{verified:!1,result:{error:"Wrong root object"}};if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 data"}};if(n instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("idBlock"in n==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("fromBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("toBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};const i=n.idBlock.toBER(!1);if(0===i.byteLength)return{verified:!1,result:{error:"Error encoding idBlock for ASN.1 schema"}};if(-1===n.idBlock.fromBER(i,0,i.byteLength))return{verified:!1,result:{error:"Error decoding idBlock for ASN.1 schema"}};if(!1===n.idBlock.hasOwnProperty("tagClass"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagClass!==t.idBlock.tagClass)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("tagNumber"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagNumber!==t.idBlock.tagNumber)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("isConstructed"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isConstructed!==t.idBlock.isConstructed)return{verified:!1,result:e};if(!("isHexOnly"in n.idBlock))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isHexOnly!==t.idBlock.isHexOnly)return{verified:!1,result:e};if(n.idBlock.isHexOnly){if("valueHexView"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};const i=n.idBlock.valueHexView,r=t.idBlock.valueHexView;if(i.length!==r.length)return{verified:!1,result:e};for(let t=0;t<i.length;t++)if(i[t]!==r[1])return{verified:!1,result:e}}if(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(e[n.name]=t)),n instanceof OF.Constructed){let i=0,r={verified:!1,result:{error:"Unknown error"}},s=n.valueBlock.value.length;if(s>0&&n.valueBlock.value[0]instanceof VN&&(s=t.valueBlock.value.length),0===s)return{verified:!0,result:e};if(0===t.valueBlock.value.length&&0!==n.valueBlock.value.length){let t=!0;for(let e=0;e<n.valueBlock.value.length;e++)t=t&&(n.valueBlock.value[e].optional||!1);return t?{verified:!0,result:e}:(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),e.error="Inconsistent object length",{verified:!1,result:e})}for(let o=0;o<s;o++)if(o-i>=t.valueBlock.value.length){if(!1===n.valueBlock.value[o].optional){const t={verified:!1,result:e};return e.error="Inconsistent length between ASN.1 data and schema",n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],t.name=n.name)),t}}else if(n.valueBlock.value[0]instanceof VN){if(r=jN(e,t.valueBlock.value[o],n.valueBlock.value[0].value),!1===r.verified){if(!n.valueBlock.value[0].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),r;i++}if("name"in n.valueBlock.value[0]&&n.valueBlock.value[0].name.length>0){let i={};i="local"in n.valueBlock.value[0]&&n.valueBlock.value[0].local?t:e,void 0===i[n.valueBlock.value[0].name]&&(i[n.valueBlock.value[0].name]=[]),i[n.valueBlock.value[0].name].push(t.valueBlock.value[o])}}else if(r=jN(e,t.valueBlock.value[o-i],n.valueBlock.value[o]),!1===r.verified){if(!n.valueBlock.value[o].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),r;i++}if(!1===r.verified){const t={verified:!1,result:e};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],t.name=n.name)),t}return{verified:!0,result:e}}if(n.primitiveSchema&&"valueHexView"in t.valueBlock){const i=VF(t.valueBlock.valueHexView);if(-1===i.offset){const t={verified:!1,result:i.result};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],t.name=n.name)),t}return jN(e,i.result,n.primitiveSchema)}return{verified:!0,result:e}}function HN(e,t){if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};const n=VF(hF.BufferSourceConverter.toUint8Array(e));return-1===n.offset?{verified:!1,result:n.result}:jN(n.result,n.result,t)}!function(e){e[e.Sequence=0]="Sequence",e[e.Set=1]="Set",e[e.Choice=2]="Choice"}(LF||(LF={})),function(e){e[e.Any=1]="Any",e[e.Boolean=2]="Boolean",e[e.OctetString=3]="OctetString",e[e.BitString=4]="BitString",e[e.Integer=5]="Integer",e[e.Enumerated=6]="Enumerated",e[e.ObjectIdentifier=7]="ObjectIdentifier",e[e.Utf8String=8]="Utf8String",e[e.BmpString=9]="BmpString",e[e.UniversalString=10]="UniversalString",e[e.NumericString=11]="NumericString",e[e.PrintableString=12]="PrintableString",e[e.TeletexString=13]="TeletexString",e[e.VideotexString=14]="VideotexString",e[e.IA5String=15]="IA5String",e[e.GraphicString=16]="GraphicString",e[e.VisibleString=17]="VisibleString",e[e.GeneralString=18]="GeneralString",e[e.CharacterString=19]="CharacterString",e[e.UTCTime=20]="UTCTime",e[e.GeneralizedTime=21]="GeneralizedTime",e[e.DATE=22]="DATE",e[e.TimeOfDay=23]="TimeOfDay",e[e.DateTime=24]="DateTime",e[e.Duration=25]="Duration",e[e.TIME=26]="TIME",e[e.Null=27]="Null"}(FF||(FF={}));class UN{constructor(e,t=0){if(this.unusedBits=0,this.value=new ArrayBuffer(0),e)if("number"==typeof e)this.fromNumber(e);else{if(!hF.BufferSourceConverter.isBufferSource(e))throw TypeError("Unsupported type of 'params' argument for BitString");this.unusedBits=t,this.value=hF.BufferSourceConverter.toArrayBuffer(e)}}fromASN(e){if(!(e instanceof QF))throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");return this.unusedBits=e.valueBlock.unusedBits,this.value=e.valueBlock.valueHex,this}toASN(){return new QF({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(e){return new QF({name:e})}toNumber(){let e="";const t=new Uint8Array(this.value);for(const n of t)e+=n.toString(2).padStart(8,"0");return e=e.split("").reverse().join(""),this.unusedBits&&(e=e.slice(this.unusedBits).padStart(this.unusedBits,"0")),parseInt(e,2)}fromNumber(e){let t=e.toString(2);const n=t.length+7>>3;this.unusedBits=(n<<3)-t.length;const i=new Uint8Array(n);t=t.padStart(n<<3,"0").split("").reverse().join("");let r=0;for(;r<n;)i[r]=parseInt(t.slice(r<<3,8+(r<<3)),2),r++;this.value=i.buffer}}class WN{constructor(e){this.buffer="number"==typeof e?new ArrayBuffer(e):hF.BufferSourceConverter.isBufferSource(e)?hF.BufferSourceConverter.toArrayBuffer(e):Array.isArray(e)?new Uint8Array(e):new ArrayBuffer(0)}get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}fromASN(e){if(!(e instanceof ZF))throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");return this.buffer=e.valueBlock.valueHex,this}toASN(){return new ZF({valueHex:this.buffer})}toSchema(e){return new ZF({name:e})}}const $N={fromASN:e=>e instanceof $F?null:e.valueBeforeDecodeView,toASN:e=>{if(null===e)return new $F;const t=zF(e);if(t.result.error)throw new Error(t.result.error);return t.result}},GN={fromASN:e=>e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec,toASN:e=>new nN({value:+e})},qN={fromASN:e=>e.valueBlock.valueDec,toASN:e=>new iN({value:e})},YN={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new nN({valueHex:e})},ZN={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new QF({valueHex:e})},KN={fromASN:e=>e.valueBlock.toString(),toASN:e=>new oN({value:e})},QN={fromASN:e=>e.valueBlock.value,toASN:e=>new qF({value:e})},XN={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new ZF({valueHex:e})},JN={fromASN:e=>new WN(e.getValue()),toASN:e=>e.toASN()};function eV(e){return{fromASN:e=>e.valueBlock.value,toASN:t=>new e({value:t})}}const tV=eV(mN),nV=eV(bN),iV=eV(wN),rV=eV(_N),sV=eV(xN),oV=eV(AN),aV=eV(CN),lV=eV(SN),cV=eV(kN),uV=eV(EN),dV=eV(PN),hV=eV(DN),pV={fromASN:e=>e.toDate(),toASN:e=>new ON({valueDate:e})},gV={fromASN:e=>e.toDate(),toASN:e=>new IN({valueDate:e})},fV={fromASN:()=>null,toASN:()=>new $F};function mV(e){switch(e){case FF.Any:return $N;case FF.BitString:return ZN;case FF.BmpString:return nV;case FF.Boolean:return QN;case FF.CharacterString:return hV;case FF.Enumerated:return qN;case FF.GeneralString:return dV;case FF.GeneralizedTime:return gV;case FF.GraphicString:return cV;case FF.IA5String:return lV;case FF.Integer:return GN;case FF.Null:return fV;case FF.NumericString:return rV;case FF.ObjectIdentifier:return KN;case FF.OctetString:return XN;case FF.PrintableString:return sV;case FF.TeletexString:return oV;case FF.UTCTime:return pV;case FF.UniversalString:return iV;case FF.Utf8String:return tV;case FF.VideotexString:return aV;case FF.VisibleString:return uV;default:return null}}function vV(e){return"function"==typeof e&&e.prototype?!(!e.prototype.toASN||!e.prototype.fromASN)||vV(e.prototype):!!(e&&"object"==typeof e&&"toASN"in e&&"fromASN"in e)}function bV(e){var t;if(e){const n=Object.getPrototypeOf(e);return(null===(t=null==n?void 0:n.prototype)||void 0===t?void 0:t.constructor)===Array||bV(n)}return!1}function yV(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;const n=new Uint8Array(e),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}const wV=new class{constructor(){this.items=new WeakMap}has(e){return this.items.has(e)}get(e,t=!1){const n=this.items.get(e);if(!n)throw new Error(`Cannot get schema for '${e.prototype.constructor.name}' target`);if(t&&!n.schema)throw new Error(`Schema '${e.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`);return n}cache(e){const t=this.get(e);t.schema||(t.schema=this.create(e,!0))}createDefault(e){const t={type:LF.Sequence,items:{}},n=this.findParentSchema(e);return n&&(Object.assign(t,n),t.items=Object.assign({},t.items,n.items)),t}create(e,t){const n=this.items.get(e)||this.createDefault(e),r=[];for(const s in n.items){const e=n.items[s],o=t?s:"";let a;if("number"==typeof e.type){const t=FF[e.type],n=i[t];if(!n)throw new Error(`Cannot get ASN1 class by name '${t}'`);a=new n({name:o})}else vV(e.type)?a=(new e.type).toSchema(o):e.optional?this.get(e.type).type===LF.Choice?a=new FN({name:o}):(a=this.create(e.type,!1),a.name=o):a=new FN({name:o});const l=!!e.optional||void 0!==e.defaultValue;if(e.repeated&&(a.name="",a=new("set"===e.repeated?dN:uN)({name:"",value:[new VN({name:o,value:a})]})),null!=e.context)if(e.implicit)if("number"==typeof e.type||vV(e.type))r.push(new(e.repeated?HF:NF)({name:o,optional:l,idBlock:{tagClass:3,tagNumber:e.context}}));else{this.cache(e.type);const t=!!e.repeated;let n=t?a:this.get(e.type,!0).schema;n="valueBlock"in n?n.valueBlock.value:n.value,r.push(new HF({name:t?"":o,optional:l,idBlock:{tagClass:3,tagNumber:e.context},value:n}))}else r.push(new HF({optional:l,idBlock:{tagClass:3,tagNumber:e.context},value:[a]}));else a.optional=l,r.push(a)}switch(n.type){case LF.Sequence:return new uN({value:r,name:""});case LF.Set:return new dN({value:r,name:""});case LF.Choice:return new NN({value:r,name:""});default:throw new Error("Unsupported ASN1 type in use")}}set(e,t){return this.items.set(e,t),this}findParentSchema(e){const t=Object.getPrototypeOf(e);return t?this.items.get(t)||this.findParentSchema(t):null}},_V=e=>t=>{let n;wV.has(t)?n=wV.get(t):(n=wV.createDefault(t),wV.set(t,n)),Object.assign(n,e)},xV=e=>(t,n)=>{let i;wV.has(t.constructor)?i=wV.get(t.constructor):(i=wV.createDefault(t.constructor),wV.set(t.constructor,i));const r=Object.assign({},e);if("number"==typeof r.type&&!r.converter){const i=mV(e.type);if(!i)throw new Error(`Cannot get default converter for property '${n}' of ${t.constructor.name}`);r.converter=i}i.items[n]=r};class AV extends Error{constructor(){super(...arguments),this.schemas=[]}}class CV{static parse(e,t){const n=zF(e);if(n.result.error)throw new Error(n.result.error);return this.fromASN(n.result,t)}static fromASN(e,t){var n;try{if(vV(t))return(new t).fromASN(e);const r=wV.get(t);wV.cache(t);let s=r.schema;if(e.constructor===HF&&r.type!==LF.Choice){s=new HF({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:r.schema.valueBlock.value});for(const t in r.items)delete e[t]}const o=jN({},e,s);if(!o.verified)throw new AV(`Data does not match to ${t.name} ASN1 schema. ${o.result.error}`);const a=new t;if(bV(t)){if(!("value"in e.valueBlock)||!Array.isArray(e.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");const n=r.itemType;if("number"==typeof n){const i=mV(n);if(!i)throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);return t.from(e.valueBlock.value,e=>i.fromASN(e))}return t.from(e.valueBlock.value,e=>this.fromASN(e,n))}for(const e in r.items){const t=o.result[e];if(!t)continue;const s=r.items[e],l=s.type;if("number"==typeof l||vV(l)){const r=null!==(n=s.converter)&&void 0!==n?n:vV(l)?new l:null;if(!r)throw new Error("Converter is empty");if(s.repeated)if(s.implicit){const n=new("sequence"===s.repeated?uN:dN);n.valueBlock=t.valueBlock;const i=zF(n.toBER(!1));if(-1===i.offset)throw new Error("Cannot parse the child item. "+i.result.error);if(!("value"in i.result.valueBlock)||!Array.isArray(i.result.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");a[e]=Array.from(i.result.valueBlock.value,e=>r.fromASN(e))}else a[e]=Array.from(t,e=>r.fromASN(e));else{let n=t;if(s.implicit){let e;if(vV(l))e=(new l).toSchema("");else{const t=FF[l],n=i[t];if(!n)throw new Error(`Cannot get '${t}' class from asn1js module`);e=new n}e.valueBlock=n.valueBlock,n=zF(e.toBER(!1)).result}a[e]=r.fromASN(n)}}else if(s.repeated){if(!Array.isArray(t))throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");a[e]=Array.from(t,e=>this.fromASN(e,l))}else a[e]=this.fromASN(t,l)}return a}catch(r){throw r instanceof AV&&r.schemas.push(t.name),r}}}class SV{static serialize(e){return e instanceof IF?e.toBER(!1):this.toASN(e).toBER(!1)}static toASN(e){if(e&&"object"==typeof e&&vV(e))return e.toASN();if(!e||"object"!=typeof e)throw new TypeError("Parameter 1 should be type of Object.");const t=e.constructor,n=wV.get(t);wV.cache(t);let i,r=[];if(n.itemType){if(!Array.isArray(e))throw new TypeError("Parameter 1 should be type of Array.");if("number"==typeof n.itemType){const i=mV(n.itemType);if(!i)throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);r=e.map(e=>i.toASN(e))}else r=e.map(e=>this.toAsnItem({type:n.itemType},"[]",t,e))}else for(const s in n.items){const i=n.items[s],o=e[s];if(void 0===o||i.defaultValue===o||"object"==typeof i.defaultValue&&"object"==typeof o&&yV(this.serialize(i.defaultValue),this.serialize(o)))continue;const a=SV.toAsnItem(i,s,t,o);if("number"==typeof i.context)if(i.implicit)if(i.repeated||"number"!=typeof i.type&&!vV(i.type))r.push(new HF({optional:i.optional,idBlock:{tagClass:3,tagNumber:i.context},value:a.valueBlock.value}));else{const e={};e.valueHex=a instanceof $F?a.valueBeforeDecodeView:a.valueBlock.toBER(),r.push(new NF({optional:i.optional,idBlock:{tagClass:3,tagNumber:i.context},...e}))}else r.push(new HF({optional:i.optional,idBlock:{tagClass:3,tagNumber:i.context},value:[a]}));else i.repeated?r=r.concat(a):r.push(a)}switch(n.type){case LF.Sequence:i=new uN({value:r});break;case LF.Set:i=new dN({value:r});break;case LF.Choice:if(!r[0])throw new Error(`Schema '${t.name}' has wrong data. Choice cannot be empty.`);i=r[0]}return i}static toAsnItem(e,t,n,i){let r;if("number"==typeof e.type){const s=e.converter;if(!s)throw new Error(`Property '${t}' doesn't have converter for type ${FF[e.type]} in schema '${n.name}'`);if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");const t=Array.from(i,e=>s.toASN(e));r=new("sequence"===e.repeated?uN:dN)({value:t})}else r=s.toASN(i)}else if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");const t=Array.from(i,e=>this.toASN(e));r=new("sequence"===e.repeated?uN:dN)({value:t})}else r=this.toASN(i);return r}}class kV extends Array{constructor(e=[]){if("number"==typeof e)super(e);else{super();for(const t of e)this.push(t)}}}class EV{static serialize(e){return SV.serialize(e)}static parse(e,t){return CV.parse(e,t)}static toString(e){const t=zF(hF.BufferSourceConverter.isBufferSource(e)?hF.BufferSourceConverter.toArrayBuffer(e):EV.serialize(e));if(-1===t.offset)throw new Error("Cannot decode ASN.1 data. "+t.result.error);return t.result.toString()}}function PV(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}var DV,OV,IV,TV=n("3oEA");class MV{static decodeIP(e){if(64===e.length&&0===parseInt(e,16))return"::/0";if(16!==e.length)return e;const t=parseInt(e.slice(8),16).toString(2).split("").reduce((e,t)=>e+ +t,0);let n=e.slice(0,8).replace(/(.{2})/g,e=>parseInt(e,16)+".");return n=n.slice(0,-1),`${n}/${t}`}static toString(e){if(4===e.byteLength||16===e.byteLength){const t=new Uint8Array(e);return TV.fromByteArray(Array.from(t)).toString()}return this.decodeIP(hF.Convert.ToHex(e))}static fromString(e){const t=TV.parse(e);return new Uint8Array(t.toByteArray()).buffer}}let BV=class{constructor(e={}){Object.assign(this,e)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};PV([xV({type:FF.TeletexString})],BV.prototype,"teletexString",void 0),PV([xV({type:FF.PrintableString})],BV.prototype,"printableString",void 0),PV([xV({type:FF.UniversalString})],BV.prototype,"universalString",void 0),PV([xV({type:FF.Utf8String})],BV.prototype,"utf8String",void 0),PV([xV({type:FF.BmpString})],BV.prototype,"bmpString",void 0),BV=PV([_V({type:LF.Choice})],BV);let RV=class extends BV{constructor(e={}){super(e),Object.assign(this,e)}toString(){return this.ia5String||(this.anyValue?hF.Convert.ToHex(this.anyValue):super.toString())}};PV([xV({type:FF.IA5String})],RV.prototype,"ia5String",void 0),PV([xV({type:FF.Any})],RV.prototype,"anyValue",void 0),RV=PV([_V({type:LF.Choice})],RV);class LV{constructor(e={}){this.type="",this.value=new RV,Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],LV.prototype,"type",void 0),PV([xV({type:RV})],LV.prototype,"value",void 0);let FV=DV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,DV.prototype)}};FV=DV=PV([_V({type:LF.Set,itemType:LV})],FV);let NV=OV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,OV.prototype)}};NV=OV=PV([_V({type:LF.Sequence,itemType:FV})],NV);let VV=IV=class extends NV{constructor(e){super(e),Object.setPrototypeOf(this,IV.prototype)}};VV=IV=PV([_V({type:LF.Sequence})],VV);const zV={fromASN:e=>MV.toString(XN.fromASN(e)),toASN:e=>XN.toASN(MV.fromString(e))};class jV{constructor(e={}){this.typeId="",this.value=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],jV.prototype,"typeId",void 0),PV([xV({type:FF.Any,context:0})],jV.prototype,"value",void 0);class HV{constructor(e={}){this.partyName=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:BV,optional:!0,context:0,implicit:!0})],HV.prototype,"nameAssigner",void 0),PV([xV({type:BV,context:1,implicit:!0})],HV.prototype,"partyName",void 0);let UV=class{constructor(e={}){Object.assign(this,e)}};var WV;PV([xV({type:jV,context:0,implicit:!0})],UV.prototype,"otherName",void 0),PV([xV({type:FF.IA5String,context:1,implicit:!0})],UV.prototype,"rfc822Name",void 0),PV([xV({type:FF.IA5String,context:2,implicit:!0})],UV.prototype,"dNSName",void 0),PV([xV({type:FF.Any,context:3,implicit:!0})],UV.prototype,"x400Address",void 0),PV([xV({type:VV,context:4,implicit:!1})],UV.prototype,"directoryName",void 0),PV([xV({type:HV,context:5})],UV.prototype,"ediPartyName",void 0),PV([xV({type:FF.IA5String,context:6,implicit:!0})],UV.prototype,"uniformResourceIdentifier",void 0),PV([xV({type:FF.OctetString,context:7,implicit:!0,converter:zV})],UV.prototype,"iPAddress",void 0),PV([xV({type:FF.ObjectIdentifier,context:8,implicit:!0})],UV.prototype,"registeredID",void 0),UV=PV([_V({type:LF.Choice})],UV);class $V{constructor(e={}){this.accessMethod="",this.accessLocation=new UV,Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],$V.prototype,"accessMethod",void 0),PV([xV({type:UV})],$V.prototype,"accessLocation",void 0);let GV=WV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,WV.prototype)}};GV=WV=PV([_V({type:LF.Sequence,itemType:$V})],GV);class qV extends WN{}class YV{constructor(e={}){e&&Object.assign(this,e)}}PV([xV({type:qV,context:0,optional:!0,implicit:!0})],YV.prototype,"keyIdentifier",void 0),PV([xV({type:UV,context:1,optional:!0,implicit:!0,repeated:"sequence"})],YV.prototype,"authorityCertIssuer",void 0),PV([xV({type:FF.Integer,context:2,optional:!0,implicit:!0,converter:YN})],YV.prototype,"authorityCertSerialNumber",void 0);class ZV{constructor(e={}){this.cA=!1,Object.assign(this,e)}}var KV;PV([xV({type:FF.Boolean,defaultValue:!1})],ZV.prototype,"cA",void 0),PV([xV({type:FF.Integer,optional:!0})],ZV.prototype,"pathLenConstraint",void 0);let QV=KV=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,KV.prototype)}};var XV;QV=KV=PV([_V({type:LF.Sequence,itemType:UV})],QV);let JV=XV=class extends QV{constructor(e){super(e),Object.setPrototypeOf(this,XV.prototype)}};var ez;JV=XV=PV([_V({type:LF.Sequence})],JV);let tz=class{constructor(e={}){Object.assign(this,e)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};PV([xV({type:FF.IA5String})],tz.prototype,"ia5String",void 0),PV([xV({type:FF.VisibleString})],tz.prototype,"visibleString",void 0),PV([xV({type:FF.BmpString})],tz.prototype,"bmpString",void 0),PV([xV({type:FF.Utf8String})],tz.prototype,"utf8String",void 0),tz=PV([_V({type:LF.Choice})],tz);class nz{constructor(e={}){this.organization=new tz,this.noticeNumbers=[],Object.assign(this,e)}}PV([xV({type:tz})],nz.prototype,"organization",void 0),PV([xV({type:FF.Integer,repeated:"sequence"})],nz.prototype,"noticeNumbers",void 0);class iz{constructor(e={}){Object.assign(this,e)}}PV([xV({type:nz,optional:!0})],iz.prototype,"noticeRef",void 0),PV([xV({type:tz,optional:!0})],iz.prototype,"explicitText",void 0);let rz=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:FF.IA5String})],rz.prototype,"cPSuri",void 0),PV([xV({type:iz})],rz.prototype,"userNotice",void 0),rz=PV([_V({type:LF.Choice})],rz);class sz{constructor(e={}){this.policyQualifierId="",this.qualifier=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],sz.prototype,"policyQualifierId",void 0),PV([xV({type:FF.Any})],sz.prototype,"qualifier",void 0);class oz{constructor(e={}){this.policyIdentifier="",Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],oz.prototype,"policyIdentifier",void 0),PV([xV({type:sz,repeated:"sequence",optional:!0})],oz.prototype,"policyQualifiers",void 0);let az=ez=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,ez.prototype)}};az=ez=PV([_V({type:LF.Sequence,itemType:oz})],az);let lz=class{constructor(e=0){this.value=e}};PV([xV({type:FF.Integer})],lz.prototype,"value",void 0),lz=PV([_V({type:LF.Choice})],lz);let cz=class extends lz{};var uz,dz;cz=PV([_V({type:LF.Choice})],cz),function(e){e[e.unused=1]="unused",e[e.keyCompromise=2]="keyCompromise",e[e.cACompromise=4]="cACompromise",e[e.affiliationChanged=8]="affiliationChanged",e[e.superseded=16]="superseded",e[e.cessationOfOperation=32]="cessationOfOperation",e[e.certificateHold=64]="certificateHold",e[e.privilegeWithdrawn=128]="privilegeWithdrawn",e[e.aACompromise=256]="aACompromise"}(dz||(dz={}));class hz extends UN{toJSON(){const e=[],t=this.toNumber();return t&dz.aACompromise&&e.push("aACompromise"),t&dz.affiliationChanged&&e.push("affiliationChanged"),t&dz.cACompromise&&e.push("cACompromise"),t&dz.certificateHold&&e.push("certificateHold"),t&dz.cessationOfOperation&&e.push("cessationOfOperation"),t&dz.keyCompromise&&e.push("keyCompromise"),t&dz.privilegeWithdrawn&&e.push("privilegeWithdrawn"),t&dz.superseded&&e.push("superseded"),t&dz.unused&&e.push("unused"),e}toString(){return`[${this.toJSON().join(", ")}]`}}let pz=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:UV,context:0,repeated:"sequence",implicit:!0})],pz.prototype,"fullName",void 0),PV([xV({type:FV,context:1,implicit:!0})],pz.prototype,"nameRelativeToCRLIssuer",void 0),pz=PV([_V({type:LF.Choice})],pz);class gz{constructor(e={}){Object.assign(this,e)}}PV([xV({type:pz,context:0,optional:!0})],gz.prototype,"distributionPoint",void 0),PV([xV({type:hz,context:1,optional:!0,implicit:!0})],gz.prototype,"reasons",void 0),PV([xV({type:UV,context:2,optional:!0,repeated:"sequence",implicit:!0})],gz.prototype,"cRLIssuer",void 0);let fz=uz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,uz.prototype)}};var mz;fz=uz=PV([_V({type:LF.Sequence,itemType:gz})],fz);let vz=mz=class extends fz{constructor(e){super(e),Object.setPrototypeOf(this,mz.prototype)}};vz=mz=PV([_V({type:LF.Sequence,itemType:gz})],vz);class bz{constructor(e={}){this.onlyContainsUserCerts=bz.ONLY,this.onlyContainsCACerts=bz.ONLY,this.indirectCRL=bz.ONLY,this.onlyContainsAttributeCerts=bz.ONLY,Object.assign(this,e)}}var yz;bz.ONLY=!1,PV([xV({type:pz,context:0,optional:!0})],bz.prototype,"distributionPoint",void 0),PV([xV({type:FF.Boolean,context:1,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"onlyContainsUserCerts",void 0),PV([xV({type:FF.Boolean,context:2,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"onlyContainsCACerts",void 0),PV([xV({type:hz,context:3,optional:!0,implicit:!0})],bz.prototype,"onlySomeReasons",void 0),PV([xV({type:FF.Boolean,context:4,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"indirectCRL",void 0),PV([xV({type:FF.Boolean,context:5,defaultValue:bz.ONLY,implicit:!0})],bz.prototype,"onlyContainsAttributeCerts",void 0),function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(yz||(yz={}));let wz=class{constructor(e=yz.unspecified){this.reason=yz.unspecified,this.reason=e}toJSON(){return yz[this.reason]}toString(){return this.toJSON()}};var _z;PV([xV({type:FF.Enumerated})],wz.prototype,"reason",void 0),wz=PV([_V({type:LF.Choice})],wz);let xz=_z=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,_z.prototype)}};xz=_z=PV([_V({type:LF.Sequence,itemType:FF.ObjectIdentifier})],xz);let Az=class{constructor(e=new ArrayBuffer(0)){this.value=e}};PV([xV({type:FF.Integer,converter:YN})],Az.prototype,"value",void 0),Az=PV([_V({type:LF.Choice})],Az);let Cz=class{constructor(e){this.value=new Date,e&&(this.value=e)}};var Sz;PV([xV({type:FF.GeneralizedTime})],Cz.prototype,"value",void 0),Cz=PV([_V({type:LF.Choice})],Cz);let kz=Sz=class extends QV{constructor(e){super(e),Object.setPrototypeOf(this,Sz.prototype)}};var Ez,Pz;kz=Sz=PV([_V({type:LF.Sequence})],kz),function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(Ez||(Ez={}));class Dz extends UN{toJSON(){const e=this.toNumber(),t=[];return e&Ez.cRLSign&&t.push("crlSign"),e&Ez.dataEncipherment&&t.push("dataEncipherment"),e&Ez.decipherOnly&&t.push("decipherOnly"),e&Ez.digitalSignature&&t.push("digitalSignature"),e&Ez.encipherOnly&&t.push("encipherOnly"),e&Ez.keyAgreement&&t.push("keyAgreement"),e&Ez.keyCertSign&&t.push("keyCertSign"),e&Ez.keyEncipherment&&t.push("keyEncipherment"),e&Ez.nonRepudiation&&t.push("nonRepudiation"),t}toString(){return`[${this.toJSON().join(", ")}]`}}class Oz{constructor(e={}){this.base=new UV,this.minimum=0,Object.assign(this,e)}}PV([xV({type:UV})],Oz.prototype,"base",void 0),PV([xV({type:FF.Integer,context:0,defaultValue:0,implicit:!0})],Oz.prototype,"minimum",void 0),PV([xV({type:FF.Integer,context:1,optional:!0,implicit:!0})],Oz.prototype,"maximum",void 0);let Iz=Pz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Pz.prototype)}};Iz=Pz=PV([_V({type:LF.Sequence,itemType:Oz})],Iz);class Tz{constructor(e={}){Object.assign(this,e)}}PV([xV({type:Iz,context:0,optional:!0,implicit:!0})],Tz.prototype,"permittedSubtrees",void 0),PV([xV({type:Iz,context:1,optional:!0,implicit:!0})],Tz.prototype,"excludedSubtrees",void 0);class Mz{constructor(e={}){Object.assign(this,e)}}var Bz;PV([xV({type:FF.Integer,context:0,implicit:!0,optional:!0,converter:YN})],Mz.prototype,"requireExplicitPolicy",void 0),PV([xV({type:FF.Integer,context:1,implicit:!0,optional:!0,converter:YN})],Mz.prototype,"inhibitPolicyMapping",void 0);class Rz{constructor(e={}){this.issuerDomainPolicy="",this.subjectDomainPolicy="",Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Rz.prototype,"issuerDomainPolicy",void 0),PV([xV({type:FF.ObjectIdentifier})],Rz.prototype,"subjectDomainPolicy",void 0);let Lz=Bz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Bz.prototype)}};var Fz;Lz=Bz=PV([_V({type:LF.Sequence,itemType:Rz})],Lz);let Nz=Fz=class extends QV{constructor(e){super(e),Object.setPrototypeOf(this,Fz.prototype)}};Nz=Fz=PV([_V({type:LF.Sequence})],Nz);class Vz{constructor(e={}){this.type="",this.values=[],Object.assign(this,e)}}var zz;PV([xV({type:FF.ObjectIdentifier})],Vz.prototype,"type",void 0),PV([xV({type:FF.Any,repeated:"set"})],Vz.prototype,"values",void 0);let jz=zz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,zz.prototype)}};jz=zz=PV([_V({type:LF.Sequence,itemType:Vz})],jz);class Hz extends qV{}class Uz{constructor(e={}){Object.assign(this,e)}}var Wz,$z;PV([xV({type:FF.GeneralizedTime,context:0,implicit:!0,optional:!0})],Uz.prototype,"notBefore",void 0),PV([xV({type:FF.GeneralizedTime,context:1,implicit:!0,optional:!0})],Uz.prototype,"notAfter",void 0),function(e){e[e.keyUpdateAllowed=1]="keyUpdateAllowed",e[e.newExtensions=2]="newExtensions",e[e.pKIXCertificate=4]="pKIXCertificate"}(Wz||(Wz={}));class Gz extends UN{toJSON(){const e=[],t=this.toNumber();return t&Wz.pKIXCertificate&&e.push("pKIXCertificate"),t&Wz.newExtensions&&e.push("newExtensions"),t&Wz.keyUpdateAllowed&&e.push("keyUpdateAllowed"),e}toString(){return`[${this.toJSON().join(", ")}]`}}class qz{constructor(e={}){this.entrustVers="",this.entrustInfoFlags=new Gz,Object.assign(this,e)}}PV([xV({type:FF.GeneralString})],qz.prototype,"entrustVers",void 0),PV([xV({type:Gz})],qz.prototype,"entrustInfoFlags",void 0);let Yz=$z=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,$z.prototype)}};Yz=$z=PV([_V({type:LF.Sequence,itemType:$V})],Yz);class Zz{constructor(e={}){this.algorithm="",Object.assign(this,e)}isEqual(e){return e instanceof Zz&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&hF.isEqual(e.parameters,this.parameters)||e.parameters===this.parameters)}}PV([xV({type:FF.ObjectIdentifier})],Zz.prototype,"algorithm",void 0),PV([xV({type:FF.Any,optional:!0})],Zz.prototype,"parameters",void 0);class Kz{constructor(e={}){this.algorithm=new Zz,this.subjectPublicKey=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:Zz})],Kz.prototype,"algorithm",void 0),PV([xV({type:FF.BitString})],Kz.prototype,"subjectPublicKey",void 0);let Qz=class{constructor(e){if(e)if("string"==typeof e||"number"==typeof e||e instanceof Date){const t=new Date(e);t.getUTCFullYear()>2049?this.generalTime=t:this.utcTime=t}else Object.assign(this,e)}getTime(){const e=this.utcTime||this.generalTime;if(!e)throw new Error("Cannot get time from CHOICE object");return e}};PV([xV({type:FF.UTCTime})],Qz.prototype,"utcTime",void 0),PV([xV({type:FF.GeneralizedTime})],Qz.prototype,"generalTime",void 0),Qz=PV([_V({type:LF.Choice})],Qz);class Xz{constructor(e){this.notBefore=new Qz(new Date),this.notAfter=new Qz(new Date),e&&(this.notBefore=new Qz(e.notBefore),this.notAfter=new Qz(e.notAfter))}}var Jz;PV([xV({type:Qz})],Xz.prototype,"notBefore",void 0),PV([xV({type:Qz})],Xz.prototype,"notAfter",void 0);class ej{constructor(e={}){this.extnID="",this.critical=ej.CRITICAL,this.extnValue=new WN,Object.assign(this,e)}}ej.CRITICAL=!1,PV([xV({type:FF.ObjectIdentifier})],ej.prototype,"extnID",void 0),PV([xV({type:FF.Boolean,defaultValue:ej.CRITICAL})],ej.prototype,"critical",void 0),PV([xV({type:WN})],ej.prototype,"extnValue",void 0);let tj=Jz=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Jz.prototype)}};var nj,ij;tj=Jz=PV([_V({type:LF.Sequence,itemType:ej})],tj),function(e){e[e.v1=0]="v1",e[e.v2=1]="v2",e[e.v3=2]="v3"}(nj||(nj={}));class rj{constructor(e={}){this.version=nj.v1,this.serialNumber=new ArrayBuffer(0),this.signature=new Zz,this.issuer=new VV,this.validity=new Xz,this.subject=new VV,this.subjectPublicKeyInfo=new Kz,Object.assign(this,e)}}PV([xV({type:FF.Integer,context:0,defaultValue:nj.v1})],rj.prototype,"version",void 0),PV([xV({type:FF.Integer,converter:YN})],rj.prototype,"serialNumber",void 0),PV([xV({type:Zz})],rj.prototype,"signature",void 0),PV([xV({type:VV})],rj.prototype,"issuer",void 0),PV([xV({type:Xz})],rj.prototype,"validity",void 0),PV([xV({type:VV})],rj.prototype,"subject",void 0),PV([xV({type:Kz})],rj.prototype,"subjectPublicKeyInfo",void 0),PV([xV({type:FF.BitString,context:1,implicit:!0,optional:!0})],rj.prototype,"issuerUniqueID",void 0),PV([xV({type:FF.BitString,context:2,implicit:!0,optional:!0})],rj.prototype,"subjectUniqueID",void 0),PV([xV({type:tj,context:3,optional:!0})],rj.prototype,"extensions",void 0);class sj{constructor(e={}){this.tbsCertificate=new rj,this.signatureAlgorithm=new Zz,this.signatureValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:rj})],sj.prototype,"tbsCertificate",void 0),PV([xV({type:Zz})],sj.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],sj.prototype,"signatureValue",void 0);class oj{constructor(e={}){this.userCertificate=new ArrayBuffer(0),this.revocationDate=new Qz,Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],oj.prototype,"userCertificate",void 0),PV([xV({type:Qz})],oj.prototype,"revocationDate",void 0),PV([xV({type:ej,optional:!0,repeated:"sequence"})],oj.prototype,"crlEntryExtensions",void 0);class aj{constructor(e={}){this.signature=new Zz,this.issuer=new VV,this.thisUpdate=new Qz,Object.assign(this,e)}}PV([xV({type:FF.Integer,optional:!0})],aj.prototype,"version",void 0),PV([xV({type:Zz})],aj.prototype,"signature",void 0),PV([xV({type:VV})],aj.prototype,"issuer",void 0),PV([xV({type:Qz})],aj.prototype,"thisUpdate",void 0),PV([xV({type:Qz,optional:!0})],aj.prototype,"nextUpdate",void 0),PV([xV({type:oj,repeated:"sequence",optional:!0})],aj.prototype,"revokedCertificates",void 0),PV([xV({type:ej,optional:!0,context:0,repeated:"sequence"})],aj.prototype,"crlExtensions",void 0);class lj{constructor(e={}){this.tbsCertList=new aj,this.signatureAlgorithm=new Zz,this.signature=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:aj})],lj.prototype,"tbsCertList",void 0),PV([xV({type:Zz})],lj.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],lj.prototype,"signature",void 0);class cj{constructor(e={}){this.attrType="",this.attrValues=[],Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],cj.prototype,"attrType",void 0),PV([xV({type:FF.Any,repeated:"set"})],cj.prototype,"attrValues",void 0);class uj{constructor(e={}){this.acIssuer=new UV,this.acSerial=0,this.attrs=[],Object.assign(this,e)}}PV([xV({type:UV})],uj.prototype,"acIssuer",void 0),PV([xV({type:FF.Integer})],uj.prototype,"acSerial",void 0),PV([xV({type:Vz,repeated:"sequence"})],uj.prototype,"attrs",void 0);let dj=ij=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,ij.prototype)}};dj=ij=PV([_V({type:LF.Sequence,itemType:FF.ObjectIdentifier})],dj);class hj{constructor(e={}){this.permitUnSpecified=!0,Object.assign(this,e)}}PV([xV({type:FF.Integer,optional:!0})],hj.prototype,"pathLenConstraint",void 0),PV([xV({type:dj,implicit:!0,context:0,optional:!0})],hj.prototype,"permittedAttrs",void 0),PV([xV({type:dj,implicit:!0,context:1,optional:!0})],hj.prototype,"excludedAttrs",void 0),PV([xV({type:FF.Boolean,defaultValue:!0})],hj.prototype,"permitUnSpecified",void 0);class pj{constructor(e={}){this.issuer=new QV,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,e)}}var gj;PV([xV({type:QV})],pj.prototype,"issuer",void 0),PV([xV({type:FF.Integer,converter:YN})],pj.prototype,"serial",void 0),PV([xV({type:FF.BitString,optional:!0})],pj.prototype,"issuerUID",void 0),function(e){e[e.publicKey=0]="publicKey",e[e.publicKeyCert=1]="publicKeyCert",e[e.otherObjectTypes=2]="otherObjectTypes"}(gj||(gj={}));class fj{constructor(e={}){this.digestedObjectType=gj.publicKey,this.digestAlgorithm=new Zz,this.objectDigest=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Enumerated})],fj.prototype,"digestedObjectType",void 0),PV([xV({type:FF.ObjectIdentifier,optional:!0})],fj.prototype,"otherObjectTypeID",void 0),PV([xV({type:Zz})],fj.prototype,"digestAlgorithm",void 0),PV([xV({type:FF.BitString})],fj.prototype,"objectDigest",void 0);class mj{constructor(e={}){Object.assign(this,e)}}PV([xV({type:QV,optional:!0})],mj.prototype,"issuerName",void 0),PV([xV({type:pj,context:0,implicit:!0,optional:!0})],mj.prototype,"baseCertificateID",void 0),PV([xV({type:fj,context:1,implicit:!0,optional:!0})],mj.prototype,"objectDigestInfo",void 0);let vj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:UV,repeated:"sequence"})],vj.prototype,"v1Form",void 0),PV([xV({type:mj,context:0,implicit:!0})],vj.prototype,"v2Form",void 0),vj=PV([_V({type:LF.Choice})],vj);class bj{constructor(e={}){this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,e)}}PV([xV({type:FF.GeneralizedTime})],bj.prototype,"notBeforeTime",void 0),PV([xV({type:FF.GeneralizedTime})],bj.prototype,"notAfterTime",void 0);class yj{constructor(e={}){Object.assign(this,e)}}var wj,_j,xj;PV([xV({type:pj,implicit:!0,context:0,optional:!0})],yj.prototype,"baseCertificateID",void 0),PV([xV({type:QV,implicit:!0,context:1,optional:!0})],yj.prototype,"entityName",void 0),PV([xV({type:fj,implicit:!0,context:2,optional:!0})],yj.prototype,"objectDigestInfo",void 0),function(e){e[e.v2=1]="v2"}(wj||(wj={}));class Aj{constructor(e={}){this.version=wj.v2,this.holder=new yj,this.issuer=new vj,this.signature=new Zz,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new bj,this.attributes=[],Object.assign(this,e)}}PV([xV({type:FF.Integer})],Aj.prototype,"version",void 0),PV([xV({type:yj})],Aj.prototype,"holder",void 0),PV([xV({type:vj})],Aj.prototype,"issuer",void 0),PV([xV({type:Zz})],Aj.prototype,"signature",void 0),PV([xV({type:FF.Integer,converter:YN})],Aj.prototype,"serialNumber",void 0),PV([xV({type:bj})],Aj.prototype,"attrCertValidityPeriod",void 0),PV([xV({type:Vz,repeated:"sequence"})],Aj.prototype,"attributes",void 0),PV([xV({type:FF.BitString,optional:!0})],Aj.prototype,"issuerUniqueID",void 0),PV([xV({type:tj,optional:!0})],Aj.prototype,"extensions",void 0);class Cj{constructor(e={}){this.acinfo=new Aj,this.signatureAlgorithm=new Zz,this.signatureValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:Aj})],Cj.prototype,"acinfo",void 0),PV([xV({type:Zz})],Cj.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],Cj.prototype,"signatureValue",void 0),function(e){e[e.unmarked=1]="unmarked",e[e.unclassified=2]="unclassified",e[e.restricted=4]="restricted",e[e.confidential=8]="confidential",e[e.secret=16]="secret",e[e.topSecret=32]="topSecret"}(_j||(_j={}));class Sj extends UN{}class kj{constructor(e={}){this.type="",this.value=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier,implicit:!0,context:0})],kj.prototype,"type",void 0),PV([xV({type:FF.Any,implicit:!0,context:1})],kj.prototype,"value",void 0);class Ej{constructor(e={}){this.policyId="",this.classList=new Sj(_j.unclassified),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Ej.prototype,"policyId",void 0),PV([xV({type:Sj,defaultValue:new Sj(_j.unclassified)})],Ej.prototype,"classList",void 0),PV([xV({type:kj,repeated:"set"})],Ej.prototype,"securityCategories",void 0);class Pj{constructor(e={}){Object.assign(this,e)}}PV([xV({type:WN})],Pj.prototype,"cotets",void 0),PV([xV({type:FF.ObjectIdentifier})],Pj.prototype,"oid",void 0),PV([xV({type:FF.Utf8String})],Pj.prototype,"string",void 0);class Dj{constructor(e={}){this.values=[],Object.assign(this,e)}}PV([xV({type:QV,implicit:!0,context:0,optional:!0})],Dj.prototype,"policyAuthority",void 0),PV([xV({type:Pj,repeated:"sequence"})],Dj.prototype,"values",void 0);class Oj{constructor(e={}){this.targetCertificate=new pj,Object.assign(this,e)}}PV([xV({type:pj})],Oj.prototype,"targetCertificate",void 0),PV([xV({type:UV,optional:!0})],Oj.prototype,"targetName",void 0),PV([xV({type:fj,optional:!0})],Oj.prototype,"certDigestInfo",void 0);let Ij=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:UV,context:0,implicit:!0})],Ij.prototype,"targetName",void 0),PV([xV({type:UV,context:1,implicit:!0})],Ij.prototype,"targetGroup",void 0),PV([xV({type:Oj,context:2,implicit:!0})],Ij.prototype,"targetCert",void 0),Ij=PV([_V({type:LF.Choice})],Ij);let Tj=xj=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,xj.prototype)}};var Mj;Tj=xj=PV([_V({type:LF.Sequence,itemType:Ij})],Tj);let Bj=Mj=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Mj.prototype)}};Bj=Mj=PV([_V({type:LF.Sequence,itemType:Tj})],Bj);class Rj{constructor(e={}){Object.assign(this,e)}}PV([xV({type:QV,implicit:!0,context:0,optional:!0})],Rj.prototype,"roleAuthority",void 0),PV([xV({type:UV,implicit:!0,context:1})],Rj.prototype,"roleName",void 0);class Lj{constructor(e={}){this.service=new UV,this.ident=new UV,Object.assign(this,e)}}var Fj;PV([xV({type:UV})],Lj.prototype,"service",void 0),PV([xV({type:UV})],Lj.prototype,"ident",void 0),PV([xV({type:WN,optional:!0})],Lj.prototype,"authInfo",void 0);class Nj{constructor(e={}){this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Nj.prototype,"otherCertFormat",void 0),PV([xV({type:FF.Any})],Nj.prototype,"otherCert",void 0);let Vj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:sj})],Vj.prototype,"certificate",void 0),PV([xV({type:Cj,context:2,implicit:!0})],Vj.prototype,"v2AttrCert",void 0),PV([xV({type:Nj,context:3,implicit:!0})],Vj.prototype,"other",void 0),Vj=PV([_V({type:LF.Choice})],Vj);let zj=Fj=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,Fj.prototype)}};zj=Fj=PV([_V({type:LF.Set,itemType:Vj})],zj);class jj{constructor(e={}){this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],jj.prototype,"contentType",void 0),PV([xV({type:FF.Any,context:0})],jj.prototype,"content",void 0);let Hj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:WN})],Hj.prototype,"single",void 0),PV([xV({type:FF.Any})],Hj.prototype,"any",void 0),Hj=PV([_V({type:LF.Choice})],Hj);class Uj{constructor(e={}){this.eContentType="",Object.assign(this,e)}}var Wj;PV([xV({type:FF.ObjectIdentifier})],Uj.prototype,"eContentType",void 0),PV([xV({type:Hj,context:0,optional:!0})],Uj.prototype,"eContent",void 0),function(e){e[e.v0=0]="v0",e[e.v1=1]="v1",e[e.v2=2]="v2",e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v5=5]="v5"}(Wj||(Wj={}));let $j=class extends Zz{};$j=PV([_V({type:LF.Sequence})],$j);let Gj=class extends Zz{};Gj=PV([_V({type:LF.Sequence})],Gj);let qj=class extends Zz{};qj=PV([_V({type:LF.Sequence})],qj);let Yj=class extends Zz{};Yj=PV([_V({type:LF.Sequence})],Yj);let Zj=class extends Zz{};Zj=PV([_V({type:LF.Sequence})],Zj);let Kj=class extends Zz{};Kj=PV([_V({type:LF.Sequence})],Kj);let Qj=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:WN,context:0,implicit:!0,optional:!0})],Qj.prototype,"value",void 0),PV([xV({type:WN,converter:JN,context:0,implicit:!0,optional:!0,repeated:"sequence"})],Qj.prototype,"constructedValue",void 0),Qj=PV([_V({type:LF.Choice})],Qj);class Xj{constructor(e={}){this.contentType="",this.contentEncryptionAlgorithm=new Yj,Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],Xj.prototype,"contentType",void 0),PV([xV({type:Yj})],Xj.prototype,"contentEncryptionAlgorithm",void 0),PV([xV({type:Qj,optional:!0})],Xj.prototype,"encryptedContent",void 0);class Jj{constructor(e={}){this.issuer=new VV,this.serialNumber=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:VV})],Jj.prototype,"issuer",void 0),PV([xV({type:FF.Integer,converter:YN})],Jj.prototype,"serialNumber",void 0);class eH{constructor(e={}){this.keyAttrId="",Object.assign(this,e)}}var tH;PV([xV({type:FF.ObjectIdentifier})],eH.prototype,"keyAttrId",void 0),PV([xV({type:FF.Any,optional:!0})],eH.prototype,"keyAttr",void 0);class nH{constructor(e={}){this.subjectKeyIdentifier=new Hz,Object.assign(this,e)}}PV([xV({type:Hz})],nH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:FF.GeneralizedTime,optional:!0})],nH.prototype,"date",void 0),PV([xV({type:eH,optional:!0})],nH.prototype,"other",void 0);let iH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:nH,context:0,implicit:!0,optional:!0})],iH.prototype,"rKeyId",void 0),PV([xV({type:Jj,optional:!0})],iH.prototype,"issuerAndSerialNumber",void 0),iH=PV([_V({type:LF.Choice})],iH);class rH{constructor(e={}){this.rid=new iH,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:iH})],rH.prototype,"rid",void 0),PV([xV({type:WN})],rH.prototype,"encryptedKey",void 0);let sH=tH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,tH.prototype)}};sH=tH=PV([_V({type:LF.Sequence,itemType:rH})],sH);class oH{constructor(e={}){this.algorithm=new Zz,this.publicKey=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:Zz})],oH.prototype,"algorithm",void 0),PV([xV({type:FF.BitString})],oH.prototype,"publicKey",void 0);let aH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:Hz,context:0,implicit:!0,optional:!0})],aH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:oH,context:1,implicit:!0,optional:!0})],aH.prototype,"originatorKey",void 0),PV([xV({type:Jj,optional:!0})],aH.prototype,"issuerAndSerialNumber",void 0),aH=PV([_V({type:LF.Choice})],aH);class lH{constructor(e={}){this.version=Wj.v3,this.originator=new aH,this.keyEncryptionAlgorithm=new qj,this.recipientEncryptedKeys=new sH,Object.assign(this,e)}}PV([xV({type:FF.Integer})],lH.prototype,"version",void 0),PV([xV({type:aH,context:0})],lH.prototype,"originator",void 0),PV([xV({type:WN,context:1,optional:!0})],lH.prototype,"ukm",void 0),PV([xV({type:qj})],lH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:sH})],lH.prototype,"recipientEncryptedKeys",void 0);let cH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:Hz,context:0,implicit:!0})],cH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:Jj})],cH.prototype,"issuerAndSerialNumber",void 0),cH=PV([_V({type:LF.Choice})],cH);class uH{constructor(e={}){this.version=Wj.v0,this.rid=new cH,this.keyEncryptionAlgorithm=new qj,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],uH.prototype,"version",void 0),PV([xV({type:cH})],uH.prototype,"rid",void 0),PV([xV({type:qj})],uH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:WN})],uH.prototype,"encryptedKey",void 0);class dH{constructor(e={}){this.keyIdentifier=new WN,Object.assign(this,e)}}PV([xV({type:WN})],dH.prototype,"keyIdentifier",void 0),PV([xV({type:FF.GeneralizedTime,optional:!0})],dH.prototype,"date",void 0),PV([xV({type:eH,optional:!0})],dH.prototype,"other",void 0);class hH{constructor(e={}){this.version=Wj.v4,this.kekid=new dH,this.keyEncryptionAlgorithm=new qj,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],hH.prototype,"version",void 0),PV([xV({type:dH})],hH.prototype,"kekid",void 0),PV([xV({type:qj})],hH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:WN})],hH.prototype,"encryptedKey",void 0);class pH{constructor(e={}){this.version=Wj.v0,this.keyEncryptionAlgorithm=new qj,this.encryptedKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],pH.prototype,"version",void 0),PV([xV({type:Kj,context:0,optional:!0})],pH.prototype,"keyDerivationAlgorithm",void 0),PV([xV({type:qj})],pH.prototype,"keyEncryptionAlgorithm",void 0),PV([xV({type:WN})],pH.prototype,"encryptedKey",void 0);class gH{constructor(e={}){this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],gH.prototype,"oriType",void 0),PV([xV({type:FF.Any})],gH.prototype,"oriValue",void 0);let fH=class{constructor(e={}){Object.assign(this,e)}};var mH;PV([xV({type:uH,optional:!0})],fH.prototype,"ktri",void 0),PV([xV({type:lH,context:1,implicit:!0,optional:!0})],fH.prototype,"kari",void 0),PV([xV({type:hH,context:2,implicit:!0,optional:!0})],fH.prototype,"kekri",void 0),PV([xV({type:pH,context:3,implicit:!0,optional:!0})],fH.prototype,"pwri",void 0),PV([xV({type:gH,context:4,implicit:!0,optional:!0})],fH.prototype,"ori",void 0),fH=PV([_V({type:LF.Choice})],fH);let vH=mH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,mH.prototype)}};var bH;vH=mH=PV([_V({type:LF.Set,itemType:fH})],vH);class yH{constructor(e={}){this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],yH.prototype,"otherRevInfoFormat",void 0),PV([xV({type:FF.Any})],yH.prototype,"otherRevInfo",void 0);let wH=class{constructor(e={}){this.other=new yH,Object.assign(this,e)}};PV([xV({type:yH,context:1,implicit:!0})],wH.prototype,"other",void 0),wH=PV([_V({type:LF.Choice})],wH);let _H=bH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,bH.prototype)}};_H=bH=PV([_V({type:LF.Set,itemType:wH})],_H);class xH{constructor(e={}){Object.assign(this,e)}}var AH;PV([xV({type:zj,context:0,implicit:!0,optional:!0})],xH.prototype,"certs",void 0),PV([xV({type:_H,context:1,implicit:!0,optional:!0})],xH.prototype,"crls",void 0);let CH=AH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,AH.prototype)}};CH=AH=PV([_V({type:LF.Set,itemType:cj})],CH);class SH{constructor(e={}){this.version=Wj.v0,this.recipientInfos=new vH,this.encryptedContentInfo=new Xj,Object.assign(this,e)}}PV([xV({type:FF.Integer})],SH.prototype,"version",void 0),PV([xV({type:xH,context:0,implicit:!0,optional:!0})],SH.prototype,"originatorInfo",void 0),PV([xV({type:vH})],SH.prototype,"recipientInfos",void 0),PV([xV({type:Xj})],SH.prototype,"encryptedContentInfo",void 0),PV([xV({type:CH,context:1,implicit:!0,optional:!0})],SH.prototype,"unprotectedAttrs",void 0);let kH=class{constructor(e={}){Object.assign(this,e)}};var EH;PV([xV({type:Hz,context:0,implicit:!0})],kH.prototype,"subjectKeyIdentifier",void 0),PV([xV({type:Jj})],kH.prototype,"issuerAndSerialNumber",void 0),kH=PV([_V({type:LF.Choice})],kH);class PH{constructor(e={}){this.version=Wj.v0,this.sid=new kH,this.digestAlgorithm=new $j,this.signatureAlgorithm=new Gj,this.signature=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],PH.prototype,"version",void 0),PV([xV({type:kH})],PH.prototype,"sid",void 0),PV([xV({type:$j})],PH.prototype,"digestAlgorithm",void 0),PV([xV({type:cj,repeated:"set",context:0,implicit:!0,optional:!0})],PH.prototype,"signedAttrs",void 0),PV([xV({type:Gj})],PH.prototype,"signatureAlgorithm",void 0),PV([xV({type:WN})],PH.prototype,"signature",void 0),PV([xV({type:cj,repeated:"set",context:1,implicit:!0,optional:!0})],PH.prototype,"unsignedAttrs",void 0);let DH=EH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,EH.prototype)}};var OH;DH=EH=PV([_V({type:LF.Set,itemType:PH})],DH);let IH=OH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,OH.prototype)}};IH=OH=PV([_V({type:LF.Set,itemType:$j})],IH);class TH{constructor(e={}){this.version=Wj.v0,this.digestAlgorithms=new IH,this.encapContentInfo=new Uj,this.signerInfos=new DH,Object.assign(this,e)}}function MH(e){return new Zz({algorithm:e})}PV([xV({type:FF.Integer})],TH.prototype,"version",void 0),PV([xV({type:IH})],TH.prototype,"digestAlgorithms",void 0),PV([xV({type:Uj})],TH.prototype,"encapContentInfo",void 0),PV([xV({type:zj,context:0,implicit:!0,optional:!0})],TH.prototype,"certificates",void 0),PV([xV({type:wH,context:1,implicit:!0,optional:!0})],TH.prototype,"crls",void 0),PV([xV({type:DH})],TH.prototype,"signerInfos",void 0);const BH=MH("1.2.840.10045.4.1"),RH=(MH("1.2.840.10045.4.3.1"),MH("1.2.840.10045.4.3.2")),LH=MH("1.2.840.10045.4.3.3"),FH=MH("1.2.840.10045.4.3.4");let NH=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:FF.ObjectIdentifier})],NH.prototype,"namedCurve",void 0),NH=PV([_V({type:LF.Choice})],NH);class VH{constructor(e={}){this.version=1,this.privateKey=new WN,Object.assign(this,e)}}PV([xV({type:FF.Integer})],VH.prototype,"version",void 0),PV([xV({type:WN})],VH.prototype,"privateKey",void 0),PV([xV({type:NH,context:0,optional:!0})],VH.prototype,"parameters",void 0),PV([xV({type:FF.BitString,context:1,optional:!0})],VH.prototype,"publicKey",void 0);class zH{constructor(e={}){this.r=new ArrayBuffer(0),this.s=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],zH.prototype,"r",void 0),PV([xV({type:FF.Integer,converter:YN})],zH.prototype,"s",void 0);const jH="1.2.840.113549.1.1.8";function HH(e){return new Zz({algorithm:e,parameters:null})}HH("1.2.840.113549.2.2"),HH("1.2.840.113549.2.5");const UH=HH("1.3.14.3.2.26"),WH=(HH("2.16.840.1.101.3.4.2.4"),HH("2.16.840.1.101.3.4.2.1"),HH("2.16.840.1.101.3.4.2.2"),HH("2.16.840.1.101.3.4.2.3"),HH("2.16.840.1.101.3.4.2.5"),HH("2.16.840.1.101.3.4.2.6"),new Zz({algorithm:jH,parameters:EV.serialize(UH)})),$H=new Zz({algorithm:"1.2.840.113549.1.1.9",parameters:EV.serialize(XN.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});HH("1.2.840.113549.1.1.1"),HH("1.2.840.113549.1.1.2"),HH("1.2.840.113549.1.1.4"),HH("1.2.840.113549.1.1.5"),HH("1.2.840.113549.1.1.15"),HH("1.2.840.113549.1.1.16"),HH("1.2.840.113549.1.1.12"),HH("1.2.840.113549.1.1.13"),HH("1.2.840.113549.1.1.15"),HH("1.2.840.113549.1.1.16");class GH{constructor(e={}){this.hashAlgorithm=new Zz(UH),this.maskGenAlgorithm=new Zz({algorithm:jH,parameters:EV.serialize(UH)}),this.pSourceAlgorithm=new Zz($H),Object.assign(this,e)}}PV([xV({type:Zz,context:0,defaultValue:UH})],GH.prototype,"hashAlgorithm",void 0),PV([xV({type:Zz,context:1,defaultValue:WH})],GH.prototype,"maskGenAlgorithm",void 0),PV([xV({type:Zz,context:2,defaultValue:$H})],GH.prototype,"pSourceAlgorithm",void 0),new Zz({algorithm:"1.2.840.113549.1.1.7",parameters:EV.serialize(new GH)});class qH{constructor(e={}){this.hashAlgorithm=new Zz(UH),this.maskGenAlgorithm=new Zz({algorithm:jH,parameters:EV.serialize(UH)}),this.saltLength=20,this.trailerField=1,Object.assign(this,e)}}PV([xV({type:Zz,context:0,defaultValue:UH})],qH.prototype,"hashAlgorithm",void 0),PV([xV({type:Zz,context:1,defaultValue:WH})],qH.prototype,"maskGenAlgorithm",void 0),PV([xV({type:FF.Integer,context:2,defaultValue:20})],qH.prototype,"saltLength",void 0),PV([xV({type:FF.Integer,context:3,defaultValue:1})],qH.prototype,"trailerField",void 0),new Zz({algorithm:"1.2.840.113549.1.1.10",parameters:EV.serialize(new qH)});class YH{constructor(e={}){this.digestAlgorithm=new Zz,this.digest=new WN,Object.assign(this,e)}}var ZH;PV([xV({type:Zz})],YH.prototype,"digestAlgorithm",void 0),PV([xV({type:WN})],YH.prototype,"digest",void 0);class KH{constructor(e={}){this.prime=new ArrayBuffer(0),this.exponent=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],KH.prototype,"prime",void 0),PV([xV({type:FF.Integer,converter:YN})],KH.prototype,"exponent",void 0),PV([xV({type:FF.Integer,converter:YN})],KH.prototype,"coefficient",void 0);let QH=ZH=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,ZH.prototype)}};QH=ZH=PV([_V({type:LF.Sequence,itemType:KH})],QH);class XH{constructor(e={}){this.version=0,this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),this.privateExponent=new ArrayBuffer(0),this.prime1=new ArrayBuffer(0),this.prime2=new ArrayBuffer(0),this.exponent1=new ArrayBuffer(0),this.exponent2=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer})],XH.prototype,"version",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"modulus",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"publicExponent",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"privateExponent",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"prime1",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"prime2",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"exponent1",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"exponent2",void 0),PV([xV({type:FF.Integer,converter:YN})],XH.prototype,"coefficient",void 0),PV([xV({type:QH,optional:!0})],XH.prototype,"otherPrimeInfos",void 0);class JH{constructor(e={}){this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.Integer,converter:YN})],JH.prototype,"modulus",void 0),PV([xV({type:FF.Integer,converter:YN})],JH.prototype,"publicExponent",void 0);var eU=function(e){return e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped",e}({});function tU(e){return!!e.useClass}function nU(e){return!!e.useFactory}class iU{constructor(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}createProxy(e){let t,n=!1;return new Proxy({},this.createHandler(()=>(n||(t=e(this.wrap()),n=!0),t)))}createHandler(e){const t={};return this.reflectMethods.forEach(n=>{t[n]=(...t)=>(t[0]=e(),(0,Reflect[n])(...t))}),t}}function rU(e){return"string"==typeof e||"symbol"==typeof e}function sU(e){return"object"==typeof e&&"token"in e&&"transform"in e}function oU(e){return!!e.useToken}function aU(e){return null!=e.useValue}class lU{constructor(){this._registryMap=new Map}entries(){return this._registryMap.entries()}getAll(e){return this.ensure(e),this._registryMap.get(e)}get(e){this.ensure(e);const t=this._registryMap.get(e);return t[t.length-1]||null}set(e,t){this.ensure(e),this._registryMap.get(e).push(t)}setAll(e,t){this._registryMap.set(e,t)}has(e){return this.ensure(e),this._registryMap.get(e).length>0}clear(){this._registryMap.clear()}ensure(e){this._registryMap.has(e)||this._registryMap.set(e,[])}}class cU extends lU{}class uU{constructor(){this.scopedResolutions=new Map}}class dU extends lU{}class hU extends lU{}class pU{constructor(){this.preResolution=new dU,this.postResolution=new hU}}const gU=new Map;class fU{constructor(e){this.parent=e,this._registry=new cU,this.interceptors=new pU,this.disposed=!1,this.disposables=new Set}register(e,t,n={lifecycle:eU.Transient}){let i;if(this.ensureNotDisposed(),i=function(e){return tU(e)||aU(e)||oU(e)||nU(e)}(t)?t:{useClass:t},oU(i)){const t=[e];let n=i;for(;null!=n;){const e=n.useToken;if(t.includes(e))throw new Error("Token registration cycle detected! "+[...t,e].join(" -> "));t.push(e);const i=this._registry.get(e);n=i&&oU(i.provider)?i.provider:null}}if((n.lifecycle===eU.Singleton||n.lifecycle==eU.ContainerScoped||n.lifecycle==eU.ResolutionScoped)&&(aU(i)||nU(i)))throw new Error(`Cannot use lifecycle "${eU[n.lifecycle]}" with ValueProviders or FactoryProviders`);return this._registry.set(e,{provider:i,options:n}),this}registerType(e,t){return this.ensureNotDisposed(),rU(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}registerInstance(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}registerSingleton(e,t){if(this.ensureNotDisposed(),rU(e)){if(rU(t))return this.register(e,{useToken:t},{lifecycle:eU.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:eU.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}let n=e;return t&&!rU(t)&&(n=t),this.register(e,{useClass:n},{lifecycle:eU.Singleton})}resolve(e,t=new uU){this.ensureNotDisposed();const n=this.getRegistration(e);if(!n&&rU(e))throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`);if(this.executePreResolutionInterceptor(e,"Single"),n){const i=this.resolveRegistration(n,t);return this.executePostResolutionInterceptor(e,i,"Single"),i}if(function(e){return"function"==typeof e||e instanceof iU}(e)){const n=this.construct(e,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}executePreResolutionInterceptor(e,t){if(this.interceptors.preResolution.has(e)){const n=[];for(const i of this.interceptors.preResolution.getAll(e))"Once"!=i.options.frequency&&n.push(i),i.callback(e,t);this.interceptors.preResolution.setAll(e,n)}}executePostResolutionInterceptor(e,t,n){if(this.interceptors.postResolution.has(e)){const i=[];for(const r of this.interceptors.postResolution.getAll(e))"Once"!=r.options.frequency&&i.push(r),r.callback(e,t,n);this.interceptors.postResolution.setAll(e,i)}}resolveRegistration(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===eU.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);const n=e.options.lifecycle===eU.Singleton||e.options.lifecycle===eU.ContainerScoped;let i;return i=aU(e.provider)?e.provider.useValue:oU(e.provider)?n?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):tU(e.provider)?n?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):nU(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===eU.ResolutionScoped&&t.scopedResolutions.set(e,i),i}resolveAll(e,t=new uU){this.ensureNotDisposed();const n=this.getAllRegistrations(e);if(!n&&rU(e))throw new Error(`Attempted to resolve unregistered dependency token: "${e.toString()}"`);if(this.executePreResolutionInterceptor(e,"All"),n){const i=n.map(e=>this.resolveRegistration(e,t));return this.executePostResolutionInterceptor(e,i,"All"),i}const i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i}isRegistered(e,t=!1){return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}reset(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}clearInstances(){this.ensureNotDisposed();for(const[e,t]of this._registry.entries())this._registry.setAll(e,t.filter(e=>!aU(e.provider)).map(e=>(e.instance=void 0,e)))}createChildContainer(){this.ensureNotDisposed();const e=new fU(this);for(const[t,n]of this._registry.entries())n.some(({options:e})=>e.lifecycle===eU.ContainerScoped)&&e._registry.setAll(t,n.map(e=>e.options.lifecycle===eU.ContainerScoped?{provider:e.provider,options:e.options}:e));return e}beforeResolution(e,t,n={frequency:"Always"}){this.interceptors.preResolution.set(e,{callback:t,options:n})}afterResolution(e,t,n={frequency:"Always"}){this.interceptors.postResolution.set(e,{callback:t,options:n})}dispose(){return M_(this,void 0,void 0,function*(){this.disposed=!0;const e=[];this.disposables.forEach(t=>{const n=t.dispose();n&&e.push(n)}),yield Promise.all(e)})}getRegistration(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}getAllRegistrations(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}construct(e,t){if(e instanceof iU)return e.createProxy(e=>this.resolve(e,t));const n=(()=>{const n=gU.get(e);if(!n||0===n.length){if(0===e.length)return new e;throw new Error(`TypeInfo not known for "${e.name}"`)}const i=n.map(this.resolveParams(t,e));return new e(...i)})();var i;return"function"!=typeof(i=n).dispose||i.dispose.length>0||this.disposables.add(n),n}resolveParams(e,t){return(n,i)=>{try{return"object"==typeof(r=n)&&"token"in r&&"multiple"in r?sU(n)?n.multiple?this.resolve(n.transform).transform(this.resolveAll(n.token),...n.transformArgs):this.resolve(n.transform).transform(this.resolve(n.token,e),...n.transformArgs):n.multiple?this.resolveAll(n.token):this.resolve(n.token,e):sU(n)?this.resolve(n.transform,e).transform(this.resolve(n.token,e),...n.transformArgs):this.resolve(n,e)}catch(s){throw new Error(function(e,t,n){const[,i=null]=e.toString().match(/constructor\(([\w, ]+)\)/)||[];return function(e,t,n="    "){return[e,...t.message.split("\n").map(e=>n+e)].join("\n")}(`Cannot inject the dependency ${function(e,t){return null===e?"at position #"+t:`"${e.split(",")[t].trim()}" at position #${t}`}(i,t)} of "${e.name}" constructor. Reason:`,n)}(t,i,s))}var r}}ensureNotDisposed(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}}const mU=new fU;var vU,bU=function(){return function(e){gU.set(e,function(e){const t=Reflect.getMetadata("design:paramtypes",e)||[],n=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(n).forEach(e=>{t[+e]=n[e]}),t}(e))}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");class yU{constructor(e={}){this.attrId="",this.attrValues=[],Object.assign(e)}}PV([xV({type:FF.ObjectIdentifier})],yU.prototype,"attrId",void 0),PV([xV({type:FF.Any,repeated:"set"})],yU.prototype,"attrValues",void 0);let wU=vU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,vU.prototype)}};var _U;wU=vU=PV([_V({type:LF.Sequence,itemType:yU})],wU);let xU=_U=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,_U.prototype)}};xU=_U=PV([_V({type:LF.Sequence,itemType:jj})],xU);class AU{constructor(e={}){this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],AU.prototype,"certId",void 0),PV([xV({type:FF.Any,context:0})],AU.prototype,"certValue",void 0);class CU{constructor(e={}){this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],CU.prototype,"crlId",void 0),PV([xV({type:FF.Any,context:0})],CU.prototype,"crltValue",void 0);class SU extends WN{}class kU{constructor(e={}){this.encryptionAlgorithm=new Zz,this.encryptedData=new SU,Object.assign(this,e)}}var EU,PU;PV([xV({type:Zz})],kU.prototype,"encryptionAlgorithm",void 0),PV([xV({type:SU})],kU.prototype,"encryptedData",void 0),function(e){e[e.v1=0]="v1"}(PU||(PU={}));class DU extends WN{}let OU=EU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,EU.prototype)}};OU=EU=PV([_V({type:LF.Sequence,itemType:Vz})],OU);class IU{constructor(e={}){this.version=PU.v1,this.privateKeyAlgorithm=new Zz,this.privateKey=new DU,Object.assign(this,e)}}PV([xV({type:FF.Integer})],IU.prototype,"version",void 0),PV([xV({type:Zz})],IU.prototype,"privateKeyAlgorithm",void 0),PV([xV({type:DU})],IU.prototype,"privateKey",void 0),PV([xV({type:OU,implicit:!0,context:0,optional:!0})],IU.prototype,"attributes",void 0);let TU=class extends IU{};TU=PV([_V({type:LF.Sequence})],TU);let MU=class extends kU{};MU=PV([_V({type:LF.Sequence})],MU);class BU{constructor(e={}){this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],BU.prototype,"secretTypeId",void 0),PV([xV({type:FF.Any,context:0})],BU.prototype,"secretValue",void 0);class RU{constructor(e={}){this.mac=new YH,this.macSalt=new WN,this.iterations=1,Object.assign(this,e)}}PV([xV({type:YH})],RU.prototype,"mac",void 0),PV([xV({type:WN})],RU.prototype,"macSalt",void 0),PV([xV({type:FF.Integer,defaultValue:1})],RU.prototype,"iterations",void 0);class LU{constructor(e={}){this.version=3,this.authSafe=new jj,this.macData=new RU,Object.assign(this,e)}}var FU;PV([xV({type:FF.Integer})],LU.prototype,"version",void 0),PV([xV({type:jj})],LU.prototype,"authSafe",void 0),PV([xV({type:RU,optional:!0})],LU.prototype,"macData",void 0);class NU{constructor(e={}){this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier})],NU.prototype,"bagId",void 0),PV([xV({type:FF.Any,context:0})],NU.prototype,"bagValue",void 0),PV([xV({type:yU,repeated:"set",optional:!0})],NU.prototype,"bagAttributes",void 0);let VU=FU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,FU.prototype)}};var zU,jU,HU;VU=FU=PV([_V({type:LF.Sequence,itemType:NU})],VU);let UU=class extends BV{constructor(e={}){super(e)}toString(){return{}.toString(),this.ia5String||super.toString()}};PV([xV({type:FF.IA5String})],UU.prototype,"ia5String",void 0),UU=PV([_V({type:LF.Choice})],UU);let WU=class extends jj{};WU=PV([_V({type:LF.Sequence})],WU);let $U=class extends LU{};$U=PV([_V({type:LF.Sequence})],$U);let GU=class extends kU{};GU=PV([_V({type:LF.Sequence})],GU);let qU=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.IA5String})],qU.prototype,"value",void 0),qU=PV([_V({type:LF.Choice})],qU);let YU=class extends UU{};YU=PV([_V({type:LF.Choice})],YU);let ZU=class extends BV{};ZU=PV([_V({type:LF.Choice})],ZU);let KU=class{constructor(e=new Date){this.value=e}};PV([xV({type:FF.GeneralizedTime})],KU.prototype,"value",void 0),KU=PV([_V({type:LF.Choice})],KU);let QU=class extends BV{};QU=PV([_V({type:LF.Choice})],QU);let XU=class{constructor(e="M"){this.value=e}toString(){return this.value}};PV([xV({type:FF.PrintableString})],XU.prototype,"value",void 0),XU=PV([_V({type:LF.Choice})],XU);let JU=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.PrintableString})],JU.prototype,"value",void 0),JU=PV([_V({type:LF.Choice})],JU);let eW=class extends JU{};eW=PV([_V({type:LF.Choice})],eW);let tW=class extends BV{};tW=PV([_V({type:LF.Choice})],tW);let nW=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.ObjectIdentifier})],nW.prototype,"value",void 0),nW=PV([_V({type:LF.Choice})],nW);let iW=class extends Qz{};iW=PV([_V({type:LF.Choice})],iW);let rW=class{constructor(e=0){this.value=e}toString(){return this.value.toString()}};PV([xV({type:FF.Integer})],rW.prototype,"value",void 0),rW=PV([_V({type:LF.Choice})],rW);let sW=class extends PH{};sW=PV([_V({type:LF.Sequence})],sW);let oW=class extends BV{};oW=PV([_V({type:LF.Choice})],oW);let aW=zU=class extends tj{constructor(e){super(e),Object.setPrototypeOf(this,zU.prototype)}};aW=zU=PV([_V({type:LF.Sequence})],aW);let lW=jU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,jU.prototype)}};lW=jU=PV([_V({type:LF.Set,itemType:cj})],lW);let cW=class{constructor(e=""){this.value=e}toString(){return this.value}};PV([xV({type:FF.BmpString})],cW.prototype,"value",void 0),cW=PV([_V({type:LF.Choice})],cW);let uW=class extends Zz{};uW=PV([_V({type:LF.Sequence})],uW);let dW=HU=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,HU.prototype)}};var hW;dW=HU=PV([_V({type:LF.Sequence,itemType:uW})],dW);let pW=hW=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,hW.prototype)}};pW=hW=PV([_V({type:LF.Sequence,itemType:Vz})],pW);class gW{constructor(e={}){this.version=0,this.subject=new VV,this.subjectPKInfo=new Kz,this.attributes=new pW,Object.assign(this,e)}}PV([xV({type:FF.Integer})],gW.prototype,"version",void 0),PV([xV({type:VV})],gW.prototype,"subject",void 0),PV([xV({type:Kz})],gW.prototype,"subjectPKInfo",void 0),PV([xV({type:pW,implicit:!0,context:0})],gW.prototype,"attributes",void 0);class fW{constructor(e={}){this.certificationRequestInfo=new gW,this.signatureAlgorithm=new Zz,this.signature=new ArrayBuffer(0),Object.assign(this,e)}}var mW;PV([xV({type:gW})],fW.prototype,"certificationRequestInfo",void 0),PV([xV({type:Zz})],fW.prototype,"signatureAlgorithm",void 0),PV([xV({type:FF.BitString})],fW.prototype,"signature",void 0),mU.registerSingleton("crypto.algorithmProvider",class{getAlgorithms(){return mU.resolveAll("crypto.algorithm")}toAsnAlgorithm(e){for(const t of this.getAlgorithms()){const n=t.toAsnAlgorithm(e);if(n)return n}if(/[0-9.]+/.test(e.name)){const t=new Zz({algorithm:e.name});return"parameters"in e&&(t.parameters=e.parameters),t}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}toWebAlgorithm(e){for(const t of this.getAlgorithms()){const n=t.toWebAlgorithm(e);if(n)return n}return{name:e.algorithm,parameters:e.parameters}}});const vW="ECDSA";let bW=mW=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case vW.toLowerCase():if("hash"in e)switch(("string"==typeof e.hash?e.hash:e.hash.name).toLowerCase()){case"sha-1":return BH;case"sha-256":return RH;case"sha-384":return LH;case"sha-512":return FH}else if("namedCurve"in e){let t="";switch(e.namedCurve){case"P-256":t="1.2.840.10045.3.1.7";break;case"K-256":t=mW.SECP256K1;break;case"P-384":t="1.3.132.0.34";break;case"P-521":t="1.3.132.0.35";break;case"brainpoolP160r1":t="1.3.36.3.3.2.8.1.1.1";break;case"brainpoolP160t1":t="1.3.36.3.3.2.8.1.1.2";break;case"brainpoolP192r1":t="1.3.36.3.3.2.8.1.1.3";break;case"brainpoolP192t1":t="1.3.36.3.3.2.8.1.1.4";break;case"brainpoolP224r1":t="1.3.36.3.3.2.8.1.1.5";break;case"brainpoolP224t1":t="1.3.36.3.3.2.8.1.1.6";break;case"brainpoolP256r1":t="1.3.36.3.3.2.8.1.1.7";break;case"brainpoolP256t1":t="1.3.36.3.3.2.8.1.1.8";break;case"brainpoolP320r1":t="1.3.36.3.3.2.8.1.1.9";break;case"brainpoolP320t1":t="1.3.36.3.3.2.8.1.1.10";break;case"brainpoolP384r1":t="1.3.36.3.3.2.8.1.1.11";break;case"brainpoolP384t1":t="1.3.36.3.3.2.8.1.1.12";break;case"brainpoolP512r1":t="1.3.36.3.3.2.8.1.1.13";break;case"brainpoolP512t1":t="1.3.36.3.3.2.8.1.1.14"}if(t)return new Zz({algorithm:"1.2.840.10045.2.1",parameters:EV.serialize(new NH({namedCurve:t}))})}}return null}toWebAlgorithm(e){switch(e.algorithm){case"1.2.840.10045.4.1":return{name:vW,hash:{name:"SHA-1"}};case"1.2.840.10045.4.3.2":return{name:vW,hash:{name:"SHA-256"}};case"1.2.840.10045.4.3.3":return{name:vW,hash:{name:"SHA-384"}};case"1.2.840.10045.4.3.4":return{name:vW,hash:{name:"SHA-512"}};case"1.2.840.10045.2.1":if(!e.parameters)throw new TypeError("Cannot get required parameters from EC algorithm");switch(EV.parse(e.parameters,NH).namedCurve){case"1.2.840.10045.3.1.7":return{name:vW,namedCurve:"P-256"};case mW.SECP256K1:return{name:vW,namedCurve:"K-256"};case"1.3.132.0.34":return{name:vW,namedCurve:"P-384"};case"1.3.132.0.35":return{name:vW,namedCurve:"P-521"};case"1.3.36.3.3.2.8.1.1.1":return{name:vW,namedCurve:"brainpoolP160r1"};case"1.3.36.3.3.2.8.1.1.2":return{name:vW,namedCurve:"brainpoolP160t1"};case"1.3.36.3.3.2.8.1.1.3":return{name:vW,namedCurve:"brainpoolP192r1"};case"1.3.36.3.3.2.8.1.1.4":return{name:vW,namedCurve:"brainpoolP192t1"};case"1.3.36.3.3.2.8.1.1.5":return{name:vW,namedCurve:"brainpoolP224r1"};case"1.3.36.3.3.2.8.1.1.6":return{name:vW,namedCurve:"brainpoolP224t1"};case"1.3.36.3.3.2.8.1.1.7":return{name:vW,namedCurve:"brainpoolP256r1"};case"1.3.36.3.3.2.8.1.1.8":return{name:vW,namedCurve:"brainpoolP256t1"};case"1.3.36.3.3.2.8.1.1.9":return{name:vW,namedCurve:"brainpoolP320r1"};case"1.3.36.3.3.2.8.1.1.10":return{name:vW,namedCurve:"brainpoolP320t1"};case"1.3.36.3.3.2.8.1.1.11":return{name:vW,namedCurve:"brainpoolP384r1"};case"1.3.36.3.3.2.8.1.1.12":return{name:vW,namedCurve:"brainpoolP384t1"};case"1.3.36.3.3.2.8.1.1.13":return{name:vW,namedCurve:"brainpoolP512r1"};case"1.3.36.3.3.2.8.1.1.14":return{name:vW,namedCurve:"brainpoolP512t1"}}}return null}};bW.SECP256K1="1.3.132.0.10",bW=mW=PV([bU()],bW),mU.registerSingleton("crypto.algorithm",bW);const yW=Symbol("name"),wW=Symbol("value");class _W{constructor(e,t={},n=""){this[yW]=e,this[wW]=n;for(const i in t)this[i]=t[i]}}_W.NAME=yW,_W.VALUE=wW;class xW{static toString(e){return this.items[e]||e}}xW.items={"1.3.14.3.2.26":"sha1","2.16.840.1.101.3.4.2.4":"sha224","2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512","1.2.840.113549.1.1.1":"rsaEncryption","1.2.840.113549.1.1.5":"sha1WithRSAEncryption","1.2.840.113549.1.1.14":"sha224WithRSAEncryption","1.2.840.113549.1.1.11":"sha256WithRSAEncryption","1.2.840.113549.1.1.12":"sha384WithRSAEncryption","1.2.840.113549.1.1.13":"sha512WithRSAEncryption","1.2.840.10045.2.1":"ecPublicKey","1.2.840.10045.4.1":"ecdsaWithSHA1","1.2.840.10045.4.3.1":"ecdsaWithSHA224","1.2.840.10045.4.3.2":"ecdsaWithSHA256","1.2.840.10045.4.3.3":"ecdsaWithSHA384","1.2.840.10045.4.3.4":"ecdsaWithSHA512","1.3.6.1.5.5.7.3.1":"TLS WWW server authentication","1.3.6.1.5.5.7.3.2":"TLS WWW client authentication","1.3.6.1.5.5.7.3.3":"Code Signing","1.3.6.1.5.5.7.3.4":"E-mail Protection","1.3.6.1.5.5.7.3.8":"Time Stamping","1.3.6.1.5.5.7.3.9":"OCSP Signing","1.2.840.113549.1.7.2":"Signed Data"};class AW{static serialize(e){return this.serializeObj(e).join("\n")}static pad(e=0){return"".padStart(2*e," ")}static serializeObj(e,t=0){const n=[];let i=this.pad(t++),r="";const s=e[_W.VALUE];s&&(r=" "+s),n.push(`${i}${e[_W.NAME]}:${r}`),i=this.pad(t);for(const o in e){if("symbol"==typeof o)continue;const r=e[o],s=o?o+": ":"";if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)n.push(`${i}${s}${r}`);else if(r instanceof Date)n.push(`${i}${s}${r.toUTCString()}`);else if(Array.isArray(r))for(const e of r)e[_W.NAME]=o,n.push(...this.serializeObj(e,t));else if(r instanceof _W)r[_W.NAME]=o,n.push(...this.serializeObj(r,t));else if(hF.BufferSourceConverter.isBufferSource(r))o?(n.push(`${i}${s}`),n.push(...this.serializeBufferSource(r,t+1))):n.push(...this.serializeBufferSource(r,t));else{if(!("toTextObject"in r))throw new TypeError("Cannot serialize data in text format. Unsupported type.");{const e=r.toTextObject();e[_W.NAME]=o,n.push(...this.serializeObj(e,t))}}}return n}static serializeBufferSource(e,t=0){const n=this.pad(t),i=hF.BufferSourceConverter.toUint8Array(e),r=[];for(let s=0;s<i.length;){const e=[];for(let t=0;t<16&&s<i.length;t++){8===t&&e.push("");const n=i[s++].toString(16).padStart(2,"0");e.push(n)}r.push(`${n}${e.join(" ")}`)}return r}static serializeAlgorithm(e){return this.algorithmSerializer.toTextObject(e)}}AW.oidSerializer=xW,AW.algorithmSerializer=class{static toTextObject(e){const t=new _W("Algorithm Identifier",{},xW.toString(e.algorithm));if(e.parameters)switch(e.algorithm){case"1.2.840.10045.2.1":{const n=(new bW).toWebAlgorithm(e);n&&"namedCurve"in n?t["Named Curve"]=n.namedCurve:t.Parameters=e.parameters;break}default:t.Parameters=e.parameters}return t}};class CW{constructor(...e){if(1===e.length){const t=e[0];this.rawData=EV.serialize(t),this.onInit(t)}else{const t=EV.parse(e[0],e[1]);this.rawData=hF.BufferSourceConverter.toArrayBuffer(e[0]),this.onInit(t)}}equal(e){return e instanceof CW&&Object(hF.isEqual)(e.rawData,this.rawData)}toString(e="text"){switch(e){case"asn":return EV.toString(this.rawData);case"text":return AW.serialize(this.toTextObject());case"hex":return hF.Convert.ToHex(this.rawData);case"base64":return hF.Convert.ToBase64(this.rawData);case"base64url":return hF.Convert.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}getTextName(){return this.constructor.NAME}toTextObject(){const e=this.toTextObjectEmpty();return e[""]=this.rawData,e}toTextObjectEmpty(e){return new _W(this.getTextName(),{},e)}}CW.NAME="ASN";class SW extends CW{constructor(...e){let t;t=hF.BufferSourceConverter.isBufferSource(e[0])?hF.BufferSourceConverter.toArrayBuffer(e[0]):EV.serialize(new ej({extnID:e[0],critical:e[1],extnValue:new WN(hF.BufferSourceConverter.toArrayBuffer(e[2]))})),super(t,ej)}onInit(e){this.type=e.extnID,this.critical=e.critical,this.value=e.extnValue.buffer}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.value,e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty(this.critical?"critical":void 0);return e[_W.NAME]===SW.NAME&&(e[_W.NAME]=xW.toString(this.type)),e}}var kW;class EW{constructor(){this.items=new Map,this[kW]="CryptoProvider","undefined"!=typeof self&&"undefined"!=typeof crypto&&this.set(EW.DEFAULT,crypto)}static isCryptoKeyPair(e){return e&&e.privateKey&&e.publicKey}static isCryptoKey(e){return e&&e.usages&&e.type&&e.algorithm&&void 0!==e.extractable}clear(){this.items.clear()}delete(e){return this.items.delete(e)}forEach(e,t){return this.items.forEach(e,t)}has(e){return this.items.has(e)}get size(){return this.items.size}entries(){return this.items.entries()}keys(){return this.items.keys()}values(){return this.items.values()}[Symbol.iterator](){return this.items[Symbol.iterator]()}get(e=EW.DEFAULT){const t=this.items.get(e.toLowerCase());if(!t)throw new Error(`Cannot get Crypto by name '${e}'`);return t}set(e,t){if("string"==typeof e){if(!t)throw new TypeError("Argument 'value' is required");this.items.set(e.toLowerCase(),t)}else this.items.set(EW.DEFAULT,e);return this}}kW=Symbol.toStringTag,EW.DEFAULT="default";const PW=new EW,DW=/^[0-2](?:\.[1-9][0-9]*)+$/;class OW{constructor(e={}){this.items={};for(const t in e)this.register(t,e[t])}get(e){return this.items[e]||null}findId(e){return t=e,new RegExp(DW).test(t)?e:this.get(e);var t}register(e,t){this.items[e]=t,this.items[t]=e}}const IW=new OW;function TW(e,t){return"\\"+hF.Convert.ToHex(hF.Convert.FromUtf8String(t)).toUpperCase()}IW.register("CN","2.5.4.3"),IW.register("L","2.5.4.7"),IW.register("ST","2.5.4.8"),IW.register("O","2.5.4.10"),IW.register("OU","2.5.4.11"),IW.register("C","2.5.4.6"),IW.register("DC","0.9.2342.19200300.100.1.25"),IW.register("E","1.2.840.113549.1.9.1"),IW.register("G","2.5.4.42"),IW.register("I","2.5.4.43"),IW.register("SN","2.5.4.4"),IW.register("T","2.5.4.12");class MW{constructor(e,t={}){this.extraNames=new OW,this.asn=new VV;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.extraNames.register(n,t[n]);this.asn="string"==typeof e?this.fromString(e):e instanceof VV?e:hF.BufferSourceConverter.isBufferSource(e)?EV.parse(e,VV):this.fromJSON(e)}static isASCII(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}getField(e){const t=this.extraNames.findId(e)||IW.findId(e),n=[];for(const i of this.asn)for(const e of i)e.type===t&&n.push(e.value.toString());return n}getName(e){return this.extraNames.get(e)||IW.get(e)}toString(){return this.asn.map(e=>e.map(e=>`${this.getName(e.type)||e.type}=${e.value.anyValue?"#"+hF.Convert.ToHex(e.value.anyValue):e.value.toString().replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,TW)}`).join("+")).join(", ")}toJSON(){var e;const t=[];for(const n of this.asn){const i={};for(const t of n){const n=this.getName(t.type)||t.type;null!==(e=i[n])&&void 0!==e||(i[n]=[]),i[n].push(t.value.anyValue?"#"+hF.Convert.ToHex(t.value.anyValue):t.value.toString())}t.push(i)}return t}fromString(e){const t=new VV,n=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let i=null,r=",";for(;i=n.exec(e+",");){let[,e,n]=i;const s=n[n.length-1];","!==s&&"+"!==s||(n=n.slice(0,n.length-1),i[3]=s);const o=i[3];if(/[\d.]+/.test(e)||(e=this.getName(e)||""),!e)throw new Error(`Cannot get OID for name type '${e}'`);const a=new LV({type:e});if("#"===n.charAt(0))a.value.anyValue=hF.Convert.FromHex(n.slice(1));else{const t=/"(.*?[^\\])?"/.exec(n);t&&(n=t[1]),n=n.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1"),e===this.getName("E")||e===this.getName("DC")?a.value.ia5String=n:MW.isASCII(n)?a.value.printableString=n:a.value.utf8String=n}"+"===r?t[t.length-1].push(a):t.push(new FV([a])),r=o}return t}fromJSON(e){const t=new VV;for(const n of e){const e=new FV;for(const t in n){let i=t;if(/[\d.]+/.test(t)||(i=this.getName(t)||""),!i)throw new Error(`Cannot get OID for name type '${t}'`);const r=n[t];for(const t of r){const n=new LV({type:i});if("object"==typeof t)for(const e in t)switch(e){case"ia5String":n.value.ia5String=t[e];break;case"utf8String":n.value.utf8String=t[e];break;case"universalString":n.value.universalString=t[e];break;case"bmpString":n.value.bmpString=t[e];break;case"printableString":n.value.printableString=t[e]}else"#"===t[0]?n.value.anyValue=hF.Convert.FromHex(t.slice(1)):i===this.getName("E")||i===this.getName("DC")?n.value.ia5String=t:n.value.printableString=t;e.push(n)}}t.push(e)}return t}toArrayBuffer(){return EV.serialize(this.asn)}async getThumbprint(...e){var t;let n,i="SHA-1";return e.length>=1&&!(null===(t=e[0])||void 0===t?void 0:t.subtle)?(i=e[0]||i,n=e[1]||PW.get()):n=e[0]||PW.get(),await n.subtle.digest(i,this.toArrayBuffer())}}const BW="Cannot initialize GeneralName from ASN.1 data. Unsupported string format in use.",RW=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,LW="1.3.6.1.4.1.311.20.2.3";class FW extends CW{constructor(...e){let t;if(2===e.length)switch(e[0]){case"dn":{const n=new MW(e[1]).toArrayBuffer(),i=EV.parse(n,VV);t=new UV({directoryName:i});break}case"dns":t=new UV({dNSName:e[1]});break;case"email":t=new UV({rfc822Name:e[1]});break;case"guid":{const n=new RegExp(RW,"i").exec(e[1]);if(!n)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");const i=n.slice(1).map((e,t)=>t<3?hF.Convert.ToHex(new Uint8Array(hF.Convert.FromHex(e)).reverse()):e).join("");t=new UV({otherName:new jV({typeId:"1.3.6.1.4.1.311.25.1",value:EV.serialize(new WN(hF.Convert.FromHex(i)))})});break}case"ip":t=new UV({iPAddress:e[1]});break;case"id":t=new UV({registeredID:e[1]});break;case"upn":t=new UV({otherName:new jV({typeId:LW,value:EV.serialize(tV.toASN(e[1]))})});break;case"url":t=new UV({uniformResourceIdentifier:e[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else t=hF.BufferSourceConverter.isBufferSource(e[0])?EV.parse(e[0],UV):e[0];super(t)}onInit(e){if(null!=e.dNSName)this.type="dns",this.value=e.dNSName;else if(null!=e.rfc822Name)this.type="email",this.value=e.rfc822Name;else if(null!=e.iPAddress)this.type="ip",this.value=e.iPAddress;else if(null!=e.uniformResourceIdentifier)this.type="url",this.value=e.uniformResourceIdentifier;else if(null!=e.registeredID)this.type="id",this.value=e.registeredID;else if(null!=e.directoryName)this.type="dn",this.value=new MW(e.directoryName).toString();else{if(null==e.otherName)throw new Error(BW);if("1.3.6.1.4.1.311.25.1"===e.otherName.typeId){this.type="guid";const t=EV.parse(e.otherName.value,WN),n=new RegExp(RW,"i").exec(hF.Convert.ToHex(t));if(!n)throw new Error("Cannot initialize GeneralName from ASN.1 data. Value doesn't match to GUID regular expression.");this.value=n.slice(1).map((e,t)=>t<3?hF.Convert.ToHex(new Uint8Array(hF.Convert.FromHex(e)).reverse()):e).join("-")}else{if(e.otherName.typeId!==LW)throw new Error(BW);this.type="upn",this.value=EV.parse(e.otherName.value,BV).toString()}}}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let e;switch(this.type){case"dn":case"dns":case"guid":case"ip":case"id":case"upn":case"url":e=this.type.toUpperCase();break;case"email":e="Email";break;default:throw new Error("Unsupported GeneralName type")}let t=this.value;return"id"===this.type&&(t=xW.toString(t)),new _W(e,void 0,t)}}class NW extends CW{constructor(e){let t;if(e instanceof QV)t=e;else if(Array.isArray(e)){const n=[];for(const t of e)if(t instanceof UV)n.push(t);else{const e=EV.parse(new FW(t.type,t.value).rawData,UV);n.push(e)}t=new QV(n)}else{if(!hF.BufferSourceConverter.isBufferSource(e))throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");t=EV.parse(e,QV)}super(t)}onInit(e){const t=[];for(const n of e){let e=null;try{e=new FW(n)}catch{continue}t.push(e)}this.items=t}toJSON(){return this.items.map(e=>e.toJSON())}toTextObject(){const e=super.toTextObjectEmpty();for(const t of this.items){const n=t.toTextObject();let i=e[n[_W.NAME]];Array.isArray(i)||(i=[],e[n[_W.NAME]]=i),i.push(n)}return e}}NW.NAME="GeneralNames";const VW="-{5}BEGIN ([^\\n]+(?=-{5}))-{5}\\n(?:((?:[^:\\n]+: (?:[^\\n]+\\n(?: +[^\\n]+\\n)*))+))?\\n?((?:[a-zA-Z0-9=+/]+\\n)+)-{5}END \\1-{5}";class zW{static isPem(e){return"string"==typeof e&&new RegExp(VW,"g").test(e)}static decodeWithHeaders(e){e=e.replace(/\r/g,"");const t=new RegExp(VW,"g"),n=[];let i=null;for(;i=t.exec(e);){const e=i[3].replace(new RegExp("[\\n]+","g"),""),t={type:i[1],headers:[],rawData:hF.Convert.FromBase64(e)},r=i[2];if(r){const e=r.split(new RegExp("\\n","g"));let n=null;for(const i of e){const[e,r]=i.split(/:(.*)/);if(void 0===r){if(!n)throw new Error("Cannot parse PEM string. Incorrect header value");n.value+=e.trim()}else n&&t.headers.push(n),n={key:e,value:r.trim()}}n&&t.headers.push(n)}n.push(t)}return n}static decode(e){return this.decodeWithHeaders(e).map(e=>e.rawData)}static decodeFirst(e){const t=this.decode(e);if(!t.length)throw new RangeError("PEM string doesn't contain any objects");return t[0]}static encode(e,t){if(Array.isArray(e)){const n=new Array;return e.forEach(t?e=>{if(!hF.BufferSourceConverter.isBufferSource(e))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");n.push(this.encodeStruct({type:t,rawData:hF.BufferSourceConverter.toArrayBuffer(e)}))}:e=>{if(!("type"in e))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");n.push(this.encodeStruct(e))}),n.join("\n")}if(!t)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:t,rawData:hF.BufferSourceConverter.toArrayBuffer(e)})}static encodeStruct(e){var t;const n=e.type.toLocaleUpperCase(),i=[];if(i.push(`-----BEGIN ${n}-----`),null===(t=e.headers)||void 0===t?void 0:t.length){for(const t of e.headers)i.push(`${t.key}: ${t.value}`);i.push("")}const r=hF.Convert.ToBase64(e.rawData);let s,o=0;const a=Array();for(;o<r.length&&(r.length-o<64?s=r.substring(o):(s=r.substring(o,o+64),o+=64),0!==s.length)&&(a.push(s),!(s.length<64)););return i.push(...a),i.push(`-----END ${n}-----`),i.join("\n")}}zW.CertificateTag="CERTIFICATE",zW.CrlTag="CRL",zW.CertificateRequestTag="CERTIFICATE REQUEST",zW.PublicKeyTag="PUBLIC KEY",zW.PrivateKeyTag="PRIVATE KEY";class jW extends CW{static isAsnEncoded(e){return hF.BufferSourceConverter.isBufferSource(e)||"string"==typeof e}static toArrayBuffer(e){if("string"==typeof e){if(zW.isPem(e))return zW.decode(e)[0];if(hF.Convert.isHex(e))return hF.Convert.FromHex(e);if(hF.Convert.isBase64(e))return hF.Convert.FromBase64(e);if(hF.Convert.isBase64Url(e))return hF.Convert.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}{const t=hF.Convert.ToBinary(e);return zW.isPem(t)?zW.decode(t)[0]:hF.Convert.isHex(t)?hF.Convert.FromHex(t):hF.Convert.isBase64(t)?hF.Convert.FromBase64(t):hF.Convert.isBase64Url(t)?hF.Convert.FromBase64Url(t):hF.BufferSourceConverter.toArrayBuffer(e)}}constructor(...e){jW.isAsnEncoded(e[0])?super(jW.toArrayBuffer(e[0]),e[1]):super(e[0])}toString(e="pem"){switch(e){case"pem":return zW.encode(this.rawData,this.tag);default:return super.toString(e)}}}class HW extends jW{constructor(e){jW.isAsnEncoded(e)?super(e,Kz):super(e),this.tag=zW.PublicKeyTag}async export(...e){let t,n=["verify"],i={hash:"SHA-256",...this.algorithm};return e.length>1?(i=e[0]||i,n=e[1]||n,t=e[2]||PW.get()):t=e[0]||PW.get(),t.subtle.importKey("spki",this.rawData,i,!0,n)}onInit(e){const t=mU.resolve("crypto.algorithmProvider"),n=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case"1.2.840.113549.1.1.1":{const t=EV.parse(e.subjectPublicKey,JH),i=hF.BufferSourceConverter.toUint8Array(t.modulus);n.publicExponent=hF.BufferSourceConverter.toUint8Array(t.publicExponent),n.modulusLength=(i[0]?i:i.slice(1)).byteLength<<3;break}}}async getThumbprint(...e){var t;let n,i="SHA-1";return e.length>=1&&!(null===(t=e[0])||void 0===t?void 0:t.subtle)?(i=e[0]||i,n=e[1]||PW.get()):n=e[0]||PW.get(),await n.subtle.digest(i,this.rawData)}async getKeyIdentifier(e){e||(e=PW.get());const t=EV.parse(this.rawData,Kz);return await e.subtle.digest("SHA-1",t.subjectPublicKey)}toTextObject(){const e=this.toTextObjectEmpty(),t=EV.parse(this.rawData,Kz);switch(e.Algorithm=AW.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case"1.2.840.10045.2.1":e["EC Point"]=t.subjectPublicKey;break;case"1.2.840.113549.1.1.1":default:e["Raw Data"]=t.subjectPublicKey}return e}}class UW{static register(e,t){this.items.set(e,t)}static create(e){const t=new SW(e),n=this.items.get(t.type);return n?new n(e):t}}UW.items=new Map;class WW extends jW{constructor(e){jW.isAsnEncoded(e)?super(e,sj):super(e),this.tag=zW.CertificateTag}onInit(e){const t=e.tbsCertificate;this.tbs=EV.serialize(t),this.serialNumber=hF.Convert.ToHex(t.serialNumber),this.subjectName=new MW(t.subject),this.subject=new MW(t.subject).toString(),this.issuerName=new MW(t.issuer),this.issuer=this.issuerName.toString();const n=mU.resolve("crypto.algorithmProvider");this.signatureAlgorithm=n.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signatureValue;const i=t.validity.notBefore.utcTime||t.validity.notBefore.generalTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;const r=t.validity.notAfter.utcTime||t.validity.notAfter.generalTime;if(!r)throw new Error("Cannot get 'notAfter' value");this.notAfter=r,this.extensions=[],t.extensions&&(this.extensions=t.extensions.map(e=>UW.create(EV.serialize(e)))),this.publicKey=new HW(t.subjectPublicKeyInfo)}getExtension(e){for(const t of this.extensions)if("string"==typeof e){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>"string"==typeof e?t.type===e:t instanceof e)}async verify(e={},t=PW.get()){let n,i;const r=e.publicKey;try{if(r)if("publicKey"in r)n={...r.publicKey.algorithm,...this.signatureAlgorithm},i=await r.publicKey.export(n,["verify"]);else if(r instanceof HW)n={...r.algorithm,...this.signatureAlgorithm},i=await r.export(n,["verify"]);else if(hF.BufferSourceConverter.isBufferSource(r)){const e=new HW(r);n={...e.algorithm,...this.signatureAlgorithm},i=await e.export(n,["verify"])}else n={...r.algorithm,...this.signatureAlgorithm},i=r;else n={...this.publicKey.algorithm,...this.signatureAlgorithm},i=await this.publicKey.export(n,["verify"],t)}catch(l){return!1}const s=mU.resolveAll("crypto.signatureFormatter").reverse();let o=null;for(const c of s)if(o=c.toWebSignature(n,this.signature),o)break;if(!o)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const a=await t.subtle.verify(this.signatureAlgorithm,i,o,this.tbs);if(e.signatureOnly)return a;{const t=(e.date||new Date).getTime();return a&&this.notBefore.getTime()<t&&t<this.notAfter.getTime()}}async getThumbprint(...e){let t,n="SHA-1";return e[0]&&(e[0].subtle?t=e[0]:(n=e[0]||n,t=e[1])),null!=t||(t=PW.get()),await t.subtle.digest(n,this.rawData)}async isSelfSigned(e=PW.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},e)}toTextObject(){const e=this.toTextObjectEmpty(),t=EV.parse(this.rawData,sj),n=t.tbsCertificate,i=new _W("",{Version:`${nj[n.version]} (${n.version})`,"Serial Number":n.serialNumber,"Signature Algorithm":AW.serializeAlgorithm(n.signature),Issuer:this.issuer,Validity:new _W("",{"Not Before":n.validity.notBefore.getTime(),"Not After":n.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(n.issuerUniqueID&&(i["Issuer Unique ID"]=n.issuerUniqueID),n.subjectUniqueID&&(i["Subject Unique ID"]=n.subjectUniqueID),this.extensions.length){const e=new _W("");for(const t of this.extensions){const n=t.toTextObject();e[n[_W.NAME]]=n}i.Extensions=e}return e.Data=i,e.Signature=new _W("",{Algorithm:AW.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}WW.NAME="Certificate";class $W extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else if("string"==typeof e[0]){const t=new YV({keyIdentifier:new qV(hF.Convert.FromHex(e[0]))});super("2.5.29.35",e[1],EV.serialize(t))}else{const t=e[0],n=t.name instanceof NW?EV.parse(t.name.rawData,QV):t.name,i=new YV({authorityCertIssuer:n,authorityCertSerialNumber:hF.Convert.FromHex(t.serialNumber)});super("2.5.29.35",e[1],EV.serialize(i))}}static async create(e,t=!1,n=PW.get()){if(e instanceof WW||EW.isCryptoKey(e)){const i=e instanceof WW?await e.publicKey.export(n):e,r=await n.subtle.exportKey("spki",i),s=new HW(r),o=await s.getKeyIdentifier(n);return new $W(hF.Convert.ToHex(o),t)}return new $W(e,t)}onInit(e){super.onInit(e);const t=EV.parse(e.extnValue,YV);t.keyIdentifier&&(this.keyId=hF.Convert.ToHex(t.keyIdentifier)),t.authorityCertIssuer&&t.authorityCertSerialNumber&&(this.certId={name:t.authorityCertIssuer,serialNumber:hF.Convert.ToHex(t.authorityCertSerialNumber)})}toTextObject(){const e=this.toTextObjectWithoutValue(),t=EV.parse(this.value,YV);return t.authorityCertIssuer&&(e["Authority Issuer"]=new NW(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}$W.NAME="Authority Key Identifier";class GW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,ZV);this.ca=t.cA,this.pathLength=t.pathLenConstraint}else{const t=new ZV({cA:e[0],pathLenConstraint:e[1]});super("2.5.29.19",e[2],EV.serialize(t)),this.ca=e[0],this.pathLength=e[1]}}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),void 0!==this.pathLength&&(e["Path Length"]=this.pathLength),e}}var qW,YW,ZW;GW.NAME="Basic Constraints",(YW=qW||(qW={})).serverAuth="1.3.6.1.5.5.7.3.1",YW.clientAuth="1.3.6.1.5.5.7.3.2",YW.codeSigning="1.3.6.1.5.5.7.3.3",YW.emailProtection="1.3.6.1.5.5.7.3.4",YW.timeStamping="1.3.6.1.5.5.7.3.8",YW.ocspSigning="1.3.6.1.5.5.7.3.9";class KW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,xz);this.usages=t.map(e=>e)}else{const t=new xz(e[0]);super("2.5.29.37",e[1],EV.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(e=>xW.toString(e)).join(", "),e}}KW.NAME="Extended Key Usages",function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(ZW||(ZW={}));class QW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,Dz);this.usages=t.toNumber()}else{const t=new Dz(e[0]);super("2.5.29.15",e[1],EV.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=EV.parse(this.value,Dz);return e[""]=t.toJSON().join(", "),e}}QW.NAME="Key Usages";class XW extends SW{constructor(...e){if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,Hz);this.keyId=hF.Convert.ToHex(t)}else{const t="string"==typeof e[0]?hF.Convert.FromHex(e[0]):e[0],n=new Hz(t);super("2.5.29.14",e[1],EV.serialize(n)),this.keyId=hF.Convert.ToHex(t)}}static async create(e,t=!1,n=PW.get()){let i;i=e instanceof HW?e.rawData:"publicKey"in e?e.publicKey.rawData:hF.BufferSourceConverter.isBufferSource(e)?e:await n.subtle.exportKey("spki",e);const r=new HW(i),s=await r.getKeyIdentifier(n);return new XW(hF.Convert.ToHex(s),t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=EV.parse(this.value,Hz);return e[""]=t,e}}XW.NAME="Subject Key Identifier";class JW extends SW{constructor(...e){hF.BufferSourceConverter.isBufferSource(e[0])?super(e[0]):super("2.5.29.17",e[1],new NW(e[0]||[]).rawData)}onInit(e){super.onInit(e);const t=EV.parse(e.extnValue,Nz);this.names=new NW(t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(const n in t)e[n]=t[n];return e}}JW.NAME="Subject Alternative Name";class e$ extends SW{constructor(...e){var t;if(hF.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);const t=EV.parse(this.value,az);this.policies=t.map(e=>e.policyIdentifier)}else{const n=e[0],i=null!==(t=e[1])&&void 0!==t&&t,r=new az(n.map(e=>new oz({policyIdentifier:e})));super("2.5.29.32",i,EV.serialize(r)),this.policies=n}}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(e=>new _W("",{},xW.toString(e))),e}}e$.NAME="Certificate Policies",UW.register("2.5.29.32",e$);class t$ extends CW{constructor(...e){let t;if(hF.BufferSourceConverter.isBufferSource(e[0]))t=hF.BufferSourceConverter.toArrayBuffer(e[0]);else{const n=e[0],i=Array.isArray(e[1])?e[1].map(e=>hF.BufferSourceConverter.toArrayBuffer(e)):[];t=EV.serialize(new Vz({type:n,values:i}))}super(t,Vz)}onInit(e){this.type=e.type,this.values=e.values}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Value=this.values.map(e=>new _W("",{"":e})),e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty();return e[_W.NAME]===t$.NAME&&(e[_W.NAME]=xW.toString(this.type)),e}}t$.NAME="Attribute";class n$ extends t${constructor(...e){var t;if(hF.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else{const t=new oW({printableString:e[0]});super("1.2.840.113549.1.9.7",[EV.serialize(t)])}null!==(t=this.password)&&void 0!==t||(this.password="")}onInit(e){if(super.onInit(e),this.values[0]){const e=EV.parse(this.values[0],oW);this.password=e.toString()}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[_W.VALUE]=this.password,e}}n$.NAME="Challenge Password";class i$ extends t${constructor(...e){var t;if(hF.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else{const t=e[0],n=new tj;for(const e of t)n.push(EV.parse(e.rawData,ej));super("1.2.840.113549.1.9.14",[EV.serialize(n)])}null!==(t=this.items)&&void 0!==t||(this.items=[])}onInit(e){if(super.onInit(e),this.values[0]){const e=EV.parse(this.values[0],tj);this.items=e.map(e=>UW.create(EV.serialize(e)))}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.items.map(e=>e.toTextObject());for(const n of t)e[n[_W.NAME]]=n;return e}}i$.NAME="Extensions";class r${static register(e,t){this.items.set(e,t)}static create(e){const t=new t$(e),n=this.items.get(t.type);return n?new n(e):t}}r$.items=new Map;let s$=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if(!e.hash)return new Zz({algorithm:"1.2.840.113549.1.1.1",parameters:null});switch(e.hash.name.toLowerCase()){case"sha-1":return new Zz({algorithm:"1.2.840.113549.1.1.5",parameters:null});case"sha-256":return new Zz({algorithm:"1.2.840.113549.1.1.11",parameters:null});case"sha-384":return new Zz({algorithm:"1.2.840.113549.1.1.12",parameters:null});case"sha-512":return new Zz({algorithm:"1.2.840.113549.1.1.13",parameters:null})}}return null}toWebAlgorithm(e){switch(e.algorithm){case"1.2.840.113549.1.1.1":return{name:"RSASSA-PKCS1-v1_5"};case"1.2.840.113549.1.1.5":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case"1.2.840.113549.1.1.11":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"1.2.840.113549.1.1.12":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case"1.2.840.113549.1.1.13":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}}return null}};s$=PV([bU()],s$),mU.registerSingleton("crypto.algorithm",s$);class o${addPadding(e,t){const n=hF.BufferSourceConverter.toUint8Array(t),i=new Uint8Array(e);return i.set(n,e-n.length),i}removePadding(e,t=!1){let n=hF.BufferSourceConverter.toUint8Array(e);for(let i=0;i<n.length;i++)if(n[i]){n=n.slice(i);break}if(t&&n[0]>127){const e=new Uint8Array(n.length+1);return e.set(n,1),e.buffer}return n.buffer}toAsnSignature(e,t){if("ECDSA"===e.name){const n=o$.namedCurveSize.get(e.namedCurve)||o$.defaultNamedCurveSize,i=new zH,r=hF.BufferSourceConverter.toUint8Array(t);return i.r=this.removePadding(r.slice(0,n),!0),i.s=this.removePadding(r.slice(n,n+n),!0),EV.serialize(i)}return null}toWebSignature(e,t){if("ECDSA"===e.name){const n=EV.parse(t,zH),i=o$.namedCurveSize.get(e.namedCurve)||o$.defaultNamedCurveSize,r=this.addPadding(i,this.removePadding(n.r)),s=this.addPadding(i,this.removePadding(n.s));return Object(hF.combine)(r,s)}return null}}o$.namedCurveSize=new Map,o$.defaultNamedCurveSize=32;let a$=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t="1.3.101.112";break;case"ed448":t="1.3.101.113"}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t="1.3.101.110";break;case"x448":t="1.3.101.111"}}return t?new Zz({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case"1.3.101.112":return{name:"EdDSA",namedCurve:"Ed25519"};case"1.3.101.113":return{name:"EdDSA",namedCurve:"Ed448"};case"1.3.101.110":return{name:"ECDH-ES",namedCurve:"X25519"};case"1.3.101.111":return{name:"ECDH-ES",namedCurve:"X448"}}return null}};a$=PV([bU()],a$),mU.registerSingleton("crypto.algorithm",a$);class l$ extends jW{constructor(e){jW.isAsnEncoded(e)?super(e,fW):super(e),this.tag=zW.CertificateRequestTag}onInit(e){this.tbs=EV.serialize(e.certificationRequestInfo),this.publicKey=new HW(e.certificationRequestInfo.subjectPKInfo);const t=mU.resolve("crypto.algorithmProvider");this.signatureAlgorithm=t.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signature,this.attributes=e.certificationRequestInfo.attributes.map(e=>r$.create(EV.serialize(e)));const n=this.getAttribute("1.2.840.113549.1.9.14");this.extensions=[],n instanceof i$&&(this.extensions=n.items),this.subjectName=new MW(e.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}getAttribute(e){for(const t of this.attributes)if(t.type===e)return t;return null}getAttributes(e){return this.attributes.filter(t=>t.type===e)}getExtension(e){for(const t of this.extensions)if(t.type===e)return t;return null}getExtensions(e){return this.extensions.filter(t=>t.type===e)}async verify(e=PW.get()){const t={...this.publicKey.algorithm,...this.signatureAlgorithm},n=await this.publicKey.export(t,["verify"],e),i=mU.resolveAll("crypto.signatureFormatter").reverse();let r=null;for(const s of i)if(r=s.toWebSignature(t,this.signature),r)break;if(!r)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await e.subtle.verify(this.signatureAlgorithm,n,r,this.tbs)}toTextObject(){const e=this.toTextObjectEmpty(),t=EV.parse(this.rawData,fW),n=t.certificationRequestInfo,i=new _W("",{Version:`${nj[n.version]} (${n.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const e=new _W("");for(const t of this.attributes){const n=t.toTextObject();e[n[_W.NAME]]=n}i.Attributes=e}return e.Data=i,e.Signature=new _W("",{Algorithm:AW.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}var c$;l$.NAME="PKCS#10 Certificate Request",function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(c$||(c$={})),UW.register("2.5.29.19",GW),UW.register("2.5.29.37",KW),UW.register("2.5.29.15",QW),UW.register("2.5.29.14",XW),UW.register("2.5.29.35",$W),UW.register("2.5.29.17",JW),r$.register("1.2.840.113549.1.9.7",n$),r$.register("1.2.840.113549.1.9.14",i$),mU.registerSingleton("crypto.signatureFormatter",class{toAsnSignature(e,t){return hF.BufferSourceConverter.toArrayBuffer(t)}toWebSignature(e,t){return hF.BufferSourceConverter.toArrayBuffer(t)}}),mU.registerSingleton("crypto.signatureFormatter",o$),o$.namedCurveSize.set("P-256",32),o$.namedCurveSize.set("K-256",32),o$.namedCurveSize.set("P-384",48),o$.namedCurveSize.set("P-521",66);let u$=(()=>{class e{static async pkcs10(t,n,i){const r=await t.subtle.generateKey(n,!1,e.keyUsages),s=await class{static async create(e,t=PW.get()){if(!e.keys.privateKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");if(!e.keys.publicKey)throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");const n=await t.subtle.exportKey("spki",e.keys.publicKey),i=new fW({certificationRequestInfo:new gW({subjectPKInfo:EV.parse(n,Kz)})});if(e.name){const t=e.name instanceof MW?e.name:new MW(e.name);i.certificationRequestInfo.subject=EV.parse(t.toArrayBuffer(),VV)}if(e.attributes)for(const u of e.attributes)i.certificationRequestInfo.attributes.push(EV.parse(u.rawData,Vz));if(e.extensions&&e.extensions.length){const t=new Vz({type:"1.2.840.113549.1.9.14"}),n=new tj;for(const i of e.extensions)n.push(EV.parse(i.rawData,ej));t.values.push(EV.serialize(n)),i.certificationRequestInfo.attributes.push(t)}const r={...e.signingAlgorithm,...e.keys.privateKey.algorithm},s=mU.resolve("crypto.algorithmProvider");i.signatureAlgorithm=s.toAsnAlgorithm(r);const o=EV.serialize(i.certificationRequestInfo),a=await t.subtle.sign(r,e.keys.privateKey,o),l=mU.resolveAll("crypto.signatureFormatter").reverse();let c=null;for(const u of l)if(c=u.toAsnSignature(r,a),c)break;if(!c)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return i.signature=c,new l$(EV.serialize(i))}}.create({name:i,keys:r,signingAlgorithm:n,extensions:[],attributes:[]},t);return{der:s.rawData,pem:s.toString("pem"),privateKey:r.privateKey,publicKey:r.publicKey}}static async x509(t,n,i){const r=await t.subtle.generateKey(n,!1,e.keyUsages),s=new Date,o=await class{static async createSelfSigned(e,t=PW.get()){if(!e.keys.privateKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");if(!e.keys.publicKey)throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");return this.create({serialNumber:e.serialNumber,subject:e.name,issuer:e.name,notBefore:e.notBefore,notAfter:e.notAfter,publicKey:e.keys.publicKey,signingKey:e.keys.privateKey,signingAlgorithm:e.signingAlgorithm,extensions:e.extensions},t)}static async create(e,t=PW.get()){var n;let i;i=e.publicKey instanceof HW?e.publicKey.rawData:"publicKey"in e.publicKey?e.publicKey.publicKey.rawData:hF.BufferSourceConverter.isBufferSource(e.publicKey)?e.publicKey:await t.subtle.exportKey("spki",e.publicKey);const r=new sj({tbsCertificate:new rj({version:nj.v3,serialNumber:hF.Convert.FromHex(e.serialNumber),validity:new Xz({notBefore:e.notBefore,notAfter:e.notAfter}),extensions:new tj((null===(n=e.extensions)||void 0===n?void 0:n.map(e=>EV.parse(e.rawData,ej)))||[]),subjectPublicKeyInfo:EV.parse(i,Kz)})});if(e.subject){const t=e.subject instanceof MW?e.subject:new MW(e.subject);r.tbsCertificate.subject=EV.parse(t.toArrayBuffer(),VV)}if(e.issuer){const t=e.issuer instanceof MW?e.issuer:new MW(e.issuer);r.tbsCertificate.issuer=EV.parse(t.toArrayBuffer(),VV)}const s="signingKey"in e?{...e.signingAlgorithm,...e.signingKey.algorithm}:e.publicKey.algorithm,o=mU.resolve("crypto.algorithmProvider");r.tbsCertificate.signature=r.signatureAlgorithm=o.toAsnAlgorithm(s);const a=EV.serialize(r.tbsCertificate),l="signingKey"in e?await t.subtle.sign(s,e.signingKey,a):e.signature,c=mU.resolveAll("crypto.signatureFormatter").reverse();let u=null;for(const d of c)if(u=d.toAsnSignature(s,l),u)break;if(!u)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");return r.signatureValue=u,new WW(EV.serialize(r))}}.createSelfSigned({serialNumber:"01",name:i,notBefore:new Date(s.getFullYear(),s.getMonth(),s.getDate()),notAfter:new Date(s.getFullYear()+1,s.getMonth(),s.getDate()),signingAlgorithm:n,keys:r,extensions:[new GW(!1,0,!0),new QW(ZW.digitalSignature,!0),new KW(["1.3.6.1.5.5.7.3.2","1.3.6.1.5.5.7.3.4"],!0)]},t);return{der:o.rawData,pem:o.toString("pem"),privateKey:r.privateKey,publicKey:r.publicKey}}}return e.keyUsages=["sign","verify"],e})();var d$,h$;!function(e){e[e.picture=0]="picture",e[e.handwrittenSignature=1]="handwrittenSignature"}(h$||(h$={}));let p$=class{constructor(e={}){Object.assign(this,e)}};PV([xV({type:FF.Integer})],p$.prototype,"predefinedBiometricType",void 0),PV([xV({type:FF.ObjectIdentifier})],p$.prototype,"biometricDataOid",void 0),p$=PV([_V({type:LF.Choice})],p$);class g${constructor(e={}){this.typeOfBiometricData=new p$,this.hashAlgorithm=new Zz,this.biometricDataHash=new WN,Object.assign(this,e)}}PV([xV({type:p$})],g$.prototype,"typeOfBiometricData",void 0),PV([xV({type:Zz})],g$.prototype,"hashAlgorithm",void 0),PV([xV({type:WN})],g$.prototype,"biometricDataHash",void 0),PV([xV({type:FF.IA5String,optional:!0})],g$.prototype,"sourceDataUri",void 0);let f$=d$=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,d$.prototype)}};var m$,v$;f$=d$=PV([_V({type:LF.Sequence,itemType:g$})],f$);class b${constructor(){this.statementId="",this.statementInfo=new ArrayBuffer(0)}}PV([xV({type:FF.ObjectIdentifier})],b$.prototype,"statementId",void 0),PV([xV({type:FF.Any,optional:!0})],b$.prototype,"statementInfo",void 0);let y$=m$=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,m$.prototype)}};y$=m$=PV([_V({type:LF.Sequence,itemType:UV})],y$);class w${constructor(e={}){Object.assign(this,e)}}PV([xV({type:FF.ObjectIdentifier,optional:!0})],w$.prototype,"semanticsIdentifier",void 0),PV([xV({type:y$,optional:!0})],w$.prototype,"nameRegistrationAuthorities",void 0);let _$=v$=class extends kV{constructor(e){super(e),Object.setPrototypeOf(this,v$.prototype)}};_$=v$=PV([_V({type:LF.Sequence,itemType:b$})],_$);let x$=class extends BV{};var A$;x$=PV([_V({type:LF.Choice})],x$),function(e){e.M="M",e.F="F",e.m="m",e.f="f"}(A$||(A$={}));class C${constructor(...e){1===e.length?(this.asn=e[0],this.rawData=EV.serialize(this.asn)):(this.asn=EV.parse(e[0],e[1]),this.rawData=hF.BufferSourceConverter.toArrayBuffer(e[0]))}}class S$ extends C${constructor(e){super(e,ej);const t=this.getAsnExtnValue();switch(this.asn.extnID){case"2.5.29.15":this.value=CV.parse(t,Dz);break;case"2.5.29.32":this.value=CV.parse(t,az);break;case"1.3.6.1.5.5.7.1.3":this.value=CV.parse(t,_$);break;case"2.5.29.19":this.value=CV.parse(t,ZV);break;default:this.value=t}}getAsnExtnValue(){return this.asn.extnValue.buffer}}class k$ extends C${constructor(e){super(e,sj),this.extensions=[],this.parseExtensions()}parseExtensions(){const{tbsCertificate:e}=this.asn;e.extensions&&(this.extensions=e.extensions.map(e=>new S$(EV.serialize(e))))}getExtensionByOid(e){if(this.extensions.length)for(let t=0;t<this.extensions.length;t+=1){const n=this.extensions[t];if(n&&n.asn.extnID===e)return n}}hasKeyUsage(e){if(!e||!e.length)return!1;const t=this.getExtensionByOid("2.5.29.15");if(!t)return!1;const n=t.value.toJSON();if(!n.length)return!1;for(let i=0;i<e.length;i+=1){const t=e[i];if("string"==typeof t&&n.includes(t))return!0;if(Array.isArray(t)&&t.every(e=>n.includes(e)))return!0}return!1}isQualified(e=[]){const t=this.getExtensionByOid("2.5.29.32");if(!t)return!1;const n=this.getExtensionByOid("1.3.6.1.5.5.7.1.3");if(!n)return!1;const i=t.value.map(e=>e.policyIdentifier),r=n.value.map(e=>e.statementId),s=r.includes("0.4.0.1862.1.1");let o=i.includes("0.4.0.1456.1.1")||i.includes("0.4.0.194112.1.3")||i.includes("0.4.0.194112.1.2")||r.includes("0.4.0.1862.1.4");const a=i.includes("0.4.0.194112.1.1")||r.includes("0.4.0.1862.1.6.2");return e.length&&e.forEach(e=>{r.includes(e)&&(o=!0)}),!!(s&&o||a)}isCA(){const e=this.getExtensionByOid("2.5.29.19");return!!e&&e.value.cA}}var E$,P$,D$,O$=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},I$=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};class T${constructor(e){this.FORTIFY_URL="127.0.0.1:31337",this.CONNECTION_CHECK_TIME=1e4,this.options={onDebug:()=>{},onClose:()=>{},onProvidersAdded:()=>{},onProvidersRemoved:()=>{},filters:{}},E$.set(this,void 0),P$.set(this,function(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,i=n.split("[FBAN");void 0!==i[1]&&(n=i[0]),void 0!==(i=n.split("Twitter"))[1]&&(n=i[0]);var r=function(e){return function(t){return t.test(e)}}(n),s={apple:{phone:r(KL)&&!r(rF),ipod:r(QL),tablet:!r(KL)&&(r(XL)||dF(t))&&!r(rF),universal:r(JL),device:(r(KL)||r(QL)||r(XL)||r(JL)||dF(t))&&!r(rF)},amazon:{phone:r(nF),tablet:!r(nF)&&r(iF),device:r(nF)||r(iF)},android:{phone:!r(rF)&&r(nF)||!r(rF)&&r(eF),tablet:!r(rF)&&!r(nF)&&!r(eF)&&(r(iF)||r(tF)),device:!r(rF)&&(r(nF)||r(iF)||r(eF)||r(tF))||r(/\bokhttp\b/i)},windows:{phone:r(rF),tablet:r(sF),device:r(rF)||r(sF)},other:{blackberry:r(oF),blackberry10:r(aF),opera:r(lF),firefox:r(uF),chrome:r(cF),device:r(oF)||r(aF)||r(lF)||r(uF)||r(cF)},any:!1,phone:!1,tablet:!1};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}(window.navigator)),D$.set(this,void 0),Object.assign(this.options,e),this.debug({type:"initialize",data:this.options})}debug(e){const{onDebug:t}=this.options;t&&t(Object.assign({time:new Date},e))}isConnectionSupported(){return!O$(this,P$,"f").phone}async isConnectionDetected(){try{return(await fetch(`https://${this.FORTIFY_URL}/.well-known/webcrypto-socket`)).ok}catch(e){return!1}}async isConnectionDetectedAuto(){return new Promise(e=>{const t=async()=>{await this.isConnectionDetected()?e():I$(this,D$,window.setTimeout(t,this.CONNECTION_CHECK_TIME),"f")};t()})}async start(){if(!this.isConnectionSupported())throw this.debug({type:"connection_not_supported"}),new Error("connection_not_supported");if(!(await this.isConnectionDetected()))throw this.debug({type:"connection_not_detected"}),new Error("connection_not_detected");await this.connect()}finish(){this.server&&(this.server.client.close(),this.server=null),O$(this,D$,"f")&&(clearTimeout(O$(this,D$,"f")),I$(this,D$,null,"f"))}async challenge(){if(!(await this.server.isLoggedIn()))return this.server.challenge()}async login(){try{await this.server.login()}catch(e){throw this.debug({type:"connection_key_not_approved"}),new Error("connection_key_not_approved")}}async connect(){if(await(async()=>{window.protobuf||await n.e(10).then(n.t.bind(null,"X5sl",7)),window.WebcryptoSocket||await n.e(61).then(n.bind(null,"lqkf"))})(),!O$(this,E$,"f"))try{I$(this,E$,await WebcryptoSocket.BrowserStorage.create(),"f")}catch(e){I$(this,E$,new WebcryptoSocket.MemoryStorage,"f")}return new Promise((e,t)=>{this.server&&e(),this.server=new WebcryptoSocket.SocketProvider({storage:O$(this,E$,"f")}).connect(this.FORTIFY_URL).on("error",e=>{t(e)}).on("listening",async()=>{e()}).on("token",async e=>{if(e.added.length){this.debug({type:"token_added",data:e.added});const t=e.added.filter(e=>this.providerFilter(e));this.options.onProvidersAdded(t)}e.removed.length&&(this.debug({type:"token_removed",data:e.removed}),this.options.onProvidersRemoved(e.removed))}).on("disconnect",()=>{console.log("disconnect")}).on("close",()=>{this.debug({type:"connection_close"}),this.options.onClose()})})}providerFilter(e){const{filters:t}=this.options;if(t.onlySmartcards&&!e.isRemovable)return!1;if(t.providerNameMatch){if("string"==typeof t.providerNameMatch&&!new RegExp(t.providerNameMatch,"i").test(e.name))return!1;if(t.providerNameMatch instanceof RegExp&&!t.providerNameMatch.test(e.name))return!1}if(t.providerATRMatch){if("string"==typeof t.providerATRMatch&&!new RegExp(t.providerATRMatch,"i").test(e.atr))return!1;if(t.providerATRMatch instanceof RegExp&&!t.providerATRMatch.test(e.atr))return!1}return!0}async getProviders(){const e=await this.server.info();this.debug({type:"providers",data:{providers:e.providers.map(e=>({id:e.id,isRemovable:e.isRemovable,name:e.name,readOnly:e.readOnly,version:e.version,algorithms:e.algorithms}))}});const t=e.providers.filter(e=>this.providerFilter(e));return this.debug({type:"providers_after_filters",data:{providers:t.map(e=>e.id)}}),t}async getProviderById(e,t){const n=await this.server.getCrypto(e);return t&&(await n.isLoggedIn()||await n.login()),n}async getCertificatesByProviders(e){const t=[];for(const n of e){const e=await this.getCertificatesByProviderId(n.id);t.push(...e)}return t}certificatePreFilter(e){const{filters:t}=this.options;if("x509"!==e.split("-")[0])return!1;if(t.certificateIdMatch){let n;if("string"==typeof t.certificateIdMatch?n=new RegExp(t.certificateIdMatch,"i"):t.certificateIdMatch instanceof RegExp&&(n=t.certificateIdMatch),n&&!n.test(e))return!1}return!0}async certificateFilter(e){const{filters:t}=this.options;if(!t.expired&&e.notAfter.getTime()<Date.now())return!1;if(t.subjectDNMatch){let n;if("string"==typeof t.subjectDNMatch?n=new RegExp(t.subjectDNMatch,"i"):t.subjectDNMatch instanceof RegExp&&(n=t.subjectDNMatch),n&&!n.test(e.subjectName))return!1}if(t.issuerDNMatch){let n;if("string"==typeof t.issuerDNMatch?n=new RegExp(t.issuerDNMatch,"i"):t.issuerDNMatch instanceof RegExp&&(n=t.issuerDNMatch),n&&!n.test(e.issuerName))return!1}const n=t.keyUsage&&t.keyUsage.length;if(n||t.onlyQualified||!t.ca){const i=new k$(e.raw);if(t.onlyQualified&&!i.isQualified(t.qualifiedCertificateStatements))return!1;if(n&&!i.hasKeyUsage(t.keyUsage))return!1;if(!t.ca)return!i.isCA()}return!0}async getCertificateByIndex(e,t,n){let i,r;try{i=await t.certStorage.getItem(e),r=await t.certStorage.exportCert("raw",i)}catch(s){return void console.warn("Can't read certificate: "+e)}if(i.raw=r,await this.certificateFilter(i))return i.index=e,i.subject=T$.getDNValue(i.subjectName),i.issuer=T$.getDNValue(i.issuerName),i.privateKeyId=n,i}async getCertificatesByProviderId(e){const{filters:t}=this.options;let n;try{n=await this.getProviderById(e,t.onlyWithPrivateKey)}catch(a){return[]}const i=[],r=await n.keyStorage.keys(),s=await n.certStorage.keys();this.debug({type:"provider_certificates",data:{providerId:e,keyIndexes:r,certIndexes:s}});for(const l of s){if(!this.certificatePreFilter(l))continue;const e=T$.getCertificatePrivateKeyByIndex(l,r);t.onlyWithPrivateKey&&!e||i.push(this.getCertificateByIndex(l,n,e))}const o=await Promise.all(i);return this.debug({type:"provider_certificates_after_filters",data:{certificates:o.map(e=>e?{index:e.index,providerID:e.providerID,issuerName:e.issuerName,subjectName:e.subjectName,serialNumber:e.serialNumber,notAfter:e.notAfter,notBefore:e.notBefore,privateKeyId:e.privateKeyId,raw:hF.Convert.ToBase64(e.raw)}:null)}}),o.filter(e=>!!e)}async getCertificateBodyById(e,t){const{filters:n}=this.options,i=await this.getProviderById(e,n.onlyWithPrivateKey),r=await i.certStorage.getItem(t),s=await i.certStorage.exportCert("raw",r);return hF.Convert.ToBase64(s)}static getCertificatePrivateKeyByIndex(e,t){const n=e.split("-");for(let i=0;i<t.length;i+=1){const e=t[i],r=e.split("-");if("private"===r[0]&&r[2]===n[2])return e}}static getDNValue(e){const t={};return e.split(/, /g).forEach(e=>{const[n,i]=e.split("=");t[n]=i}),t}defineKeysAlgorithm(e,t){if(e.startsWith("EC-"))return{hash:t,name:"ECDSA",namedCurve:e.replace("EC-P","P-")};if(e.startsWith("RSA"))return{hash:t,name:"RSASSA-PKCS1-V1_5",publicExponent:new Uint8Array([1,0,1]),modulusLength:Number(e.replace("RSA-",""))};throw new Error("Unsupported signature algorithm name: "+e)}async createX509(e,t){this.debug({type:"create_x509",data:Object.assign({providerId:e},t)});const n=await this.getProviderById(e,!0);n.exportKey=n.subtle.exportKey.bind(n.subtle),n.sign=n.subtle.sign.bind(n.subtle),n.digest=n.subtle.digest.bind(n.subtle);const i=this.defineKeysAlgorithm(t.signatureAlgorithm,t.hashAlgorithm),r=await u$.x509(n,i,t.subjectName),s=await n.certStorage.importCert("raw",r.der,i,u$.keyUsages);return await n.keyStorage.setItem(r.privateKey),await n.keyStorage.setItem(r.publicKey),await n.certStorage.setItem(s),r}async createPKCS10(e,t){this.debug({type:"create_pkcs10",data:Object.assign({providerId:e},t)});const n=await this.getProviderById(e,!0);n.exportKey=n.subtle.exportKey.bind(n.subtle),n.sign=n.subtle.sign.bind(n.subtle),n.digest=n.subtle.digest.bind(n.subtle);const i=this.defineKeysAlgorithm(t.signatureAlgorithm,t.hashAlgorithm),r=await u$.pkcs10(n,i,t.subjectName),s=await n.certStorage.importCert("raw",r.der,i,u$.keyUsages);return await n.keyStorage.setItem(r.privateKey),await n.keyStorage.setItem(r.publicKey),await n.certStorage.setItem(s),r}}E$=new WeakMap,P$=new WeakMap,D$=new WeakMap;var M$=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function B$(e,t){if(1&e){const e=Yo();Ho(0,"peculiar-fortify-certificates",1),Xo("selectionSuccess",function(t){return Lt(e),ia().certificateChosen(t)})("selectionCancel",function(){return Lt(e),ia().cancelSign()}),Uo()}2&e&&zo("filters",ia().filters)}let R$=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l){this.modalController=e,this.http=t,this.translate=n,this.notificationService=i,this.loadingController=r,this.signaturesService=s,this.actionsService=o,this.functionsService=a,this.authService=l,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.api=null}ngOnInit(){return M$(this,void 0,void 0,function*(){const e=this.authService.signatureRoles.filter(e=>e.id===this.signatureMode)[0];this.functionsService.empty(e.issuer)||(this.filters.issuerDNMatch=new RegExp(e.issuer,"i")),this.functionsService.empty(e.subject)||(this.filters.subjectDNMatch=new RegExp(e.subject,"i")),this.functionsService.empty(e.keyUsage)||this.filters.keyUsage.push(e.keyUsage),yield this.processInitFortify()})}ngOnDestroy(){return M$(this,void 0,void 0,function*(){this.functionsService.empty(this.api)||(this.api.finish(),this.api=null)})}initFortify(){return M$(this,void 0,void 0,function*(){this.api=new T$(null),yield this.waitFortifyStart(),(yield this.api.challenge())&&(yield this.api.login()),this.signaturesService.mustRefreshCerts&&(yield this.updateProvider(null)),this.api.server.cardReader.on("insert",e=>this.updateProvider(e)).on("remove",e=>this.updateProvider(e))})}processInitFortify(){return M$(this,void 0,void 0,function*(){this.signaturesService.mustRefreshCerts?this.loadingController.create({message:this.translate.instant("lang.waiting"),spinner:"dots"}).then(e=>M$(this,void 0,void 0,function*(){e.present(),yield this.initFortify(),e.dismiss()})):yield this.initFortify()})}waitFortifyStart(){return M$(this,void 0,void 0,function*(){let e=!1;for(;!e;)e=yield this.fortifyStart(),yield new Promise(e=>setTimeout(e,1e3))})}fortifyStart(){return new Promise(e=>M$(this,void 0,void 0,function*(){try{yield this.api.start(),e(!0)}catch(t){e(!1)}}))}certificateChosen(e){return M$(this,void 0,void 0,function*(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>M$(this,void 0,void 0,function*(){t.present();try{this.checkWebsocketSession(),this.provider=yield this.api.server.getCrypto(e.detail.providerId),this.checkWebsocketSession(),this.cert=yield this.provider.certStorage.getItem(e.detail.certificateId),this.checkWebsocketSession(),this.certPem=yield this.provider.certStorage.exportCert("pem",this.cert),this.checkWebsocketSession(),this.privateKey=yield this.provider.keyStorage.getItem(e.detail.privateKeyId)}catch(i){return this.notificationService.error(i),t.dismiss(),void this.modalController.dismiss(!1)}this.certificate={certificate:this.certPem};let n=!1;for(let e=0;e<this.idsToProcess.length;e++)this.signatures=yield this.actionsService.getElementsFromDoc(),n=yield this.sendAndSign(this.idsToProcess[e]);t.dismiss(),setTimeout(()=>{this.signaturesService.mustRefreshCerts=!0},500),this.modalController.dismiss(n)}))})}checkWebsocketSession(){return M$(this,void 0,void 0,function*(){for(;this.api.server.state!==WebSocket.OPEN;)yield this.api.server.connect(),yield new Promise(e=>setTimeout(e,150))})}updateProvider(e){return M$(this,void 0,void 0,function*(){const t=yield this.api.server.info();for(const e of t.providers){const t=yield this.api.server.getCrypto(e.id);yield t.reset()}!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("insert"))?(this.notificationService.message("lang.inputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("remove"))?(this.notificationService.message("lang.outputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):this.signaturesService.mustRefreshCerts&&null===e&&(this.modalController.dismiss("refresh_certs"),this.signaturesService.mustRefreshCerts=!1)})}sendAndSign(e){return M$(this,void 0,void 0,function*(){let t=!1,n={};for(;!t;){let i=!1;for(;!1===i;){if(n=yield this.fusionStampAndGenerateSignature(e,n.tmpUniqueId),null===n)return!1;if(!1===n)return!1;if(i=yield this.signDocument(e,n.hashDocument,n.signatureContentLength,n.signatureFieldName,n.tmpUniqueId),!0!==i)return!1;this.signatures.shift(),t=0===this.signatures.length}}return t})}fusionStampAndGenerateSignature(e,t=null){return M$(this,void 0,void 0,function*(){let n={};return n=yield this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures),n})}signDocument(e,t,n,i,r){return new Promise(s=>M$(this,void 0,void 0,function*(){const o={name:this.privateKey.algorithm.name,hash:"SHA-256"},a=this.fromHex(t);let l;try{this.checkWebsocketSession(),l=yield this.provider.subtle.sign(o,this.privateKey,a)}catch(h){return this.notificationService.error(h),s(!1),cv(!1)}const c={note:this.note},u={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(l),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:r},d=Object.assign(Object.assign({},c),u);this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,d).pipe(Ib(()=>{s(!0)}),mb(e=>(void 0!==e.error.newSignatureLength?(this.signatureLength=e.error.newSignatureLength,s(!1)):(this.notificationService.handleErrors(e),s("error")),cv(!1)))).subscribe()}))}cancelSign(){this.signaturesService.mustRefreshCerts=!0,this.modalController.dismiss(!1)}toHex(e){const t=new Uint8Array(e),n=[],i=t.length;for(let r=0;r<i;r++){const e=t[r].toString(16);n.push(1===e.length?"0"+e:e)}return n.join("")}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}return e.\u0275fac=function(t){return new(t||e)(Vo(tC),Vo(Ov),Vo(qC),Vo(QC),Vo(JA),Vo(oS),Vo(ZL),Vo(qL),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["style","height: 100%;width: 100%;","language","fr","hide-footer","",3,"filters","selectionSuccess","selectionCancel",4,"ngIf"],["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","selectionSuccess","selectionCancel"]],template:function(e,t){1&e&&(Ho(0,"ion-content"),Fo(1,B$,1,1,"peculiar-fortify-certificates",0),Uo()),2&e&&(is(1),zo("ngIf",!t.signaturesService.mustRefreshCerts))},directives:[Mx,$d],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@keyframes bounce{0%,20%,53%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{animation-duration:2s;animation-name:bounce;transform-origin:center bottom;animation-iteration-count:infinite}"]}),e})();var L$=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};let F$=(()=>{class e{constructor(e,t,n,i,r,s,o){this.http=e,this.modalController=t,this.actionsService=n,this.loadingController=i,this.translate=r,this.authService=s,this.notificationService=o}checkAuthenticationAndLaunchAction(e,t=null,n){return L$(this,void 0,void 0,function*(){return["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1?0!==this.authService.coreUrl.indexOf("https://")?(yield this.notificationService.error("lang.securedUrlNeeded"),null):yield this.openRgsAuth(t,e.signatureMode,n):yield this.launchDefaultMode(t,n)})}launchDefaultMode(e,t){return L$(this,void 0,void 0,function*(){return new Promise(n=>L$(this,void 0,void 0,function*(){const i=yield this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});i.present();let r=!0;for(let n=0;n<t.length;n++)r=yield this.actionsService.sendDocument(t[n],e);i.dismiss(),n(r)}))})}openRgsAuth(e,t,n){return L$(this,void 0,void 0,function*(){return new Promise(i=>L$(this,void 0,void 0,function*(){const r=yield this.modalController.create({component:R$,componentProps:{note:e,signatureMode:t,idsToProcess:n}});yield r.present();const{data:s}=yield r.onWillDismiss();i(s)}))})}}return e.\u0275fac=function(t){return new(t||e)(fi(Ov),fi(tC),fi(ZL),fi(JA),fi(qC),fi(lS),fi(QC))},e.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),N$=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.filtersService=t,this.authService=n,this.bottomSheetRef=i,this.date=new Date}ngOnInit(){setTimeout(()=>{this.signaturesService.currentToobal="mainDocumentDetail",this.filtersService.resfreshDocuments(!0),this.bottomSheetRef.dismiss()},2e3)}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(NL),Vo(lS),Vo(cI))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Ho(0,"div",0),Ho(1,"h1"),Wo(2,"i",1),Uo(),Ho(3,"p"),Oa(4),pc(5,"translate"),Uo(),Ho(6,"p",2),Oa(7),Uo(),Ho(8,"p",3),Oa(9),pc(10,"translate"),pc(11,"date"),pc(12,"translate"),pc(13,"date"),Uo(),Uo()),2&e&&(is(4),Ia(gc(5,7,"lang.documentValidateAs")),is(3),Ma("",t.authService.user.firstname," ",t.authService.user.lastname,""),is(2),Ra("",gc(10,9,"lang.onRange")," ",fc(11,11,t.date,"dd/MM/yyyy")," ",gc(12,14,"lang.atRange")," ",fc(13,16,t.date,"HH:mm"),""))},pipes:[YC,ch],styles:[""]}),e})();function V$(e,t){if(1&e&&($o(0),Ho(1,"div",1),Wo(2,"img",2),Uo(),Go()),2&e){const e=t.$implicit,n=ia();is(1),ma("width",n.signaturesService.workingAreaWidth,"px")("height",n.signaturesService.workingAreaHeight,"px"),is(1),ma("width",100,"%"),zo("src",n.sanitization.bypassSecurityTrustUrl(e.fullPath),or)}}let z$=(()=>{class e{constructor(e,t,n){this.translate=e,this.sanitization=t,this.signaturesService=n}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Yh),Vo(oS))},e.\u0275cmp=qe({type:e,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&Fo(0,V$,3,7,"ng-container",0),2&e&&zo("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[Ud],encapsulation:2}),e})();const j$=["menuTrigger"],H$=["test"],U$=function(e,t){return{x:e,y:t}};function W$(e,t){if(1&e){const e=Yo();Ho(0,"div",1,2),Xo("rzResizing",function(n){Lt(e);const i=t.index;return ia().onResizing(n,i)})("rzStart",function(){return Lt(e),ia().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),ia().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return ia().moveSign(n,i)})("rzStop",function(n){Lt(e);const i=t.index,r=ia();return r.onResizeStop(n,i),r.signaturesService.resizing=!1}),Ho(2,"ion-item",3),Ho(3,"ion-select",4),Xo("click",function(e){return e.stopPropagation()})("ionChange",function(n){Lt(e);const i=t.index;return ia().select(n,i)}),Ho(4,"ion-select-option",5),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-select-option",6),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Wo(10,"img",7),Uo()}if(2&e){const e=t.$implicit,n=ia();ma("width",e.width,"%")("height",n.fix),zo("position",cc(20,U$,e.positionX*n.signaturesService.workingAreaWidth/100,e.positionY*n.signaturesService.workingAreaHeight/100))("ngDraggable",!n.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",n.bounds)("inBounds",!0),is(5),Ta("",gc(6,16,"lang.delete")," "),is(2),zo("disabled",e.inAllPage),is(1),Ta(" ",gc(9,18,"lang.replicate"),""),is(2),ma("width",100,"%"),zo("src",n.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),or)}}let $$=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.translate=e,this.sanitization=t,this.signaturesService=n,this.notificationService=i,this.localStorage=r,this.dialog=s,this.popoverController=o,this.modalController=a,this.fix="auto",this.today=new Date}ngOnInit(){}select(e,t){this[e.detail.value](t)}moveSign(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizing(e,t){this.test.nativeElement.style.height="auto"}onResizeStop(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}cloneSign(e){this.dialog.open(ZB,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(t=>{if("yes"===t){this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage=!0,this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(let t=1;t<=this.signaturesService.totalPage;t++)this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),t!==this.signaturesService.currentPage&&this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(this.signaturesService.signaturesContent[this.signaturesService.currentPage][e])));this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}deleteSignature(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){const t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(let e=1;e<=this.signaturesService.totalPage;e++){this.signaturesService.signaturesContent[e]||(this.signaturesService.signaturesContent[e]=[]);for(let n=0;n<=this.signaturesService.signaturesContent[e].length;n++)this.signaturesService.signaturesContent[e][n]&&t===this.signaturesService.signaturesContent[e][n].token&&this.signaturesService.signaturesContent[e].splice(n,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}emptySigns(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Yh),Vo(oS),Vo(QC),Vo(aS),Vo(LI),Vo(nC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){if(1&e&&(Mc(j$,1),Mc(H$,1)),2&e){let e;Tc(e=Rc())&&(t.menuSign=e.first),Tc(e=Rc())&&(t.test=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&Fo(0,W$,11,23,"div",0),2&e&&zo("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[Ud,iE,eE,Gx,hA,ox,pA],pipes:[YC],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),e})();function G$(e,t){if(1&e&&(Ho(0,"ion-select-option",19),Oa(1),pc(2,"date"),pc(3,"translate"),Uo()),2&e){const e=t.$implicit,n=ia();zo("value",e),is(1),Ta(" ",vc(2,2,n.today,e,void 0,gc(3,7,"lang.langISO"))," ")}}function q$(e,t){if(1&e&&(Ho(0,"ion-select-option",19),Oa(1),Uo()),2&e){const e=t.$implicit;ba(ia().getFontLabel(e)),zo("value",e),is(1),Ta(" ",e," ")}}const Y$=function(){return{cssClass:"selectFormat"}};let Z$=(()=>{class e{constructor(e){this.modalController=e,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}ngOnInit(){this.date=JSON.parse(JSON.stringify(this.currentDate))}dismissModal(){this.modalController.dismiss()}getFontLabel(e){return e.replace(" ","_")}onSubmit(){this.modalController.dismiss(this.date)}select(e){this.date.size=this.size[e]}}return e.\u0275fac=function(t){return new(t||e)(Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.dismissModal()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-content"),Ho(9,"ion-toolbar"),Ho(10,"ion-title",5),Oa(11),pc(12,"date"),pc(13,"translate"),Uo(),Uo(),Ho(14,"ion-item"),Ho(15,"ion-label",6),Oa(16),pc(17,"translate"),Uo(),Ho(18,"ion-select",7),Xo("ngModelChange",function(e){return t.date.format=e}),Fo(19,G$,4,9,"ion-select-option",8),Uo(),Uo(),Ho(20,"ion-item",9),Xo("click",function(){return Lt(e),No(22).click()}),Ho(21,"input",10,11),Xo("ngModelChange",function(e){return t.date.color=e}),Uo(),Ho(23,"ion-label",6),Oa(24),pc(25,"translate"),Uo(),Wo(26,"ion-icon",12),Uo(),Ho(27,"ion-item"),Ho(28,"ion-label",6),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-select",13),Xo("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),pc(32,"translate"),Fo(33,q$,2,4,"ion-select-option",14),Uo(),Uo(),Uo(),Ho(34,"ion-footer",15),Ho(35,"ion-toolbar"),Ho(36,"ion-buttons",16),Ho(37,"ion-button",17),Xo("click",function(){return t.onSubmit()}),Ho(38,"ion-label"),Oa(39),pc(40,"translate"),Uo(),Uo(),Ho(41,"ion-button",18),Xo("click",function(){return t.dismissModal()}),Ho(42,"ion-label"),Oa(43),pc(44,"translate"),Uo(),Uo(),Uo(),Uo(),Uo()}2&e&&(zo("translucent",!0),is(3),Ia(gc(4,21,"lang.options")),is(7),ba(t.getFontLabel(t.date.font)),ma("color",t.date.color),is(1),Ia(vc(12,23,t.today,t.date.format,void 0,gc(13,28,"lang.langISO"))),is(5),Ia(gc(17,30,"lang.format")),is(2),zo("ngModel",t.date.format),is(1),zo("ngForOf",t.dateformats),is(2),zo("ngModel",t.date.color),is(3),Ia(gc(25,32,"lang.color")),is(2),ma("color",t.date.color),is(3),Ia(gc(30,34,"lang.font")),is(2),zo("ngModel",t.date.font)("interfaceOptions",ac(42,Y$))("cancelText",gc(32,36,"lang.cancel")),is(2),zo("ngForOf",t.datefonts),is(6),Ia(gc(40,38,"lang.save")),is(4),Ia(gc(44,40,"lang.cancel")))},directives:[zx,wA,bA,Sx,Cx,jx,Mx,Gx,Kx,hA,ox,am,Rm,Ud,Mf,Nx,pA],pipes:[YC,ch],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),e})();const K$=["menuTrigger"],Q$=["test2"],X$=function(e,t){return{x:e,y:t}};function J$(e,t){if(1&e){const e=Yo();Ho(0,"div",1,2),Xo("rzResizing",function(n){Lt(e);const i=t.index;return ia().onResizingDate(n,i)})("rzStart",function(){return Lt(e),ia().signaturesService.resizing=!0})("movingOffset",function(){return Lt(e),ia().signaturesService.dragging=!0})("endOffset",function(n){Lt(e);const i=t.index;return ia().moveDate(n,i)})("rzStop",function(n){Lt(e);const i=t.index,r=ia();return r.onResizeDateStop(n,i),r.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),Ho(2,"ion-buttons",3),Ho(3,"ion-button",4),Wo(4,"ion-icon",5),Uo(),Uo(),Ho(5,"mat-menu",null,6),Ho(7,"button",7),Xo("click",function(){Lt(e);const n=t.index;return ia().openDateSettings(n)}),Oa(8),pc(9,"translate"),Uo(),Ho(10,"button",7),Xo("click",function(){Lt(e);const n=t.index;return ia().deleteDate(n)}),Oa(11),pc(12,"translate"),Uo(),Uo(),dn(),Ho(13,"svg",8),Ho(14,"text",9),Oa(15),pc(16,"date"),pc(17,"translate"),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=No(6),r=ia();ma("width",e.width,"%")("height",e.height,"%")("height",r.fix),zo("id","dateDiv_"+n)("position",cc(34,X$,e.positionX*r.signaturesService.workingAreaWidth/100,e.positionY*r.signaturesService.workingAreaHeight/100))("ngDraggable",!r.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",r.bounds)("inBounds",!0),is(3),zo("matMenuTriggerFor",i),is(5),Ia(gc(9,23,"lang.options")),is(3),Ia(gc(12,25,"lang.delete")),is(2),zo("id","testSVG_"+n),is(1),ma("font-family",e.font)("fill",e.color),Bo("font-size",e.size),is(1),Ia(vc(16,27,r.today,e.format,void 0,gc(17,32,"lang.langISO")))}}let eG=(()=>{class e{constructor(e,t,n,i,r,s,o){this.translate=e,this.signaturesService=t,this.notificationService=n,this.localStorage=i,this.dialog=r,this.popoverController=s,this.modalController=o,this.fix="auto",this.today=new Date}ngOnInit(){}moveDate(e,t){const n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}onResizingDate(e,t){this.test2.nativeElement.style.height="auto"}onResizeDateStop(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}deleteDate(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}openDateSettings(e){return t=this,void 0,i=function*(){const t=yield this.modalController.create({component:Z$,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=n)},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(oS),Vo(QC),Vo(aS),Vo(LI),Vo(nC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-document-date-list"]],viewQuery:function(e,t){if(1&e&&(Mc(K$,1),Mc(Q$,1)),2&e){let e;Tc(e=Rc())&&(t.menuSign=e.first),Tc(e=Rc())&&(t.test2=e.first)}},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&Fo(0,J$,18,37,"div",0),2&e&&zo("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[Ud,iE,eE,Sx,Cx,zM,jx,LM,TM],pipes:[YC,ch],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),e})();var tG=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function nG(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",6),Xo("click",function(){Lt(e);const n=t.$implicit;return ia().loadVisaWorkflow(n)}),Ho(1,"ion-label"),Oa(2),Uo(),Ho(3,"ion-buttons",7),Ho(4,"ion-button",8),Xo("click",function(n){Lt(e);const i=t.$implicit,r=ia();return n.stopPropagation(),r.removeModel(i)}),Wo(5,"ion-icon",9),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ia(e.title)}}let iG=(()=>{class e{constructor(e,t,n,i,r,s){this.http=e,this.translate=t,this.popoverController=n,this.alertController=i,this.notificationService=r,this.authService=s,this.currentWorkflow=[],this.visaWorkflowModels=[]}ngOnInit(){this.getVisaUserModels()}createModel(){return tG(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>""!==e.title?(this.saveModel(e.title),!0):(this.notificationService.error(this.translate.instant("lang.label")+" "+this.translate.instant("lang.mandatory")),!1)}]});yield e.present()})}saveModel(e){const t={title:e,items:this.currentWorkflow.map(e=>({userId:e.userId,mode:this.authService.getWorkflowMode(e.role),signatureMode:this.authService.getSignatureMode(e.role)}))};this.http.post("../rest/workflowTemplates",t).pipe(Ib(t=>{this.notificationService.success("lang.modelCreated"),this.visaWorkflowModels.push({id:t.id,title:e})}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}removeModel(e){return tG(this,void 0,void 0,function*(){const t=yield this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{this.http.delete("../rest/workflowTemplates/"+e.id).pipe(Ib(()=>{this.visaWorkflowModels=this.visaWorkflowModels.filter(t=>t.id!==e.id),this.notificationService.success(`Mod\xe8le ${e.title} supprim\xe9`)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}]});yield t.present()})}getVisaUserModels(){this.http.get("../rest/workflowTemplates").pipe(Ib(e=>{this.visaWorkflowModels=e.workflowTemplates}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}loadVisaWorkflow(e){this.http.get("../rest/workflowTemplates/"+e.id).pipe(Ib(e=>{const t=e.workflowTemplate.items.map(e=>({userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}));this.popoverController.dismiss(t)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(nC),Vo(XA),Vo(QC),Vo(lS))},e.\u0275cmp=qe({type:e,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-list",0),Ho(1,"ion-list-header"),Ho(2,"ion-label",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Fo(5,nG,6,1,"ion-item",2),Ho(6,"ion-item",3),Xo("click",function(){return t.createModel()}),Wo(7,"ion-icon",4),Ho(8,"ion-label",5),Oa(9),pc(10,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,4,"lang.circuitModels")),is(2),zo("ngForOf",t.visaWorkflowModels),is(1),zo("disabled",0===t.currentWorkflow.length),is(3),Ia(gc(10,6,"lang.newTemplate")))},directives:[Qx,Xx,Kx,Ud,Gx,jx,Sx,Cx],pipes:[YC],styles:[""]}),e})();function rG(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-checkbox",19),Xo("ionChange",function(t){Lt(e),ia(2);const n=No(3);return ia().addUser(t.detail.value,n)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Ho(4,"ion-note",13),Oa(5),Uo(),Uo()}if(2&e){const e=t.$implicit;is(1),zo("value",e),is(2),Ma("",e.firstname," ",e.lastname,""),is(2),Ia(e.email)}}function sG(e,t){if(1&e&&(Ho(0,"ion-list",17),Fo(1,rG,6,4,"ion-item",18),Uo()),2&e){const e=ia(2);is(1),zo("ngForOf",e.visaUsersList)}}function oG(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-item",10),Ho(2,"ion-searchbar",11,12),Xo("ngModelChange",function(t){return Lt(e),ia().visaUsersSearchVal=t})("ionChange",function(t){return Lt(e),ia().getVisaUsers(t)})("ionFocus",function(){return Lt(e),ia().visaUsersSearchVal=""}),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",13),Ho(6,"ion-button",14),Xo("click",function(t){return Lt(e),ia().openVisaWorkflowModels(t)}),pc(7,"translate"),Wo(8,"ion-icon",15),Uo(),Uo(),Uo(),Fo(9,sG,2,1,"ion-list",16),Go()}if(2&e){const e=ia();is(2),zo("ngModel",e.visaUsersSearchVal)("placeholder",gc(4,4,"lang.searchUser")),is(4),zo("title",gc(7,6,"lang.circuitModels")),is(3),zo("ngIf",e.visaUsersList.length>0)}}function aG(e,t){1&e&&(Ho(0,"ion-list"),Ho(1,"ion-item",10),Ho(2,"ion-label",20),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.noUserInWorkflow")))}function lG(e,t){1&e&&(Ho(0,"p",31),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.substituteMsg"),""))}function cG(e,t){if(1&e&&(Ho(0,"h2",32),Oa(1),Uo()),2&e){const e=ia().$implicit;zo("title",e.userDisplay),is(1),Ia(e.userDisplay)}}function uG(e,t){1&e&&(Ho(0,"h2",33),Oa(1),pc(2,"translate"),Uo()),2&e&&(zo("title",ia().$implicit.userDisplay),is(1),Ta(" ",gc(2,2,"lang.userDeleted"),""))}function dG(e,t){if(1&e&&(Ho(0,"ion-select-option",37),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit,n=ia(2),i=n.index,r=n.$implicit,s=ia();zo("value",e)("disabled",!s.isValidRole(i,e,r.role)),is(1),Ta(" ",gc(2,3,"lang."+e+"User")," ")}}function hG(e,t){if(1&e){const e=Yo();Ho(0,"p",34),Ho(1,"ion-select",35),Xo("ngModelChange",function(t){return Lt(e),ia().$implicit.role=t}),pc(2,"translate"),Fo(3,dG,3,5,"ion-select-option",36),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia();let n=null;is(1),ma("color",null==(n=t.getRole(e.role))?null:n.color),zo("ngModel",e.role)("title",gc(2,7,"lang."+e.role+"User"))("interfaceOptions",t.customPopoverOptions)("disabled",!t.editMode),is(2),zo("ngForOf",e.modes)}}function pG(e,t){if(1&e&&(Ho(0,"ion-note",41),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2).$implicit;is(1),Ma(" ",gc(2,2,"lang."+e.mode+"ProcessInfo")," ",e.processDate," ")}}function gG(e,t){if(1&e&&(Ho(0,"ion-note",42),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2).$implicit;is(1),Ma(" ",gc(2,2,"lang.refProcessInfo")," ",e.processDate," ")}}function fG(e,t){if(1&e&&(Ho(0,"ion-note",43),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(2).$implicit;is(1),Ma(" ",gc(2,2,"lang.stopProcessInfo")," ",e.processDate," ")}}function mG(e,t){if(1&e&&(Ho(0,"p",32),Fo(1,pG,3,4,"ion-note",38),Fo(2,gG,3,4,"ion-note",39),Fo(3,fG,3,4,"ion-note",40),Uo()),2&e){const e=ia().$implicit;zo("title",e.processDate),is(1),zo("ngIf","VAL"===e.status),is(1),zo("ngIf","REF"===e.status),is(1),zo("ngIf","STOP"===e.status)}}function vG(e,t){1&e&&Wo(0,"ion-icon",44)}function bG(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",45),Xo("click",function(t){Lt(e);const n=ia().index,i=ia();return t.stopPropagation(),i.removeUser(n)}),Wo(1,"ion-icon",46),Uo()}}function yG(e,t){if(1&e&&(Ho(0,"ion-item",21),Ho(1,"ion-reorder",2),Wo(2,"ion-icon",22),pc(3,"translate"),Uo(),Ho(4,"ion-avatar",23),Xo("click",function(e){return e.stopPropagation()}),Wo(5,"img",24),Uo(),Ho(6,"ion-label"),Fo(7,lG,3,3,"p",25),Fo(8,cG,2,2,"h2",26),Fo(9,uG,3,4,"h2",27),Fo(10,hG,4,9,"p",28),Fo(11,mG,4,4,"p",26),Uo(),Fo(12,vG,1,0,"ion-icon",29),Ho(13,"ion-buttons",13),Fo(14,bG,2,0,"ion-button",30),Uo(),Uo()),2&e){const e=t.$implicit,n=ia();va("current",e.current),is(2),zo("title",gc(3,11,"lang.reorder")),is(3),zo("src",e.userPicture,or),is(2),zo("ngIf",n.userDelegated&&e.current),is(1),zo("ngIf",""!==e.userDisplay),is(1),zo("ngIf",""===e.userDisplay),is(1),zo("ngIf",null===e.processDate),is(1),zo("ngIf",null!==e.processDate),is(1),zo("ngIf",!n.editMode&&e.current),is(2),zo("ngIf",n.editMode)}}let wG=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.signaturesService=t,this.authService=n,this.notificationService=i,this.popoverController=r,this.editMode=!1,this.visaWorkflow=[],this.userDelegated=!1,this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[],this.tmpArray=[]}ngOnInit(){this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)})}doReorder(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}canMoveUser(e){let t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(e=>void 0!==e),this.isValidWorkflow(t)}isValidWorkflow(e=this.visaWorkflow){let t=!0;return e.forEach((n,i)=>{-1===["visa","stamp"].indexOf(n.role)&&e.filter((e,t)=>t>i&&"stamp"===e.role).length>0&&(t=!1)}),t}array_move(e,t,n){if(n>=e.length){let t=n-e.length+1;for(;t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e}getVisaUsers(e){this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ib(e=>{this.visaUsersList=e}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}addUser(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:`${e.firstname} ${e.lastname}`,role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}removeUser(e){this.visaWorkflow.splice(e,1)}getAvatarUser(e){void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(Ib(t=>{this.visaWorkflow[e].userPicture=t.picture}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}resetVisaUsersList(){this.visaUsersList=[]}openVisaWorkflowModels(e){return t=this,void 0,i=function*(){const t=yield this.popoverController.create({component:iG,componentProps:{currentWorkflow:this.visaWorkflow},event:e});yield t.present(),t.onDidDismiss().then(e=>{"backdrop"!==e.role&&(this.visaWorkflow=this.visaWorkflow.concat(e.data),this.visaWorkflow.forEach((e,t)=>{this.getAvatarUser(t)}))})},new((n=void 0)||(n=Promise))(function(e,r){function s(e){try{a(i.next(e))}catch(t){r(t)}}function o(e){try{a(i.throw(e))}catch(t){r(t)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(s,o)}a((i=i.apply(t,[])).next())});var t,n,i}getCurrentWorkflow(){return this.visaWorkflow}getRole(e){return this.authService.signatureRoles.filter(t=>t.id===e)[0]}loadWorkflow(e){this.visaWorkflow=e;const t=this.visaWorkflow.length;for(let n=0;n<t;n++)this.getAvatarUser(n)}isValidRole(e,t,n){return!(this.visaWorkflow.filter((t,n)=>n>e&&["stamp"].indexOf(t.role)>-1).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter((t,n)=>n<e&&-1===["visa","stamp"].indexOf(t.role)).length>0&&"stamp"===t)}setPositionsWorkfow(e,t,n){this.clearPositionsFromResource(e[t]),n.length>0&&(Object.keys(n).forEach(i=>{const r=Object.assign(Object.assign({},n[i]),{mainDocument:e[t].mainDocument});this.visaWorkflow[n[i].sequence].signaturePositions.push(r);const s=this.tmpArray.find(r=>r.key===n[i].sequence&&r.page===n[i].page&&r.docIndex===e.indexOf(e[t]));void 0!==s?this.tmpArray[this.tmpArray.indexOf(s)].signaturePositions=n[i].position:this.tmpArray.push({key:n[i].sequence,page:n[i].page,docIndex:e.indexOf(e[t]),signaturePositions:n[i].position})}),this.tmpArray.forEach(e=>{const t=this.visaWorkflow[e.key].signaturePositions.find(t=>t.page===e.page&&t.sequence===e.key&&t.docIndex===e.docIndex);void 0!==t?this.updatePositionsWorkfow(t,e):this.visaWorkflow[e.key].signaturePositions.push({docIndex:e.docIndex,page:e.page,mainDocument:!0,sequence:e.key,position:e.signaturePositions})}))}updatePositionsWorkfow(e,t){this.visaWorkflow.forEach(n=>{n.signaturePositions[n.signaturePositions.indexOf(e)].position=t.signaturePositions})}clearPositionsFromResource(e){this.visaWorkflow.forEach(t=>{t.signaturePositions=t.signaturePositions.filter(t=>t.mainDocument!==e.mainDocument)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(lS),Vo(QC),Vo(nC))},e.\u0275cmp=qe({type:e,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){if(1&e&&Mc(aA,1),2&e){let e;Tc(e=Rc())&&(t.reorderGroup=e.first)}},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow",userDelegated:"userDelegated"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"ion-content",6),Xo("click",function(){return t.resetVisaUsersList()}),Fo(9,oG,10,8,"ng-container",7),Fo(10,aG,5,3,"ion-list",7),Ho(11,"ion-reorder-group",8),Xo("ionItemReorder",function(e){return t.doReorder(e)}),Fo(12,yG,15,13,"ion-item",9),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,6,"lang.circuit")),is(3),zo("ngIf",t.editMode),is(1),zo("ngIf",0===t.visaWorkflow.length),is(1),zo("disabled",!t.editMode),is(1),zo("ngForOf",t.visaWorkflow))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,$d,aA,Ud,Gx,cA,lx,am,Rm,Qx,Ox,ex,Kx,nA,oA,_x,hA,ox,pA],pipes:[YC],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),e})();function _G(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",9),Xo("click",function(){Lt(e);const n=t.$implicit;return ia().goTo(n.id)}),Ho(1,"div"),Ho(2,"ion-label",10),Oa(3),Uo(),Ho(4,"ion-label",11),Oa(5),pc(6,"shorten"),Uo(),Uo(),Wo(7,"ion-icon",12),Uo()}if(2&e){const e=t.$implicit;is(3),Ia(e.reference),is(2),Ia(mc(6,2,e.title,50,"..."))}}let xG=(()=>{class e{constructor(e){this.router=e}ngOnInit(){}goTo(e){this.router.navigate(["/documents/"+e])}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_))},e.\u0275cmp=qe({type:e,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Ho(6,"b",6),Oa(7),Uo(),Oa(8),pc(9,"translate"),Uo(),Uo(),Uo(),Ho(10,"ion-content"),Ho(11,"div",7),Ho(12,"ion-list"),Fo(13,_G,8,6,"ion-item",8),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(7),Ia(null==t.associatedDocuments?null:t.associatedDocuments.length),is(1),Ta("\xa0",gc(9,4,"lang.associatedDocuments"),""),is(5),zo("ngForOf",t.associatedDocuments))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,Qx,Ud,Gx,Kx],pipes:[YC,uE],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),e})();function AG(e,t){1&e&&(Ho(0,"ion-card"),Ho(1,"ion-item",13),Wo(2,"ion-icon",14),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Uo(),Uo()),2&e&&(is(4),Ia(gc(5,1,"lang.docIsInMailGroup")))}function CG(e,t){if(1&e&&(Ho(0,"ion-item",8),Ho(1,"ion-label",9),Oa(2),pc(3,"translate"),Uo(),Wo(4,"ion-input",10),Uo()),2&e){const e=ia();zo("title",e.mainDocument.description),is(2),Ia(gc(3,3,"lang.description")),is(2),zo("value",e.mainDocument.description)}}function SG(e,t){if(1&e&&(Ho(0,"ion-item",8),Ho(1,"ion-label",9),Oa(2),pc(3,"translate"),Uo(),Wo(4,"ion-input",10),Uo()),2&e){const e=ia();zo("title",e.mainDocument.deadline),is(2),Ia(gc(3,3,"lang.processingDeadline")),is(2),zo("value",e.mainDocument.deadline)}}function kG(e,t){if(1&e&&(Ho(0,"ion-item"),Ho(1,"ion-label",9),Oa(2),pc(3,"translate"),Uo(),Wo(4,"ion-input",10),Uo()),2&e){const e=t.$implicit;is(2),Ia(gc(3,2,e.label)),is(2),zo("value",e.value)}}let EG=(()=>{class e{constructor(e,t){this.signaturesService=e,this.functionsService=t,this.loading=!1}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(qL))},e.\u0275cmp=qe({type:e,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Ho(3,"ion-button",3),Wo(4,"ion-icon",4),Uo(),Uo(),Ho(5,"ion-title",5),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"ion-content"),Fo(9,AG,6,3,"ion-card",6),Ho(10,"ion-list",7),Ho(11,"ion-item",8),Ho(12,"ion-label",9),Oa(13),pc(14,"translate"),Uo(),Wo(15,"ion-input",10),Uo(),Fo(16,CG,5,5,"ion-item",11),Fo(17,SG,5,5,"ion-item",11),Ho(18,"ion-item",8),Ho(19,"ion-label",9),Oa(20),pc(21,"translate"),Uo(),Wo(22,"ion-input",10),Uo(),Ho(23,"ion-item",8),Ho(24,"ion-label",9),Oa(25),pc(26,"translate"),Uo(),Wo(27,"ion-input",10),Uo(),Fo(28,kG,5,4,"ion-item",12),Uo(),Uo()),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,15,"lang.informations")),is(3),zo("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),is(2),zo("title",t.mainDocument.sender),is(2),Ia(gc(14,17,"lang.emittedBy")),is(2),zo("value",t.mainDocument.sender),is(1),zo("ngIf",null!=t.mainDocument.description),is(1),zo("ngIf",null!=t.mainDocument.deadline),is(1),zo("title",t.mainDocument.reference),is(2),Ia(gc(21,19,"lang.reference")),is(2),zo("value",t.mainDocument.reference),is(1),zo("title",t.mainDocument.title),is(2),Ia(gc(26,21,"lang.subject")),is(2),zo("value",t.mainDocument.title),is(1),zo("ngForOf",t.mainDocument.metadata))},directives:[zx,wA,Sx,Cx,jx,bA,Mx,$d,Qx,Gx,Kx,$x,lx,Ud,kx],pipes:[YC],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),e})();var PG=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const DG=["mainContent"],OG=["img"],IG=["snav"],TG=["dragElem"],MG=["appDocumentNotePad"],BG=["appDocumentList"],RG=["rightContent"],LG=["pagesList"];function FG(e,t){if(1&e){const e=Yo();Ho(0,"ion-segment-button",20),Xo("click",function(){return Lt(e),ia(2).openAssociatedDocuments()}),Ho(1,"ion-label",11),Oa(2),pc(3,"ucfirst"),pc(4,"translate"),Uo(),Wo(5,"ion-icon",21),Ho(6,"ion-badge",15),Oa(7),Uo(),Uo()}if(2&e){const e=ia(2);is(2),Ia(gc(3,2,gc(4,4,"lang.associatedDocuments"))),is(5),Ta(" ",e.mainDocument.linkedDocuments.length," ")}}function NG(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",22),Ho(1,"ion-button",23),Xo("click",function(t){return Lt(e),ia(2).openAction(t)}),Wo(2,"ion-icon",24),Uo(),Uo()}if(2&e){const e=ia(2);is(1),zo("disabled","CONVERTING"===e.mainDocument.status)}}function VG(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",6),Ho(1,"ion-toolbar",7),Ho(2,"ion-buttons",8),Wo(3,"ion-menu-button"),Uo(),Ho(4,"ion-segment",9),Xo("ionChange",function(t){return Lt(e),ia().signaturesService.currentToobal=t.detail.value}),Ho(5,"ion-segment-button",10),Xo("click",function(){return Lt(e),ia().openMainDocumentDetail()}),Ho(6,"ion-label",11),Oa(7),pc(8,"translate"),Uo(),Wo(9,"ion-icon",12),Uo(),Ho(10,"ion-segment-button",13),Xo("click",function(){return Lt(e),ia().openDocumentList()}),Ho(11,"ion-label",11),Oa(12),pc(13,"ucfirst"),pc(14,"translate"),Uo(),Wo(15,"ion-icon",14),Ho(16,"ion-badge",15),Oa(17),Uo(),Uo(),Fo(18,FG,8,6,"ion-segment-button",16),Ho(19,"ion-segment-button",17),Xo("click",function(){return Lt(e),ia().openVisaWorkflow()}),Ho(20,"ion-label",11),Oa(21),pc(22,"translate"),Uo(),Wo(23,"ion-icon",18),Ho(24,"ion-badge",15),Oa(25),Uo(),Uo(),Uo(),Fo(26,NG,3,1,"ion-buttons",19),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(4),zo("value",e.signaturesService.currentToobal),is(3),Ia(gc(8,9,"lang.informations")),is(5),Ia(gc(13,11,gc(14,13,"lang.attachedElements"))),is(5),Ta(" ",e.mainDocument.attachments.length+1," "),is(1),zo("ngIf",void 0!==e.mainDocument.linkedDocuments&&e.mainDocument.linkedDocuments.length>0),is(3),Ia(gc(22,15,"lang.circuit")),is(4),Ta(" ",e.mainDocument.workflow.length," "),is(1),zo("ngIf",!e.detailMode)}}function zG(e,t){1&e&&(Ho(0,"ion-toolbar",25),Ho(1,"ion-label",26),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.substitutionInfo")))}function jG(e,t){1&e&&(Ho(0,"ion-toolbar",27),Ho(1,"div",28),Ho(2,"ion-label",29),Oa(3),pc(4,"translate"),Uo(),Wo(5,"ion-spinner",30),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.convertingDocument")))}function HG(e,t){1&e&&(Ho(0,"ion-toolbar",27),Ho(1,"ion-label",31),Oa(2),pc(3,"translate"),Uo(),Uo()),2&e&&(is(2),Ia(gc(3,1,"lang.errorConvertingDocument")))}function UG(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",44),Xo("movingOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!1})("click",function(){return Lt(e),ia(3).expandedNote=!0}),pc(1,"translate"),Wo(2,"ion-icon",45),Uo()}if(2&e){ia(2);const e=No(7),t=ia();zo("bounds",e)("inBounds",!0)("title",gc(1,4,"lang.expandNote"))("disabled",t.signaturesService.dragging)}}function WG(e,t){if(1&e&&($o(0),Ho(1,"div",52),Oa(2),Uo(),Ho(3,"div",53),Oa(4),Uo(),Go()),2&e){const e=ia(4);is(2),Ma(" ",e.mainDocument.notes.creator," (",e.mainDocument.notes.creationDate,") : "),is(2),Ta(" ",e.mainDocument.notes.value," ")}}function $G(e,t){if(1&e&&(Ho(0,"div"),Ho(1,"div",52),Oa(2),Uo(),Ho(3,"div",53),Oa(4),Uo(),Uo()),2&e){const e=ia().$implicit;is(2),Ma(" ",e.userDisplay," (",e.processDate,") : "),is(2),Ta(" ",e.note," ")}}function GG(e,t){if(1&e&&($o(0),Fo(1,$G,5,3,"div",3),Go()),2&e){const e=t.$implicit;is(1),zo("ngIf",e.note)}}function qG(e,t){if(1&e){const e=Yo();Ho(0,"div",46),Xo("movingOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!0})("endOffset",function(){return Lt(e),ia(3).signaturesService.dragging=!1}),Ho(1,"div",47),Wo(2,"i",48),Ho(3,"span",49),Oa(4),pc(5,"translate"),Uo(),Ho(6,"i",50),Xo("click",function(){return Lt(e),ia(3).expandedNote=!1}),pc(7,"translate"),Uo(),Uo(),Fo(8,WG,5,3,"ng-container",3),Fo(9,GG,2,1,"ng-container",51),Uo()}if(2&e){ia(2);const e=No(7),t=ia();zo("bounds",e)("inBounds",!0),is(4),Ia(gc(5,6,"lang.note")),is(2),zo("title",gc(7,8,"lang.collapseNote")),is(2),zo("ngIf",null!=t.mainDocument.notes),is(1),zo("ngForOf",t.mainDocument.workflow)}}function YG(e,t){if(1&e&&($o(0),Fo(1,UG,3,6,"ion-fab-button",42),Fo(2,qG,10,10,"div",43),Go()),2&e){const e=ia(2);is(1),zo("ngIf",!e.expandedNote),is(1),zo("ngIf",e.expandedNote)}}function ZG(e,t){1&e&&Wo(0,"app-document-note-list")}function KG(e,t){1&e&&Wo(0,"app-document-sign-list",54),2&e&&(ia(),zo("bounds",No(7)))}function QG(e,t){1&e&&Wo(0,"app-document-date-list",54),2&e&&(ia(),zo("bounds",No(7)))}function XG(e,t){if(1&e){const e=Yo();Ho(0,"ion-img",55,56),Xo("ionImgDidLoad",function(t){return Lt(e),ia(2).imageLoaded(t)}),Uo()}if(2&e){const e=ia(2);ma("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),zo("src",e.docList[e.currentDoc].imgContent[e.pageNum])}}function JG(e,t){if(1&e&&(Ho(0,"ion-select-option",63),Oa(1),Uo()),2&e){const e=t.index,n=ia(3);zo("value",e+1)("disabled",e+1===n.pageNum),is(1),Ia(e+1)}}const eq=function(e){return{cssClass:e}};function tq(e,t){if(1&e){const e=Yo();Ho(0,"section",57),Ho(1,"div",58),Oa(2),Uo(),Ho(3,"div",59),Xo("click",function(t){return Lt(e),ia(2).openSelect(t)}),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-select",60,61),Xo("ngModelChange",function(t){return Lt(e),ia(2).pageNum=t})("ionChange",function(t){return Lt(e),ia(2).goTo(t.target.value)}),Fo(8,JG,2,3,"ion-select-option",62),Uo(),Uo()}if(2&e){const e=ia(2);is(2),Ta(" ",e.docList[e.currentDoc].title," "),is(2),Ba("",gc(5,7,"lang.page")," ",e.pageNum," / ",e.totalPages,""),is(2),zo("ngModel",e.pageNum)("interfaceOptions",lc(9,eq,e.totalPages>10?"popover-class":"custom-popover-class")),is(2),zo("ngForOf",e.pagesArray(e.totalPages))}}function nq(e,t){1&e&&(Ho(0,"ion-item",64),Wo(1,"ion-icon",65),Ho(2,"ion-label"),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.certifiedDocument")))}function iq(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",68),Xo("click",function(){return Lt(e),ia(3).prevPage()}),Wo(1,"ion-icon",69),Uo()}}function rq(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",70),Xo("click",function(){return Lt(e),ia(3).nextPage()}),Wo(1,"ion-icon",71),Uo()}}function sq(e,t){if(1&e&&($o(0),Fo(1,iq,2,0,"ion-fab-button",66),Fo(2,rq,2,0,"ion-fab-button",67),Go()),2&e){const e=ia(2);is(1),zo("ngIf",e.pageNum>1&&!e.loadingImage),is(1),zo("ngIf",e.pageNum<e.totalPages&&!e.loadingImage)}}function oq(e,t){if(1&e){const e=Yo();Ho(0,"ion-content",null,32),Fo(2,YG,3,2,"ng-container",3),Ho(3,"div",33),Ho(4,"drag-scroll",34,35),Xo("click",function(t){Lt(e);const n=ia();return 0==n.currentDoc&&!n.detailMode&&n.openAction(t)}),Ho(6,"div",36,37),Fo(8,ZG,1,0,"app-document-note-list",3),Fo(9,KG,1,1,"app-document-sign-list",38),Fo(10,QG,1,1,"app-document-date-list",38),Fo(11,XG,2,5,"ion-img",39),Uo(),Uo(),Uo(),Fo(12,tq,9,11,"section",40),Fo(13,nq,5,3,"ion-item",41),Fo(14,sq,3,2,"ng-container",3),Uo()}if(2&e){const e=ia();is(2),zo("ngIf",null!=e.mainDocument.notes||e.hasWorkflowNotes),is(2),ma("max-width",e.signaturesService.workingAreaWidth,"px"),zo("drag-scroll-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&e.signaturesService.mobileMode)("drag-disabled",(e.signaturesService.dragging||e.signaturesService.resizing)&&!e.signaturesService.mobileMode),is(2),ma("width",e.signaturesService.workingAreaWidth,"px")("height",e.signaturesService.workingAreaHeight,"px"),is(2),zo("ngIf",0==e.currentDoc&&!e.loadingImage),is(1),zo("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.signaturesContent[e.pageNum]),is(1),zo("ngIf",0===e.currentDoc&&!e.loadingImage&&e.signaturesService.datesContent[e.pageNum]),is(1),zo("ngIf",void 0!==e.docList[e.currentDoc]&&!e.functionsService.empty(e.docList[e.currentDoc].imgContent[e.pageNum])),is(1),zo("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&e.docList[e.currentDoc]),is(1),zo("ngIf",e.mainDocument.isCertified),is(1),zo("ngIf",!e.signaturesService.dragging&&!e.signaturesService.resizing&&!e.loadingImage)}}function aq(e,t){if(1&e&&Wo(0,"ion-icon",76),2&e){const e=ia().$implicit;zo("slot","start")("name",e.logo)}}function lq(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",74),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).launchEvent(n)}),Fo(1,aq,1,2,"ion-icon",75),Ho(2,"ion-label",26),Oa(3),pc(4,"translate"),Uo(),Uo()}if(2&e){const e=t.$implicit;zo("disabled",ia(2).isNotReady())("color",e.color),is(1),zo("ngIf",""!==e.logo),is(2),Ia(gc(4,4,e.label))}}function cq(e,t){if(1&e&&(Ho(0,"ion-footer",72),Fo(1,lq,5,6,"ion-button",73),Uo()),2&e){const e=ia();is(1),zo("ngForOf",e.actionsList)}}function uq(e,t){if(1&e&&Wo(0,"app-visa-workflow",81),2&e){const e=ia(2);zo("visaWorkflow",e.mainDocument.workflow)("userDelegated",e.userDelegated)}}function dq(e,t){if(1&e){const e=Yo();Ho(0,"app-document-list",82,83),Xo("triggerEvent",function(t){return Lt(e),ia(2).loadDoc(t)}),Uo()}if(2&e){const e=ia(2);zo("currentDocId",e.currentDoc)("docList",e.docList)}}function hq(e,t){1&e&&Wo(0,"app-associated-documents",84,85),2&e&&zo("associatedDocuments",ia(2).mainDocument.linkedDocuments)}function pq(e,t){1&e&&Wo(0,"app-main-document-detail",86,87),2&e&&zo("mainDocument",ia(2).mainDocument)}function gq(e,t){if(1&e&&(Fo(0,uq,1,2,"app-visa-workflow",77),Fo(1,dq,2,2,"app-document-list",78),Fo(2,hq,2,1,"app-associated-documents",79),Fo(3,pq,2,1,"app-main-document-detail",80)),2&e){const e=ia();zo("ngIf","visaWorkflow"==e.signaturesService.currentToobal),is(1),zo("ngIf","documentList"==e.signaturesService.currentToobal),is(1),zo("ngIf","associatedDocuments"==e.signaturesService.currentToobal),is(1),zo("ngIf","mainDocumentDetail"==e.signaturesService.currentToobal)}}let fq=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h,p,g,f,m,v,b,y,w,_,x){this.http=e,this.signaturesService=t,this.notificationService=n,this.sanitizer=i,this.dialog=r,this.authService=s,this.actionSheetController=o,this.loadingController=a,this.viewContainerRef=l,this.modalController=c,this.alertController=u,this.signatureMethodService=d,this.navCtrl=h,this.functionsService=p,this.actionsService=g,this.translate=f,this.router=m,this.route=v,this.bottomSheet=b,this.localStorage=y,this.menu=w,this.pdfViewerService=_,this.cookieService=x,this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.enterApp=!0,this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status,attachments:[],workflow:[]},this.loadingUI=!1,this.signaturesContent=[],this.docList=[],this.posX=0,this.posY=0,this.pageNum=1,this.currentDoc=0,this.detailMode=!1,this.expandedNote=!0,this.dragging=!1,this.resizing=!1,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.pdfname=null,this.fileContent="",this.userDelegated=!1,this.load=null,this.draggable=!1}imageLoaded(e){this.getImageDimensions(!0),"CONVERTING"!==this.mainDocument.status&&this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}getImageDimensions(e=!1){const t=new Image;t.onload=t=>{this.signaturesService.workingAreaWidth=t.target.naturalWidth,this.signaturesService.workingAreaHeight=t.target.naturalHeight,e&&this.getAreaDimension()},t.src=this.docList[this.currentDoc].imgContent[this.pageNum]}getAreaDimension(){const e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}openAction(e){return PG(this,void 0,void 0,function*(){this.posX=e.clientX,this.posY=e.clientY;const t=[];this.checkEmptyNote()||t.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:()=>{this.undoTag()}}),this.signaturesService.stampLock||(t.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:()=>{this.openSignatures()}}),t.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:()=>{this.openNoteEditor()}})),this.checkEmptiness()||t.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:()=>{this.removeTags()}});const n=yield this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:t});yield n.present()})}openSignatures(){return PG(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:DL,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(e=>!0===e.current)[0],content:this.fileContent}});yield e.present();const{data:t}=yield e.onWillDismiss();this.dragging=!1,void 0!==t&&("success"===t||void 0!==t.redirectPage&&this.goTo(t.redirectPage))})}openNoteEditor(){return PG(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:FL,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});yield e.present(),yield e.onWillDismiss()})}scrollToElem(){const e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}ionViewWillEnter(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}ngOnInit(){return PG(this,void 0,void 0,function*(){this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(e=>{void 0!==e.id&&this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(t=>{this.load=t,this.load.present(),this.http.get("../rest/documents/"+e.id).pipe(Ib(t=>PG(this,void 0,void 0,function*(){const n=yield this.checkSubstitute(t.document.workflow.find(e=>e.current));this.mainDocument=t.document,this.mainDocument.workflow=this.mainDocument.workflow.map(e=>(e.note&&(this.hasWorkflowNotes=!0),e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))),this.totalPages=this.mainDocument.pages,this.signaturesService.mainDocumentId=this.mainDocument.id,this.signaturesService.totalPage=this.mainDocument.pages,this.menu.enable(!0,"right-menu"),this.initDoc();const i=this.mainDocument.workflow.find(e=>!0===e.current);this.mainDocument.isCertified=this.mainDocument.workflow.filter(e=>"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate).length>0,this.userDelegated=n;const r=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}];this.mainDocument.readOnly?(this.actionsList=r,this.detailMode=!0):(null==i?void 0:i.userId)!==this.authService.user.id?n||(this.actionsList=r,this.detailMode=!0):this.functionsService.empty(i)||(this.signaturesService.stampLock=this.mainDocument.isCertified&&("stamp"===i.signatureMode&&"sign"===i[0].mode||"visa"===i.mode),i.userId!==this.authService.user.id?this.http.get("../rest/users/"+i.userId+"/signatures").subscribe(e=>{this.signaturesService.signaturesListSubstituted=e.signatures}):this.signaturesService.signaturesListSubstituted=[],i.datePositions.length>0&&this.functionsService.empty(this.signaturesService.datesContent)&&i.datePositions.forEach(e=>{this.signaturesService.datesContent[e.page]||(this.signaturesService.datesContent[e.page]=[]),this.signaturesService.datesContent[e.page][0]={width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:e.font,size:e.size,color:e.color,format:e.format}})),this.docList.push({id:this.mainDocument.id,title:this.mainDocument.title,pages:this.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+this.mainDocument.id+"/thumbnails"}),this.mainDocument.attachments.forEach(e=>{this.docList.push({id:e.id,title:e.title,pages:e.pages,imgContent:[],imgUrl:"../rest/attachments/"+e.id+"/thumbnails"})}),this.menu.enable(!0,"right-menu"),this.renderImage(),this.loadingdocument=!1,this.load.dismiss(),"CONVERTING"===this.mainDocument.status&&(this.timerSubscription=bD(0,1e4).pipe(Ib(()=>{this.http.get("../rest/documents/"+e.id).pipe(Ib(e=>{var t;this.totalPages=e.document.pages,"CONVERTING"!==e.document.status&&(this.mainDocument.status=e.document.status,null===(t=this.timerSubscription)||void 0===t||t.unsubscribe())})).subscribe()}),mb(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),cv(!1)))).subscribe())})),mb(e=>(console.log("error",e),setTimeout(()=>{this.load.dismiss()},200),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),cv(!1)))).subscribe()})})})}ngOnDestroy(){var e;null===(e=this.timerSubscription)||void 0===e||e.unsubscribe()}checkSubstitute(e){return!this.functionsService.empty(e)&&new Promise(t=>{this.http.get("../rest/users/"+e.userId).pipe(Ib(e=>{t(e.user.substitute===this.authService.user.id)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}renderPdf(){this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(e=>{this.pdfname="data:application/pdf;base64,"+e.encodedDocument,this.loadingpdf=!0})}onPagesLoaded(e){return PG(this,void 0,void 0,function*(){this.totalPages=e.pagesCount,this.exportAsImage()})}exportAsImage(){return PG(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});this.docList[this.currentDoc].imgContent[this.pageNum]=e,this.loadingpdf=!1,this.load.dismiss()})}renderImage(){void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ib(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent,this.fileContent=e.fileContent}),mb(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),cv(!1)))).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Ib(e=>{this.docList[this.currentDoc].imgContent[this.pageNum]="data:image/png;base64,"+e.fileContent}),mb(e=>(this.load.dismiss(),this.notificationService.handleErrors(e),this.router.navigate(["/home"]),cv(!1)))).subscribe())}initDoc(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";const e=this.localStorage.get(this.mainDocument.id.toString());if(e){const t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}testDrag(e){const t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}getPosition(e){let t=0,n=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}zoomForNotes(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}zoomForView(){this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(()=>{this.resetDragPos=!1},200),this.signaturesService.scale=1}prevPage(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}nextPage(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}goTo(e){this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(e=>{this.load=e,this.load.present(),this.loadingImage=!0,this.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}pagesArray(e){return Array(e)}refuseDocument(){return PG(this,void 0,void 0,function*(){let e=this.translate.instant("lang.rejectDocumentWarning");0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.refuseDocumentWithoutNote"));const t=yield this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:e=>PG(this,void 0,void 0,function*(){const t=yield this.actionsService.checkGroupMail(this.mainDocument,"reject"),n=yield this.signatureMethodService.launchDefaultMode(e.paragraph,t);this.functionsService.empty(n)||(this.bottomSheet.open(VL,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()))})}]});yield t.present()})}validateDocument(e){return PG(this,void 0,void 0,function*(){let e=this.translate.instant("lang.validateDocumentWarning");0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(e=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(e=this.translate.instant("lang.certifiedDocumentMsg2"));const t=yield this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:e,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:e=>PG(this,void 0,void 0,function*(){yield this.processToSign(e)})}]});yield t.present()})}processToSign(e){return PG(this,void 0,void 0,function*(){const t=this.mainDocument.workflow.filter(e=>!0===e.current)[0],n=yield this.actionsService.checkGroupMail(this.mainDocument,"validate"),i=yield this.signatureMethodService.checkAuthenticationAndLaunchAction(t,e.paragraph,n);this.functionsService.empty(i)||("refresh_certs"===i?this.processToSign(e):(this.bottomSheet.open(N$,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString())))})}removeTags(){return PG(this,void 0,void 0,function*(){this.signaturesService.currentAction=0;const e=yield this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:()=>{this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.localStorage.remove(this.mainDocument.id.toString()),this.notificationService.success("lang.noteAndSignatureDeleted")}}]});yield e.present()})}loadDoc(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}launchEvent(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}undoTag(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}checkEmptyNote(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}isEmptyNote(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}checkEmptiness(){let e=!0;for(let t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}openVisaWorkflow(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}openDocumentList(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}openAssociatedDocuments(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}openMainDocumentDetail(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}backToDetails(){this.signaturesService.currentToobal="mainDocumentDetail"}deleteSubstution(){confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.notificationService.success("lang.substitutionDeleted")})}back(){this.navCtrl.back()}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}openSelect(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}fromHex(e){const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}isNotReady(){return["CONVERTING","ERROR"].indexOf(this.mainDocument.status)>-1}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(QC),Vo(Yh),Vo(LI),Vo(lS),Vo(QA),Vo(JA),Vo(Gl),Vo(tC),Vo(XA),Vo(F$),Vo(hx),Vo(qL),Vo(ZL),Vo(qC),Vo(a_),Vo(jy),Vo(dI),Vo(aS),Vo(eC),Vo(XS),Vo(oE))},e.\u0275cmp=qe({type:e,selectors:[["app-document"]],viewQuery:function(e,t){if(1&e&&(Mc(DG,1),Mc(OG,1),Mc(IG,3),Mc(TG,1),Mc(MG,1),Mc(BG,1),Mc(RG,3),Mc(LG,1)),2&e){let e;Tc(e=Rc())&&(t.mainContent=e.first),Tc(e=Rc())&&(t.img=e.first),Tc(e=Rc())&&(t.snav=e.first),Tc(e=Rc())&&(t.dragElem=e.first),Tc(e=Rc())&&(t.appDocumentNotePad=e.first),Tc(e=Rc())&&(t.appDocumentList=e.first),Tc(e=Rc())&&(t.rightContent=e.first),Tc(e=Rc())&&(t.pagesList=e.first)}},decls:8,vars:6,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"disabled","click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],[1,"loading",2,"display","flex","height","100%"],[1,"loadingMsg"],["name","dots","color","light",2,"padding-top","6.5%"],[2,"font-size","14px","font-weight","bold"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow","userDelegated",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow","userDelegated"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(Fo(0,VG,27,17,"ion-header",0),Fo(1,zG,4,3,"ion-toolbar",1),Fo(2,jG,6,3,"ion-toolbar",2),Fo(3,HG,4,3,"ion-toolbar",2),Fo(4,oq,15,16,"ion-content",3),Fo(5,cq,2,1,"ion-footer",4),Fo(6,gq,4,4,"ng-template",null,5,Vc)),2&e&&(zo("ngIf",!t.loadingdocument),is(1),zo("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),is(1),zo("ngIf",0!==t.mainDocument.id&&"CONVERTING"===t.mainDocument.status),is(1),zo("ngIf",0!==t.mainDocument.id&&"ERROR"===t.mainDocument.status),is(1),zo("ngIf",!t.loadingdocument),is(1),zo("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[$d,zx,wA,Sx,eA,uA,ox,dA,Kx,jx,Ax,Cx,mA,Mx,Kk,Lx,eE,Ud,z$,$$,eG,Hx,hA,am,Rm,pA,Gx,Nx,wG,GL,xG,EG],pipes:[YC,dE],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}.loading[_ngcontent-%COMP%]{display:flex;position:absolute;justify-content:center;top:0;left:0;width:100%;height:100%;z-index:2;overflow:hidden}.loadingMsg[_ngcontent-%COMP%]{padding:2%;color:var(--ion-color-light);font-weight:700;margin-right:-5px}"]}),e})();var mq=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function vq(e,t){1&e&&(Ho(0,"a",13),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.forgotPassword")))}function bq(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.ldapEnabled")))}function yq(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.kerberosEnabled")))}function wq(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.x509Enabled")))}function _q(e,t){1&e&&(Ho(0,"a",14),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta("",gc(2,1,"lang.casEnabled")," "))}function xq(e,t){if(1&e&&(Ho(0,"a",15),pc(1,"translate"),Oa(2),Uo()),2&e){const e=ia();ca("href","",gc(1,3,"lang.repoUrl"),"/commit/",e.commitHash,"",or),is(2),Ia(e.commitHash.substring(0,8))}}let Aq=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c){this.http=e,this.router=t,this.authService=n,this.signaturesService=i,this.notificationService=r,this.dialog=s,this.formBuilder=o,this.loadingController=a,this.translate=l,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}ngOnInit(){return mq(this,void 0,void 0,function*(){this.loginForm=this.formBuilder.group({login:[null,Vf.required],password:[null,Vf.required]}),this.environment=Vu,this.signaturesService.reset(),yield this.loadCommitInformation()})}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}ngAfterViewInit(){setTimeout(()=>mq(this,void 0,void 0,function*(){this.showForm=!0,this.fixAutoFill(),yield this.initConnection()}),500)}fixAutoFill(){setTimeout(()=>{this.loginForm.get("login").setValue($("#login").val()),this.loginForm.get("password").setValue($("#password").val())},100)}onSubmit(e=null){return mq(this,void 0,void 0,function*(){const t=yield this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});yield t.present();let n="../rest/authenticate";null!==e&&(n+=e),this.authService.authFailed=!1,this.loginForm.invalid?(t.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post(n,{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(Ib(e=>{this.loading=!1,this.showForm=!1,this.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),this.authService.setUser({}),this.authService.getCachedUrl()?(this.router.navigateByUrl(this.authService.getCachedUrl()),this.authService.cleanCachedUrl()):this.router.navigate(["/home"]),t.dismiss()}),mb(e=>(this.loading=!1,this.authService.authFailed=!0,401===e.status&&-1===["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)?(this.notificationService.error("lang.wrongLoginPassword"),t.dismiss()):"azure_saml"===this.authService.authMode&&"Authentication Failed : not logged"===e.error.errors?(t.dismiss(),window.location.href=e.error.authUri):(t.dismiss(),this.notificationService.handleErrors(e)),cv(!1)))).subscribe()})}initConnection(){if(["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1)this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit();else if(["cas"].indexOf(this.authService.authMode)>-1)if(this.loginForm.disable(),this.loginForm.setValidators(null),null!=this.authService.casToken){const e=this.authService.casToken;this.authService.casToken=null,this.onSubmit("?"+e)}else window.location.href=this.authService.authUri}loadCommitInformation(){return new Promise(e=>{this.http.get("../rest/commitInformation").pipe(Ib(t=>{this.commitHash=t.hash,e(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(a_),Vo(lS),Vo(oS),Vo(QC),Vo(LI),Vo(lv),Vo(JA),Vo(qC),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:28,vars:19,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(Ho(0,"ion-content",0),Wo(1,"mat-icon",1),Ho(2,"ion-card",2),Ho(3,"ion-card-content"),Ho(4,"form",3),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(5,"ion-item"),Ho(6,"ion-label",4),Oa(7),pc(8,"translate"),Uo(),Ho(9,"ion-input",5),Xo("keyup.enter",function(){return t.onSubmit()}),Uo(),Uo(),Ho(10,"ion-item"),Ho(11,"ion-label",4),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",6),Xo("keyup.enter",function(){return t.onSubmit()}),Uo(),Uo(),Ho(15,"div",7),Fo(16,vq,3,3,"a",8),Fo(17,bq,3,3,"a",9),Fo(18,yq,3,3,"a",9),Fo(19,wq,3,3,"a",9),Fo(20,_q,3,3,"a",9),Uo(),Ho(21,"ion-button",10),Oa(22),pc(23,"translate"),Uo(),Uo(),Uo(),Uo(),Ho(24,"ion-note",11),Oa(25),Fo(26,xq,3,5,"a",12),Oa(27),Uo(),Uo()),2&e&&(is(4),zo("formGroup",t.loginForm),is(3),Ia(gc(8,13,"lang.login")),is(5),Ia(gc(13,15,"lang.password")),is(4),zo("ngIf","default"===t.authService.authMode),is(1),zo("ngIf","ldap"===t.authService.authMode),is(1),zo("ngIf","kerberos"===t.authService.authMode),is(1),zo("ngIf","x509"===t.authService.authMode),is(1),zo("ngIf","cas"===t.authService.authMode),is(1),zo("disabled",t.loginForm.invalid||t.loading),is(1),Ta(" ",gc(23,17,"lang.connect")," "),is(3),Ta(" Maarch Parapheur ",t.environment.VERSION," "),is(1),zo("ngIf",null!==t.commitHash),is(1),Ta(" Powered by ",t.environment.AUTHOR," "))},directives:[Mx,rT,kx,Ex,Lm,lm,Hm,Gx,Kx,$x,lx,am,Wm,$d,Cx,nA,c_,WA],pipes:[YC],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),e})(),Cq=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.http=t,this.notificationService=r,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",n.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}ngOnInit(){}generateLink(){this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(Bb(()=>{this.labelButton="lang.send",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.requestSentByEmail"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(a_),Vo(Ov),Vo(ZI),Vo(Yh),Vo(QC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content",null,3),Ho(9,"form",4,5),Xo("ngSubmit",function(){return t.generateLink()}),Ho(11,"ion-grid"),Ho(12,"ion-row"),Ho(13,"ion-col",6),Ho(14,"ion-card",7),Wo(15,"ion-card-content",8),pc(16,"translate"),Uo(),Ho(17,"ion-item"),Ho(18,"ion-label",9),Oa(19),pc(20,"translate"),Uo(),Ho(21,"ion-input",10),Xo("ngModelChange",function(e){return t.newLogin.login=e}),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(22,"ion-item",11),Ho(23,"div",12),Ho(24,"ion-button",13),Ho(25,"ion-label",14),Oa(26),pc(27,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,7,"lang.forgotPassword")),is(10),zo("innerHTML",gc(16,9,"lang.afterClickingSendLinkChangePassword"),sr),is(4),Ta("",gc(20,11,"lang.enterLogin")," *"),is(2),zo("ngModel",t.newLogin.login),is(3),zo("disabled",""==t.newLogin.login||t.loading),is(2),Ia(gc(27,13,t.labelButton)))},directives:[zx,wA,Sx,xx,UA,bA,Mx,Lm,lm,Tm,Vx,lA,Tx,kx,Ex,Gx,Kx,$x,lx,am,Rm,Cx],pipes:[YC],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),e})();function Sq(e,t){if(1&e&&(Ho(0,"ion-note",22),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia();is(1),Ta(" ",gc(2,1,e.handlePassword.errorMsg),"")}}function kq(e,t){1&e&&(Ho(0,"ion-note",23),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.samePassword"),""))}function Eq(e,t){1&e&&(Ho(0,"ion-note",22),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.passwordNotMatch"),""))}let Pq=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.translate=e,this.router=t,this.route=n,this.http=i,this.notificationService=o,this.menu=a,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",r.addSvgIcon("maarchLogo",s.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(e=>{this.token=e.token})}ngOnInit(){this.getPassRules()}ionViewWillEnter(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}updatePassword(){this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(Bb(()=>{this.labelButton="lang.update",this.loading=!1})).subscribe(e=>{this.loadingForm=!0,this.notificationService.success("lang.passwordChanged"),this.router.navigate(["/login"])},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}allowValidate(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(a_),Vo(jy),Vo(Ov),Vo(ZI),Vo(Yh),Vo(QC),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content",null,3),Ho(9,"form",4,5),Xo("ngSubmit",function(){return t.updatePassword()}),Ho(11,"ion-grid"),Ho(12,"ion-row"),Ho(13,"ion-col",6),Ho(14,"ion-card",7),Wo(15,"ion-card-content",8),pc(16,"translate"),Uo(),Ho(17,"ion-item"),Ho(18,"ion-label",9),Oa(19),pc(20,"translate"),Uo(),Ho(21,"ion-input",10),Xo("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),pc(22,"translate"),Uo(),Ho(23,"ion-button",11),Xo("click",function(){return t.hideNewPassword=!t.hideNewPassword}),Wo(24,"ion-icon",12),Uo(),Fo(25,Sq,3,3,"ion-note",13),Uo(),Ho(26,"ion-item"),Ho(27,"ion-label",9),Oa(28),pc(29,"translate"),Uo(),Ho(30,"ion-input",14),Xo("ngModelChange",function(e){return t.password.passwordConfirmation=e}),pc(31,"translate"),Uo(),Ho(32,"ion-button",11),Xo("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Wo(33,"ion-icon",12),Uo(),Uo(),Ho(34,"ion-item",15),Fo(35,kq,3,3,"ion-note",16),Fo(36,Eq,3,3,"ion-note",13),Uo(),Uo(),Uo(),Uo(),Ho(37,"ion-item",17),Ho(38,"div",18),Ho(39,"ion-button",19),Ho(40,"ion-label",20),Oa(41),pc(42,"translate"),Uo(),Uo(),Ho(43,"ion-button",21),Ho(44,"ion-label",20),Oa(45),pc(46,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,19,"lang.newPassword")),is(10),zo("innerHTML",gc(16,21,"lang.logInOncePasswordChanged"),sr),is(4),Ia(gc(20,23,"lang.newPassword")),is(2),aa("placeholder",gc(22,25,"lang.newPassword")),zo("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),is(3),zo("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",t.handlePassword.error),is(3),Ta("",gc(29,27,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(31,29,"lang.passwordConfirmation")),zo("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),is(3),zo("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),is(2),zo("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),is(1),zo("ngIf",t.password.passwordConfirmation!==t.password.newPassword),is(3),zo("disabled",t.allowValidate()||t.loading),is(2),Ia(gc(42,31,t.labelButton)),is(4),Ia(gc(46,33,"lang.cancel")))},directives:[zx,wA,Sx,xx,UA,bA,Mx,Lm,lm,Tm,Vx,lA,Tx,kx,Ex,Gx,Kx,$x,lx,am,Rm,Cx,jx,$d,WA,l_,nA],pipes:[YC],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),e})(),Dq=(()=>{class e{constructor(e,t,n,i){this.http=e,this.translate=t,this.notify=n,this.signaturesService=i,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}ngOnInit(){this.loading=!0,this.http.get("../rest/passwordRules").subscribe(e=>{this.passwordRulesList=e.rules,e.rules.forEach(e=>{this.passwordRules[e.label].enabled=e.enabled,this.passwordRules[e.label].value=e.value,this.passwordRules[e.label].label=this.translate.instant("lang.password_"+e.label+"Required"),this.passwordRules[e.label].id=e.label,this.loading=!1}),this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules))},e=>{this.notify.error(e.error.errors)})}cancelModification(){this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value})}checkModif(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}disabledForm(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}toggleRule(e){this.passwordRulesList.forEach(t=>{"lockAttempts"!==e.id||"lockTime"!==t.label&&"lockAttempts"!==t.label?e.id===t.label&&(t.enabled=e.enabled):(t.enabled=e.enabled,this.passwordRules.lockTime.enabled=e.enabled)})}onSubmit(){this.passwordRulesList.forEach(e=>{e.enabled=this.passwordRules[e.label].enabled,e.value=this.passwordRules[e.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(()=>{this.passwordRulesClone=JSON.parse(JSON.stringify(this.passwordRules)),this.notify.success("lang.passwordRulesUpdated")},e=>{this.notify.error(e.error.errors)})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(QC),Vo(oS))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Ho(8,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(10,"ion-content"),Ho(11,"ion-row"),Ho(12,"ion-col"),Ho(13,"ion-item"),Ho(14,"ion-label",6),Oa(15),Uo(),Ho(16,"ion-toggle",7),Xo("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),Uo(),Uo(),Uo(),Ho(17,"ion-col"),Ho(18,"ion-item"),Ho(19,"ion-label",6),Oa(20),Uo(),Ho(21,"ion-toggle",8),Xo("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),Uo(),Uo(),Uo(),Ho(22,"ion-col"),Ho(23,"ion-item"),Ho(24,"ion-label",6),Oa(25),Uo(),Ho(26,"ion-toggle",9),Xo("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),Uo(),Uo(),Uo(),Uo(),Ho(27,"ion-item"),Ho(28,"ion-toggle",10),Xo("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),Uo(),Ho(29,"ion-label",11),Oa(30),Uo(),Ho(31,"ion-input",12),Xo("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),Uo(),Ho(32,"ion-note",13),Oa(33),pc(34,"translate"),Uo(),Uo(),Ho(35,"ion-row"),Ho(36,"ion-col"),Ho(37,"ion-item"),Ho(38,"ion-toggle",14),Xo("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),Uo(),Ho(39,"ion-label",11),Oa(40),Uo(),Ho(41,"ion-input",15),Xo("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),Uo(),Uo(),Uo(),Ho(42,"ion-col"),Ho(43,"ion-item"),Ho(44,"ion-label",11),Oa(45),Uo(),Ho(46,"ion-input",16),Xo("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),Uo(),Ho(47,"ion-note",13),Oa(48),pc(49,"translate"),Uo(),Uo(),Uo(),Uo(),Ho(50,"ion-item"),Ho(51,"ion-toggle",17),Xo("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),Uo(),Ho(52,"ion-label",11),Oa(53),Uo(),Ho(54,"ion-input",18),Xo("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),Uo(),Ho(55,"ion-note",13),Oa(56),pc(57,"translate"),Uo(),Uo(),Ho(58,"ion-item"),Ho(59,"ion-toggle",19),Xo("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),Uo(),Ho(60,"ion-label",11),Oa(61),Uo(),Ho(62,"ion-input",20),Xo("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),Uo(),Uo(),Ho(63,"ion-item",21),Ho(64,"div",22),Ho(65,"ion-button",23),Ho(66,"ion-label",24),Oa(67),pc(68,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(9);zo("translucent",!0),is(6),Ia(gc(7,39,"lang.manage_password_rules")),is(9),Ia(t.passwordRules.complexityUpper.label),is(1),zo("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),is(4),Ia(t.passwordRules.complexityNumber.label),is(1),zo("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),is(4),Ia(t.passwordRules.complexitySpecial.label),is(1),zo("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),is(2),zo("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),is(2),Ia(t.passwordRules.minLength.label),is(1),zo("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),is(2),Ia(gc(34,41,"lang.chars")),is(5),zo("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),is(2),Ia(t.passwordRules.lockAttempts.label),is(1),zo("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),is(4),Ia(t.passwordRules.lockTime.label),is(1),zo("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),is(2),Ia(gc(49,43,"lang.minutes")),is(3),zo("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),is(2),Ia(t.passwordRules.renewal.label),is(1),zo("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),is(2),Ia(gc(57,45,"lang.days")),is(3),zo("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),is(2),Ia(t.passwordRules.historyLastUse.label),is(1),zo("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),is(3),zo("disabled",!e.valid&&!t.disabledForm()||t.checkModif()),is(2),Ia(gc(68,47,"lang.validate"))}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,lA,Tx,Gx,Kx,yA,ex,am,Rm,$x,lx,rv,nA,Cx],pipes:[YC],encapsulation:2}),e})();function Oq(e,t){1&e&&(Ho(0,"ion-note",17),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.requiredField")))}function Iq(e,t){1&e&&(Ho(0,"ion-item",26),Wo(1,"ion-icon",27),Ho(2,"ion-label",28),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.passwordValid")))}function Tq(e,t){1&e&&(Ho(0,"ion-item",26),Wo(1,"ion-icon",27),Ho(2,"ion-label",28),Oa(3),pc(4,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.passwordMatch")))}function Mq(e,t){1&e&&Wo(0,"ion-item",29),2&e&&zo("innerHTML",ia().otherRuleText,sr)}let Bq=(()=>{class e{constructor(e,t,n,i,r,s,o){this.http=e,this.notify=t,this._formBuilder=n,this.translate=i,this.signaturesService=r,this.authService=s,this.router=o,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}ngOnInit(){this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[],i=[];t.push(Vf.required),e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&(t.push(Vf.minLength(this.passwordRules.minLength.value)),n.push(e.value+" "+this.translate.instant("lang.password_"+e.label)))):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&(t.push(this.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),n.push(this.translate.instant("lang.password_"+e.label)))):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_"+e.label)+" <b>"+e.value+" "+this.translate.instant("lang.days")+"</b>. "+this.translate.instant("lang.password2_"+e.label)+".")):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&i.push(this.translate.instant("lang.password_historyLastUseDesc")+" <b>"+e.value+"</b> "+this.translate.instant("lang.password_historyLastUseDesc2")+"."))}),this.ruleText=n.join(", "),this.otherRuleText=i.join("<br/>"),this.firstFormGroup.controls.newPasswordCtrl.setValidators(t)},e=>{this.notify.error(e.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",Vf.compose([Vf.required])],currentPasswordCtrl:["",Vf.compose([Vf.required])]},{validator:this.matchValidator})}regexValidator(e,t){return n=>n.value?e.test(n.value)?null:t:null}matchValidator(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}getErrorMessage(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}onSubmit(){this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(()=>{this.notify.success(this.translate.instant("lang.passwordChanged")),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(e=>{this.authService.user.picture=e.picture}),this.router.navigate(["/home"])},e=>{this.notify.handleErrors(e)})}logout(){this.authService.logout()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(QC),Vo(lv),Vo(qC),Vo(oS),Vo(lS),Vo(a_))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Wo(2,"ion-buttons",2),Ho(3,"ion-title"),Oa(4),pc(5,"translate"),Uo(),Uo(),Uo(),Ho(6,"ion-content",null,3),Ho(8,"form",4),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-grid"),Ho(10,"ion-row"),Ho(11,"ion-col",5),Ho(12,"ion-card",6),Ho(13,"ion-card-content"),Oa(14),pc(15,"translate"),Ho(16,"b"),Oa(17),Uo(),Oa(18),pc(19,"translate"),Uo(),Uo(),Ho(20,"ion-item"),Ho(21,"ion-label",7),Oa(22),pc(23,"translate"),Uo(),Wo(24,"ion-input",8),pc(25,"translate"),Ho(26,"ion-button",9),Xo("click",function(){return t.hidePassword=!t.hidePassword}),Wo(27,"ion-icon",10),Uo(),Fo(28,Oq,3,3,"ion-note",11),Uo(),Ho(29,"ion-list-header",12),Ho(30,"ion-label",13),Oa(31),Uo(),Uo(),Ho(32,"ion-item"),Ho(33,"ion-label",7),Oa(34),pc(35,"translate"),Uo(),Wo(36,"ion-input",14,15),pc(38,"translate"),Ho(39,"ion-button",9),Xo("click",function(){return t.hidePassword=!t.hidePassword}),Wo(40,"ion-icon",10),Uo(),Fo(41,Iq,5,3,"ion-item",16),Ho(42,"ion-note",17),Oa(43),Uo(),Uo(),Ho(44,"ion-item"),Ho(45,"ion-label",7),Oa(46),pc(47,"translate"),Uo(),Wo(48,"ion-input",18,19),pc(50,"translate"),Ho(51,"ion-button",9),Xo("click",function(){return t.hidePassword=!t.hidePassword}),Wo(52,"ion-icon",10),Uo(),Fo(53,Tq,5,3,"ion-item",16),Ho(54,"ion-note",17),Oa(55),pc(56,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(57,"ion-item",20),Ho(58,"div",21),Ho(59,"ion-button",22),Ho(60,"ion-label",23),Oa(61),pc(62,"translate"),Uo(),Uo(),Ho(63,"ion-button",24),Xo("click",function(){return t.logout()}),Ho(64,"ion-label",23),Oa(65),pc(66,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Fo(67,Mq,1,1,"ion-item",25),Uo()),2&e&&(zo("translucent",!0),is(4),Ia(gc(5,29,"lang.passwordModification")),is(4),zo("formGroup",t.firstFormGroup),is(6),Ta(" ",gc(15,31,"lang.hello")," "),is(3),Ma(" ",t.user.firstname," ",t.user.lastname,""),is(1),Ta(", ",gc(19,33,"lang.changePasswordInfo"),". "),is(4),Ia(gc(23,35,"lang.typeCurrentPassword")),is(2),aa("placeholder",gc(25,37,"lang.typeCurrentPassword")),zo("type",t.hidePassword?"password":"text"),is(3),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),is(3),Ia(t.ruleText),is(3),Ta("",gc(35,39,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(38,41,"lang.passwordConfirmation")),zo("type",t.hidePassword?"password":"text"),is(4),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",t.validPassword),is(2),Ia(t.getErrorMessage()),is(3),Ta("",gc(47,43,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(50,45,"lang.passwordConfirmation")),zo("type",t.hidePassword?"password":"text"),is(4),zo("name",t.hidePassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),is(2),Ia(gc(56,47,"lang.passwordNotMatch")),is(4),zo("disabled",!t.firstFormGroup.valid),is(2),Ia(gc(62,49,"lang.validate")),is(4),Ia(gc(66,51,"lang.logout")),is(2),zo("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[zx,wA,Sx,bA,Mx,Lm,lm,Hm,Vx,lA,Tx,kx,Ex,Gx,Kx,$x,lx,am,Wm,ev,Cx,jx,$d,Xx,nA],pipes:[YC],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),e})();var Rq=n("b0Xh"),Lq=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const Fq=["passwordContent"];function Nq(e,t){if(1&e&&(Ho(0,"ion-note",37),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(3);is(1),Ta(" ",gc(2,1,e.handlePassword.errorMsg),"")}}function Vq(e,t){if(1&e){const e=Yo();Ho(0,"div"),Ho(1,"ion-list-header",28),Ho(2,"ion-label",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Ho(5,"ion-item"),Ho(6,"ion-label",31),Oa(7),pc(8,"translate"),Uo(),Ho(9,"ion-input",32),Xo("ngModelChange",function(t){return Lt(e),ia(2).password.currentPassword=t}),pc(10,"translate"),Uo(),Ho(11,"ion-button",33),Xo("click",function(){Lt(e);const t=ia(2);return t.hideCurrentPassword=!t.hideCurrentPassword}),Wo(12,"ion-icon",34),Uo(),Uo(),Ho(13,"ion-item"),Ho(14,"ion-label",31),Oa(15),pc(16,"translate"),Uo(),Ho(17,"ion-input",35),Xo("ngModelChange",function(t){return Lt(e),ia(2).password.newPassword=t})("keyup",function(){Lt(e);const t=ia(2);return t.checkPasswordValidity(t.password.newPassword)}),pc(18,"translate"),Uo(),Ho(19,"ion-button",33),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPassword=!t.hideNewPassword}),Wo(20,"ion-icon",34),Uo(),Fo(21,Nq,3,3,"ion-note",30),Uo(),Ho(22,"ion-item"),Ho(23,"ion-label",31),Oa(24),pc(25,"translate"),Uo(),Ho(26,"ion-input",36),Xo("ngModelChange",function(t){return Lt(e),ia(2).password.passwordConfirmation=t}),pc(27,"translate"),Uo(),Ho(28,"ion-button",33),Xo("click",function(){Lt(e);const t=ia(2);return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Wo(29,"ion-icon",34),Uo(),Uo(),Uo()}if(2&e){const e=ia(2);is(3),Ia(gc(4,17,"lang.changePassword")),is(4),Ia(gc(8,19,"lang.currentPassword")),is(2),aa("placeholder",gc(10,21,"lang.currentPassword")),zo("ngModel",e.password.currentPassword)("type",e.hideCurrentPassword?"password":"text"),is(3),zo("name",e.hideCurrentPassword?"eye-outline":"eye-off-outline"),is(3),Ia(gc(16,23,"lang.newPassword")),is(2),aa("placeholder",gc(18,25,"lang.newPassword")),zo("ngModel",e.password.newPassword)("type",e.hideNewPassword?"password":"text"),is(3),zo("name",e.hideNewPassword?"eye-outline":"eye-off-outline"),is(1),zo("ngIf",e.handlePassword.error),is(3),Ta("",gc(25,27,"lang.passwordConfirmation")," "),is(2),aa("placeholder",gc(27,29,"lang.passwordConfirmation")),zo("ngModel",e.password.passwordConfirmation)("type",e.hideNewPasswordConfirm?"password":"text"),is(3),zo("name",e.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function zq(e,t){1&e&&(Ho(0,"ion-note",38),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.samePassword"),""))}function jq(e,t){1&e&&(Ho(0,"ion-note",37),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.passwordNotMatch"),""))}function Hq(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-list",18),Ho(2,"ion-item"),Ho(3,"ion-avatar",19),Xo("click",function(){return Lt(e),No(10).click()}),Wo(4,"img",20),Uo(),Ho(5,"ion-label",21),Oa(6),pc(7,"translate"),Uo(),Ho(8,"ion-input",22),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.login=t}),Uo(),Ho(9,"input",23,24),Xo("change",function(t){return Lt(e),ia().handleFileInput(t.target.files)}),Uo(),Uo(),Ho(11,"ion-item"),Ho(12,"ion-label",21),Oa(13),pc(14,"translate"),Uo(),Ho(15,"ion-input",25),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.email=t}),Uo(),Uo(),Ho(16,"ion-item"),Ho(17,"ion-label",21),Oa(18),pc(19,"translate"),Uo(),Ho(20,"ion-input",26),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.firstname=t}),Uo(),Uo(),Ho(21,"ion-item"),Ho(22,"ion-label",21),Oa(23),pc(24,"translate"),Uo(),Ho(25,"ion-input",27),Xo("ngModelChange",function(t){return Lt(e),ia().profileInfo.lastname=t}),Uo(),Uo(),Fo(26,Vq,30,31,"div",16),Ho(27,"ion-item",28),Fo(28,zq,3,3,"ion-note",29),Fo(29,jq,3,3,"ion-note",30),Uo(),Uo(),Go()}if(2&e){const e=ia();is(4),zo("src",e.avatarInfo.picture,or),is(2),Ia(gc(7,19,"lang.login")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.login),is(5),Ia(gc(14,21,"lang.email")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.email)("readonly","default"!==e.authService.authMode),is(3),Ia(gc(19,23,"lang.firstname")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.firstname)("readonly","default"!==e.authService.authMode),is(3),Ia(gc(24,25,"lang.lastname")),is(2),zo("maxlength",128)("ngModel",e.profileInfo.lastname)("readonly","default"!==e.authService.authMode),is(1),zo("ngIf","default"===e.authService.authMode),is(2),zo("ngIf",e.password.passwordConfirmation===e.password.newPassword&&e.password.newPassword.length>0&&e.password.passwordConfirmation.length>0),is(1),zo("ngIf",e.password.passwordConfirmation!==e.password.newPassword)}}function Uq(e,t){if(1&e&&(Ho(0,"ion-select-option",65),Oa(1),pc(2,"translate"),Uo()),2&e){const e=t.$implicit;zo("value",e),is(1),Ia(gc(2,2,"lang."+e))}}function Wq(e,t){1&e&&(Wo(0,"ion-note",66),pc(1,"translate")),2&e&&zo("innerHTML",gc(1,1,"lang.freeModeInfo"),sr)}function $q(e,t){1&e&&(Wo(0,"ion-note",66),pc(1,"translate")),2&e&&zo("innerHTML",gc(1,1,"lang.standardModeInfo"),sr)}function Gq(e,t){if(1&e&&(Ho(0,"ion-select-option",65),Oa(1),Uo()),2&e){const e=t.index;zo("value",e+1),is(1),Ta("",e+1," ")}}const qq=function(e){return{value:e}};function Yq(e,t){if(1&e&&(Wo(0,"ion-note",67),pc(1,"translate")),2&e){const e=ia(2);zo("innerHTML",fc(1,1,"lang.scalingDocWith",lc(4,qq,e.signatureScaling)),sr)}}function Zq(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-list",18),Ho(2,"ion-item"),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Ho(6,"ion-toggle",39),Xo("ionChange",function(){Lt(e);const t=ia();return t.preferenceInfo.notifications=!t.preferenceInfo.notifications}),Uo(),Uo(),Ho(7,"ion-list"),Ho(8,"ion-item"),Ho(9,"ion-label",40),Oa(10),pc(11,"translate"),Uo(),Ho(12,"ion-select",41),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.lang=t}),Fo(13,Uq,3,4,"ion-select-option",42),Uo(),Uo(),Uo(),Ho(14,"ion-list"),Ho(15,"ion-item"),Ho(16,"ion-label",40),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-select",43),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.writingMode=t}),Ho(20,"ion-select-option",44),Oa(21),pc(22,"translate"),Uo(),Ho(23,"ion-select-option",45),Oa(24),pc(25,"translate"),Wo(26,"i",46),Uo(),Uo(),Fo(27,Wq,2,3,"ion-note",47),Fo(28,$q,2,3,"ion-note",47),Uo(),Uo(),Ho(29,"ion-list"),Ho(30,"ion-item"),Ho(31,"ion-label",40),Oa(32),pc(33,"translate"),Uo(),Ho(34,"ion-select",48),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.writingSize=t})("ionChange",function(){return Lt(e),ia().drawSample()}),Fo(35,Gq,2,2,"ion-select-option",42),Uo(),Ho(36,"ion-note",2),Wo(37,"canvas",49),Uo(),Uo(),Uo(),Ho(38,"ion-list"),Ho(39,"ion-item"),Ho(40,"ion-label",40),Oa(41),pc(42,"translate"),Uo(),Ho(43,"ion-select",50),Xo("ngModelChange",function(t){return Lt(e),ia().preferenceInfo.writingColor=t}),Ho(44,"ion-select-option",51),Oa(45),pc(46,"translate"),Uo(),Ho(47,"ion-select-option",52),Oa(48),pc(49,"translate"),Uo(),Ho(50,"ion-select-option",53),Oa(51),pc(52,"translate"),Uo(),Uo(),Ho(53,"ion-note",2),Wo(54,"div",54),Uo(),Uo(),Uo(),Ho(55,"ion-list"),Ho(56,"ion-row"),Ho(57,"iotn-item"),Ho(58,"ion-label",55),Oa(59),pc(60,"translate"),Uo(),Uo(),Uo(),Ho(61,"ion-row"),Ho(62,"ion-col",56),Ho(63,"ion-item",57),Ho(64,"ion-range",58),Xo("ngModelChange",function(t){return Lt(e),ia().signatureScaling=t}),Wo(65,"ion-icon",59),Wo(66,"ion-icon",60),Uo(),Uo(),Fo(67,Yq,2,6,"ion-note",61),Uo(),Ho(68,"ion-col",62),Ho(69,"ion-item",63),Ho(70,"ion-label"),Oa(71),pc(72,"translate"),Uo(),Ho(73,"ion-toggle",64),Xo("ionChange",function(){Lt(e);const t=ia();return t.originalSize=!t.originalSize}),Uo(),Uo(),Uo(),Uo(),Uo(),Uo(),Go()}if(2&e){const e=ia();is(4),Ia(gc(5,27,"lang.receiveNotif")),is(2),zo("checked",e.preferenceInfo.notifications),is(4),Ia(gc(11,29,"lang.language")),is(2),zo("ngModel",e.preferenceInfo.lang),is(1),zo("ngForOf",e.profileInfo.availableLanguages),is(4),Ta("",gc(18,31,"lang.annotationMode")," "),is(2),zo("ngModel",e.preferenceInfo.writingMode),is(2),Ia(gc(22,33,"lang.free")),is(3),Ta("",gc(25,35,"lang.appleStylus")," "),is(3),zo("ngIf","stylus"===e.preferenceInfo.writingMode),is(1),zo("ngIf","direct"===e.preferenceInfo.writingMode),is(4),Ia(gc(33,37,"lang.stylusWidh")),is(2),zo("ngModel",e.preferenceInfo.writingSize),is(1),zo("ngForOf",e.counter(10)),is(6),Ia(gc(42,39,"lang.defaultColor")),is(2),zo("ngModel",e.preferenceInfo.writingColor),is(2),Ia(gc(46,41,"lang.black")),is(3),Ia(gc(49,43,"lang.blue")),is(3),Ia(gc(52,45,"lang.red")),is(3),ma("background-color",e.preferenceInfo.writingColor),is(5),Ia(gc(60,47,"lang.signatureScaling")),is(5),zo("disabled",e.originalSize)("ngModel",e.signatureScaling),is(3),zo("ngIf",!e.originalSize),is(4),Ia(gc(72,49,"lang.originalSize")),is(2),zo("checked",e.originalSize)}}function Kq(e,t){if(1&e){const e=Yo();Ho(0,"ion-list"),Ho(1,"ion-item"),Wo(2,"ion-input",68),Ho(3,"ion-button",69),Xo("click",function(){return Lt(e),ia(2).deleteSubstitute()}),Wo(4,"ion-icon",70),Uo(),Uo(),Uo()}if(2&e){const e=ia(2);is(2),zo("value",e.authService.user.substituteUser)}}function Qq(e,t){if(1&e){const e=Yo();Ho(0,"ion-list"),Ho(1,"ion-item"),Ho(2,"ion-searchbar",71),Xo("ionChange",function(t){return Lt(e),ia(2).test(t)}),pc(3,"translate"),Uo(),Uo(),Uo()}2&e&&(is(2),zo("placeholder",gc(3,1,"lang.chooseSubstitute")))}function Xq(e,t){if(1&e&&(Ho(0,"ion-note",2),Oa(1),Uo()),2&e){const e=ia().$implicit;is(1),Ia(e.email)}}function Jq(e,t){1&e&&(Ho(0,"ion-note",76),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.delegatedUser")))}function eY(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-checkbox",73),Xo("ionChange",function(t){return Lt(e),ia(3).selectSubstitute(t.detail.value)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Fo(4,Xq,2,1,"ion-note",74),Fo(5,Jq,3,3,"ion-note",75),Uo()}if(2&e){const e=t.$implicit;is(1),zo("disabled",e.substitute)("value",e),is(2),Ma("",e.firstname," ",e.lastname,""),is(1),zo("ngIf",!e.substitute),is(1),zo("ngIf",e.substitute)}}function tY(e,t){if(1&e&&(Ho(0,"ion-list"),Fo(1,eY,6,6,"ion-item",72),Uo()),2&e){const e=ia(2);is(1),zo("ngForOf",e.userList)}}function nY(e,t){if(1&e){const e=Yo();Ho(0,"button",80),Xo("click",function(){Lt(e);const n=t.index;return ia(3).toggleSignature(n)}),Wo(1,"img",81),Uo()}if(2&e){const e=t.$implicit,n=ia(3);va("selected",e.substituted),is(1),zo("src",n.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+e.encodedSignature),or)}}function iY(e,t){if(1&e&&($o(0),Ho(1,"ion-item",28),Ho(2,"ion-label",77),Oa(3),pc(4,"translate"),Uo(),Uo(),Ho(5,"div",78),Fo(6,nY,2,3,"button",79),Uo(),Go()),2&e){const e=ia(2);is(3),Ta(" ",gc(4,2,"lang.signSubstituted")," : "),is(3),zo("ngForOf",e.signaturesService.signaturesList)}}function rY(e,t){if(1&e&&($o(0),Fo(1,Kq,5,1,"ion-list",16),Fo(2,Qq,4,3,"ion-list",16),Fo(3,tY,2,1,"ion-list",16),Fo(4,iY,7,4,"ng-container",16),Go()),2&e){const e=ia();is(1),zo("ngIf",null!==e.authService.user.substitute),is(1),zo("ngIf",null===e.authService.user.substitute),is(1),zo("ngIf",null===e.authService.user.substitute),is(1),zo("ngIf",null!=e.authService.user.substitute&&e.signaturesService.signaturesList.length>0)}}function sY(e,t){1&e&&($o(0),Wo(1,"app-signatures",82),Go()),2&e&&(is(1),zo("target","profile"))}function oY(e,t){if(1&e){const e=Yo();Ho(0,"ion-footer",83),Ho(1,"ion-toolbar"),Ho(2,"ion-buttons",84),Ho(3,"ion-button",85),Xo("click",function(){return Lt(e),ia().submitProfile()}),Ho(4,"ion-label"),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia(),t=No(32);is(3),zo("disabled",e.allowValidate()||!t.form.valid),is(2),Ia(gc(6,2,"lang.save"))}}const aY=function(){return["info","pref"]};let lY=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this.http=e,this.sanitizer=t,this.notificationService=n,this.signaturesService=i,this.authService=r,this.filtersService=s,this.modalController=o,this.renderer=a,this.translate=l,this.alertController=c,this.cookieService=u,this.router=d,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}ngOnInit(){this.initProfileInfo(),this.getPassRules()}dismissModal(){this.modalController.dismiss("cancel")}test(e){""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ib(e=>{this.userList=e.filter(e=>e.id!==this.profileInfo.id)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}initProfileInfo(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}initTab(e){this.currentTool=e,"pref"===e&&setTimeout(()=>{this.drawSample()},200)}closeProfile(){setTimeout(()=>{this.initProfileInfo()},200),this.dismissModal()}getPassRules(){this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(e=>{const t=[],n=[];e.rules.forEach(e=>{"minLength"===e.label?(this.passwordRules.minLength.enabled=e.enabled,this.passwordRules.minLength.value=e.value,e.enabled&&this.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(e=>{t.push(e)})):"complexityUpper"===e.label?(this.passwordRules.complexityUpper.enabled=e.enabled,this.passwordRules.complexityUpper.value=e.value,e.enabled&&t.push("lang.upperRequired")):"complexityNumber"===e.label?(this.passwordRules.complexityNumber.enabled=e.enabled,this.passwordRules.complexityNumber.value=e.value,e.enabled&&t.push("lang.numberRequired")):"complexitySpecial"===e.label?(this.passwordRules.complexitySpecial.enabled=e.enabled,this.passwordRules.complexitySpecial.value=e.value,e.enabled&&t.push("lang.specialCharRequired")):"renewal"===e.label?(this.passwordRules.renewal.enabled=e.enabled,this.passwordRules.renewal.value=e.value,e.enabled&&this.translate.get("lang.renewalInfo",{time:e.value}).subscribe(e=>{n.push(e)})):"historyLastUse"===e.label&&(this.passwordRules.historyLastUse.enabled=e.enabled,this.passwordRules.historyLastUse.value=e.value,e.enabled&&this.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(e=>{n.push(e)}))}),this.ruleText=t.join(", "),this.otherRuleText=n.join("<br/>")},e=>{this.notificationService.handleErrors(e)})}checkPasswordValidity(e){this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(e=>{this.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}allowValidate(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}submitProfile(){return Lq(this,void 0,void 0,function*(){this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(Ib(()=>{this.disableState=!1,this.msgButton="lang.validate",this.setLang(this.preferenceInfo.lang),this.cookieService.set("maarchParapheurLang",this.preferenceInfo.lang)}),UR(()=>"default"===this.authService.authMode?this.http.put("../rest/users/"+this.authService.user.id,this.profileInfo):new Promise(e=>{e(!0)})),UR(()=>{if(this.authService.updateUserInfoWithTokenRefresh(),""===this.password.newPassword)return this.closeProfile(),this.notificationService.success("lang.profileUpdated"),cv(!1);if("default"===this.authService.authMode){const e=new mv({Authorization:"Bearer "+this.authService.getToken()});return this.http.put("../rest/users/"+this.authService.user.id+"/password",this.password,{observe:"response",headers:e})}return cv(!1)}),dv(e=>!!e),Ib(e=>{this.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),this.password.newPassword="",this.password.passwordConfirmation="",this.password.currentPassword="",this.notificationService.success("lang.profileUpdated")}),mb(e=>(401===e.status?this.notificationService.error("lang.wrongPassword"):this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}changePicture(){this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(Ib(()=>{this.authService.user.picture=this.avatarInfo.picture,this.notificationService.success("lang.profileUpdated")}),Bb(()=>{this.msgButton="lang.validate",this.disableState=!1})).subscribe()}selectSubstitute(e){this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(()=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substituteEnabled")})}deleteSubstitute(){return Lq(this,void 0,void 0,function*(){const e=yield this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.yes"),handler:()=>{const e=this.signaturesService.signaturesList.filter(e=>e.substituted);this.profileInfo.substitute=null,this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:this.profileInfo.substitute}).pipe(Ib(t=>{this.authService.updateUserInfoWithTokenRefresh(),this.filtersService.resfreshDocuments(),e.length>0&&e.forEach(e=>{this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+e.id+"/substituted",{substituted:!1}).pipe(Ib(()=>{this.signaturesService.signaturesList.find(t=>t.id===e.id).substituted=!1}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}),this.signaturesService.documentsList.length>0&&!1===this.signaturesService.documentsList[this.signaturesService.indexDocumentsList].owner&&this.router.navigate(["/documents"]),this.notificationService.success("lang.substitutionDeleted")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}}]});yield e.present()})}handleFileInput(e){this.passwordContent&&this.passwordContent.close();const t=e.item(0);if(t.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type)){const e=new FileReader;e.onloadend=t=>{const n=new Image;n.src=e.result.toString(),this.avatarInfo.picture=e.result,n.onload=()=>this.fixImgOrientation(n)},e.readAsDataURL(t)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}fixImgOrientation(e){Rq.getData(e,()=>{let t=0;switch(Rq.getTag(e,"Orientation")){case 3:t=180;break;case 6:t=90;break;case 8:t=-90}this.avatarInfo.pictureOrientation=t,this.changePicture()})}drawSample(){const e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}initProfileTab(e){1===e.index&&this.drawSample()}counter(e){return new Array(e)}setLang(e){this.translate.use(e)}toggleSignature(e){this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(()=>{this.signaturesService.signaturesList[e].substituted=!this.signaturesService.signaturesList[e].substituted,this.notificationService.success("lang.modificationSaved")})}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(Yh),Vo(QC),Vo(oS),Vo(lS),Vo(NL),Vo(tC),Vo(ul),Vo(qC),Vo(XA),Vo(oE),Vo(a_))},e.\u0275cmp=qe({type:e,selectors:[["app-my-profile"]],viewQuery:function(e,t){if(1&e&&Mc(Fq,1),2&e){let e;Tc(e=Rc())&&(t.passwordContent=e.first)}},decls:39,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],["value","signatures"],["name","pencil-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[3,"target"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.dismissModal()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-header"),Ho(9,"ion-toolbar"),Ho(10,"ion-segment",5),Xo("ionChange",function(e){return t.initTab(e.detail.value)}),Ho(11,"ion-segment-button",6),Ho(12,"ion-label"),Oa(13),pc(14,"translate"),Uo(),Wo(15,"ion-icon",7),Uo(),Ho(16,"ion-segment-button",8),Ho(17,"ion-label"),Oa(18),pc(19,"translate"),Uo(),Wo(20,"ion-icon",9),Uo(),Ho(21,"ion-segment-button",10),Ho(22,"ion-label"),Oa(23),pc(24,"translate"),Uo(),Wo(25,"ion-icon",11),Uo(),Ho(26,"ion-segment-button",12),Ho(27,"ion-label"),Oa(28),pc(29,"translate"),Uo(),Wo(30,"ion-icon",13),Uo(),Uo(),Uo(),Uo(),Ho(31,"form",14,15),Xo("ngSubmit",function(){return t.submitProfile()}),Ho(33,"ion-content"),Fo(34,Hq,30,27,"ng-container",16),Fo(35,Zq,74,51,"ng-container",16),Fo(36,rY,5,4,"ng-container",16),Fo(37,sY,2,1,"ng-container",16),Uo(),Uo(),Fo(38,oY,7,4,"ion-footer",17)),2&e&&(zo("translucent",!0),is(3),Ia(gc(4,12,"lang.myProfil")),is(7),zo("value",t.currentTool),is(3),Ia(gc(14,14,"lang.informations")),is(5),Ia(gc(19,16,"lang.preferences")),is(5),Ia(gc(24,18,"lang.substitute")),is(5),Ia(gc(29,20,"lang.signatures")),is(6),zo("ngIf","info"===t.currentTool),is(1),zo("ngIf","pref"===t.currentTool),is(1),zo("ngIf","deleg"===t.currentTool),is(1),zo("ngIf","signatures"===t.currentTool),is(1),zo("ngIf",ac(22,aY).indexOf(t.currentTool)>-1))},directives:[zx,wA,bA,Sx,Cx,jx,uA,ox,dA,Kx,Lm,lm,Tm,Mx,$d,Qx,Gx,_x,$x,lx,ev,nv,am,Rm,rv,Xx,nA,yA,ex,hA,Ud,pA,lA,Tx,sA,cA,Ox,vI,DL,Nx],pipes:[YC],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),e})();function cY(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",3),Xo("click",function(){return Lt(e),ia().menu.open("left-menu")}),Oa(1),pc(2,"translate"),Uo()}2&e&&(is(1),Ta(" ",gc(2,1,"lang.accessMenu")," "))}let uY=(()=>{class e{constructor(e,t,n,i){this.signaturesService=e,this.translate=t,this.menu=n,this.modalController=i,this.loading=!1}ngOnInit(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}return e.\u0275fac=function(t){return new(t||e)(Vo(oS),Vo(qC),Vo(eC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Ho(0,"ion-content",0),Wo(1,"mat-icon",1),Fo(2,cY,3,3,"ion-button",2),Uo()),2&e&&(is(2),zo("ngIf",t.signaturesService.mobileMode))},directives:[Mx,rT,$d,Cx],pipes:[YC],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),e})();var dY=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};function hY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",25),Xo("click",function(){Lt(e);const t=ia().$implicit,n=ia().index;return ia().goToSignUserPage(n,t.page)}),pc(1,"translate"),Ho(2,"ion-label"),Oa(3),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia().index,n=ia();zo("title",gc(1,3,"lang.accessToPage")+" "+e.page)("color",t===n.currentUser&&e.page===n.currentPage?"primary":"medium"),is(3),Ia(e.page)}}function pY(e,t){if(1&e&&($o(0),Fo(1,hY,4,5,"ion-chip",24),Go()),2&e){const e=t.$implicit,n=ia().index;is(1),zo("ngIf",e.sequence==n)}}function gY(e,t){if(1&e&&(Ho(0,"ion-segment-button",21),Ho(1,"ion-label"),Ho(2,"h2"),Oa(3),Uo(),Ho(4,"p",22),Fo(5,pY,2,1,"ng-container",7),Uo(),Uo(),Wo(6,"ion-icon",23),Uo()),2&e){const e=t.$implicit,n=t.index,i=ia();zo("value",n),is(3),Ia(e.userDisplay),is(2),zo("ngForOf",i.signList),is(1),zo("name","sign"===e.mode?"pencil-outline":"checkmark-done-outline")}}const fY=function(e,t){return{x:e,y:t}};function mY(e,t){if(1&e){const e=Yo();Ho(0,"div",27),Xo("movingOffset",function(){return Lt(e),ia(2).dragging=!0})("endOffset",function(t){Lt(e);const n=ia(2);return n.moveSign(t,n.i)})("click",function(){Lt(e);const t=ia().$implicit,n=ia();return n.currentUser!=t.sequence&&n.goToSignUserPage(t.sequence,n.currentPage)}),Ho(1,"ion-buttons",28),Ho(2,"ion-button",29),Xo("click",function(){Lt(e);const t=ia().index;return ia().deleteSign(t)}),pc(3,"translate"),Wo(4,"ion-icon",30),Uo(),Uo(),Ho(5,"span",31),Oa(6),Uo(),Oa(7),pc(8,"uppercase"),pc(9,"translate"),Uo()}if(2&e){const e=ia().$implicit,t=ia(),n=No(11);ma("width",25,"%"),va("signDisabled",t.currentUser!==e.sequence)("hide",!t.pagesLoaded),zo("position",cc(20,fY,e.position.positionX*t.workingAreaWidth/100,e.position.positionY*t.workingAreaHeight/100))("ngDraggable",t.currentUser===e.sequence)("preventDefaultEvent",!1)("bounds",n)("inBounds",!0),is(2),zo("title",gc(3,14,"lang.delete")),is(4),Ia(t.getUserName(e.sequence)),is(1),Ta(" ",gc(8,16,gc(9,18,"lang.signature"))," ")}}function vY(e,t){if(1&e&&($o(0),Fo(1,mY,10,23,"div",26),Go()),2&e){const e=t.$implicit,n=ia();is(1),zo("ngIf",e.page===n.currentPage)}}function bY(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",32),Xo("click",function(){return Lt(e),ia().initSign()}),Oa(1),pc(2,"translate"),Uo()}2&e&&(is(1),Ta(" ",gc(2,1,"lang.createSignaturePosition"),""))}function yY(e,t){if(1&e&&(Ho(0,"ion-select-option",33),Oa(1),Uo()),2&e){const e=t.index;zo("value",t.$implicit),is(1),Ia(e+1)}}function wY(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",36),Xo("click",function(){Lt(e);const t=ia(2);return t.changePage(t.currentPage-1)}),Wo(1,"ion-icon",37),Uo()}}function _Y(e,t){if(1&e){const e=Yo();Ho(0,"ion-fab-button",38),Xo("click",function(){Lt(e);const t=ia(2);return t.changePage(t.currentPage+1)}),Wo(1,"ion-icon",39),Uo()}}function xY(e,t){if(1&e&&($o(0),Fo(1,wY,2,0,"ion-fab-button",34),Fo(2,_Y,2,0,"ion-fab-button",35),Go()),2&e){const e=ia();is(1),zo("ngIf",e.currentPage>1),is(1),zo("ngIf",e.currentPage<e.pages.length)}}let AY=(()=>{class e{constructor(e,t,n,i,r,s){this.translate=e,this.http=t,this.signaturesService=n,this.pdfViewerService=i,this.modalController=r,this.loadingController=s,this.workflow=[],this.resource=[],this.pdfContent=null,this.docIndex=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}ngOnInit(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>{this.load=e,this.load.present()}),this.resource.signPos&&this.initSignPos()}initSignPos(){this.workflow.forEach((e,t)=>{var n;(null===(n=e.signaturePositions)||void 0===n?void 0:n.length)>0&&(this.signList=this.signList.concat(e.signaturePositions.filter(e=>e.mainDocument===this.resource.mainDocument&&e.docIndex===this.docIndex).map(e=>Object.assign(Object.assign({},e),{sequence:t,docIndex:this.docIndex}))))})}onSubmit(){this.modalController.dismiss(this.formatData())}onPagesLoaded(e){return dY(this,void 0,void 0,function*(){this.pages=Array.from({length:e.pagesCount}).map((e,t)=>t+1),this.changePage(1)})}exportAsImage(){return dY(this,void 0,void 0,function*(){const e=yield this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});this.getImageDimensions(e),this.imgContent=e,this.pagesLoaded=!0})}getImageDimensions(e){const t=new Image;t.onload=e=>{this.workingAreaWidth=e.target.naturalWidth,this.workingAreaHeight=e.target.naturalHeight},t.src=e}changePage(e){this.currentPage=e,this.exportAsImage()}moveSign(e,t){let n=100*e.x/this.workingAreaWidth,i=100*e.y/this.workingAreaHeight;n=n<0?0:n,n=n>100?100:n,i=i<0?0:i,i=i>100?100:i,this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionX=n,this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage)[0].position.positionY=i,this.dragging=!1}emptySign(){return 0===this.signList.filter(e=>e.sequence===this.currentUser&&e.page===this.currentPage).length}initSign(){this.signList.push({sequence:this.currentUser,page:this.currentPage,docIndex:this.docIndex,position:{positionX:75,positionY:90}});let e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach((t,n)=>{if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}getUserSignPosPage(e){return this.signList.filter(t=>t.sequence===e)}selectUser(e){this.currentUser=+e}getUserName(e){return this.workflow[e].userDisplay}goToSignUserPage(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}deleteSign(e){this.signList.splice(e,1)}formatData(){let e=[];return this.workflow.forEach((t,n)=>{this.signList.filter(e=>e.sequence===n).length>0&&(e=e.concat(this.signList.filter(e=>e.sequence===n)))}),e}imageLoaded(e){this.load.dismiss()}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Ov),Vo(oS),Vo(XS),Vo(tC),Vo(JA))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent",docIndex:"docIndex"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Uo(),Ho(5,"ion-toolbar",1),Ho(6,"ion-segment",2),Xo("ionChange",function(e){return t.selectUser(e.detail.value)}),Fo(7,gY,7,4,"ion-segment-button",3),Uo(),Uo(),Uo(),Ho(8,"ion-content"),Ho(9,"drag-scroll",4),Ho(10,"div",5,6),Fo(12,vY,2,1,"ng-container",7),Ho(13,"ion-img",8),Xo("ionImgDidLoad",function(e){return t.imageLoaded(e)}),Uo(),Fo(14,bY,3,3,"ion-button",9),Uo(),Uo(),Ho(15,"ngx-extended-pdf-viewer",10),Xo("pdfLoaded",function(e){return t.onPagesLoaded(e)}),Uo(),Ho(16,"section",11),Ho(17,"div",12),Oa(18),Uo(),Ho(19,"div",13),Xo("click",function(){Lt(e);const n=No(23);return t.pages.length>1&&n.open()}),Oa(20),pc(21,"translate"),Uo(),Ho(22,"ion-select",14,15),Xo("ionChange",function(e){return t.changePage(e.target.value)}),pc(24,"translate"),Fo(25,yY,2,2,"ion-select-option",16),Uo(),Uo(),Fo(26,xY,3,2,"ng-container",17),Uo(),Ho(27,"ion-footer",18),Ho(28,"div"),Ho(29,"ion-button",19),Xo("click",function(){return t.onSubmit()}),Ho(30,"ion-label"),Oa(31),pc(32,"translate"),Uo(),Uo(),Ho(33,"ion-button",20),Xo("click",function(){return t.modalController.dismiss()}),Ho(34,"ion-label"),Oa(35),pc(36,"translate"),Uo(),Uo(),Uo(),Uo()}2&e&&(zo("translucent",!0),is(3),Ia(gc(4,25,"lang.adminSignaturesPositions")),is(3),zo("value",t.currentUser),is(1),zo("ngForOf",t.workflow),is(2),zo("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),is(1),ma("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),is(2),zo("ngForOf",t.signList),is(1),zo("src",t.imgContent),is(1),zo("ngIf",t.emptySign()),is(1),zo("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),is(3),Ia(t.resource.title),is(2),Ba("",gc(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),is(2),zo("cancelText",gc(24,29,"lang.cancel")),is(3),zo("ngForOf",t.pages),is(1),zo("ngIf",t.pages.length>1),is(5),Ia(gc(32,31,"lang.save")),is(4),Ia(gc(36,33,"lang.cancel")))},directives:[zx,wA,bA,uA,ox,Ud,Mx,Kk,Hx,$d,QS,hA,Nx,Cx,Kx,dA,jx,Ix,eE,Sx,pA,Lx],pipes:[YC,lh],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),e})(),CY=(()=>{class e{constructor(){this.fileDropped=new wc,this.disabled=!1,this.background="none",this.opacity="1"}onDragOver(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}onDragLeave(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}ondrop(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";const t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Je({type:e,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&Xo("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&ma("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),e})();var SY=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const kY=["appVisaWorkflow"],EY=["rightContent"],PY=["docToUpload"];function DY(e,t){1&e&&Wo(0,"ion-icon",34)}function OY(e,t){1&e&&Wo(0,"ion-icon",35)}function IY(e,t){1&e&&Wo(0,"i",36)}function TY(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-buttons",2),Ho(2,"ion-button",22),Xo("click",function(){const e=t.$implicit;return e.mainDocument=!e.mainDocument}),pc(3,"translate"),pc(4,"translate"),Fo(5,DY,1,0,"ion-icon",23),Fo(6,OY,1,0,"ion-icon",24),Uo(),Uo(),Ho(7,"ion-item",25),Ho(8,"ion-label",26),Oa(9),pc(10,"translate"),Uo(),Ho(11,"ion-input",27),Xo("ngModelChange",function(e){return t.$implicit.reference=e}),pc(12,"translate"),Uo(),Uo(),Ho(13,"ion-item",25),Ho(14,"ion-label",26),Oa(15),pc(16,"translate"),Uo(),Ho(17,"ion-input",28),Xo("ngModelChange",function(e){return t.$implicit.title=e}),pc(18,"translate"),Uo(),Uo(),Ho(19,"ion-buttons",5),Ho(20,"ion-button",29),Xo("click",function(){Lt(e);const n=t.index;return ia(2).signPos(n)}),pc(21,"translate"),Fo(22,IY,1,0,"i",30),Wo(23,"ion-icon",31),Uo(),Ho(24,"ion-button",32),Xo("click",function(){Lt(e);const n=t.index;return ia(2).deleteFile(n)}),pc(25,"translate"),Wo(26,"ion-icon",33),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=t.index,i=ia(2);is(2),zo("title",e.mainDocument?gc(3,15,"lang.docToSign"):gc(4,17,"lang.attachDocToSign")),is(3),zo("ngIf",e.mainDocument),is(1),zo("ngIf",!e.mainDocument),is(3),Ia(gc(10,19,"lang.reference")),is(2),aa("placeholder",gc(12,21,"lang.fileReference")),zo("maxlength",53)("ngModel",e.reference)("disabled",!e.mainDocument),is(4),Ta("",gc(16,23,"lang.subject")," *"),is(2),aa("placeholder",gc(18,25,"lang.filename")),zo("ngModel",e.title),is(3),zo("disabled",!e.mainDocument)("title",gc(21,27,"lang.setSignaturesPosition")),is(2),zo("ngIf",void 0!==i.filesToUpload[n].signPos&&i.filesToUpload[n].signPos.length>0),is(2),zo("title",gc(25,29,"lang.delete"))}}function MY(e,t){if(1&e&&(Ho(0,"ion-list"),Ho(1,"ion-list-header"),Ho(2,"ion-label",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Fo(5,TY,27,31,"ion-item",21),Uo()),2&e){const e=ia();is(3),Ia(gc(4,2,"lang.documentsToUpload")),is(2),zo("ngForOf",e.filesToUpload)}}function BY(e,t){1&e&&Wo(0,"app-visa-workflow",37,38),2&e&&zo("editMode",!0)}let RY=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=r,this.viewContainerRef=s,this.notificationService=o,this.authService=a,this.loadingController=l,this.alertController=c,this.datePipe=u,this.modalController=d,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}ngOnInit(){}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}getDocumentData(e){return new Promise(t=>{this.http.get("../rest/documents/"+e).pipe(Ib(n=>{let i="",r=n.document.reference.split("/");r=r.slice(3,r.length),r.length>0&&(i=r.join("/")),this.filesToUpload.push({title:n.document.title,reference:i,mainDocument:!0,content:"",linkId:n.document.linkId,metadata:n.document.metadata}),this.getDocumentContent(e),this.appVisaWorkflow.loadWorkflow(n.document.workflow.map(e=>(e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes}))));for(let e=0;e<n.document.attachments.length;e++)this.getAttachment(n.document.attachments[e].id);t(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}getDocumentContent(e){return new Promise(t=>{this.http.get(`../rest/documents/${e}/content?type=original`).pipe(Ib(e=>{this.filesToUpload[0].content=e.encodedDocument,t(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}getAttachment(e){return new Promise(t=>{this.http.get("../rest/attachments/"+e).pipe(Ib(e=>{this.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),t(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}onSubmit(){this.isValid()&&this.promptSaveDoc()}promptSaveDoc(){return SY(this,void 0,void 0,function*(){const e=yield this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:e=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(t=>SY(this,void 0,void 0,function*(){t.present();const n=this.formatData(e.note);for(let e=0;e<n.length;e++)yield this.saveDocument(n,e);t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]))}))}}]});yield e.present()})}saveDocument(e,t){return e.forEach(t=>{t.workflow.forEach(n=>{n.signaturePositions=n.signaturePositions.filter(n=>n.docIndex===e.indexOf(t))})}),new Promise(n=>{this.http.post("../rest/documents",e[t]).pipe(Ib(()=>{this.errors=[]}),Bb(()=>n(!0)),mb(n=>(this.errors.push(e[t].title),this.notificationService.handleErrors(n),cv(!1)))).subscribe()})}formatData(e){const t=new Date;let n=null,i=null;""!==e&&(n={value:e,creator:`${this.authService.user.firstname} ${this.authService.user.lastname}`,creationDate:this.datePipe.transform(t,"dd-MM-y")});const r=[],s=this.filesToUpload.filter(e=>e.mainDocument),o=this.filesToUpload.filter(e=>!e.mainDocument);return s.length>1&&(i=this.datePipe.transform(t,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),s.forEach(e=>{const s={};null!==this.fromDocument&&e.metadata.forEach(e=>{s[e.label]=e.value});let a="";""!==e.reference&&(a=this.datePipe.transform(t,"y/MM/dd")+"/"+e.reference),r.push({title:e.title,reference:a,encodedDocument:e.content,isZipped:!1,linkId:null!==this.fromDocument?e.linkId:i,sender:`${this.authService.user.firstname} ${this.authService.user.lastname}`,notes:n,attachments:o.map(e=>({title:e.title,encodedDocument:e.content})),workflow:this.appVisaWorkflow.getCurrentWorkflow().map((t,n)=>({userId:t.userId,mode:this.authService.getWorkflowMode(t.role),signatureMode:this.authService.getSignatureMode(t.role),signaturePositions:void 0!==t.signaturePositions?this.formatPositions(t.signaturePositions.filter(t=>t.mainDocument===e.mainDocument&&void 0!==e.signPos)).map(e=>({page:e.page,docIndex:e.docIndex,positionX:e.position.positionX,positionY:e.position.positionY})):[]})),metadata:s})}),r}formatPositions(e){return delete e.mainDocument,e}dndUploadFile(e){this.uploadTrigger({target:{files:[e[0]]}})}uploadTrigger(e){this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(t=>SY(this,void 0,void 0,function*(){if(t.present(),e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(let n=0;n<e.target.files.length;n++){const i=e.target.files[n].name,r={title:i.substr(0,i.lastIndexOf(".")),reference:i.substr(0,i.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},s=new FileReader;s.readAsArrayBuffer(e.target.files[n]),s.onload=e=>{r.mainDocument=0===this.filesToUpload.length,r.reference=0===this.filesToUpload.length?r.reference:"",r.content=this.getBase64Document(e.target.result),this.filesToUpload.push(r),1===this.filesToUpload.length&&setTimeout(()=>{this.menu.open("right-menu")},500)},n===e.target.files.length-1&&t.dismiss()}this.fileImport.nativeElement.value=""}else this.loading=!1,t.dismiss()}))}isExtensionAllowed(e){for(let t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}getBase64Document(e){const t=new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)}deleteFile(e){this.filesToUpload.splice(e,1),0===this.filesToUpload.length&&this.appVisaWorkflow.getCurrentWorkflow().forEach(e=>{e.signaturePositions=[]})}signPos(e){return SY(this,void 0,void 0,function*(){if(this.appVisaWorkflow.getCurrentWorkflow().length>0){this.appVisaWorkflow.getCurrentWorkflow().forEach((e,t)=>{void 0===e.signaturePositions&&(this.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])});const t=yield this.modalController.create({component:AY,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content,docIndex:this.filesToUpload.indexOf(this.filesToUpload[e])}});yield t.present();const{data:n}=yield t.onWillDismiss();void 0!==n&&(this.filesToUpload[e].signPos=n,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload,e,n))}else this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions")})}isValid(){return this.filesToUpload.filter(e=>""===e.title).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(e=>e.mainDocument).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(a_),Vo(eC),Vo(oS),Vo(Gl),Vo(QC),Vo(lS),Vo(JA),Vo(XA),Vo(ch),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Mc(kY,1),Mc(EY,3),Mc(PY,1)),2&e){let e;Tc(e=Rc())&&(t.appVisaWorkflow=e.first),Tc(e=Rc())&&(t.rightContent=e.first),Tc(e=Rc())&&(t.fileImport=e.first)}},features:[el([ch])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Uo(),Ho(4,"ion-title",4),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-buttons",5),Ho(8,"ion-menu-button",6),Wo(9,"ion-icon",7),Uo(),Uo(),Uo(),Uo(),Ho(10,"ion-content"),Ho(11,"div",8),Fo(12,MY,6,4,"ion-list",9),Ho(13,"input",10,11),Xo("change",function(e){return t.uploadTrigger(e)}),Uo(),Ho(15,"div",12),Xo("fileDropped",function(e){return t.dndUploadFile(e)}),Ho(16,"ion-button",13),Xo("click",function(){return Lt(e),No(14).click()}),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-item",14),Ho(20,"ion-label",15),Oa(21),pc(22,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(23,"ion-footer",16),Ho(24,"div",17),Ho(25,"ion-button",18),Xo("click",function(){return t.onSubmit()}),Ho(26,"ion-label",19),Oa(27),pc(28,"translate"),Uo(),Uo(),Uo(),Uo(),Fo(29,BY,2,1,"ng-template",null,20,Vc)}2&e&&(zo("translucent",!0),is(5),Ia(gc(6,6,"lang.newDocumentToVisa")),is(7),zo("ngIf",t.filesToUpload.length>0),is(5),Ta(" ",gc(18,8,"lang.chooseDocuments")," "),is(4),Ta(" ",gc(22,10,"lang.dndDocuments")," "),is(6),Ia(gc(28,12,"lang.validate")))},directives:[zx,wA,Sx,eA,bA,jx,Mx,$d,CY,Cx,Gx,Kx,Nx,Qx,Xx,Ud,$x,lx,nv,am,Rm,wG],pipes:[YC],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),e})();const LY=["searchInput"];function FY(e,t){if(1&e){const e=Yo();Ho(0,"ion-searchbar",6,7),Xo("ngModelChange",function(t){return Lt(e),ia().searchValue=t})("ionChange",function(t){return Lt(e),ia().getDatas(t)}),pc(2,"translate"),Uo()}2&e&&zo("ngModel",ia().searchValue)("placeholder",gc(2,2,"lang.search"))}function NY(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-checkbox",10),Xo("ionChange",function(t){return Lt(e),ia(2).selectItem(t.detail.value)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Ho(4,"ion-note",11),Oa(5),Uo(),Uo()}if(2&e){const e=t.$implicit;is(1),zo("value",e),is(2),Ma("",e.firstname," ",e.lastname,""),is(2),Ia(e.email)}}function VY(e,t){if(1&e&&(Ho(0,"ion-list",8),Fo(1,NY,6,4,"ion-item",9),Uo()),2&e){const e=ia();is(1),zo("ngForOf",e.itemList)}}function zY(e,t){1&e&&(Ho(0,"ion-label",12),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ia(gc(2,1,"lang.noItem")))}function jY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",13),Xo("click",function(){Lt(e);const n=t.index;return ia().removeItem(n)}),Ho(1,"ion-label",14),Oa(2),Uo(),Wo(3,"ion-icon",15),Uo()}if(2&e){const e=t.$implicit;is(2),Ma("",e.firstname," ",e.lastname,"")}}function HY(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",11),Ho(1,"ion-button",16),Xo("click",function(){return Lt(e),ia().toggleEdit()}),Ho(2,"ion-label",17),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()}2&e&&(is(3),Ia(gc(4,1,"lang.edit")))}let UY=(()=>{class e{constructor(e,t){this.http=e,this.notificationService=t,this.currentItems=[],this.selectedOpt=new wc,this.myControl=new Em,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}ngOnInit(){}getDatas(e){""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Ib(e=>{this.itemList=e}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}selectItem(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}removeItem(e){this.currentItems.splice(e,1)}toggleEdit(){this.editMode=!this.editMode,this.editMode&&setTimeout(()=>{this.searchInput.setFocus()},0)}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(QC))},e.\u0275cmp=qe({type:e,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){if(1&e&&Mc(LY,1),2&e){let e;Tc(e=Rc())&&(t.searchInput=e.first)}},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(Fo(0,FY,3,4,"ion-searchbar",0),Fo(1,VY,2,1,"ion-list",1),Ho(2,"ion-list"),Ho(3,"ion-item",2),Fo(4,zY,3,3,"ion-label",3),Ho(5,"p"),Fo(6,jY,4,2,"ion-chip",4),Uo(),Fo(7,HY,5,3,"ion-buttons",5),Uo(),Uo()),2&e&&(zo("ngIf",t.editMode),is(1),zo("ngIf",t.itemList.length>0),is(3),zo("ngIf",0===t.currentItems.length),is(2),zo("ngForOf",t.currentItems),is(1),zo("ngIf",!t.editMode))},directives:[$d,Qx,Gx,Ud,cA,lx,am,Rm,Ox,ex,Kx,nA,Ix,jx,Sx,Cx],pipes:[YC],styles:[""]}),e})();var WY=function(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};const $Y=["appVisaWorkflow"],GY=["rightContent"];function qY(e,t){1&e&&Wo(0,"ion-icon",26)}function YY(e,t){1&e&&Wo(0,"ion-icon",27)}function ZY(e,t){1&e&&Wo(0,"ion-icon",28)}function KY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",21),Xo("click",function(){Lt(e);const t=ia().$implicit;return ia(2).removeFilter(t)}),pc(1,"translate"),Fo(2,qY,1,0,"ion-icon",22),Fo(3,YY,1,0,"ion-icon",23),Fo(4,ZY,1,0,"ion-icon",24),Ho(5,"ion-label"),Oa(6),Uo(),Wo(7,"ion-icon",25),Uo()}if(2&e){const e=ia().$implicit;zo("title",gc(1,5,"lang."+e.id+"Search")),is(2),zo("ngIf","title"===e.id),is(1),zo("ngIf","reference"===e.id),is(1),zo("ngIf","documentId"===e.id),is(2),Ia(e.val)}}function QY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",21),Xo("click",function(){Lt(e);const n=t.$implicit,i=ia(2).$implicit;return ia(2).removeFilter(i,n.id)}),pc(1,"translate"),Wo(2,"ion-icon",30),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Wo(6,"ion-icon",25),Uo()}if(2&e){const e=t.$implicit;zo("title",gc(1,2,"lang.workflowStatesSearch")),is(4),Ia(gc(5,4,e.label))}}function XY(e,t){if(1&e&&(Ho(0,"div"),Fo(1,QY,7,6,"ion-chip",29),Uo()),2&e){const e=ia().$implicit;is(1),zo("ngForOf",e.val)}}function JY(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",21),Xo("click",function(){Lt(e);const n=t.$implicit,i=ia(2).$implicit;return ia(2).removeFilter(i,n)}),pc(1,"translate"),Wo(2,"ion-icon",31),Ho(3,"ion-label"),Oa(4),Uo(),Wo(5,"ion-icon",25),Uo()}if(2&e){const e=t.$implicit;zo("title",gc(1,3,"lang.workflowUsersSearch")),is(4),Ma("",e.firstname," ",e.lastname,"")}}function eZ(e,t){if(1&e&&(Ho(0,"div"),Fo(1,JY,6,5,"ion-chip",29),Uo()),2&e){const e=ia().$implicit;is(1),zo("ngForOf",e.val)}}function tZ(e,t){if(1&e&&(Ho(0,"div"),Fo(1,KY,8,7,"ion-chip",20),Fo(2,XY,2,1,"div",10),Fo(3,eZ,2,1,"div",10),Uo()),2&e){const e=t.$implicit;is(1),zo("ngIf",("title"===e.id||"reference"===e.id||"documentId"===e.id)&&""!==e.val),is(1),zo("ngIf","workflowStates"===e.id&&e.val.length>0),is(1),zo("ngIf","workflowUsers"===e.id&&e.val.length>0)}}function nZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-toolbar",14),Ho(1,"div",15),Ho(2,"ion-button",16),Xo("click",function(){return Lt(e),ia().clearFilters()}),pc(3,"translate"),Wo(4,"ion-icon",17),Uo(),Ho(5,"div",18),Fo(6,tZ,4,3,"div",19),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(2),zo("title",gc(3,2,"lang.clearFilters")),is(4),zo("ngForOf",e.currentFilters)}}function iZ(e,t){1&e&&(Ho(0,"ion-list",32),Ho(1,"ion-item",33),Ho(2,"ion-label",34),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,1,"lang.noResult")))}function rZ(e,t){1&e&&Wo(0,"ion-icon",57)}function sZ(e,t){1&e&&Wo(0,"ion-icon",58)}function oZ(e,t){1&e&&Wo(0,"ion-icon",59)}function aZ(e,t){if(1&e&&(Ho(0,"ion-badge",60),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia().$implicit;is(1),Ia(gc(2,1,"lang."+e.mode+"User"))}}const lZ=function(){return["END","STOP"]};function cZ(e,t){if(1&e&&($o(0),Fo(1,rZ,1,0,"ion-icon",52),Ho(2,"span",53),Oa(3),pc(4,"translate"),Fo(5,sZ,1,0,"ion-icon",54),Fo(6,oZ,1,0,"ion-icon",55),Fo(7,aZ,3,3,"ion-badge",56),Uo(),Go()),2&e){const e=t.$implicit,n=t.index,i=ia(3);is(1),zo("ngIf",n>0),is(1),va("success",null!==e.processDate&&"STOP"!==e.status)("typist-interrupt","REF"===e.status)("interrupt",null===e.processDate&&"END"===e.status||"STOP"===e.status)("current",e.current)("no-visa",null===e.processDate&&null===e.status&&!e.current),is(1),Ta("",i.functionsService.empty(e.userDisplay)?gc(4,15,"lang.userDeleted"):e.userDisplay,"\xa0 "),is(2),zo("ngIf",null!==e.processDate&&"REF"!==e.status&&"STOP"!==e.status),is(1),zo("ngIf",null!==e.processDate&&"REF"===e.status),is(1),zo("ngIf",null===e.processDate&&(null===e.status||ac(17,lZ).indexOf(e.status)>-1))}}function uZ(e,t){1&e&&Wo(0,"ion-icon",61)}function dZ(e,t){1&e&&Wo(0,"ion-icon",62)}function hZ(e,t){1&e&&Wo(0,"ion-icon",63)}function pZ(e,t){1&e&&Wo(0,"ion-icon",64)}function gZ(e,t){if(1&e&&($o(0),Wo(1,"ion-icon",66),Oa(2),Go()),2&e){const e=t.$implicit;is(2),Ta(" ",e," ")}}function fZ(e,t){if(1&e&&(Ho(0,"p",65),Fo(1,gZ,3,1,"ng-container",19),Uo()),2&e){const e=ia().$implicit;is(1),zo("ngForOf",e.reason)}}function mZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",67),Xo("click",function(t){Lt(e);const n=ia().$implicit,i=No(7),r=ia(2);return t.stopPropagation(),r.toggleSlide(i,n.id)}),Wo(1,"ion-icon",68),Uo()}}function vZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",67),Xo("click",function(t){Lt(e);const n=ia().$implicit,i=No(7),r=ia(2);return t.stopPropagation(),r.toggleSlide(i,n.id)}),Wo(1,"ion-icon",69),Uo()}}function bZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item-option",50),Xo("click",function(){Lt(e);const t=ia().$implicit;return ia(2).openPromptProof(t)}),Wo(1,"ion-icon",70),Oa(2),pc(3,"translate"),Uo()}2&e&&(is(2),Ta(" ",gc(3,1,"lang.download")," "))}function yZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label"),Ho(2,"ion-toolbar",37),Ho(3,"ion-title",38),Ho(4,"p",39),Fo(5,cZ,8,18,"ng-container",19),Uo(),Uo(),Uo(),Ho(6,"ion-item-sliding",40,41),Xo("ionDrag",function(n){Lt(e);const i=t.$implicit;return ia(2).onSliding(n,i.id)}),Ho(8,"ion-item",33),Fo(9,uZ,1,0,"ion-icon",42),Fo(10,dZ,1,0,"ion-icon",43),Fo(11,hZ,1,0,"ion-icon",44),Fo(12,pZ,1,0,"ion-icon",45),Ho(13,"ion-label",46),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).goTo(n.id)}),pc(14,"translate"),Ho(15,"p"),Oa(16),Uo(),Ho(17,"h2"),Oa(18),Uo(),Fo(19,fZ,2,1,"p",47),Uo(),Ho(20,"ion-buttons",5),Fo(21,mZ,2,0,"ion-button",48),Fo(22,vZ,2,0,"ion-button",48),Uo(),Uo(),Ho(23,"ion-item-options"),Fo(24,bZ,4,3,"ion-item-option",49),Ho(25,"ion-item-option",50),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).openActions(n)}),Wo(26,"ion-icon",51),Oa(27),pc(28,"translate"),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia(2);is(5),zo("ngForOf",e.workflow),is(4),zo("ngIf","PROG"==e.state),is(1),zo("ngIf","STOP"==e.state),is(1),zo("ngIf","VAL"==e.state),is(1),zo("ngIf","REF"==e.state),is(1),zo("title",gc(14,13,"lang.accessDocument")),is(3),Ia(e.reference),is(2),Ia(e.title),is(1),zo("ngIf",e.reason.length>0),is(2),zo("ngIf",n.openedLine===e.id),is(1),zo("ngIf",n.openedLine!==e.id),is(2),zo("ngIf","PROG"!==e.state),is(3),Ta(" ",gc(28,15,"lang.actions")," ")}}function wZ(e,t){if(1&e&&(Ho(0,"ion-list"),Ho(1,"ion-virtual-scroll",35),Fo(2,yZ,29,17,"ion-item",36),Uo(),Uo()),2&e){const e=ia();is(1),zo("items",e.ressources)}}function _Z(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-item"),Ho(2,"ion-label",76),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-input",77),Xo("ngModelChange",function(t){return Lt(e),ia().$implicit.val=t})("keyup.enter",function(){return Lt(e),ia(3).launchSearch()})("ionChange",function(){return Lt(e),ia(3).checkInput()}),Uo(),Uo(),Go()}if(2&e){const e=ia().$implicit;is(3),Ta("",gc(4,3,"lang."+e.id+"Search")," "),is(2),zo("ngModel",e.val)("value",e.val)}}function xZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label"),Oa(2),pc(3,"translate"),Uo(),Ho(4,"ion-checkbox",79),Xo("ngModelChange",function(){Lt(e);const n=t.$implicit,i=ia(2).$implicit;return ia(2).toggleItem(i,n,!n.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ia(gc(3,4,e.label)),is(2),zo("ngModel",e.selected)("checked",e.selected)("value",e.id)}}function AZ(e,t){if(1&e&&($o(0),Ho(1,"ion-list-header"),Ho(2,"ion-label",78),Oa(3),pc(4,"translate"),Uo(),Uo(),Fo(5,xZ,5,6,"ion-item",19),Go()),2&e){const e=ia().$implicit;is(3),Ia(gc(4,2,"lang."+e.id+"Search")),is(2),zo("ngForOf",e.values)}}function CZ(e,t){if(1&e&&($o(0),Ho(1,"ion-list-header"),Ho(2,"ion-label",78),Oa(3),pc(4,"translate"),Uo(),Uo(),Wo(5,"plugin-autocomplete",80),Go()),2&e){const e=ia().$implicit;is(3),Ia(gc(4,2,"lang."+e.id+"Search")),is(2),zo("currentItems",e.val)}}function SZ(e,t){if(1&e&&(Ho(0,"ion-list"),Fo(1,_Z,6,5,"ng-container",10),Fo(2,AZ,6,4,"ng-container",10),Fo(3,CZ,6,4,"ng-container",10),Uo()),2&e){const e=t.$implicit;is(1),zo("ngIf","text"===e.type),is(1),zo("ngIf","checkbox"===e.type),is(1),zo("ngIf","autocompleteUsers"===e.type)}}function kZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title",71),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content"),Fo(8,SZ,4,3,"ion-list",19),Uo(),Ho(9,"ion-footer",72),Ho(10,"div",73),Ho(11,"ion-button",74),Xo("click",function(){return Lt(e),ia().onSubmit()}),Ho(12,"ion-label",75),Oa(13),pc(14,"translate"),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(5),Ia(gc(6,4,"lang.filters")),is(3),zo("ngForOf",e.filters),is(5),Ia(gc(14,6,"lang.search"))}}let EZ=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h,p){this.http=e,this.translate=t,this.router=n,this.menu=i,this.signaturesService=r,this.viewContainerRef=s,this.notificationService=o,this.authService=a,this.loadingController=l,this.alertController=c,this.actionSheetController=u,this.datePipe=d,this.functionsService=h,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}ngOnInit(){this._activatedRoute.queryParamMap.subscribe(e=>{this.functionsService.empty(e.get("documentId"))||(this.documentId=e.get("documentId"),this.filters.filter(e=>"documentId"===e.id)[0].val=this.documentId,this.search())})}ionViewWillEnter(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(()=>{this.menu.open("right-menu")},500)}ionViewWillLeave(){this.signaturesService.detachTemplate("rightContent")}toggleSlide(e,t){e.getOpenAmount().then(n=>{0===n?(this.openedLine=t,e.open("end")):(this.openedLine="",e.close("end"))})}onSliding(e,t){this.openedLine=1===e.detail.ratio?t:""}onSubmit(){this.search(),this.menu.close("right-menu")}toggleItem(e,t,n){if(n)e.val.push(t.id);else{const n=e.val.indexOf(t.id);e.val.splice(n,1)}}formatDatas(){const e={};return JSON.parse(JSON.stringify(this.filters.filter(e=>"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0))).forEach(t=>{e[t.id]="workflowUsers"===t.id?t.val.map(e=>e.id):"workflowStates"===t.id?t.values.filter(e=>e.selected).map(e=>e.id):t.val}),e}formatListDatas(e){return e.map(e=>Object.assign(Object.assign({},e),{reason:this.getReason(e),currentUser:this.getCurrentUser(e)}))}getNbFilters(){let e=0;for(let t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}openActions(e){return WY(this,void 0,void 0,function*(){const t=[];this.actions.forEach(n=>{this.canShowButton(n.id,e)&&t.push({text:this.translate.instant("PROG"===e.state&&"newWorkflow"===n.id?"lang."+n.id+"Prog":"lang."+n.id),icon:n.icon,handler:()=>{this[n.id](e)}})});const n=yield this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:t});yield n.present()})}canShowButton(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}search(){this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(e=>WY(this,void 0,void 0,function*(){e.present(),yield this.launchSearch(),e.dismiss()}))}launchSearch(){return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(e=>{this.http.post("../rest/search/documents?limit=10&offset=0",this.formatDatas()).pipe(Ib(t=>{this.ressources=this.formatListDatas(t.documents),this.count=t.count,this.infiniteScroll.disabled=!1,e(!0)}),mb(t=>(this.notificationService.handleErrors(t),e(!1),cv(!1)))).subscribe()})}refreshCurrentFilter(){this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(e=>!this.functionsService.empty(e.val)))),this.currentFilters.filter(e=>"workflowStates"===e.id).length>0&&(this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val=this.currentFilters.filter(e=>"workflowStates"===e.id)[0].values.filter(e=>e.selected),0===this.currentFilters.filter(e=>"workflowStates"===e.id)[0].val.length&&(this.currentFilters=this.currentFilters.filter(e=>"workflowStates"!==e.id)))}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(Ib(t=>{this.ressources=this.ressources.concat(this.formatListDatas(t.documents)),e.target.complete(),this.count===this.ressources.length&&(e.target.disabled=!0)})).subscribe())}interruptWorkflow(e){return WY(this,void 0,void 0,function*(){return new Promise(t=>WY(this,void 0,void 0,function*(){const n=yield this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:()=>{this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(n=>WY(this,void 0,void 0,function*(){n.present(),yield this.launchInterrupt(e),this.launchSearch(),t(!0),n.dismiss()}))}}]});yield n.present()}))})}launchInterrupt(e){return new Promise(t=>{this.http.put(`../rest/documents/${e.id}/workflows/interrupt`,{}).pipe(Ib(()=>{this.notificationService.success("lang.documentInterrupted"),t(!0)}),mb(e=>(this.notificationService.handleErrors(e),t(!1),cv(!1)))).subscribe()})}newWorkflow(e){return WY(this,void 0,void 0,function*(){"PROG"===e.state&&(yield this.interruptWorkflow(e)),this.router.navigate(["/indexation"],{state:{documentId:e.id}})})}openPromptProof(e){return WY(this,void 0,void 0,function*(){const t=yield this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:()=>{}},{text:this.translate.instant("lang.validate"),handler:n=>WY(this,void 0,void 0,function*(){yield this.downloadProof(e,n),t.dismiss()})}]});yield t.present()})}downloadProof(e,t){const n="onlyProof"===t?"&onlyProof=true":"";return new Promise(t=>{this.http.get(`../rest/documents/${e.id}/proof?mode=stream${n}`,{responseType:"blob"}).pipe(Ib(n=>{const i=new Date,r="proof_"+e.id+"_"+this.datePipe.transform(i,"dd-MM-y")+"."+n.type.replace("application/",""),s=document.createElement("a");s.href=window.URL.createObjectURL(n),s.setAttribute("download",r),document.body.appendChild(s),s.click(),t(!0)}),mb(e=>(this.notificationService.handleErrors(e),t(!1),cv(!1)))).subscribe()})}getReason(e){return e.workflow.map(e=>e.reason).filter(e=>null!==e)}getCurrentUser(e){const t=e.workflow.filter(e=>!0===e.current);return t.length>0?t[0].userId:null}goTo(e){this.router.navigate(["/documents/"+e])}clearFilters(){for(let e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(e=>Object.assign(Object.assign({},e),{selected:!1})));this.ressources.length>0&&this.launchSearch()}removeFilter(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(t=>t.id===e.id).values.filter(e=>e.id===t)[0].selected=!1;else{const n=e.val.indexOf(t);this.filters.filter(t=>t.id===e.id)[0].val.splice(n,1)}else this.filters.find(t=>t.id===e.id).val="";this.launchSearch()}getLabel(e){return this.filters.filter(e=>"workflowStates"===e.id)[0].values.find(t=>t.id===e).label}checkInput(){""===this.filters.find(e=>"title"===e.id).val&&""===this.filters.find(e=>"reference"===e.id).val&&""===this.filters.find(e=>"documentId"===e.id).val&&0===this.filters.find(e=>"workflowStates"===e.id).val.length&&0===this.filters.find(e=>"workflowUsers"===e.id).val.length&&(this.clearFilters(),this.currentFilters=[])}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(a_),Vo(eC),Vo(oS),Vo(Gl),Vo(QC),Vo(lS),Vo(JA),Vo(XA),Vo(QA),Vo(ch),Vo(qL),Vo(jy))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(Mc($Y,1),Mc(GY,3),Mc(Ux,1)),2&e){let e;Tc(e=Rc())&&(t.appVisaWorkflow=e.first),Tc(e=Rc())&&(t.rightContent=e.first),Tc(e=Rc())&&(t.infiniteScroll=e.first)}},features:[el([ch])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Uo(),Ho(4,"ion-title"),Oa(5),pc(6,"translate"),Uo(),Ho(7,"ion-title",4),Oa(8),pc(9,"translate"),Uo(),Ho(10,"ion-buttons",5),Ho(11,"ion-menu-button",6),Wo(12,"ion-icon",7),Uo(),Uo(),Uo(),Fo(13,nZ,7,4,"ion-toolbar",8),Uo(),Ho(14,"ion-content"),Fo(15,iZ,5,3,"ion-list",9),Fo(16,wZ,3,1,"ion-list",10),Ho(17,"ion-infinite-scroll",11),Xo("ionInfinite",function(e){return t.loadData(e)}),Wo(18,"ion-infinite-scroll-content",12),pc(19,"translate"),Uo(),Uo(),Fo(20,kZ,15,8,"ng-template",null,13,Vc)),2&e&&(zo("translucent",!0),is(5),Ia(gc(6,8,"lang.search")),is(3),Ma("",t.count," ",gc(9,10,"lang.results"),""),is(5),zo("ngIf",t.currentFilters.length>0),is(2),zo("ngIf",0===t.ressources.length),is(1),zo("ngIf",t.ressources.length>0),is(2),zo("loadingText",gc(19,12,"lang.loadingMoreData")))},directives:[zx,wA,Sx,eA,bA,jx,$d,Mx,Ux,Wx,Cx,Ud,Ix,Kx,Qx,Gx,YA,qA,Zx,Yx,qx,Ax,xx,UA,Nx,$x,lx,am,Rm,Xx,Ox,ex,UY],pipes:[YC],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),e})(),PZ=(()=>{class e{constructor(e){this.latinisePipe=e}transform(e,t){return null!==e?(e.sort((e,n)=>{const i=this.latinisePipe.transform(e[t]).toLocaleLowerCase(),r=this.latinisePipe.transform(n[t]).toLocaleLowerCase();return i<r?-1:i>r?1:0}),e):[]}}return e.\u0275fac=function(t){return new(t||e)(Vo(hE))},e.\u0275pipe=et({name:"sortBy",type:e,pure:!0}),e})();const DZ=["rightContent"];function OZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).removeFilter(n)}),pc(1,"translate"),Wo(2,"ion-icon",19),Ho(3,"ion-label"),Oa(4),pc(5,"translate"),Uo(),Wo(6,"ion-icon",20),Uo()}if(2&e){const e=t.$implicit;zo("title",gc(1,2,"lang.actions")),is(4),Ia(gc(5,4,"lang."+e))}}function IZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const t=ia(2);return t.removeFilter(t.filters.user)}),pc(1,"translate"),Wo(2,"ion-icon",21),Ho(3,"ion-label"),Oa(4),Uo(),Wo(5,"ion-icon",20),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,2,"lang.userName")),is(4),Ia(e.filters.user)}}function TZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const t=ia(2);return t.removeFilter(t.filters.date.start)}),pc(1,"translate"),Wo(2,"ion-icon",22),Ho(3,"ion-label"),Oa(4),pc(5,"date"),Uo(),Wo(6,"ion-icon",20),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,2,"lang.since")),is(4),Ia(fc(5,4,e.filters.date.start,"dd/MM/yyyy"))}}function MZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-chip",18),Xo("click",function(){Lt(e);const t=ia(2);return t.removeFilter(t.filters.date.end)}),pc(1,"translate"),Wo(2,"ion-icon",23),Ho(3,"ion-label"),Oa(4),pc(5,"date"),Uo(),Wo(6,"ion-icon",20),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,2,"lang.until")),is(4),Ia(fc(5,4,e.filters.date.end,"dd/MM/yyyy"))}}function BZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-toolbar",12),Ho(1,"ion-button",13),Xo("click",function(){return Lt(e),ia().clearFilters()}),pc(2,"translate"),Wo(3,"ion-icon",14),Uo(),Ho(4,"div",15),Fo(5,OZ,7,6,"ion-chip",16),Fo(6,IZ,6,4,"ion-chip",17),Fo(7,TZ,7,7,"ion-chip",17),Fo(8,MZ,7,7,"ion-chip",17),Uo(),Uo()}if(2&e){const e=ia();is(1),zo("title",gc(2,5,"lang.clearFilters")),is(4),zo("ngForOf",e.filters.messageTypes),is(1),zo("ngIf",""!==e.filters.user),is(1),zo("ngIf",null!==e.filters.date.start),is(1),zo("ngIf",null!==e.filters.date.end)}}function RZ(e,t){if(1&e&&(Ho(0,"ion-item",28),Wo(1,"ion-icon",29),Ho(2,"ion-label"),Ho(3,"p"),Oa(4),pc(5,"titlecase"),pc(6,"translate"),Ho(7,"span",30),Oa(8),pc(9,"date"),Uo(),Oa(10),pc(11,"translate"),Ho(12,"span",30),Oa(13),Uo(),Uo(),Ho(14,"h2"),Oa(15),Uo(),Uo(),Ho(16,"ion-note",5),Ho(17,"p",31),pc(18,"translate"),Oa(19),pc(20,"translate"),pc(21,"shorten"),pc(22,"translate"),Uo(),Ho(23,"p",32),Oa(24),Uo(),Uo(),Uo()),2&e){const e=t.$implicit,n=ia(2);is(1),zo("name",n.aventTypesIcon[e.type]),is(3),Ta("",gc(5,10,gc(6,12,"lang.the"))," "),is(4),Ia(fc(9,14,e.date,"dd/MM/yyyy HH:mm")),is(2),Ta(" ",gc(11,17,"lang.by")," "),is(3),Ia(e.user),is(2),Ia(e.message),is(2),zo("title",gc(18,19,"lang.resource")+" : "+e.objectId),is(2),Ma("",gc(20,21,"lang."+e.objectType)," : ",null!==e.objectLabel?mc(21,23,e.objectLabel,50,"..."):gc(22,27,"lang.undefined"),""),is(5),Ta("IP : ",e.ip,"")}}function LZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-list"),Ho(1,"ion-virtual-scroll",24),Fo(2,RZ,25,29,"ion-item",25),Uo(),Ho(3,"ion-infinite-scroll",26),Xo("ionInfinite",function(t){return Lt(e),ia().loadData(t)}),Wo(4,"ion-infinite-scroll-content",27),pc(5,"translate"),Uo(),Uo()}if(2&e){const e=ia();is(1),zo("items",e.resources),is(3),zo("loadingText",gc(5,2,"lang.loadingMoreData"))}}function FZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",5),Ho(1,"ion-button",42),Xo("click",function(){Lt(e);const t=ia(2);return t.filters.date.start=null,t.getDatas()}),Wo(2,"ion-icon",43),Uo(),Uo()}}function NZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-buttons",5),Ho(1,"ion-button",42),Xo("click",function(){Lt(e);const t=ia(2);return t.filters.date.end=null,t.getDatas()}),Wo(2,"ion-icon",43),Uo(),Uo()}}function VZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",31),Ho(1,"ion-checkbox",44),Xo("ionChange",function(t){return Lt(e),ia(2).toggleAction(t.detail)}),Uo(),Ho(2,"ion-label"),Oa(3),Uo(),Uo()}if(2&e){const e=t.$implicit;zo("title",e.label),is(1),zo("value",e.id),is(2),Ia(e.label)}}function zZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-back-button"),Uo(),Ho(4,"ion-title",33),Oa(5),pc(6,"translate"),Uo(),Uo(),Uo(),Ho(7,"ion-content"),Ho(8,"ion-list"),Ho(9,"ion-item",34),Ho(10,"ion-searchbar",35),Xo("ionChange",function(t){return Lt(e),ia().applyFilter(t.detail.value)}),pc(11,"translate"),Uo(),Uo(),Ho(12,"ion-item"),Ho(13,"ion-label",36),Oa(14),pc(15,"translate"),Uo(),Ho(16,"ion-datetime",37),Xo("ngModelChange",function(t){return Lt(e),ia().filters.date.start=t})("ionChange",function(){return Lt(e),ia().getDatas()}),pc(17,"translate"),pc(18,"translate"),Uo(),Fo(19,FZ,3,0,"ion-buttons",38),Uo(),Ho(20,"ion-item"),Ho(21,"ion-label",36),Oa(22),pc(23,"translate"),Uo(),Ho(24,"ion-datetime",39),Xo("ngModelChange",function(t){return Lt(e),ia().filters.date.end=t})("ionChange",function(){return Lt(e),ia().getDatas()}),pc(25,"translate"),pc(26,"translate"),Uo(),Fo(27,NZ,3,0,"ion-buttons",38),Uo(),Ho(28,"ion-item",40),Ho(29,"ion-label",36),Oa(30),pc(31,"translate"),Uo(),Uo(),Fo(32,VZ,4,3,"ion-item",41),Uo(),Uo()}if(2&e){const e=ia();zo("translucent",!0),is(5),Ia(gc(6,17,"lang.filters")),is(5),zo("placeholder",gc(11,19,"lang.enterUserName")),is(4),Ta("",gc(15,21,"lang.since"),": "),is(2),zo("doneText",gc(17,23,"lang.validate"))("cancelText",gc(18,25,"lang.cancel"))("ngModel",e.filters.date.start)("max",null!==e.filters.date.end?e.filters.date.end:void 0),is(3),zo("ngIf",null!==e.filters.date.start),is(3),Ta("",gc(23,27,"lang.until"),": "),is(2),zo("doneText",gc(25,29,"lang.validate"))("cancelText",gc(26,31,"lang.cancel"))("ngModel",e.filters.date.end)("min",null!==e.filters.date.start?e.filters.date.start:void 0),is(3),zo("ngIf",null!==e.filters.date.end),is(3),Ta("",gc(31,33,"lang.actions"),": "),is(2),zo("ngForOf",e.actions)}}let jZ=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u){this.http=e,this.translate=t,this.menu=n,this.latinisePipe=i,this.viewContainerRef=r,this.dialog=s,this.signaturesService=o,this.notificationService=a,this.authService=l,this.alertController=c,this.sortPipe=u,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}applyFilter(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}openFilters(){this.menu.open("right-menu")}ionViewWillEnter(){return e=this,void 0,n=function*(){this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas()},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}getActions(){this.http.get("../rest/history/messageTypes",this.filters).pipe(Ib(e=>{this.actions=e.messageTypes.map(e=>({id:e,label:this.translate.instant("lang."+e)})),this.actions=this.sortPipe.transform(this.actions,"label")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}getDatas(){return this.resources=[],this.offset=0,new Promise(e=>{this.http.post("../rest/history?limit=10&offset=0",this.filters).pipe(Ib(t=>{this.resources=t.history,this.count=t.total,e(!0)}),mb(t=>(this.notificationService.handleErrors(t),e(!1),cv(!1)))).subscribe()})}sortData(e){console.log(e)}loadData(e){this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(Ib(t=>{this.resources=this.resources.concat(t.history),e.target.complete(),this.count===this.resources.length&&(e.target.disabled=!0)})).subscribe())}getNbFilters(){let e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}toggleAction(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(t=>t!==e.value),this.getDatas()}clearFilters(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}removeFilter(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(e=>{e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(eC),Vo(hE),Vo(Gl),Vo(LI),Vo(oS),Vo(QC),Vo(lS),Vo(XA),Vo(PZ))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){if(1&e&&Mc(DZ,3),2&e){let e;Tc(e=Rc())&&(t.rightContent=e.first)}},features:[el([PZ])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Ho(8,"ion-title",4),Oa(9),pc(10,"translate"),Uo(),Ho(11,"ion-buttons",5),Ho(12,"ion-menu-button",6),Wo(13,"ion-icon",7),Uo(),Uo(),Uo(),Fo(14,BZ,9,7,"ion-toolbar",8),Uo(),Ho(15,"ion-content",null,9),Fo(17,LZ,6,4,"ion-list",10),Uo(),Fo(18,zZ,33,35,"ng-template",null,11,Vc)),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,6,"lang.history")),is(3),Ma("",t.count," ",gc(10,8,"lang.entries"),""),is(5),zo("ngIf",t.getNbFilters()>0),is(3),zo("ngIf",t.resources.length>0))},directives:[zx,wA,Sx,eA,xx,UA,bA,jx,$d,Mx,Cx,Ud,Ix,Kx,Qx,YA,qA,Ux,Wx,Gx,nA,cA,lx,Bx,ox,am,Rm,Ox,ex],pipes:[YC,ch,ah,uE],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),e})();const HZ=["customizationForm"];function UZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",14),Xo("click",function(){return Lt(e),ia(2).watermark.enabled=!1}),Oa(1),pc(2,"translate"),Uo()}2&e&&(is(1),Ta(" ",gc(2,1,"lang.disableWatermark"),""))}function WZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-button",15),Xo("click",function(){return Lt(e),ia(2).watermark.enabled=!0}),Oa(2),pc(3,"translate"),Uo(),Uo()}2&e&&(is(2),Ta("",gc(3,1,"lang.enableWatermark")," "))}function $Z(e,t){if(1&e){const e=Yo();$o(0),Ho(1,"ion-card"),Ho(2,"ion-item",1),Wo(3,"ion-icon",16),Wo(4,"ion-label",17),pc(5,"translate"),Uo(),Uo(),Ho(6,"ion-item"),Ho(7,"ion-label",18),Oa(8),pc(9,"translate"),Uo(),Ho(10,"ion-input",19),Xo("ngModelChange",function(t){return Lt(e),ia(2).watermark.text=t}),Uo(),Wo(11,"ion-note",20),pc(12,"translate"),Uo(),Ho(13,"ion-radio-group",21),Xo("ionChange",function(t){return Lt(e),ia(2).watermark.align=t.detail.value}),Ho(14,"ion-list-header"),Ho(15,"ion-label",7),Oa(16),pc(17,"translate"),Uo(),Uo(),Ho(18,"ion-item"),Ho(19,"ion-label"),Oa(20),pc(21,"translate"),Uo(),Wo(22,"ion-radio",22),Uo(),Ho(23,"ion-item"),Ho(24,"ion-label"),Oa(25),pc(26,"translate"),Uo(),Wo(27,"ion-radio",23),Uo(),Ho(28,"ion-item"),Ho(29,"ion-label"),Oa(30),pc(31,"translate"),Uo(),Wo(32,"ion-radio",24),Uo(),Uo(),Ho(33,"ion-item"),Ho(34,"ion-label",18),Oa(35),pc(36,"translate"),Uo(),Ho(37,"ion-input",25),Xo("ngModelChange",function(t){return Lt(e),ia(2).watermark.posY=t})("keypress",function(t){return Lt(e),ia(2).isNumber(t)}),Uo(),Ho(38,"ion-note",26),Oa(39,"px"),Uo(),Uo(),Go()}if(2&e){const e=ia(2);is(4),zo("innerHTML",gc(5,12,"lang.watermarkDesc"),sr),is(4),Ia(gc(9,14,"lang.content")),is(2),zo("ngModel",e.watermark.text),is(1),zo("innerHTML",gc(12,16,"lang.watermarkContentDesc"),sr),is(2),zo("value",e.watermark.align),is(3),Ia(gc(17,18,"lang.alignment")),is(4),Ia(gc(21,20,"lang.left")),is(5),Ia(gc(26,22,"lang.center")),is(5),Ia(gc(31,24,"lang.right")),is(5),Ta("",gc(36,26,"lang.positionY")," "),is(2),zo("ngModel",e.watermark.posY)("min",0)}}function GZ(e,t){if(1&e){const e=Yo();Ho(0,"form",5,6),Xo("ngSubmit",function(){return Lt(e),ia().onSubmit()}),Ho(2,"ion-content"),Ho(3,"ion-list"),Ho(4,"ion-list-header"),Ho(5,"ion-label",7),Oa(6),pc(7,"translate"),Uo(),Fo(8,UZ,3,3,"ion-button",8),Uo(),Fo(9,WZ,4,3,"ion-item",9),Fo(10,$Z,40,28,"ng-container",9),Uo(),Ho(11,"ion-item",10),Ho(12,"div",11),Ho(13,"ion-button",12),Ho(14,"ion-label",13),Oa(15),pc(16,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(6),Ta(" ",gc(7,5,"lang.watermark")," "),is(2),zo("ngIf",e.watermark.enabled),is(1),zo("ngIf",!e.watermark.enabled),is(1),zo("ngIf",e.watermark.enabled),is(5),Ia(gc(16,7,"lang.validate"))}}let qZ=(()=>{class e{constructor(e,t,n,i,r){this.http=e,this.translate=t,this.notificationService=n,this.authService=i,this.functions=r,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}ngOnInit(){return e=this,void 0,n=function*(){yield this.getWatermark(),this.loading=!1},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}getWatermark(){return new Promise(e=>{this.http.get("../rest/customization/watermark").pipe(Ib(t=>{this.functions.empty(t.configuration)||(this.watermark=t.configuration),e(!0)}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}onSubmit(){this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(Ib(()=>{this.notificationService.success(this.translate.instant("lang.modificationSaved"))}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}isNumber(e){const t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(QC),Vo(lS),Vo(qL))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&Mc(HZ,1),2&e){let e;Tc(e=Rc())&&(t.customizationForm=e.first)}},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),pc(7,"translate"),Uo(),Uo(),Uo(),Fo(8,GZ,17,9,"form",4)),2&e&&(zo("translucent",!0),is(6),Ia(gc(7,3,"lang.customization")),is(2),zo("ngIf",!t.loading))},directives:[zx,wA,Sx,eA,xx,UA,bA,$d,Lm,lm,Tm,Mx,Qx,Xx,Kx,Gx,Cx,kx,jx,$x,lx,am,Rm,nA,rA,ox,iA,rx,nx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})();const YZ=function(){return{standalone:!0}};let ZZ=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c){this.http=e,this.translate=t,this.route=n,this.router=i,this.signaturesService=r,this.notificationService=s,this.dialog=o,this.authService=a,this.modalController=l,this.functions=c,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.casTest={login:"",password:"",result:""},this.cas={id:null,label:"",identifier:"casServer",value:{version:"CAS_VERSION_2_0",url:"",port:null,context:"",separator:null,certificate:""}},this.title=""}ngOnInit(){this.casTest.login=this.authService.user.login,this.route.params.subscribe(e=>{this.creationMode=!1,this.http.get("../rest/configurations?identifier=casServer").pipe(E(e=>e.configurations[0]),Ib(e=>{var t,n,i,r,s,o;this.functions.empty(e)||(this.cas={id:e.id,label:e.label,identifier:e.identifier,value:{version:null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.version,url:null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.url,port:null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.port,context:null===(r=null==e?void 0:e.value)||void 0===r?void 0:r.context,separator:null===(s=null==e?void 0:e.value)||void 0===s?void 0:s.separator,certificate:null===(o=null==e?void 0:e.value)||void 0===o?void 0:o.certificate}},this.casClone=JSON.parse(JSON.stringify(this.cas)),this.title=this.cas.label)}),Bb(()=>this.loading=!1),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()})}canValidate(){return JSON.stringify(this.cas)!==JSON.stringify(this.casClone)}onSubmit(){this.modifyCas()}modifyCas(){null!==this.cas.id?this.http.patch("../rest/configurations/"+this.cas.id,this.cas).pipe(Bb(()=>{this.loading=!1,this.router.navigate(["/administration/connections"]),this.notificationService.success("lang.casUpdated")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe():this.createCas()}createCas(){this.loading=!0,this.http.post("../rest/configurations",this.cas).pipe(Bb(()=>{this.loading=!1,this.router.navigate(["/administration/connections"]),this.notificationService.success("lang.casAdded")}),mb(e=>(this.notificationService.handleErrors(e),cv(!1)))).subscribe()}cancel(){this.router.navigate(["/administration/connections"])}isNumber(e){const t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(qC),Vo(jy),Vo(a_),Vo(oS),Vo(QC),Vo(LI),Vo(lS),Vo(tC),Vo(qL))},e.\u0275cmp=qe({type:e,selectors:[["app-administration-cas"]],decls:66,vars:52,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["interface","popover",3,"ngModelOptions","value","ngModel","placeholder","ngModelChange"],["value","CAS_VERSION_2_0"],["value","CAS_VERSION_3_0"],["name","url","required","",3,"ngModel","ngModelChange"],["name","port","type","number","required","",3,"ngModel","keypress","ngModelChange"],["name","context","required","",3,"ngModel","ngModelChange"],["name","separator",3,"ngModel","ngModelChange"],["name","certificate",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-buttons",2),Wo(3,"ion-menu-button",3),Wo(4,"ion-back-button"),Uo(),Ho(5,"ion-title"),Oa(6),Uo(),Uo(),Uo(),Ho(7,"form",4,5),Xo("ngSubmit",function(){return t.onSubmit()}),Ho(9,"ion-content"),Ho(10,"ion-item"),Ho(11,"ion-label",6),Oa(12),pc(13,"translate"),Uo(),Ho(14,"ion-input",7),Xo("ngModelChange",function(e){return t.cas.label=e}),Uo(),Uo(),Ho(15,"ion-item"),Ho(16,"ion-label",6),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-select",8),Xo("ngModelChange",function(e){return t.cas.value.version=e}),pc(20,"translate"),Ho(21,"ion-select-option",9),Oa(22),pc(23,"translate"),Uo(),Ho(24,"ion-select-option",10),Oa(25),pc(26,"translate"),Uo(),Uo(),Uo(),Ho(27,"ion-item"),Ho(28,"ion-label",6),Oa(29),pc(30,"translate"),Uo(),Ho(31,"ion-input",11),Xo("ngModelChange",function(e){return t.cas.value.url=e}),Uo(),Uo(),Ho(32,"ion-item"),Ho(33,"ion-label",6),Oa(34),pc(35,"translate"),Uo(),Ho(36,"ion-input",12),Xo("keypress",function(e){return t.isNumber(e)})("ngModelChange",function(e){return t.cas.value.port=e}),Uo(),Wo(37,"ion-note"),Uo(),Ho(38,"ion-item"),Ho(39,"ion-label",6),Oa(40),pc(41,"translate"),Uo(),Ho(42,"ion-input",13),Xo("ngModelChange",function(e){return t.cas.value.context=e}),Uo(),Wo(43,"ion-note"),Uo(),Ho(44,"ion-item"),Ho(45,"ion-label",6),Oa(46),pc(47,"translate"),Uo(),Ho(48,"ion-input",14),Xo("ngModelChange",function(e){return t.cas.value.separator=e}),Uo(),Ho(49,"ion-note"),Oa(50),pc(51,"translate"),Uo(),Uo(),Ho(52,"ion-item"),Ho(53,"ion-label",6),Oa(54),pc(55,"translate"),Uo(),Ho(56,"ion-input",15),Xo("ngModelChange",function(e){return t.cas.value.certificate=e}),Uo(),Ho(57,"ion-note"),Oa(58),pc(59,"translate"),Uo(),Uo(),Ho(60,"ion-item",16),Ho(61,"div",17),Ho(62,"ion-button",18),Ho(63,"ion-label",19),Oa(64),pc(65,"translate"),Uo(),Uo(),Uo(),Uo(),Uo(),Uo()),2&e){const e=No(8);zo("translucent",!0),is(6),Ia(t.title),is(6),Ta("",gc(13,25,"lang.label")," *"),is(2),zo("ngModel",t.cas.label),is(3),Ta("",gc(18,27,"lang.versionCas")," *"),is(2),aa("placeholder",gc(20,29,"lang.casVersion")),zo("ngModelOptions",ac(51,YZ))("value",t.cas.value.version)("ngModel",t.cas.value.version),is(3),Ta("",gc(23,31,"lang.casV2")," "),is(3),Ta("",gc(26,33,"lang.casV3")," "),is(4),Ta("",gc(30,35,"lang.urlCas")," *"),is(2),zo("ngModel",t.cas.value.url),is(3),Ta("",gc(35,37,"lang.port")," *"),is(2),zo("ngModel",t.cas.value.port),is(4),Ta("",gc(41,39,"lang.contextCas")," *"),is(2),zo("ngModel",t.cas.value.context),is(4),Ia(gc(47,41,"lang.separatorCas")),is(2),zo("ngModel",t.cas.value.separator),is(2),Ia(gc(51,43,"lang.casIdReturn")),is(4),Ia(gc(55,45,"lang.certificateCas")),is(2),zo("ngModel",t.cas.value.certificate),is(2),Ia(gc(59,47,"lang.casCertificatPath")),is(4),zo("disabled",!e.form.valid||!t.canValidate()),is(2),Ia(gc(65,49,"lang.validate"))}},directives:[zx,wA,Sx,eA,xx,UA,bA,Lm,lm,Tm,Mx,Gx,Kx,$x,lx,ev,am,Rm,hA,ox,pA,nx,nA,Cx],pipes:[YC],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),e})(),KZ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e}),e.\u0275inj=me({imports:[[__.forRoot([{path:"home",canActivate:[NB],component:uY},{path:"indexation",canActivate:[NB],component:RY},{path:"profile",canActivate:[NB],component:lY},{path:"search",canActivate:[NB],component:EZ},{path:"administration",canActivate:[NB],component:jB},{path:"administration/users",canActivate:[NB],component:qB},{path:"administration/users/new",canActivate:[NB],component:lR},{path:"administration/users/:id",canActivate:[NB],component:lR},{path:"administration/groups",canActivate:[NB],component:gR},{path:"administration/groups/new",canActivate:[NB],component:TR},{path:"administration/groups/:id",canActivate:[NB],component:TR},{path:"administration/connections",canActivate:[NB],component:LR},{path:"administration/connections/ldaps",canActivate:[NB],component:HR},{path:"administration/connections/cas",canActivate:[NB],component:ZZ},{path:"administration/connections/ldaps/new",canActivate:[NB],component:XR},{path:"administration/connections/ldaps/:id",canActivate:[NB],component:XR},{path:"administration/emailConfiguration",canActivate:[NB],component:sL},{path:"administration/passwordRules",canActivate:[NB],component:Dq},{path:"administration/history",canActivate:[NB],component:jZ},{path:"administration/customization",canActivate:[NB],component:qZ},{path:"documents/:id",canActivate:[NB],component:fq},{path:"login",canActivate:[NB],component:Aq},{path:"forgot-password",component:Cq},{path:"update-password",component:Pq},{path:"password-modification",component:Bq},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy",useHash:!0})],__]}),e})();function QZ(e,t){if(1&e){const e=Yo();Ho(0,"ion-item",3),Xo("click",function(){return Lt(e),ia().menu.close("left-menu")}),Wo(1,"ion-icon",4),Ho(2,"ion-label"),Oa(3),pc(4,"translate"),Uo(),Uo()}if(2&e){const e=t.$implicit;va("item-active",ia().isActiveRoute(e.route)),zo("routerLink",e.route),is(1),zo("name",e.icon),is(2),Ia(gc(4,5,"lang."+e.id))}}let XZ=(()=>{class e{constructor(e,t,n,i){this.route=e,this.router=t,this.authService=n,this.menu=i,this.loading=!0,this.privileges=[]}ngOnInit(){}openHome(){this.router.navigate(["/documents/"])}isActiveRoute(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}return e.\u0275fac=function(t){return new(t||e)(Vo(jy),Vo(a_),Vo(lS),Vo(eC))},e.\u0275cmp=qe({type:e,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(Ho(0,"ion-header"),Ho(1,"ion-toolbar",0),Ho(2,"ion-title",1),Oa(3),pc(4,"translate"),Uo(),Uo(),Uo(),Ho(5,"ion-content"),Ho(6,"ion-list"),Fo(7,QZ,5,7,"ion-item",2),Uo(),Uo()),2&e&&(is(3),Ta(" ",gc(4,2,"lang.administration")," "),is(4),zo("ngForOf",t.authService.user.administrativePrivileges))},directives:[zx,wA,bA,Mx,Qx,Ud,Gx,WA,l_,jx,Kx],pipes:[YC],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),e})();const JZ=["listContent"],eK=["searchInput"];function tK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().authService.logout()}),pc(1,"translate"),Wo(2,"ion-icon",15),Uo()}2&e&&zo("title",gc(1,1,"lang.logout"))}function nK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().openAdmin()}),pc(1,"translate"),Wo(2,"ion-icon",16),Uo()}2&e&&zo("title",gc(1,1,"lang.administration"))}function iK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().openHome()}),pc(1,"translate"),Wo(2,"ion-icon",17),Uo()}2&e&&zo("title",gc(1,1,"lang.homePage"))}function rK(e,t){if(1&e){const e=Yo();Ho(0,"ion-button",8),Xo("click",function(){return Lt(e),ia().openIndexation()}),pc(1,"translate"),Wo(2,"ion-icon",18),Wo(3,"ion-icon",19),Uo()}2&e&&zo("title",gc(1,1,"lang.indexationAdmin"))}function sK(e,t){if(1&e&&(Ho(0,"span",26),Oa(1),pc(2,"translate"),Uo()),2&e){const e=ia(3);is(1),Ia(gc(2,1,"lang."+e.signaturesService.mode+"Label"))}}function oK(e,t){if(1&e){const e=Yo();Ho(0,"ion-title",23),Xo("click",function(t){return Lt(e),ia(2).search(t)}),pc(1,"translate"),Ho(2,"span"),Oa(3),Uo(),Oa(4),pc(5,"translate"),Fo(6,sK,3,3,"span",24),Oa(7," \xa0 "),Wo(8,"ion-icon",25),Uo()}if(2&e){const e=ia(2);zo("title",gc(1,6,"lang.filterInfo")),is(2),va("primary",""!=e.signaturesService.mode),is(1),Ia(e.signaturesService.documentsListCount.current),is(1),Ta(" ",gc(5,8,"lang.documents")," "),is(2),zo("ngIf",""!=e.signaturesService.mode)}}function aK(e,t){if(1&e){const e=Yo();Ho(0,"ion-searchbar",27,28),Xo("ionCancel",function(t){Lt(e);const n=ia(2);return n.search(t),n.searchMode=!n.searchMode}),pc(2,"translate"),Uo()}if(2&e){const e=ia(2);zo("placeholder",gc(2,2,"lang.filterInfo"))("formControl",e.searchTerm)}}function lK(e,t){if(1&e&&(Ho(0,"ion-header"),Ho(1,"ion-toolbar",20),Fo(2,oK,9,10,"ion-title",21),Fo(3,aK,3,4,"ion-searchbar",22),Uo(),Uo()),2&e){const e=ia();is(2),zo("ngIf",!e.searchMode),is(1),zo("ngIf",e.searchMode)}}function cK(e,t){if(1&e){const e=Yo();Ho(0,"ion-header",29),Ho(1,"ion-toolbar",30),Ho(2,"ion-segment",31),Ho(3,"ion-segment-button",32),Xo("click",function(){return Lt(e),ia().filter("sign")}),Ho(4,"ion-label"),Oa(5),pc(6,"titlecase"),pc(7,"translate"),Uo(),Wo(8,"ion-icon",33),Ho(9,"ion-badge",34),Oa(10),Uo(),Uo(),Ho(11,"ion-segment-button",35),Xo("click",function(){return Lt(e),ia().filter("visa")}),Ho(12,"ion-label"),Oa(13),pc(14,"titlecase"),pc(15,"translate"),Uo(),Wo(16,"ion-icon",36),Ho(17,"ion-badge",34),Oa(18),Uo(),Uo(),Ho(19,"ion-segment-button",37),Xo("click",function(){return Lt(e),ia().filter("note")}),Ho(20,"ion-label"),Oa(21),pc(22,"titlecase"),pc(23,"translate"),Uo(),Wo(24,"ion-icon",38),Ho(25,"ion-badge",34),Oa(26),Uo(),Uo(),Uo(),Uo(),Uo()}if(2&e){const e=ia();is(2),zo("value",e.signaturesService.mode),is(1),va("segment-button-notFocused","sign"!==e.signaturesService.mode),is(2),Ia(gc(6,13,gc(7,15,"lang.signLabel"))),is(5),Ia(e.signaturesService.documentsListCount.sign),is(1),va("segment-button-notFocused","visa"!==e.signaturesService.mode),is(2),Ia(gc(14,17,gc(15,19,"lang.visaLabel"))),is(5),Ia(e.signaturesService.documentsListCount.visa),is(1),va("segment-button-notFocused","note"!==e.signaturesService.mode),is(2),Ia(gc(22,21,gc(23,23,"lang.noteLabel"))),is(5),Ia(e.signaturesService.documentsListCount.note)}}function uK(e,t){1&e&&Wo(0,"app-admin-sidebar",39)}function dK(e,t){1&e&&(Ho(0,"ion-item",44),Ho(1,"ion-label",45),Oa(2),pc(3,"titlecase"),pc(4,"translate"),Uo(),Uo()),2&e&&(is(2),Ta(" ",gc(3,1,gc(4,3,"lang.noResult"))," "))}function hK(e,t){1&e&&Wo(0,"ion-icon",56)}function pK(e,t){1&e&&Wo(0,"ion-icon",57)}function gK(e,t){1&e&&Wo(0,"ion-icon",58)}function fK(e,t){1&e&&Wo(0,"ion-icon",59)}function mK(e,t){1&e&&(Ho(0,"ion-label",60),Oa(1),pc(2,"translate"),Uo()),2&e&&(is(1),Ta(" ",gc(2,1,"lang.substitutedDoc"),""))}const vK=function(e){return[e]};function bK(e,t){if(1&e){const e=Yo();Ho(0,"ion-menu-toggle",46),Ho(1,"ion-item",47),Xo("click",function(){Lt(e);const n=t.index;return ia(2).filterService.currentIndex=n}),Fo(2,hK,1,0,"ion-icon",48),Fo(3,pK,1,0,"ion-icon",49),Fo(4,gK,1,0,"ion-icon",50),Fo(5,fK,1,0,"ion-icon",51),Ho(6,"div"),Ho(7,"ion-label",52),Oa(8),Uo(),Ho(9,"ion-label",53),Oa(10),pc(11,"shorten"),Uo(),Fo(12,mK,3,3,"ion-label",54),Uo(),Wo(13,"ion-icon",55),Uo(),Uo()}if(2&e){const e=t.$implicit,n=ia(2);is(1),va("selected",n.router.url==="/documents/"+e.id),zo("routerLink",lc(14,vK,"/documents/"+e.id)),is(1),zo("ngIf","sign"==e.mode),is(1),zo("ngIf","visa"==e.mode),is(1),zo("ngIf","note"==e.mode),is(1),zo("ngIf",!n.functionsService.empty(e.mailingId)),is(3),Ia(e.reference),is(2),Ia(mc(11,10,e.title,50,"...")),is(2),zo("ngIf",!e.owner)}}function yK(e,t){if(1&e){const e=Yo();Ho(0,"ion-infinite-scroll",61),Xo("ionInfinite",function(t){return Lt(e),ia(2).loadData(t)}),Wo(1,"ion-infinite-scroll-content",62),pc(2,"translate"),Uo()}2&e&&(is(1),zo("loadingText",gc(2,1,"lang.loadingMoreData")))}function wK(e,t){if(1&e&&(Ho(0,"ion-content"),Ho(1,"ion-list",40),Fo(2,dK,5,5,"ion-item",41),Fo(3,bK,14,16,"ion-menu-toggle",42),Uo(),Fo(4,yK,3,3,"ion-infinite-scroll",43),Uo()),2&e){const e=ia();is(2),zo("ngIf",0==e.signaturesService.documentsList.length),is(1),zo("ngForOf",e.signaturesService.documentsList),is(1),zo("ngIf",e.signaturesService.documentsList.length>0)}}let _K=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c){this.http=e,this.signaturesService=t,this.route=n,this.router=i,this.menu=r,this.notificationService=s,this.authService=o,this.modalController=a,this.functionsService=l,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new Em,this.searchTerm.valueChanges.pipe(wE(500),H_(),Ib(e=>this.loadingList=!0),sb(e=>this.http.get("../rest/documents?limit="+this.filterService.limit+"&search="+e))).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}ngOnInit(){$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count})}ngAfterViewInit(){this.filter("")}openProfile(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:lY,cssClass:"profileCss"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}openAdmin(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}openHome(){this.router.navigate(["/home"])}openIndexation(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}openSearch(){this.menu.close("left-menu"),this.router.navigate(["/search"])}search(e){this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(()=>{"ionCancel"!==e.type&&(this.searchInput.value="",this.searchInput.setFocus())},0)}filter(e){this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Bb(()=>{this.loadingList=!1})).subscribe(e=>{this.signaturesService.documentsList=e.documents,this.signaturesService.documentsListCount=e.count,this.loadingList=!1})}checkClose(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}loadData(e){this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Ib(t=>{this.signaturesService.documentsList=this.signaturesService.documentsList.concat(t.documents),e.target.complete(),this.signaturesService.documentsList.length===this.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}isAdminRoute(){return this.router.url.split("/").indexOf("administration")>-1}canIndex(){return this.authService.user.appPrivileges.map(e=>e.id).indexOf("indexation")>-1}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(oS),Vo(jy),Vo(a_),Vo(eC),Vo(QC),Vo(lS),Vo(tC),Vo(qL),Vo(NL))},e.\u0275cmp=qe({type:e,selectors:[["app-sidebar"]],viewQuery:function(e,t){if(1&e&&(Mc(JZ,1),Mc(eK,1)),2&e){let e;Tc(e=Rc())&&(t.listContent=e.first),Tc(e=Rc())&&(t.searchInput=e.first)}},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-item",2),Ho(3,"ion-label",3),Ho(4,"h2",4),Oa(5),Uo(),Uo(),Uo(),Uo(),Uo(),Ho(6,"ion-header",0),Ho(7,"ion-toolbar",1),Ho(8,"ion-buttons",5),Fo(9,tK,3,3,"ion-button",6),Fo(10,nK,3,3,"ion-button",6),Fo(11,iK,3,3,"ion-button",6),Uo(),Ho(12,"ion-buttons",7),Ho(13,"ion-button",8),Xo("click",function(){return t.openSearch()}),pc(14,"translate"),Wo(15,"ion-icon",9),Uo(),Fo(16,rK,4,3,"ion-button",6),Uo(),Uo(),Uo(),Ho(17,"ion-avatar",10),Xo("click",function(){return t.openProfile()}),Wo(18,"img",11),Uo(),Fo(19,lK,4,2,"ion-header",12),Fo(20,cK,27,25,"ion-header",13),Fo(21,uK,1,0,"app-admin-sidebar",14),Fo(22,wK,5,3,"ion-content",12)),2&e&&(zo("translucent",!0),is(5),Ma("",t.authService.user.firstname," ",t.authService.user.lastname,""),is(1),zo("translucent",!0),is(3),zo("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),is(1),zo("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),is(1),zo("ngIf",t.isAdminRoute()),is(2),zo("title",gc(14,14,"lang.search")),is(3),zo("ngIf",t.canIndex()),is(2),zo("src",t.authService.user.picture,or),is(1),zo("ngIf",!t.isAdminRoute()),is(1),zo("ngIf",!t.isAdminRoute()),is(1),zo("ngIf",t.isAdminRoute()),is(1),zo("ngIf",!t.isAdminRoute()))},directives:[zx,wA,Gx,Kx,Sx,$d,Cx,jx,_x,bA,cA,lx,am,zm,uA,ox,dA,Ax,XZ,Mx,Qx,Ud,tA,WA,l_,Ux,Wx],pipes:[YC,ah,uE],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),e})();function xK(e,t){if(1&e){const e=Yo();Ho(0,"ion-segment-button",10),Xo("ionChange",function(t){return Lt(e),ia(2).setActiveLang(t)}),Ho(1,"ion-label"),Oa(2),Ho(3,"ion-badge",11),Oa(4),Uo(),Uo(),Uo()}if(2&e){const e=ia().$implicit,t=ia();zo("value",t.currentLang),is(2),Ta("",e.key," "),is(2),Ia(t.missingLang[e.key].length)}}function AK(e,t){if(1&e&&(Ho(0,"span"),Fo(1,xK,5,3,"ion-segment-button",9),Uo()),2&e){const e=t.$implicit;is(1),zo("ngIf","fr"!==e.key)}}function CK(e,t){if(1&e){const e=Yo();Ho(0,"ion-item"),Ho(1,"ion-label",13),Oa(2),Uo(),Ho(3,"ion-input",14),Xo("ngModelChange",function(e){return t.$implicit.value=e}),Uo(),Ho(4,"ion-button",15),Xo("click",function(){Lt(e);const n=t.$implicit;return ia(2).openTranslation(n.value)}),Wo(5,"ion-icon",16),Uo(),Uo()}if(2&e){const e=t.$implicit;is(2),Ia(e.id),is(1),zo("ngModel",e.value)}}function SK(e,t){if(1&e&&(Ho(0,"ion-list",12),Fo(1,CK,6,2,"ion-item",5),Uo()),2&e){const e=ia();is(1),zo("ngForOf",e.missingLang[e.currentLang])}}let kK=(()=>{class e{constructor(e,t,n,i){this.http=e,this.notify=t,this.translate=n,this.modalController=i,this.missingLang={},this.currentLang="en",this.data={}}ngOnInit(){this.getLangs()}dismissModal(){this.modalController.dismiss("cancel")}getLangs(){this.http.get("../rest/languages").pipe(Ib(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.missingLang[e]=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).map(e=>({id:e,value:this.allLang.fr.lang[e]+"__TO_TRANSLATE"}))})}),mb(e=>(this.notify.handleErrors(e),cv(!1)))).subscribe()}openTranslation(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}setActiveLang(e){this.currentLang=e.detail.value}generateMissingLang(e){const t={},n=this.allLang[this.currentLang],i=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(n=>{null===n.value.match(i)&&e?t[n.id]=n.value:e||(t[n.id]=n.value)}),n.lang=Object.assign(Object.assign({},n.lang),t),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:n}).pipe(Ib(e=>{Object.keys(t).forEach(e=>{delete this.allLang[this.currentLang][e],this.missingLang[this.currentLang]=this.missingLang[this.currentLang].filter(t=>t.id!==e),this.data.countMissingLang--}),this.modalController.dismiss("cancel")}),mb(e=>(this.notify.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(Ov),Vo(QC),Vo(qC),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(Ho(0,"ion-header",0),Ho(1,"ion-toolbar",1),Ho(2,"ion-title"),Oa(3),pc(4,"translate"),Uo(),Ho(5,"ion-buttons",2),Ho(6,"ion-button",3),Xo("click",function(){return t.dismissModal()}),Wo(7,"ion-icon",4),Uo(),Uo(),Uo(),Uo(),Ho(8,"ion-header"),Ho(9,"ion-segment"),Fo(10,AK,2,1,"span",5),pc(11,"keyvalue"),Uo(),Uo(),Ho(12,"ion-content"),$o(13),Fo(14,SK,2,1,"ion-list",6),Go(),Uo(),Ho(15,"ion-footer",7),Ho(16,"ion-button",8),Xo("click",function(){return t.generateMissingLang(!1)}),Oa(17),pc(18,"translate"),Uo(),Ho(19,"ion-button",8),Xo("click",function(){return t.generateMissingLang(!0)}),Oa(20),pc(21,"translate"),Uo(),Uo()),2&e&&(is(3),Ia(gc(4,6,"lang.langChecking")),is(7),zo("ngForOf",gc(11,8,t.allLang)),is(4),zo("ngIf","en"===t.currentLang),is(1),zo("translucent",!0),is(2),Ia(gc(18,10,"lang.generateLangVar")),is(3),Ia(gc(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[zx,wA,bA,Sx,Cx,jx,uA,ox,Ud,Mx,$d,Nx,dA,Kx,Ax,Qx,Gx,$x,lx,am,Rm],pipes:[YC,uh],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),e})(),EK=(()=>{class e{constructor(e,t,n,i){this.notify=e,this.http=t,this.functionsService=n,this.modalController=i,this.countMissingLang=0}ngOnInit(){this.getLangs()}openLangTool(){return e=this,void 0,n=function*(){const e=yield this.modalController.create({component:kK,cssClass:"my-custom-class"});yield e.present()},new((t=void 0)||(t=Promise))(function(i,r){function s(e){try{a(n.next(e))}catch(t){r(t)}}function o(e){try{a(n.throw(e))}catch(t){r(t)}}function a(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(s,o)}a((n=n.apply(e,[])).next())});var e,t,n}getLangs(){this.http.get("../rest/languages").pipe(Ib(e=>{this.allLang=e.languages,Object.keys(this.allLang).forEach(e=>{this.countMissingLang+=Object.keys(this.allLang.fr.lang).filter(t=>-1===Object.keys(this.allLang[e].lang).indexOf(t)).length})}),mb(e=>(this.notify.handleErrors(e),cv(!1)))).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Vo(QC),Vo(Ov),Vo(qL),Vo(tC))},e.\u0275cmp=qe({type:e,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(Ho(0,"ion-fab",0),pc(1,"translate"),Ho(2,"ion-fab-button",1),Wo(3,"ion-icon",2),Uo(),Ho(4,"ion-fab-list",3),Ho(5,"ion-button",4),Xo("click",function(){return t.openLangTool()}),Ho(6,"ion-label"),Oa(7),pc(8,"translate"),Ho(9,"ion-badge",5),Oa(10),Uo(),Uo(),Uo(),Uo(),Uo()),2&e&&(zo("title",gc(1,3,"lang.missingLang")),is(7),Ta("",gc(8,5,"lang.missingLang")," "),is(3),Ta(" ",t.countMissingLang,""))},directives:[Rx,IB,Lx,jx,Fx,Cx,Kx,Ax],pipes:[YC],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),e})();function PK(e,t){1&e&&Wo(0,"app-sidebar",10)}function DK(e,t){1&e&&Wo(0,"app-dev-tool")}const OK=function(e){return[e]};let IK=(()=>{class e{constructor(e,t,n,i,r,s,o,a,l,c,u,d,h){if(this.translate=e,this.http=t,this.signaturesService=n,this.sanitizer=i,this.cookieService=r,this.notificationService=s,this.dialog=o,this.authService=l,this.menu=c,this.router=u,this.route=d,this.platform=h,this.showLeftContent=!1,this.showRightContent=!1,this.authService.getCasToken(),a.addSvgIcon("maarchLogo",i.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){const t=this.cookieService.get("maarchParapheurLang");e.setDefaultLang(t)}else this.cookieService.set("maarchParapheurLang","fr"),e.setDefaultLang("fr");Vu.production||(this.debugMode=!0)}test(){return!0}allowedRoute(){const e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}return e.\u0275fac=function(t){return new(t||e)(Vo(qC),Vo(Ov),Vo(oS),Vo(Yh),Vo(oE),Vo(QC),Vo(LI),Vo(ZI),Vo(lS),Vo(eC),Vo(a_),Vo(jy),Vo(cx))},e.\u0275cmp=qe({type:e,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(Ho(0,"ion-app"),Ho(1,"ion-split-pane",0),Ho(2,"ion-menu",1,2),Xo("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),Fo(4,PK,1,0,"app-sidebar",3),Wo(5,"div",4),Uo(),Wo(6,"ion-router-outlet",5),Ho(7,"ion-menu",6,7),Xo("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),Wo(9,"div",8),Uo(),Uo(),Uo(),Fo(10,DK,1,0,"app-dev-tool",9)),2&e&&(is(4),zo("ngIf",t.allowedRoute()),is(3),zo("ngClass",lc(3,OK,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),is(3),zo("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[wx,vA,Jx,$d,jA,jd,_K,EK],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),e})();var TK,MK,BK;TK=uC.a,BK=void 0,"string"!=typeof(MK="fr-FR")&&(BK=MK,MK=TK[Wa.LocaleId]),MK=MK.toLowerCase().replace(/_/g,"-"),ja[MK]=TK,BK&&(ja[MK][Wa.ExtraData]=BK);let RK=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Qe({type:e,bootstrap:[IK]}),e.\u0275inj=me({providers:[{provide:Tv,useClass:cS,multi:!0},oS,NL,QC,{provide:Qw,useClass:rC},oE,hE],imports:[[ov,av,Xh,Cf,$v,lC.forRoot({mode:"md"}),ZC.forRoot({loader:{provide:EC,useFactory:FK,deps:[Ov]}}),dL,Gk,Qk,vE,rE,LB,KZ,Hh]]}),e})();class LK{constructor(e){this.http=e}getTranslation(e){return this.http.get("../rest/languages/"+e)}}function FK(e){return new LK(e)}Vu.production&&function(){if(_u)throw new Error("Cannot enable prod mode after platform setup.");wu=!1}(),Kh().bootstrapModule(RK).catch(e=>console.log(e))},mNvP:function(e,t){var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=r(e);function r(e,t){return function(n,i){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}void 0===n.Reflect?n.Reflect=e:i=r(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,o={__proto__:[]}instanceof Array,a=!s&&!o,l={create:s?function(){return B(Object.create(null))}:o?function(){return B({__proto__:null})}:function(){return B({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),u="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=u||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[r]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r<i;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,i)},t.prototype.values=function(){return new n(this._keys,this._values,s)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[r]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function i(e,t){return e}function s(e,t){return t}function o(e,t){return[e,t]}}():Map,h=u||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[r]=function(){return this.keys()},e}():Set,p=new(u||"function"!=typeof WeakMap?function(){var e=l.create(),n=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=r(e,!1);return void 0!==t&&l.has(t,this._key)},e.prototype.get=function(e){var t=r(e,!1);return void 0!==t?l.get(t,this._key):void 0},e.prototype.set=function(e,t){return r(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=r(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var t;do{t="@@WeakMap@@"+o()}while(l.has(e,t));return e[t]=!0,t}function r(e,i){if(!t.call(e,n)){if(!i)return;Object.defineProperty(e,n,{value:l.create()})}return e[n]}function s(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=(16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(16)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(16)):s(new Uint8Array(16),16):s(new Array(16),16));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var i=e[n];4!==n&&6!==n&&8!==n||(t+="-"),i<16&&(t+="0"),t+=i.toString(16).toLowerCase()}return t}}():WeakMap);function g(e,t,n){var i=p.get(e);if(A(i)){if(!n)return;i=new d,p.set(e,i)}var r=i.get(t);if(A(r)){if(!n)return;r=new d,i.set(t,r)}return r}function f(e,t,n){if(m(e,t,n))return!0;var i=M(t);return!C(i)&&f(e,i,n)}function m(e,t,n){var i=g(t,n,!1);return!A(i)&&!!i.has(e)}function v(e,t,n){if(m(e,t,n))return b(e,t,n);var i=M(t);return C(i)?void 0:v(e,i,n)}function b(e,t,n){var i=g(t,n,!1);if(!A(i))return i.get(e)}function y(e,t,n,i){g(n,i,!0).set(e,t)}function w(e,t){var n=_(e,t),i=M(e);if(null===i)return n;var r=w(i,t);if(r.length<=0)return n;if(n.length<=0)return r;for(var s=new h,o=[],a=0,l=n;a<l.length;a++)s.has(d=l[a])||(s.add(d),o.push(d));for(var c=0,u=r;c<u.length;c++){var d;s.has(d=u[c])||(s.add(d),o.push(d))}return o}function _(e,t){var n=[],i=g(e,t,!1);if(A(i))return n;for(var s=function(e){var t=O(e,r);if(!P(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}(i.keys()),o=0;;){var a=I(s);if(!a)return n.length=o,n;var l=a.value;try{n[o]=l}catch(c){try{T(s)}finally{throw c}}o++}}function x(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function A(e){return void 0===e}function C(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function k(e){var t=function(e,t){switch(x(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=O(e,i);if(void 0!==r){var s=r.call(e,n);if(S(s))throw new TypeError;return s}return function(e,t){if("string"===t){var n=e.toString;if(P(n)&&!S(r=n.call(e)))return r;if(P(i=e.valueOf)&&!S(r=i.call(e)))return r}else{var i;if(P(i=e.valueOf)&&!S(r=i.call(e)))return r;var r,s=e.toString;if(P(s)&&!S(r=s.call(e)))return r}throw new TypeError}(e,"default"===n?"number":n)}(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function E(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"function"==typeof e}function D(e){return"function"==typeof e}function O(e,t){var n=e[t];if(null!=n){if(!P(n))throw new TypeError;return n}}function I(e){var t=e.next();return!t.done&&t}function T(e){var t=e.return;t&&t.call(e)}function M(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===c)return t;if(t!==c)return t;var n=e.prototype,i=n&&Object.getPrototypeOf(n);if(null==i||i===Object.prototype)return t;var r=i.constructor;return"function"!=typeof r||r===e?t:r}function B(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,i){if(A(n)){if(!E(e))throw new TypeError;if(!D(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t);if(!A(i)&&!C(i)){if(!D(i))throw new TypeError;t=i}}return t}(e,t)}if(!E(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(i)&&!A(i)&&!C(i))throw new TypeError;return C(i)&&(i=void 0),function(e,t,n,i){for(var r=e.length-1;r>=0;--r){var s=(0,e[r])(t,n,i);if(!A(s)&&!C(s)){if(!S(s))throw new TypeError;i=s}}return i}(e,t,n=k(n),i)}),e("metadata",function(e,t){return function(n,i){if(!S(n))throw new TypeError;if(!A(i)&&!function(e){switch(x(e)){case 3:case 4:return!0;default:return!1}}(i))throw new TypeError;y(e,t,n,i)}}),e("defineMetadata",function(e,t,n,i){if(!S(n))throw new TypeError;return A(i)||(i=k(i)),y(e,t,n,i)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),f(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),m(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),v(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return A(n)||(n=k(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return A(t)||(t=k(t)),w(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return A(t)||(t=k(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;A(n)||(n=k(n));var i=g(t,n,!1);if(A(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var r=p.get(t);return r.delete(n),r.size>0||p.delete(t),!0})}(i)}()}(n||(n={}))},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("1vRN");let r;const s=e=>{if(void 0===r){const t=void 0!==e.style.webkitAnimationName;r=void 0===e.style.animationName&&t?"-webkit-":""}return r},o=(e,t,n)=>{const i=t.startsWith("animation")?s(e):"";e.style.setProperty(i+t,n)},a=(e,t)=>{const n=t.startsWith("animation")?s(e):"";e.style.removeProperty(n+t)},l=[],c=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},u=e=>{let t,n,r,u,d,h,p,g,f,m,v,b,y,w=[],_=[],x=[],A=!1,C={},S=[],k=[],E={},P=0,D=!1,O=!1,I=!0,T=!1,M=!0;const B=e,R=[],L=[],F=[],N=[],V=[],z=[],j=[],H=[],U=[],W=[],$="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,G="function"==typeof Element&&"function"==typeof Element.prototype.animate&&$,q=(e,t)=>((t&&t.oneTimeCallback?L:R).push({c:e,o:t}),y),Y=()=>{if(G)W.forEach(e=>{e.cancel()}),W.length=0;else{const e=F.slice();Object(i.q)(()=>{e.forEach(e=>{a(e,"animation-name"),a(e,"animation-duration"),a(e,"animation-timing-function"),a(e,"animation-iteration-count"),a(e,"animation-delay"),a(e,"animation-play-state"),a(e,"animation-fill-mode"),a(e,"animation-direction")})})}},Z=()=>{V.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),V.length=0},K=()=>void 0!==d?d:p?p.getFill():"both",Q=()=>void 0!==f?f:void 0!==h?h:p?p.getDirection():"normal",X=()=>D?"linear":void 0!==r?r:p?p.getEasing():"linear",J=()=>O?0:void 0!==m?m:void 0!==n?n:p?p.getDuration():0,ee=()=>void 0!==u?u:p?p.getIterations():1,te=()=>void 0!==v?v:void 0!==t?t:p?p.getDelay():0,ne=()=>{0!==P&&(P--,0===P&&((()=>{ue(),H.forEach(e=>e()),U.forEach(e=>e());const e=I?1:0,t=S,n=k,i=E;F.forEach(e=>{const r=e.classList;t.forEach(e=>r.add(e)),n.forEach(e=>r.remove(e));for(const t in i)i.hasOwnProperty(t)&&o(e,t,i[t])}),R.forEach(t=>t.c(e,y)),L.forEach(t=>t.c(e,y)),L.length=0,M=!0,I&&(T=!0),I=!0})(),p&&p.animationFinish()))},ie=(t=!0)=>{(()=>{z.forEach(e=>e()),j.forEach(e=>e());const e=_,t=x,n=C;F.forEach(i=>{const r=i.classList;e.forEach(e=>r.add(e)),t.forEach(e=>r.remove(e));for(const e in n)n.hasOwnProperty(e)&&o(i,e,n[e])})})(),w.length>0&&(G?(F.forEach(e=>{const t=e.animate(w,{id:B,delay:te(),duration:J(),easing:X(),iterations:ee(),fill:K(),direction:Q()});t.pause(),W.push(t)}),W.length>0&&(W[0].onfinish=()=>{ne()})):((t=!0)=>{Z();const n=((r=w).forEach(e=>{for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),r);var r;F.forEach(r=>{if(n.length>0){const a=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push(`${i}: ${e[i]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(n);b=void 0!==e?e:(e=>{let t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t})(a);const c=((e,t,n)=>{const i=(e=>{const t=e.getRootNode();return t.head||t})(n),r=s(n),o=i.querySelector("#"+e);if(o)return o;const a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent=`@${r}keyframes ${e} { ${t} } @${r}keyframes ${e}-alt { ${t} }`,i.appendChild(a),a})(b,a,r);V.push(c),o(r,"animation-duration",J()+"ms"),o(r,"animation-timing-function",X()),o(r,"animation-delay",te()+"ms"),o(r,"animation-fill-mode",K()),o(r,"animation-direction",Q());const u=ee()===1/0?"infinite":ee().toString();o(r,"animation-iteration-count",u),o(r,"animation-play-state","paused"),t&&o(r,"animation-name",c.id+"-alt"),Object(i.q)(()=>{o(r,"animation-name",c.id||null)})}})})(t)),A=!0},re=e=>{if(e=Math.min(Math.max(e,0),.9999),G)W.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+J()*e,t.pause()});else{const t=`-${J()*e}ms`;F.forEach(e=>{w.length>0&&(o(e,"animation-delay",t),o(e,"animation-play-state","paused"))})}},se=e=>{W.forEach(e=>{e.effect.updateTiming({delay:te(),duration:J(),easing:X(),iterations:ee(),fill:K(),direction:Q()})}),void 0!==e&&re(e)},oe=(e=!0,t)=>{Object(i.q)(()=>{F.forEach(n=>{o(n,"animation-name",b||null),o(n,"animation-duration",J()+"ms"),o(n,"animation-timing-function",X()),o(n,"animation-delay",void 0!==t?`-${t*J()}ms`:te()+"ms"),o(n,"animation-fill-mode",K()||null),o(n,"animation-direction",Q()||null);const r=ee()===1/0?"infinite":ee().toString();o(n,"animation-iteration-count",r),e&&o(n,"animation-name",b+"-alt"),Object(i.q)(()=>{o(n,"animation-name",b||null)})})})},ae=(e=!1,t=!0,n)=>(e&&N.forEach(i=>{i.update(e,t,n)}),G?se(n):oe(t,n),y),le=()=>{A&&(G?W.forEach(e=>{e.pause()}):F.forEach(e=>{o(e,"animation-play-state","paused")}))},ce=()=>{g=void 0,ne()},ue=()=>{g&&clearTimeout(g)},de=e=>new Promise(t=>{e&&e.sync&&(O=!0,q(()=>O=!1,{oneTimeCallback:!0})),A||ie(),T&&(G?(re(0),se()):oe(),T=!1),M&&(P=N.length+1,M=!1),q(()=>t(),{oneTimeCallback:!0}),N.forEach(e=>{e.play()}),G?(W.forEach(e=>{e.play()}),0!==w.length&&0!==F.length||ne()):(()=>{if(ue(),Object(i.q)(()=>{F.forEach(e=>{w.length>0&&o(e,"animation-play-state","running")})}),0===w.length||0===F.length)ne();else{const e=te()||0,t=J()||0,n=ee()||1;isFinite(n)&&(g=setTimeout(ce,e+t*n+100)),((e,t)=>{let n;const r={passive:!0},s=t=>{e===t.target&&(n&&n(),ue(),Object(i.q)(()=>{F.forEach(e=>{a(e,"animation-duration"),a(e,"animation-delay"),a(e,"animation-play-state")}),Object(i.q)(ne)}))};e&&(e.addEventListener("webkitAnimationEnd",s,r),e.addEventListener("animationend",s,r),n=()=>{e.removeEventListener("webkitAnimationEnd",s,r),e.removeEventListener("animationend",s,r)})})(F[0])}})()}),he=(e,t)=>{const n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[{offset:0,[e]:t},...w]:n[e]=t,y};return y={parentAnimation:p,elements:F,childAnimations:N,id:B,animationFinish:ne,from:he,to:(e,t)=>{const n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[...w,{offset:1,[e]:t}]:n[e]=t,y},fromTo:(e,t,n)=>he(e,t).to(e,n),parent:e=>(p=e,y),play:de,pause:()=>(N.forEach(e=>{e.pause()}),le(),y),stop:()=>{N.forEach(e=>{e.stop()}),A&&(Y(),A=!1),D=!1,O=!1,M=!0,f=void 0,m=void 0,v=void 0,P=0,T=!1,I=!0},destroy:e=>(N.forEach(t=>{t.destroy(e)}),(e=>{Y(),e&&Z()})(e),F.length=0,N.length=0,w.length=0,R.length=0,L.length=0,A=!1,M=!0,y),keyframes:e=>(w=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),N.push(t);else e.parent(y),N.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)F.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)F.push(e[t]);else console.error("Invalid addElement value");return y},update:ae,fill:e=>(d=e,ae(!0),y),direction:e=>(h=e,ae(!0),y),iterations:e=>(u=e,ae(!0),y),duration:e=>(G||0!==e||(e=1),n=e,ae(!0),y),easing:e=>(r=e,ae(!0),y),delay:e=>(t=e,ae(!0),y),getWebAnimations:()=>W,getKeyframes:()=>w,getFill:K,getDirection:Q,getDelay:te,getIterations:ee,getEasing:X,getDuration:J,afterAddRead:e=>(H.push(e),y),afterAddWrite:e=>(U.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)E[t]="";return y},afterStyles:(e={})=>(E=e,y),afterRemoveClass:e=>(k=c(k,e),y),afterAddClass:e=>(S=c(S,e),y),beforeAddRead:e=>(z.push(e),y),beforeAddWrite:e=>(j.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)C[t]="";return y},beforeStyles:(e={})=>(C=e,y),beforeRemoveClass:e=>(x=c(x,e),y),beforeAddClass:e=>(_=c(_,e),y),onFinish:q,progressStart:(e=!1,t)=>(N.forEach(n=>{n.progressStart(e,t)}),le(),D=e,A?ae(!1,!0,t):ie(),y),progressStep:e=>(N.forEach(t=>{t.progressStep(e)}),re(e),y),progressEnd:(e,t,n)=>(D=!1,N.forEach(i=>{i.progressEnd(e,t,n)}),void 0!==n&&(m=n),T=!1,I=!0,0===e?(f="reverse"===Q()?"normal":"reverse","reverse"===f&&(I=!1),G?(ae(),re(1-t)):(v=(1-t)*J()*-1,ae(!1,!1))):1===e&&(G?(ae(),re(t)):(v=t*J()*-1,ae(!1,!1))),void 0!==e&&(q(()=>{m=void 0,f=void 0,v=void 0},{oneTimeCallback:!0}),p||de()),y)}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("B4Jq"),r=n("1vRN"),s=n("E/Mt"),o=n("meiF");const a=e=>Object(o.a)().duration(e?400:300),l=e=>{let t,n;const i=e.width+8,r=Object(o.a)(),l=Object(o.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),r.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const c="ios"===Object(s.b)(e),u=c?.2:.25;return l.addElement(e.backdropEl).fromTo("opacity",.01,u),a(c).addAnimation([r,l])},c=e=>{let t,n;const i=Object(s.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");const l=Object(o.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=Object(o.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),u=Object(o.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a("ios"===i).addAnimation([l,c,u])},u=e=>{const t=Object(s.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(o.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return a("ios"===t).addAnimation(i)},d=(()=>{const e=new Map,t=[],n=async e=>(await g(),"start"===e||"end"===e?p(t=>t.side===e&&!t.disabled)||p(t=>t.side===e):null!=e?p(t=>t.menuId===e):p(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),s=async()=>(await g(),d()),o=(t,n)=>{e.set(t,n)},a=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},d=()=>p(e=>e._isOpen),h=()=>t.some(e=>e.isAnimating),p=e=>{const n=t.find(e);if(void 0!==n)return n.el},g=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>new Promise(t=>Object(r.c)(e,t))));return o("reveal",u),o("push",c),o("overlay",l),"undefined"!=typeof document&&document.addEventListener("ionBackButton",e=>{const t=d();t&&e.detail.register(i.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:o,get:n,getMenus:async()=>(await g(),t.map(e=>e.el)),getOpen:s,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const i=await n(t);return i&&(i.swipeGesture=e),i},isAnimating:async()=>(await g(),h()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await s()},enable:async(e,t)=>{const i=await n(t);return i&&(i.disabled=!e),i},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):s());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:d,_createAnimation:(t,n)=>{const i=e.get(t);if(!i)throw new Error("animation not registered");return i(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||a(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(h())return!1;if(t){const t=await s();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:a}})()},wEJo:function(e,t,n){"use strict";n.d(t,"a",function(){return ze}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return M}),n.d(t,"d",function(){return m}),n.d(t,"e",function(){return we}),n.d(t,"f",function(){return Ve}),n.d(t,"g",function(){return te}),n.d(t,"h",function(){return Ne}),n.d(t,"i",function(){return P}),n.d(t,"j",function(){return I}),n.d(t,"k",function(){return ee}),n.d(t,"l",function(){return ce}),n.d(t,"m",function(){return _e}),n.d(t,"n",function(){return g}),n.d(t,"o",function(){return Ce}),n.d(t,"p",function(){return E}),n.d(t,"q",function(){return d});let i,r,s,o=!1,a=!1,l=!1,c=!1,u=!1;const d="undefined"!=typeof window?window:{},h=d.CSS,p=d.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},f=(()=>(p.head.attachShadow+"").indexOf("[native")>-1)(),m=e=>Promise.resolve(e),v=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),b=(e,t,n,i)=>{n&&n.map(([n,i,r])=>{const s=w(e,n),o=y(t,r),a=_(n);g.ael(s,i,o,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(s,i,o,a))})},y=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Ee(i)}},w=(e,t)=>4&t?p:8&t?d:16&t?p.body:e,_=e=>0!=(2&e),x="http://www.w3.org/1999/xlink",A=new WeakMap,C=(e,t,n)=>{let i=Oe.get(e);v&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,Oe.set(e,i)},S=(e,t,n,i)=>{let r=k(t,n),s=Oe.get(r);if(e=11===e.nodeType?e:p,s)if("string"==typeof s){let n,o=A.get(e=e.head||e);if(o||A.set(e,o=new Set),!o.has(r)){if(e.host&&(n=e.querySelector(`[sty-id="${r}"]`)))n.innerHTML=s;else{if(g.$cssShim$){n=g.$cssShim$.createHostStyle(i,r,s,!!(10&t.$flags$));const e=n["s-sc"];e&&(r=e,o=null)}else n=p.createElement("style"),n.innerHTML=s;e.insertBefore(n,e.querySelector("link"))}o&&o.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},k=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),E=e=>Ie.push(e),P=e=>Ae(e).$modeName$,D={},O=e=>"object"==(e=typeof e)||"function"===e,I=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?c(i):null!=i&&"boolean"!=typeof i&&((o="function"!=typeof e&&!O(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?T(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,B);const u=T(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},T=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),M={},B={forEach:(e,t)=>e.map(R).forEach(t),map:(e,t)=>e.map(R).map(t).map(L)},R=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),L=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),I(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},F=(e,t,n,i,r,s)=>{if(n!==i){let a=ke(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,r=V(n),s=V(i);t.remove(...r.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!r.includes(e)))}else if("style"===t){for(const t in n)i&&null!=i[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=O(i);if((a||c&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let r=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==r||(e[t]=r)}}catch(o){}let u=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,u=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!a||4&s||r)&&!c&&(i=!0===i?"":i,u?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):ke(d,l)?l.slice(2):l[2]+t.slice(3),n&&g.rel(e,t,n,!1),i&&g.ael(e,t,i,!1)}},N=/\s/,V=e=>e?e.split(N):[],z=(e,t,n,i)=>{const r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||D,o=t.$attrs$||D;for(i in s)i in o||F(r,i,s[i],void 0,n,t.$flags$);for(i in o)F(r,i,s[i],o[i],n,t.$flags$)},j=(e,t,n,a)=>{let u,d,h,g=t.$children$[n],f=0;if(o||(l=!0,"slot"===g.$tag$&&(i&&a.classList.add(i+"-s"),g.$flags$|=g.$children$?2:1)),null!==g.$text$)u=g.$elm$=p.createTextNode(g.$text$);else if(1&g.$flags$)u=g.$elm$=p.createTextNode("");else{if(c||(c="svg"===g.$tag$),u=g.$elm$=p.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&g.$flags$?"slot-fb":g.$tag$),c&&"foreignObject"===g.$tag$&&(c=!1),z(null,g,c),null!=i&&u["s-si"]!==i&&u.classList.add(u["s-si"]=i),g.$children$)for(f=0;f<g.$children$.length;++f)d=j(e,g,f,u),d&&u.appendChild(d);"svg"===g.$tag$?c=!1:"foreignObject"===u.tagName&&(c=!0)}return u["s-hn"]=s,3&g.$flags$&&(u["s-sr"]=!0,u["s-cr"]=r,u["s-sn"]=g.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===g.$tag$&&e.$elm$&&H(e.$elm$,!1)),u},H=(e,t)=>{g.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const e=n[i];e["s-hn"]!==s&&e["s-ol"]&&(q(e).insertBefore(e,G(e)),e["s-ol"].remove(),e["s-ol"]=void 0,l=!0),t&&H(e,t)}g.$flags$&=-2},U=(e,t,n,i,r,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===s&&(l=l.shadowRoot);r<=o;++r)i[r]&&(a=j(null,n,r,e),a&&(i[r].$elm$=a,l.insertBefore(a,G(t))))},W=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,J(i),a=!0,r["s-ol"]?r["s-ol"].remove():H(r,!0),r.remove())},$=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),G=e=>e&&e["s-ol"]||e,q=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Y=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;null===o?(c="svg"===s||"foreignObject"!==s&&c,"slot"===s||z(e,t,c),null!==i&&null!==r?((e,t,n,i)=>{let r,s,o=0,a=0,l=0,c=0,u=t.length-1,d=t[0],h=t[u],p=i.length-1,g=i[0],f=i[p];for(;o<=u&&a<=p;)if(null==d)d=t[++o];else if(null==h)h=t[--u];else if(null==g)g=i[++a];else if(null==f)f=i[--p];else if($(d,g))Y(d,g),d=t[++o],g=i[++a];else if($(h,f))Y(h,f),h=t[--u],f=i[--p];else if($(d,f))"slot"!==d.$tag$&&"slot"!==f.$tag$||H(d.$elm$.parentNode,!1),Y(d,f),e.insertBefore(d.$elm$,h.$elm$.nextSibling),d=t[++o],f=i[--p];else if($(h,g))"slot"!==d.$tag$&&"slot"!==f.$tag$||H(h.$elm$.parentNode,!1),Y(h,g),e.insertBefore(h.$elm$,d.$elm$),h=t[--u],g=i[++a];else{for(l=-1,c=o;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===g.$key$){l=c;break}l>=0?(s=t[l],s.$tag$!==g.$tag$?r=j(t&&t[a],n,l,e):(Y(s,g),t[l]=void 0,r=s.$elm$),g=i[++a]):(r=j(t&&t[a],n,a,e),g=i[++a]),r&&q(d.$elm$).insertBefore(r,G(d.$elm$))}o>u?U(e,null==i[p+1]?null:i[p+1].$elm$,n,i,a,p):a>p&&W(t,o,u)})(n,i,t,r):null!==r?(null!==e.$text$&&(n.textContent=""),U(n,null,t,r,0,r.length-1)):null!==i&&W(i,0,i.length-1),c&&"svg"===s&&(c=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},Z=e=>{let t,n,i,r,s,o,a=e.childNodes;for(n=0,i=a.length;n<i;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,r=0;r<i;r++)if(o=a[r].nodeType,a[r]["s-hn"]!==t["s-hn"]||""!==s){if(1===o&&s===a[r].getAttribute("slot")){t.hidden=!0;break}}else if(1===o||3===o&&""!==a[r].textContent.trim()){t.hidden=!0;break}Z(t)}},K=[],Q=e=>{let t,n,i,r,s,o,l=0,c=e.childNodes,u=c.length;for(;l<u;l++){if(t=c[l],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(X(n,r)?(s=K.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:K.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&K.map(e=>{X(e.$nodeToRelocate$,n["s-sn"])&&(s=K.find(e=>e.$nodeToRelocate$===n),s&&!e.$slotRefNode$&&(e.$slotRefNode$=s.$slotRefNode$))})):K.some(e=>e.$nodeToRelocate$===n)||K.push({$nodeToRelocate$:n}));1===t.nodeType&&Q(t)}},X=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},ee=e=>Ae(e).$hostElement$,te=(e,t,n)=>{const i=ee(e);return{emit:e=>ne(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},ne=(e,t,n)=>{const i=g.ce(t,n);return e.dispatchEvent(i),i},ie=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},re=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return ie(e,e.$ancestorComponent$),Ve(()=>se(e,t));e.$flags$|=512},se=(e,t)=>{const n=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>de(n,e,t)),e.$queuedListeners$=null),i=de(n,"componentWillLoad")),i=he(i,()=>de(n,"componentWillRender")),he(i,()=>oe(e,n,t))},oe=async(e,t,n)=>{const i=e.$hostElement$,r=i["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=S(f&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"),2&i&&n.classList.add(r+"-s"))})(e),ae(e,t),g.$cssShim$&&g.$cssShim$.updateHost(i),r&&(r.map(e=>e()),i["s-rc"]=void 0);{const t=i["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},ae=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t)=>{const n=e.$hostElement$,c=e.$cmpMeta$,u=e.$vnode$||T(null,null),d=(h=t)&&h.$tag$===M?t:I(null,null,t);var h;if(s=n.tagName,c.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},c.$attrsToReflect$.map(([e,t])=>d.$attrs$[t]=n[e])),d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=u.$elm$=n.shadowRoot||n,i=n["s-sc"],r=n["s-cr"],o=f&&0!=(1&c.$flags$),a=!1,Y(u,d),g.$flags$|=1,l){let e,t,n,i,r,s;Q(d.$elm$);let o=0;for(;o<K.length;o++)e=K[o],t=e.$nodeToRelocate$,t["s-ol"]||(n=p.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(o=0;o<K.length;o++)if(e=K[o],t=e.$nodeToRelocate$,e.$slotRefNode$){for(i=e.$slotRefNode$.parentNode,r=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&i===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){r=s;break}(!r&&i!==t.parentNode||t.nextSibling!==r)&&t!==r&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),i.insertBefore(t,r))}else 1===t.nodeType&&(t.hidden=!0)}a&&Z(d.$elm$),g.$flags$&=-2,K.length=0})(e,t)}catch(c){Ee(c,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?de(n,"componentDidUpdate"):(e.$flags$|=64,pe(t),de(n,"componentDidLoad"),e.$onReadyResolve$(t),i||ue()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Fe(()=>re(e,!1)),e.$flags$&=-517},ce=e=>{{const t=Ae(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&re(t,!1),n}},ue=e=>{pe(p.documentElement),Fe(()=>ne(d,"appload",{detail:{namespace:"ionic"}}))},de=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){Ee(i)}},he=(e,t)=>e&&e.then?e.then(t):t(),pe=e=>e.classList.add("hydrated"),ge=(e,t,n,i,r,s,o)=>{let a,l,c,u;if(1===s.nodeType){for(a=s.getAttribute("c-id"),a&&(l=a.split("."),l[0]!==o&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),s.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))),u=s.childNodes.length-1;u>=0;u--)ge(e,t,n,i,r,s.childNodes[u],o);if(s.shadowRoot)for(u=s.shadowRoot.childNodes.length-1;u>=0;u--)ge(e,t,n,i,r,s.shadowRoot.childNodes[u],o)}else if(8===s.nodeType)l=s.nodeValue.split("."),l[1]!==o&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=s.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),s.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))):c.$hostId$===o&&("s"===a?(c.$tag$="slot",s["s-sn"]=l[5]?c.$name$=l[5]:"",s["s-sr"]=!0,i&&(c.$elm$=p.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),s.parentNode.insertBefore(c.$elm$,s),s.remove(),"0"===c.$depth$&&(i[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(i?s.remove():(r["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=T(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},fe=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)fe(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)fe(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},me=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;if(i.map(([e,[i]])=>{31&i||2&n&&32&i?Object.defineProperty(r,e,{get(){return t=e,Ae(this).$instanceValues$.get(t);var t},set(n){((e,t,n,i)=>{const r=Ae(this),s=r.$hostElement$,o=r.$instanceValues$.get(t),a=r.$flags$,l=r.$lazyInstance$;var c,u;if(u=i.$members$[t][0],n=null==(c=n)||O(c)?c:4&u?"false"!==c&&(""===c||!!c):2&u?parseFloat(c):1&u?String(c):c,!(8&a&&void 0!==o||n===o)&&(r.$instanceValues$.set(t,n),l)){if(i.$watchers$&&128&a){const e=i.$watchers$[t];e&&e.map(e=>{try{l[e](n,o,t)}catch(i){Ee(i,s)}})}2==(18&a)&&re(r,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&i&&Object.defineProperty(r,e,{value(...t){const n=Ae(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;r.attributeChangedCallback=function(e,t,i){g.jmp(()=>{const t=n.get(e);this[t]=(null!==i||"boolean"!=typeof this[t])&&i})},e.observedAttributes=i.filter(([e,t])=>15&t[0]).map(([e,i])=>{const r=i[1]||e;return n.set(r,e),512&i[0]&&t.$attrsToReflect$.push([e,r]),r})}}return e},ve=e=>{de(e,"connectedCallback")},be=e=>{if(0==(1&g.$flags$)){const t=Ae(e),i=t.$cmpMeta$,r=()=>{};if(1&t.$flags$)b(e,t,i.$listeners$),ve(t.$lazyInstance$);else{let r;if(t.$flags$|=1,r=e.getAttribute("s-id"),r){if(f&&1&i.$flags$){const t=S(e.shadowRoot,i,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,n,i)=>{const r=e.shadowRoot,s=[],o=r?[]:null,a=i.$vnode$=T(t,null);g.$orgLocNodes$||fe(p.body,g.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),ge(a,s,[],o,e,e,n),s.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,i=g.$orgLocNodes$.get(n),s=e.$elm$;i&&f&&""===i["s-en"]&&i.parentNode.insertBefore(s,i.nextSibling),r||(s["s-hn"]=t,i&&(s["s-ol"]=i,s["s-ol"]["s-nr"]=s)),g.$orgLocNodes$.delete(n)}),r&&o.map(e=>{e&&r.appendChild(e)})})(e,i.$tagName$,r,t)}r||12&i.$flags$&&ye(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ie(t,t.$ancestorComponent$=n);break}}i.$members$&&Object.entries(i.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Fe(()=>(async(e,t,i,r,s)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(s=De(i)).then){const e=()=>{};s=await s,e()}s.isProxied||(i.$watchers$=s.watchers,me(s,i,2),s.isProxied=!0);const e=()=>{};t.$flags$|=8;try{new s(t)}catch(l){Ee(l)}t.$flags$&=-9,t.$flags$|=128,e(),ve(t.$lazyInstance$)}if(s.style){let r=s.style;"string"!=typeof r&&(r=r[t.$modeName$=(e=>Ie.map(t=>t(e)).find(e=>!!e))(e)]);const o=k(i,t.$modeName$);if(!Oe.has(o)){const e=()=>{};8&i.$flags$&&(r=await n.e(57).then(n.bind(null,"JmUR")).then(e=>e.scopeCss(r,o,!1))),C(o,r,!!(1&i.$flags$)),e()}}}const o=t.$ancestorComponent$,a=()=>re(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(e,t,i))}r()}},ye=e=>{const t=e["s-cr"]=p.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},we=(e,t={})=>{const n=[],i=t.exclude||[],r=d.customElements,s=p.head,o=s.querySelector("meta[charset]"),a=p.createElement("style"),l=[],c=p.querySelectorAll("[sty-id]");let u,h=!0,m=0;for(Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",p.baseURI).href,g.$flags$|=2;m<c.length;m++)C(c[m].getAttribute("sty-id"),c[m].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(e=>e[1].map(t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$listeners$=t[3],s.$attrsToReflect$=[],s.$watchers$={},!f&&1&s.$flags$&&(s.$flags$|=8);const o=s.$tagName$,a=class extends HTMLElement{constructor(e){super(e),Se(e=this,s),1&s.$flags$&&(f?e.attachShadow({mode:"open",delegatesFocus:!!(16&s.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){u&&(clearTimeout(u),u=null),h?l.push(this):g.jmp(()=>be(this))}disconnectedCallback(){g.jmp(()=>(e=>{if(0==(1&g.$flags$)){const t=Ae(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),g.$cssShim$&&g.$cssShim$.removeHost(e),de(n,"disconnectedCallback")}})(this))}componentOnReady(){return Ae(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],i.includes(o)||r.get(o)||(n.push(o),r.define(o,me(a,s,1)))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,o?o.nextSibling:s.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):g.jmp(()=>u=setTimeout(ue,30))},_e=e=>{const t=new URL(e,g.$resourcesUrl$);return t.origin!==d.location.origin?t.href:t.pathname},xe=new WeakMap,Ae=e=>xe.get(e),Ce=(e,t)=>xe.set(t.$lazyInstance$=e,t),Se=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],b(e,n,t.$listeners$),xe.set(e,n)},ke=(e,t)=>t in e,Ee=(e,t)=>(0,console.error)(e,t),Pe=new Map,De=(e,t,i)=>{const r=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$,o=Pe.get(s);return o?o[r]:n("kLfG")(`./${s}.entry.js`).then(e=>(Pe.set(s,e),e[r]),Ee)},Oe=new Map,Ie=[],Te=[],Me=[],Be=(e,t)=>n=>{e.push(n),u||(u=!0,t&&4&g.$flags$?Fe(Le):g.raf(Le))},Re=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Ee(t)}e.length=0},Le=()=>{Re(Te),Re(Me),(u=Te.length>0)&&g.raf(Le)},Fe=e=>m().then(e),Ne=Be(Te,!1),Ve=Be(Me,!0),ze={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return s});class i{constructor(e,t,n,i,r){this.id=t,this.name=n,this.disableScroll=r,this.priority=1e6*i+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class r{constructor(e,t,n,i){this.id=t,this.disable=n,this.disableScroll=i,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const s=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new r(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const i=this.requestedStart;let r=-1e4;if(i.forEach(e=>{r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return i.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}}}},[[0,1]]]);
\ No newline at end of file
diff --git a/dist/main-es5.373f75b45f5b0e63f7e4.js b/dist/main-es5.87c98818fdd38f866e0c.js
similarity index 99%
rename from dist/main-es5.373f75b45f5b0e63f7e4.js
rename to dist/main-es5.87c98818fdd38f866e0c.js
index d2de413312..348cecb648 100644
--- a/dist/main-es5.373f75b45f5b0e63f7e4.js
+++ b/dist/main-es5.87c98818fdd38f866e0c.js
@@ -1 +1 @@
-!function(){var e=["name","optional","primitiveSchema"],t=["value"],i=["isHexOnly"],r=["value","isIndefiniteForm"],o=["value"],a=["isConstructed"],s=["idBlock","lenBlock"],l=["unusedBits","isConstructed"],u=["idBlock","lenBlock"],c=["value"],d=["valueDec","isFirstSid"],h=["value"],f=["valueDec"],p=["value"],g=["value","valueDate"],v=["value"],m=["value","local"];function y(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e){var t="function"==typeof Map?new Map:void 0;return(_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return A(e,arguments,M(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),P(i,e)})(e)}function A(e,t,n){return(A=T()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&P(r,n.prototype),r}).apply(null,arguments)}function C(){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=S(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function S(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}function E(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}function P(e,t){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=T();return function(){var n,i=M(e);if(t){var r=M(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=z(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function L(e,t){return N(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||z(e,t)||F()}function F(){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 N(e){if(Array.isArray(e))return e}function V(e){return function(e){if(Array.isArray(e))return H(e)}(e)||j(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return H(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)?H(e,t):void 0}}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function U(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:k(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=u;var d={};function h(){}function f(){}function p(){}var g={};l(g,o,function(){return this});var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==t&&n.call(m,o)&&(g=m);var y=p.prototype=h.prototype=Object.create(g);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(d).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,s)})}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t(function(t,i){r(e,n,t,i)})}return o=o?o.then(i,i):i()}})}function k(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(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 i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=p,i(y,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},b(y),l(y,s,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=S,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function W(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){W(o,i,r,a,s,"next",e)}function s(e){W(o,i,r,a,s,"throw",e)}a(void 0)})}}function q(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Y(e,t,n){return t&&q(e.prototype,t),n&&q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return r}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return p}),n.d(t,"m",function(){return m}),n.d(t,"n",function(){return b}),n.d(t,"o",function(){return g}),n.d(t,"p",function(){return v}),n.d(t,"q",function(){return l});var i=function(e,t){e.componentOnReady?e.componentOnReady().then(function(e){return t(e)}):l(function(){return t(e)})},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(function(t){e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},o=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_ael");if(a)return a(e,t,n,i);if(o._ael)return o._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},a=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_rel");if(a)return a(e,t,n,i);if(o._rel)return o._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return e.shadowRoot||t},l=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},u=function(e){return!!e.shadowRoot&&!!e.attachShadow},c=function(e){var t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=function(e,t){var n,i=e.getAttribute("aria-labelledby"),r=e.id,o=null!==i&&""!==i.trim()?i:t+"-lbl",a=null!==i&&""!==i.trim()?document.getElementById(i):c(e);return a?(null===i&&(a.id=o),n=a.textContent,a.setAttribute("aria-hidden","true")):""!==r.trim()&&((a=document.querySelector('label[for="'.concat(r,'"]')))&&(""!==a.id?o=a.id:a.id=o=r+"-lbl",n=a.textContent)),{label:a,labelId:o,labelText:n}},h=function(e,t,n,i,r){if(e||u(t)){var o=t.querySelector("input.aux-input");o||((o=t.ownerDocument.createElement("input")).type="hidden",o.classList.add("aux-input"),t.appendChild(o)),o.disabled=r,o.name=n,o.value=i||""}},f=function(e,t,n){return Math.max(e,Math.min(t,n))},p=function(e,t){if(!e){var n="ASSERT: "+t;throw console.error(n),new Error(n)}},g=function(e){return e.timeStamp||Date.now()},v=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},m=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},y=function(e,t){var n=e._original||e;return{_original:e,emit:b(n.emit.bind(n),t)}},b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];clearTimeout(t),t=setTimeout.apply(void 0,[e,n].concat(r))}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){try{if(e instanceof function(){return Y(function e(t){Z(this,e),this.value=t})}())return e.value;if(!a()||"string"!=typeof e||""===e)return e;var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(function(e){for(var n=t.querySelectorAll(e),i=n.length-1;i>=0;i--){var a=n[i];a.parentNode?a.parentNode.removeChild(a):t.removeChild(a);for(var s=o(a),l=0;l<s.length;l++)r(s[l])}});for(var i=o(t),s=0;s<i.length;s++)r(i[s]);var u=document.createElement("div");u.appendChild(t);var c=u.querySelector("div");return null!==c?c.innerHTML:u.innerHTML}catch(d){return console.error(d),""}},r=function e(t){if(!t.nodeType||1===t.nodeType){for(var n=t.attributes.length-1;n>=0;n--){var i=t.attributes.item(n),r=i.name;if(s.includes(r.toLowerCase())){var a=i.value;null!=a&&a.toLowerCase().includes("javascript:")&&t.removeAttribute(r)}else t.removeAttribute(r)}for(var l=o(t),u=0;u<l.length;u++)e(l[u])}},o=function(e){return null!=e.children?e.children:e.childNodes},a=function(){var e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},s=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"3oEA":function(e,t,n){!function(t){"use strict";var n="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp("^".concat(n,"\\.").concat(n,"\\.").concat(n,"\\.").concat(n,"$"),"i"),threeOctet:new RegExp("^".concat(n,"\\.").concat(n,"\\.").concat(n,"$"),"i"),twoOctet:new RegExp("^".concat(n,"\\.").concat(n,"$"),"i"),longValue:new RegExp("^".concat(n,"$"),"i")},r=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="(?:[0-9a-f]+::?)+",s={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp("^(::)?(".concat(a,")?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$"),"i"),deprecatedTransitional:new RegExp("^(?:::)(".concat(n,"\\.").concat(n,"\\.").concat(n,"\\.").concat(n,"(%[0-9a-z]{1,})?)$"),"i"),transitional:new RegExp("^((?:".concat(a,")|(?:::)(?:").concat(a,")?)").concat(n,"\\.").concat(n,"\\.").concat(n,"\\.").concat(n,"(%[0-9a-z]{1,})?$"),"i")};function l(e,t){if(e.indexOf("::")!==e.lastIndexOf("::"))return null;var n,i,r=0,o=-1,a=(e.match(s.zoneIndex)||[])[0];for(a&&(a=a.substring(1),e=e.replace(/%.+$/,""));(o=e.indexOf(":",o+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(i=t-r,n=":";i--;)n+="0:";return":"===(e=e.replace("::",n))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){for(var t=e.split(":"),n=[],i=0;i<t.length;i++)n.push(parseInt(t[i],16));return n}(),zoneId:a}}function u(e,t,n,i){if(e.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(var r,o=0;i>0;){if((r=n-i)<0&&(r=0),e[o]>>r!=t[o]>>r)return!1;i-=n,o+=1}return!0}function c(e){if(o.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(r.test(e))return parseInt(e,8);throw new Error("ipaddr: cannot parse ".concat(e," as octal"))}return parseInt(e,10)}function d(e,t){for(;e.length<t;)e="0"+e;return e}var h={};h.IPv4=function(){function e(e){if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");var t,n;for(t=0;t<e.length;t++)if(!(0<=(n=e[t])&&n<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){var n;if(void 0===t&&(e=(n=e)[0],t=n[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,n,i=0,r=!1,o={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=3;e>=0;e-=1){if(!((t=this.octets[e])in o))return null;if(n=o[t],r&&0!==n)return null;8!==n&&(r=!0),i+=n}return 32-i},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse("::ffff:"+this.toString())},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),h.IPv4.broadcastAddressFromCIDR=function(e){try{for(var t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],o=0;o<4;)r.push(parseInt(n[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(e){return null!==this.parser(e)},h.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(t){return!1}},h.IPv4.isValidFourPartDecimal=function(e){return!(!h.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(e){var t,n,i,r,o;try{for(i=(t=this.parseCIDR(e))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<4;)r.push(parseInt(i[n],10)&parseInt(o[n],10)),n++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(e){var t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},h.IPv4.parseCIDR=function(e){var t;if(t=e.match(/^(.+)\/(\d+)$/)){var n=parseInt(t[2]);if(n>=0&&n<=32){var i=[this.parse(t[1]),n];return Object.defineProperty(i,"toString",{value:function(){return this.join("/")}}),i}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(e){var t,n,r;if(t=e.match(i.fourOctet))return function(){for(var e=t.slice(1,6),i=[],r=0;r<e.length;r++)n=e[r],i.push(c(n));return i}();if(t=e.match(i.longValue)){if((r=c(t[1]))>4294967295||r<0)throw new Error("ipaddr: address outside defined range");return function(){var e,t=[];for(e=0;e<=24;e+=8)t.push(r>>e&255);return t}().reverse()}return(t=e.match(i.twoOctet))?function(){var e=t.slice(1,4),n=[];if((r=c(e[1]))>16777215||r<0)throw new Error("ipaddr: address outside defined range");return n.push(c(e[0])),n.push(r>>16&255),n.push(r>>8&255),n.push(255&r),n}():(t=e.match(i.threeOctet))?function(){var e=t.slice(1,5),n=[];if((r=c(e[2]))>65535||r<0)throw new Error("ipaddr: address outside defined range");return n.push(c(e[0])),n.push(c(e[1])),n.push(r>>8&255),n.push(255&r),n}():null},h.IPv4.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(var t=[0,0,0,0],n=0,i=Math.floor(e/8);n<i;)t[n]=255,n++;return i<4&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.IPv6=function(){function e(e,t){var n,i;if(16===e.length)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(n=0;n<this.parts.length;n++)if(!(0<=(i=this.parts[n])&&i<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){var n;if(void 0===t&&(e=(n=e)[0],t=n[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){for(var e,t,n=0,i=!1,r={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},o=7;o>=0;o-=1){if(!((e=this.parts[o])in r))return null;if(t=r[e],i&&0!==t)return null;16!==t&&(i=!0),n+=t}return 128-n},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){for(var e,t=[],n=this.parts,i=0;i<n.length;i++)e=n[i],t.push(e>>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){var e=(function(){for(var e=[],t=0;t<this.parts.length;t++)e.push(d(this.parts[t].toString(16),4));return e}).call(this).join(":"),t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");var e=this.parts.slice(-2),t=e[0],n=e[1];return new h.IPv4([t>>8,255&t,n>>8,255&n])},e.prototype.toNormalizedString=function(){var e=(function(){for(var e=[],t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(":"),t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toRFC5952String=function(){for(var e,t=/((^|:)(0(:|$)){2,})/g,n=this.toNormalizedString(),i=0,r=-1;e=t.exec(n);)e[0].length>r&&(i=e.index,r=e[0].length);return r<0?n:"".concat(n.substring(0,i),"::").concat(n.substring(i+r))},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),h.IPv6.broadcastAddressFromCIDR=function(e){try{for(var t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(n[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(a,")"))}},h.IPv6.isIPv6=function(e){return null!==this.parser(e)},h.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{var t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(n){return!1}},h.IPv6.networkAddressFromCIDR=function(e){var t,n,i,r,o;try{for(i=(t=this.parseCIDR(e))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<16;)r.push(parseInt(i[n],10)&parseInt(o[n],10)),n++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(a,")"))}},h.IPv6.parse=function(e){var t=this.parser(e);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},h.IPv6.parseCIDR=function(e){var t,n,i;if((n=e.match(/^(.+)\/(\d+)$/))&&((t=parseInt(n[2]))>=0&&t<=128))return i=[this.parse(n[1]),t],Object.defineProperty(i,"toString",{value:function(){return this.join("/")}}),i;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(e){var t,n,i,r,o,a;if(i=e.match(s.deprecatedTransitional))return this.parser("::ffff:"+i[1]);if(s.native.test(e))return l(e,8);if((i=e.match(s.transitional))&&(a=i[6]||"",(t=l(i[1].slice(0,-1)+a,6)).parts)){for(o=[parseInt(i[2]),parseInt(i[3]),parseInt(i[4]),parseInt(i[5])],n=0;n<o.length;n++)if(!(0<=(r=o[n])&&r<=255))return null;return t.parts.push(o[0]<<8|o[1]),t.parts.push(o[2]<<8|o[3]),{parts:t.parts,zoneId:t.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>128)throw new Error("ipaddr: invalid IPv6 prefix length");for(var t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,i=Math.floor(e/8);n<i;)t[n]=255,n++;return i<16&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.fromByteArray=function(e){var t=e.length;if(4===t)return new h.IPv4(e);if(16===t)return new h.IPv6(e);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(e){return h.IPv6.isValid(e)||h.IPv4.isValid(e)},h.parse=function(e){if(h.IPv6.isValid(e))return h.IPv6.parse(e);if(h.IPv4.isValid(e))return h.IPv4.parse(e);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(e){try{return h.IPv6.parseCIDR(e)}catch(t){try{return h.IPv4.parseCIDR(e)}catch(n){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(e){var t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},h.subnetMatch=function(e,t,n){var i,r,o,a;for(r in null==n&&(n="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,r))for(!(o=t[r])[0]||o[0]instanceof Array||(o=[o]),i=0;i<o.length;i++)if(a=o[i],e.kind()===a[0].kind()&&e.match.apply(e,a))return r;return n},e.exports?e.exports=h:t.ipaddr=h}(this)},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return _}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return C}),n.d(t,"h",function(){return P}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return D}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return f}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return g});var i=n("E/Mt"),r=n("B4Jq"),o=n("1vRN"),a=0,s=new WeakMap,l=function(e){return{create:function(t){return m(e,t)},dismiss:function(t,n,i){return k(document,t,n,e,i)},getTop:(t=G(U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",x(document,e));case 1:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})};var t},u=l("ion-alert"),c=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),f=l("ion-picker"),p=l("ion-popover"),g=l("ion-toast"),v=function(e){"undefined"!=typeof document&&w(document);var t=a++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},m=function(e,t){return"undefined"!=typeof customElements?customElements.whenDefined(e).then(function(){var n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),S(document).appendChild(n),new Promise(function(e){return Object(o.c)(n,e)})}):Promise.resolve()},y='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',b="input:not([type=hidden]), textarea, button, select",w=function(e){0===a&&(a=1,e.addEventListener("focus",function(t){return function(e,t){var n,i,r,a=x(t),s=e.target;if(a&&s)if(a===s)a.lastFocus=void 0;else{var l=Object(o.g)(a);if(!l.contains(s))return;var u=l.querySelector(".ion-overlay-wrapper");if(!u)return;if(u.contains(s))a.lastFocus=s;else{var c=a.lastFocus;n=a,i=u.querySelector(y),(r=i&&i.shadowRoot)&&(i=r.querySelector(b)||i),i?i.focus():n.focus(),c===t.activeElement&&function(e,t){var n=Array.from(e.querySelectorAll(y)),i=n.length>0?n[n.length-1]:null,r=i&&i.shadowRoot;r&&(i=r.querySelector(b)||i),i?i.focus():t.focus()}(u,a),a.lastFocus=t.activeElement}}}(t,e)},!0),e.addEventListener("ionBackButton",function(t){var n=x(e);n&&n.backdropDismiss&&t.detail.register(r.OVERLAY_BACK_BUTTON_PRIORITY,function(){return n.dismiss(void 0,M)})}),e.addEventListener("keyup",function(t){if("Escape"===t.key){var n=x(e);n&&n.backdropDismiss&&n.dismiss(void 0,M)}}))},k=function(e,t,n,i,r){var o=x(e,i,r);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},x=function(e,t,n){var i=function(e,t){return void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(function(e){return e.overlayIndex>0})}(e,t);return void 0===n?i[i.length-1]:i.find(function(e){return e.id===n})},_=function(){var e=G(U().mark(function e(t,n,r,o,a){var s,l;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.presented){e.next=2;break}return e.abrupt("return");case 2:return t.presented=!0,t.willPresent.emit(),s=Object(i.b)(t),l=t.enterAnimation?t.enterAnimation:i.c.get(n,"ios"===s?r:o),e.next=6,E(t,l,t.el,a);case 6:if(e.t0=e.sent,!e.t0){e.next=9;break}t.didPresent.emit();case 9:"ION-TOAST"!==t.el.tagName&&A(t.el),t.keyboardClose&&t.el.focus();case 11:case"end":return e.stop()}},e)}));return function(t,n,i,r,o){return e.apply(this,arguments)}}(),A=function(){var e=G(U().mark(function e(t){var n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.activeElement){e.next=3;break}return e.abrupt("return");case 3:return(i=n&&n.shadowRoot)&&(n=i.querySelector(b)||n),e.next=7,t.onDidDismiss();case 7:n.focus();case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=G(U().mark(function e(t,n,r,o,a,l,u){var c,d;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.presented){e.next=2;break}return e.abrupt("return",!1);case 2:if(t.presented=!1,e.prev=3,t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:n,role:r}),c=Object(i.b)(t),d=t.leaveAnimation?t.leaveAnimation:i.c.get(o,"ios"===c?a:l),e.t0="gesture"!==r,!e.t0){e.next=10;break}return e.next=10,E(t,d,t.el,u);case 10:t.didDismiss.emit({data:n,role:r}),s.delete(t),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(3),console.error(e.t1);case 17:return e.abrupt("return",(t.el.remove(),!0));case 18:case"end":return e.stop()}},e,null,[[3,14]])}));return function(t,n,i,r,o,a,s){return e.apply(this,arguments)}}(),S=function(e){return e.querySelector("ion-app")||e.body},E=function(){var e=G(U().mark(function e(t,n,r,o){var a,l;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.classList.remove("overlay-hidden"),a=n(r.shadowRoot||t.el,o),t.animated&&i.c.getBoolean("animated",!0)||a.duration(0),t.keyboardClose&&a.beforeAddWrite(function(){var e=r.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()}),l=s.get(t)||[],s.set(t,[].concat(V(l),[a])),e.next=7,a.play();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}},e)}));return function(t,n,i,r){return e.apply(this,arguments)}}(),P=function(e,t){var n,i=new Promise(function(e){return n=e});return O(e,t,function(e){n(e.detail)}),i},O=function(e,t,n){Object(o.a)(e,t,function i(r){Object(o.b)(e,t,i),n(r)})},D=function(e){return"cancel"===e||e===M},I=function(e){return e()},T=function(e,t){if("function"==typeof e)return i.c.get("_zoneGate",I)(function(){try{return e(t)}catch(n){console.error(n)}})},M="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return a}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return r});var i=function(){document.addEventListener("backbutton",function(){})},r=function(){var e=document,t=!1;e.addEventListener("backbutton",function(){if(!t){var n=0,i=[],r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);!function e(){if(i.length>0){var n={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};i.forEach(function(e){e.priority>=n.priority&&(n=e)}),t=!0,i=i.filter(function(e){return e.id!==n.id}),(r=G(U().mark(function t(n){var i;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n||!n.handler){t.next=7;break}if(i=n.handler(e),t.t0=null!=i,!t.t0){t.next=7;break}return t.next=7,i;case 7:t.next=12;break;case 9:t.prev=9,t.t1=t.catch(0),console.error(t.t1);case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(e){return r.apply(this,arguments)})(n).then(function(){return t=!1})}var r}()}})},o=100,a=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return y}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return w});var i,r=n("wEJo"),o=function(e){return s(e)},a=function(e,t){return"string"==typeof e&&(t=e,e=void 0),o(e).includes(t)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(void 0===e)return[];e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=l(e)).forEach(function(t){return e.document.documentElement.classList.add("plt-"+t)}),t},l=function(e){return Object.keys(m).filter(function(t){return m[t](e)})},u=function(e){return!!g(e,/iPad/i)||!(!g(e,/Macintosh/i)||!d(e))},c=function(e){return g(e,/android|sink/i)},d=function(e){return v(e,"(any-pointer:coarse)")},h=function(e){return f(e)||p(e)},f=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},p=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},g=function(e,t){return t.test(e.navigator.userAgent)},v=function(e,t){return e.matchMedia(t).matches},m={ipad:u,iphone:function(e){return g(e,/iPhone/i)},ios:function(e){return g(e,/iPhone|iPod/i)||u(e)},android:c,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return u(e)||function(e){return c(e)&&!g(e,/mobile/i)}(e)||i>460&&i<820&&r>780&&r<1400},cordova:f,capacitor:p,electron:function(e){return g(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:d,mobileweb:function(e){return d(e)&&!h(e)},desktop:function(e){return!d(e)},hybrid:h},y=new(function(){function e(){Z(this,e),this.m=new Map}return Y(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),b=function(e){return e&&Object(r.i)(e)||i},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof window){var t=window.document,n=window,o=n.Ionic=n.Ionic||{};s(n);var l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(e){try{var t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(n){return{}}}(n)),{persistConfig:!1}),o.config),function(e){var t={};return e.location.search.slice(1).split("&").map(function(e){return e.split("=")}).map(function(e){var t=L(e,2),n=t[0],i=t[1];return[decodeURIComponent(n),decodeURIComponent(i)]}).filter(function(e){return"ionic:"===L(e,1)[0].substr(0,"ionic:".length)}).map(function(e){var t=L(e,2),n=t[0],i=t[1];return[n.slice("ionic:".length),i]}).forEach(function(e){var n=L(e,2),i=n[0],r=n[1];t[i]=r}),t}(n)),e);y.reset(l),y.getBoolean("persistConfig")&&function(e,t){try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}}(n,l),o.config=y,o.mode=i=y.get("mode",t.documentElement.getAttribute("mode")||(a(n,"ios")?"ios":"md")),y.set("mode",i),t.documentElement.setAttribute("mode",i),t.documentElement.classList.add(i),y.getBoolean("_testing")&&y.set("animated",!1);var u=function(e){return e.tagName&&e.tagName.startsWith("ION-")},c=function(e){return["ios","md"].includes(e)};Object(r.p)(function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;u(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return i})}}},Hfs6:function(e,t,n){var i,r,o;!function(a){if("object"==typeof e.exports){var s=a(0,t);void 0!==s&&(e.exports=s)}else r=[n,t],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},OmFT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){Z(this,e)}return Y(e,null,[{key:"isArrayBuffer",value:function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},{key:"toArrayBuffer",value:function(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e).slice().buffer}},{key:"toUint8Array",value:function(e){return this.toView(e,Uint8Array)}},{key:"toView",value:function(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}},{key:"isBufferSource",value:function(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}},{key:"isArrayBufferView",value:function(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}},{key:"isEqual",value:function(t,n){var i=e.toUint8Array(t),r=e.toUint8Array(n);if(i.length!==r.byteLength)return!1;for(var o=0;o<i.length;o++)if(i[o]!==r[o])return!1;return!0}},{key:"concat",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Array.isArray(t[0])){var i,r=t[0],o=0,a=R(r);try{for(a.s();!(i=a.n()).done;){var s=i.value;o+=s.byteLength}}catch(p){a.e(p)}finally{a.f()}var l,u=new Uint8Array(o),c=0,d=R(r);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=this.toUint8Array(h);u.set(f,c),c+=f.length}}catch(p){d.e(p)}finally{d.f()}return t[1]?this.toView(u,t[1]):u.buffer}return this.concat(t)}}]),e}(),r=function(){function e(){Z(this,e)}return Y(e,null,[{key:"fromString",value:function(e){for(var t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n.buffer}},{key:"toString",value:function(e){for(var t=i.toUint8Array(e),n="",r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return decodeURIComponent(escape(n))}}]),e}(),o=function(){function e(){Z(this,e)}return Y(e,null,[{key:"toString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.toArrayBuffer(e),r=new DataView(n),o="",a=0;a<n.byteLength;a+=2){var s=r.getUint16(a,t);o+=String.fromCharCode(s)}return o}},{key:"fromString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new ArrayBuffer(2*e.length),i=new DataView(n),r=0;r<e.length;r++)i.setUint16(2*r,e.charCodeAt(r),t);return n}}]),e}(),a=function(){function e(){Z(this,e)}return Y(e,null,[{key:"isHex",value:function(e){return"string"==typeof e&&/^[a-z0-9]+$/i.test(e)}},{key:"isBase64",value:function(e){return"string"==typeof e&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},{key:"isBase64Url",value:function(e){return"string"==typeof e&&/^[a-zA-Z0-9-_]+$/i.test(e)}},{key:"ToString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",n=i.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(n);case"binary":return this.ToBinary(n);case"hex":return this.ToHex(n);case"base64":return this.ToBase64(n);case"base64url":return this.ToBase64Url(n);case"utf16le":return o.toString(n,!0);case"utf16":case"utf16be":return o.toString(n);default:throw new Error("Unknown type of encoding '".concat(t,"'"))}}},{key:"FromString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return o.fromString(e,!0);case"utf16":case"utf16be":return o.fromString(e);default:throw new Error("Unknown type of encoding '".concat(t,"'"))}}},{key:"ToBase64",value:function(e){var t=i.toUint8Array(e);if("undefined"!=typeof btoa){var n=this.ToString(t,"binary");return btoa(n)}return Buffer.from(t).toString("base64")}},{key:"FromBase64",value:function(t){var n=this.formatString(t);if(!n)return new ArrayBuffer(0);if(!e.isBase64(n))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(n)):new Uint8Array(Buffer.from(n,"base64")).buffer}},{key:"FromBase64Url",value:function(t){var n=this.formatString(t);if(!n)return new ArrayBuffer(0);if(!e.isBase64Url(n))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(n.replace(/\-/g,"+").replace(/\_/g,"/")))}},{key:"ToBase64Url",value:function(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}},{key:"FromUtf8String",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DEFAULT_UTF8_ENCODING;switch(n){case"ascii":return this.FromBinary(t);case"utf8":return r.fromString(t);case"utf16":case"utf16be":return o.fromString(t);case"utf16le":case"usc2":return o.fromString(t,!0);default:throw new Error("Unknown type of encoding '".concat(n,"'"))}}},{key:"ToUtf8String",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DEFAULT_UTF8_ENCODING;switch(n){case"ascii":return this.ToBinary(t);case"utf8":return r.toString(t);case"utf16":case"utf16be":return o.toString(t);case"utf16le":case"usc2":return o.toString(t,!0);default:throw new Error("Unknown type of encoding '".concat(n,"'"))}}},{key:"FromBinary",value:function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n.buffer}},{key:"ToBinary",value:function(e){for(var t=i.toUint8Array(e),n="",r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return n}},{key:"ToHex",value:function(e){for(var t=i.toUint8Array(e),n=[],r=t.length,o=0;o<r;o++){var a=t[o].toString(16).padStart(2,"0");n.push(a)}return n.join("")}},{key:"FromHex",value:function(t){var n=this.formatString(t);if(!n)return new ArrayBuffer(0);if(!e.isHex(n))throw new TypeError("Argument 'hexString' is not HEX encoded");n.length%2&&(n="0"+n);for(var i=new Uint8Array(n.length/2),r=0;r<n.length;r+=2){var o=n.slice(r,r+2);i[r/2]=parseInt(o,16)}return i.buffer}},{key:"ToUtf16String",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.toString(e,t)}},{key:"FromUtf16String",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.fromString(e,t)}},{key:"Base64Padding",value:function(e){var t=4-e.length%4;if(t<4)for(var n=0;n<t;n++)e+="=";return e}},{key:"formatString",value:function(e){return(null==e?void 0:e.replace(/[\n\r\t ]/g,""))||""}}]),e}();a.DEFAULT_UTF8_ENCODING="utf8",t.BufferSourceConverter=i,t.Convert=a,t.assign=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=arguments[0],o=1;o<arguments.length;o++){var a=arguments[o];for(var s in a)r[s]=a[s]}return r},t.combine=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map(function(e){return e.byteLength}).reduce(function(e,t){return e+t}),r=new Uint8Array(i),o=0;return t.map(function(e){return new Uint8Array(e)}).forEach(function(e){var t,n=R(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;r[o++]=i}}catch(a){n.e(a)}finally{n.f()}}),r.buffer},t.isEqual=function(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;for(var n=new Uint8Array(e),i=new Uint8Array(t),r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return o});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e,t){var n="back"===t.direction,o=t.enteringEl,a=t.leavingEl,s=Object(r.g)(o),l=s.querySelector("ion-toolbar"),u=Object(i.a)();if(u.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),n?u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):u.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){var c=Object(i.a)();c.addElement(l),u.addAnimation(c)}if(a&&n){u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=Object(i.a)();d.addElement(Object(r.g)(a)).onFinish(function(e){1===e&&d.elements.length>0&&d.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),u.addAnimation(d)}return u}},b0Xh:function(e,t,i){var r;(function(){var i=function e(t){return t instanceof e?t:this instanceof e?void(this.EXIFwrapped=t):new e(t)};e.exports&&(t=e.exports=i),t.EXIF=i;var o=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},a=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},u=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function c(e){return!!e.exifdata}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return m(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function f(e,t,n){for(var i,r,o,a,s=new DataView(e),l={},u=t;u<t+n;)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(a=s.getUint8(u+2))in h&&(o=s.getInt16(u+3),r=h[a],i=v(s,u+5,o),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(i):l[r]=[l[r],i]:l[r]=i),u++;return l}function p(e,t,n,i,r){var o,a,s=e.getUint16(n,!r),l={};for(a=0;a<s;a++)l[i[e.getUint16(o=n+12*a+2,!r)]]=g(e,o,t,0,r);return l}function g(e,t,n,i,r){var o,a,s,l,u,c,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),f=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(o=h>4?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint8(o+l);return a;case 2:return v(e,o=h>4?f:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(o=h>2?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint16(o+2*l,!r);return a;case 4:if(1==h)return e.getUint32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getUint32(f+4*l,!r);return a;case 5:if(1==h)return u=e.getUint32(f,!r),c=e.getUint32(f+4,!r),(s=new Number(u/c)).numerator=u,s.denominator=c,s;for(a=[],l=0;l<h;l++)u=e.getUint32(f+8*l,!r),c=e.getUint32(f+4+8*l,!r),a[l]=new Number(u/c),a[l].numerator=u,a[l].denominator=c;return a;case 9:if(1==h)return e.getInt32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+4*l,!r);return a;case 10:if(1==h)return e.getInt32(f,!r)/e.getInt32(f+4,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+8*l,!r)/e.getInt32(f+4+8*l,!r);return a}}function v(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function m(e,t){if("Exif"!=v(e,t,4))return!1;var n,i,r,c,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var f=e.getUint32(h+4,!n);if(f<8)return!1;if((i=p(e,h,h+f,a,n)).ExifIFDPointer)for(r in c=p(e,h,h+i.ExifIFDPointer,o,n)){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":c[r]=u[r][c[r]];break;case"ExifVersion":case"FlashpixVersion":c[r]=String.fromCharCode(c[r][0],c[r][1],c[r][2],c[r][3]);break;case"ComponentsConfiguration":c[r]=u.Components[c[r][0]]+u.Components[c[r][1]]+u.Components[c[r][2]]+u.Components[c[r][3]]}i[r]=c[r]}if(i.GPSInfoIFDPointer)for(r in d=p(e,h,h+i.GPSInfoIFDPointer,s,n)){switch(r){case"GPSVersionID":d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]}i[r]=d[r]}return i.thumbnail=function(e,t,n,i){var r=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var o=p(e,t,t+r,l,i);if(o.Compression)switch(o.Compression){case 6:o.JpegIFOffset&&o.JpegIFByteCount&&(o.blob=new Blob([new Uint8Array(e.buffer,t+o.JpegIFOffset,o.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,f,n),i}function y(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),a=o.nodeName;if(null==t[a])t[a]=y(o);else{if(null==t[a].push){var s=t[a];t[a]=[],t[a].push(s)}t[a].push(y(o))}}return t}function b(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var o in r){var a=r[o],s=a.nodeName;void 0!==s&&(t[s]=a.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=y(i);else{if(void 0===t[l].push){var u=t[l];t[l]=[],t[l].push(u)}t[l].push(y(i))}}else t=e.textContent;return t}catch(c){console.log(c.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(c(e)?t&&t.call(e):function(e,t){function n(n){var r=d(n);e.exifdata=r||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(r(t,n)){var o=t.getUint8(n+7);return o%2!=0&&(o+=1),0===o&&(o=4),f(e,n+8+o,t.getUint16(n+6+o))}n++}}(n);if(e.iptcdata=o||{},i.isXmpEnabled){var a=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=new DOMParser;n<i-4;){if("http"==v(t,n,4)){var o=n-1,a=t.getUint16(n-2)-1,s=v(t,o,a),l=s.indexOf("xmpmeta>")+8,u=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return s=s.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(u),b(r.parseFromString(s,"text/xml"))}n++}}}(n);e.xmpdata=a||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),o=new Uint8Array(r),a=0;a<i;a++)o[a]=n.charCodeAt(a);return r}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||o.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(r.response),r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(c(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(c(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!c(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!c(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!c(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return d(e)},void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e,t,n,i,a){return o(e[1],t[1],n[1],i[1],a).map(function(o){return r(e[0],t[0],n[0],i[0],o)})},r=function(e,t,n,i,r){return r*(3*t*Math.pow(r-1,2)+r*(-3*n*r+3*n+i*r))-e*Math.pow(r-1,3)},o=function(e,t,n,i,r){return a((i-=r)-3*(n-=r)+3*(t-=r)-(e-=r),3*n-6*t+3*e,3*t-3*e,e).filter(function(e){return e>=0&&e<=1})},a=function(e,t,n,i){if(0===e)return function(e,t,n){var i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]}(t,n,i);var r=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===r)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-r),-Math.sqrt(-r)];var a=Math.pow(o/2,2)+Math.pow(r/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-o/2+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];var s=Math.sqrt(Math.pow(-r/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-r/3,3)))),u=2*Math.pow(s,1/3);return[u*Math.cos(l/3)-t/3,u*Math.cos((l+2*Math.PI)/3)-t/3,u*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});var r,o=function(e,t,n,i){var r,o,s=a(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(r="addEventListener",o="removeEventListener"),e[r](t,n,s),function(){e[o](t,n,s)}},a=function(e){if(void 0===r)try{var t=Object.defineProperty({},"passive",{get:function(){r=!0}});e.addEventListener("optsTest",function(){},t)}catch(n){r=!1}return!!r},s=function(e){return e instanceof Document?e:e.ownerDocument},l=function(e){var t=!1,n=!1,r=!0,a=!1,l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,f=l.onWillStart,p=l.onStart,g=l.onEnd,v=l.notCaptured,m=l.onMove,y=l.threshold,b=l.passive,w=l.blurOnStart,k={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=function(e,t,n){var i=n*(Math.PI/180),r="x"===e,o=Math.cos(i),a=t*t,s=0,l=0,u=!1,c=0;return{start:function(e,t){s=e,l=t,c=0,u=!0},detect:function(e,t){if(!u)return!1;var n=e-s,i=t-l,d=n*n+i*i;if(d<a)return!1;var h=Math.sqrt(d),f=(r?n:i)/h;return c=f>o?1:f<-o?-1:0,u=!1,!0},isGesture:function(){return 0!==c},getDirection:function(){return c}}}(l.direction,l.threshold,l.maxAngle),_=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),A=function(){t&&(a=!1,m&&m(k))},C=function(){return!(_&&!_.capture()||(t=!0,r=!1,k.startX=k.currentX,k.startY=k.currentY,k.startTime=k.currentTime,f?f(k).then(S):S(),0))},S=function(){w&&function(){if("undefined"!=typeof document){var e=document.activeElement;null!==e&&e.blur&&e.blur()}}(),p&&p(k),r=!0},E=function(){t=!1,n=!1,a=!1,r=!0,_.release()},P=function(e){var n=t,i=r;E(),i&&(u(k,e),n?g&&g(k):v&&v(k))},O=function(e,t,n,i,r){var a,l,u,c,d,h,f,p=0,g=function(i){p=Date.now()+2e3,t(i)&&(!l&&n&&(l=o(e,"touchmove",n,r)),u||(u=o(e,"touchend",m,r)),c||(c=o(e,"touchcancel",m,r)))},v=function(i){p>Date.now()||t(i)&&(!h&&n&&(h=o(s(e),"mousemove",n,r)),f||(f=o(s(e),"mouseup",y,r)))},m=function(e){b(),i&&i(e)},y=function(e){w(),i&&i(e)},b=function(){l&&l(),u&&u(),c&&c(),l=u=c=void 0},w=function(){h&&h(),f&&f(),h=f=void 0},k=function(){b(),w()},x=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(a||(a=o(e,"touchstart",g,r)),d||(d=o(e,"mousedown",v,r))):(a&&a(),d&&d(),a=d=void 0,k())};return{enable:x,stop:k,destroy:function(){x(!1),i=n=t=void 0}}}(l.el,function(e){var t=d(e);return!(n||!r)&&(c(e,k),k.startX=k.currentX,k.startY=k.currentY,k.startTime=k.currentTime=t,k.velocityX=k.velocityY=k.deltaX=k.deltaY=0,k.event=e,(!h||!1!==h(k))&&(_.release(),!!_.start()&&(n=!0,0===y?C():(x.start(k.startX,k.startY),!0))))},function(e){t?!a&&r&&(a=!0,u(k,e),requestAnimationFrame(A)):(u(k,e),x.detect(k.currentX,k.currentY)&&(x.isGesture()&&C()||D()))},P,{capture:!1,passive:b}),D=function(){E(),O.stop(),v&&v(k)};return{enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e||(t&&P(void 0),E()),O.enable(e)},destroy:function(){_.destroy(),O.destroy()}}},u=function(e,t){if(t){var n=e.currentX,i=e.currentY,r=e.currentTime;c(t,e);var o=e.currentX,a=e.currentY,s=(e.currentTime=d(t))-r;if(s>0&&s<100){var l=(a-i)/s;e.velocityX=(o-n)/s*.7+.3*e.velocityX,e.velocityY=.7*l+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t}},c=function(e,t){var n=0,i=0;if(e){var r=e.changedTouches;if(r&&r.length>0){var o=r[0];n=o.clientX,i=o.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},d=function(e){return e.timeStamp||Date.now()}},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return A}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return C}),n.d(t,"j",function(){return c});var i=n("wEJo"),r=n("1vRN"),o="ionViewWillEnter",a="ionViewDidEnter",s="ionViewWillLeave",l="ionViewDidLeave",u="ionViewWillUnload",c=function(e){return new Promise(function(t,n){Object(i.f)(function(){d(e),h(e).then(function(n){n.animation&&n.animation.destroy(),f(e),t(n)},function(t){f(e),n(t)})})})},d=function(e){var t=e.enteringEl,n=e.leavingEl;S(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),C(t,!1),n&&C(n,!1)},h=function(){var e=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:return n=e.sent,e.abrupt("return",n&&i.a.isBrowser?g(n,t):v(t));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),f=function(e){var t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},p=function(){var e=G(U().mark(function e(t){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.leavingEl||!t.animated||0===t.duration){e.next=16;break}if(!t.animationBuilder){e.next=5;break}e.t0=t.animationBuilder,e.next=15;break;case 5:if("ios"!==t.mode){e.next=11;break}return e.next=8,Promise.resolve().then(n.bind(null,"lTIg"));case 8:e.t1=e.sent.iosTransitionAnimation,e.next=14;break;case 11:return e.next=13,Promise.resolve().then(n.bind(null,"RQGG"));case 13:e.t1=e.sent.mdTransitionAnimation;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=G(U().mark(function e(t,n){var i,r;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(n,!0);case 2:return i=t(n.baseEl,n),w(n.enteringEl,n.leavingEl),e.next=6,b(i,n);case 6:return r=e.sent,e.abrupt("return",(n.progressCallback&&n.progressCallback(void 0),r&&k(n.enteringEl,n.leavingEl),{hasCompleted:r,animation:i}));case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=G(U().mark(function e(t){var n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.enteringEl,i=t.leavingEl,e.next=3,m(t,!1);case 3:return w(n,i),k(n,i),e.abrupt("return",{hasCompleted:!0});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(void 0!==t.deepWait?t.deepWait:n)?[A(t.enteringEl),A(t.leavingEl)]:[_(t.enteringEl),_(t.leavingEl)],e.next=3,Promise.all(i);case 3:return e.next=5,y(t.viewIsReady,t.enteringEl);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),y=function(){var e=G(U().mark(function e(t,n){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=4;break}return e.next=4,t(n);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),b=function(e,t){var n=t.progressCallback,i=new Promise(function(t){e.onFinish(function(e){return t(1===e)})});return n?(e.progressStart(!0),n(e)):e.play(),i},w=function(e,t){x(t,s),x(e,o)},k=function(e,t){x(e,a),x(t,l)},x=function(e,t){if(e){var n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},_=function(e){return e?new Promise(function(t){return Object(r.c)(e,t)}):Promise.resolve()},A=function(){var e=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=12;break}if(e.t0=null!=n.componentOnReady,!e.t0){e.next=8;break}return e.next=6,n.componentOnReady();case 6:e.t1=e.sent,e.t0=null!=e.t1;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(Array.from(n.children).map(A));case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),C=function(e,t){t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},S=function(e,t,n){void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=function(e){return e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e}},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,13],"./ion-alert.entry.js":["Q8AI",0,14],"./ion-app_8.entry.js":["hgI1",0,15],"./ion-avatar_3.entry.js":["CfoV",0,16],"./ion-back-button.entry.js":["Nt02",0,17],"./ion-backdrop.entry.js":["Q2Bp",18],"./ion-button_2.entry.js":["0Pbj",0,19],"./ion-card_5.entry.js":["ydQj",0,20],"./ion-checkbox.entry.js":["4fMi",0,21],"./ion-chip.entry.js":["czK9",0,22],"./ion-col_3.entry.js":["/CAe",23],"./ion-datetime_3.entry.js":["WgF3",0,24],"./ion-fab_3.entry.js":["uQcF",0,25],"./ion-img.entry.js":["wHD8",26],"./ion-infinite-scroll_2.entry.js":["2lz6",27],"./ion-input.entry.js":["ercB",0,28],"./ion-item-option_3.entry.js":["MGMP",0,29],"./ion-item_8.entry.js":["9bur",0,30],"./ion-loading.entry.js":["cABk",0,31],"./ion-menu_3.entry.js":["kyFE",0,32],"./ion-modal.entry.js":["TvZU",0,33],"./ion-nav_2.entry.js":["vnES",0,34],"./ion-popover.entry.js":["qCuA",0,35],"./ion-progress-bar.entry.js":["0tOe",0,36],"./ion-radio_2.entry.js":["h11V",0,37],"./ion-range.entry.js":["XGij",0,38],"./ion-refresher_2.entry.js":["nYbb",0,39],"./ion-reorder_2.entry.js":["smMY",0,40],"./ion-ripple-effect.entry.js":["STjf",41],"./ion-route_4.entry.js":["k5eQ",0,42],"./ion-searchbar.entry.js":["OR5t",0,43],"./ion-segment_2.entry.js":["fSgp",0,44],"./ion-select_3.entry.js":["lfGF",0,45],"./ion-slide_2.entry.js":["5xYT",46],"./ion-spinner.entry.js":["nI0H",0,47],"./ion-split-pane.entry.js":["NAQR",48],"./ion-tab-bar_2.entry.js":["knkW",0,49],"./ion-tab_2.entry.js":["TpdJ",0,50],"./ion-text.entry.js":["ISmu",0,51],"./ion-textarea.entry.js":["U7LX",0,52],"./ion-toast.entry.js":["L3sA",0,53],"./ion-toggle.entry.js":["IUOf",0,54],"./ion-virtual-scroll.entry.js":["8Mb5",55]};function r(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id="kLfG",e.exports=r},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.15","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","engines":{"npm":"6.14.5","node":"14.4.0"},"scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"3.1.0","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return d}),n.d(t,"shadow",function(){return a});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e){return document.querySelector(e+".ion-cloned-element")},a=function(e){return e.shadowRoot||e},s=function(e){var t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){var i=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=i?i.querySelector(n):null}return e.querySelector(n)},l=function(e,t){var n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),i=[];if(null!=n){var r=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=r&&(i=r.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");var o,a=R(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.closest("ion-header"),u=l&&!l.classList.contains("header-collapse-condense-inactive"),c=s.querySelector("ion-back-button"),d=s.classList.contains("buttons-collapse"),h="start"===s.slot||""===s.slot;if(null!==c&&h&&(d&&u&&t||!d))return c}}catch(f){a.e(f)}finally{a.f()}return null},u=function(e,t,n,r,s,l){var u=t?"calc(100% - ".concat(l.right+4,"px)"):l.left-4+"px",c=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",f=t?"right":"left",p=t?"left":"right",g=n?[{offset:0,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")},{offset:1,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")}],v=n?[{offset:0,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.2,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")}],m=Object(i.a)(),y=Object(i.a)(),b=o("ion-back-button"),w=a(b).querySelector(".button-text"),k=a(b).querySelector("ion-icon");b.text=r.text,b.mode=r.mode,b.icon=r.icon,b.color=r.color,b.disabled=r.disabled,b.style.setProperty("display","block"),b.style.setProperty("position","fixed"),y.addElement(k),m.addElement(w),m.beforeStyles({"transform-origin":f+" center"}).beforeAddWrite(function(){r.style.setProperty("display","none"),b.style.setProperty(f,u)}).afterAddWrite(function(){r.style.setProperty("display",""),b.style.setProperty("display","none"),b.style.removeProperty(f)}).keyframes(g),y.beforeStyles({"transform-origin":p+" center"}).keyframes(v),e.addAnimation([m,y])},c=function(e,t,n,r,a,s){var l=t?"calc(100% - ".concat(a.right,"px)"):a.left+"px",u=t?"-18px":"18px",c=t?"right":"left",d=n?[{offset:0,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.49)")},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")}]:[{offset:0,opacity:.99,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.5)")}],h=o("ion-title"),f=Object(i.a)();h.innerText=r.innerText,h.size=r.size,h.color=r.color,f.addElement(h),f.beforeStyles(B({"transform-origin":c+" center",height:"46px",display:"",position:"relative"},c,l)).beforeAddWrite(function(){r.style.setProperty("display","none")}).afterAddWrite(function(){r.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(d),e.addAnimation(f)},d=function(e,t){try{var n="opacity",o="transform",d="0%",h="rtl"===e.ownerDocument.dir,f=h?"-99.5%":"99.5%",p=h?"33%":"-33%",g=t.enteringEl,v=t.leavingEl,m="back"===t.direction,y=g.querySelector(":scope > ion-content"),b=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=g.querySelectorAll(":scope > ion-header > ion-toolbar"),k=Object(i.a)(),x=Object(i.a)();if(k.addElement(g).duration(t.duration||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){var _=Object(i.a)();_.addElement(e),k.addAnimation(_)}if(y||0!==w.length||0!==b.length?(x.addElement(y),x.addElement(b)):x.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(x),m?x.beforeClearStyles([n]).fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.8,1):x.beforeClearStyles([n]).fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),y){var A=a(y).querySelector(".transition-effect");if(A){var C=A.querySelector(".transition-cover"),S=A.querySelector(".transition-shadow"),E=Object(i.a)(),P=Object(i.a)(),O=Object(i.a)();E.addElement(A).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),P.addElement(C).beforeClearStyles([n]).fromTo(n,0,.1),O.addElement(S).beforeClearStyles([n]).fromTo(n,.03,.7),E.addAnimation([P,O]),x.addAnimation([E])}}var D=g.querySelector("ion-header.header-collapse-condense"),I=function(e,t,n,i,r){var o=l(i,n),a=s(r),d=s(i),h=l(r,n),f=null!==o&&null!==a&&!n,p=null!==d&&null!==h&&n;if(f){var g=a.getBoundingClientRect(),v=o.getBoundingClientRect();c(e,t,n,a,g,v),u(e,t,n,o,g,v)}else if(p){var m=d.getBoundingClientRect(),y=h.getBoundingClientRect();c(e,t,n,d,m,y),u(e,t,n,h,m,y)}return{forward:f,backward:p}}(k,h,m,g,v),T=I.forward,M=I.backward;if(w.forEach(function(e){var t=Object(i.a)();t.addElement(e),k.addAnimation(t);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var o,s=Object(i.a)(),l=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive");o=l.filter(m?function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t}:function(e){return!e.classList.contains("buttons-collapse")}),s.addElement(o);var g=Object(i.a)();g.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var v=Object(i.a)();v.addElement(a(e).querySelector(".toolbar-background"));var y=Object(i.a)(),b=e.querySelector("ion-back-button");if(b&&y.addElement(b),t.addAnimation([r,s,g,v,y]),s.fromTo(n,.01,1),g.fromTo(n,.01,1),m)c||r.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")),y.fromTo(n,.01,1);else if(D||r.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),v.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?v.fromTo("transform",h?"translateX(-100%)":"translateX(100%)","translateX(0px)"):v.fromTo(n,.01,"var(--opacity)"),T||y.fromTo(n,.01,1),b&&!T){var w=Object(i.a)();w.addElement(a(b).querySelector(".button-text")).fromTo("transform",h?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(w)}}),v){var B=Object(i.a)(),R=v.querySelector(":scope > ion-content"),L=v.querySelectorAll(":scope > ion-header > ion-toolbar"),F=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(R||0!==L.length||0!==F.length?(B.addElement(R),B.addElement(F)):B.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(B),m){B.beforeClearStyles([n]).fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)");var N=Object(r.g)(v);k.afterAddWrite(function(){"normal"===k.getDirection()&&N.style.setProperty("display","none")})}else B.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,1,.8);if(R){var V=a(R).querySelector(".transition-effect");if(V){var z=V.querySelector(".transition-cover"),j=V.querySelector(".transition-shadow"),H=Object(i.a)(),U=Object(i.a)(),W=Object(i.a)();H.addElement(V).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),U.addElement(z).beforeClearStyles([n]).fromTo(n,.1,0),W.addElement(j).beforeClearStyles([n]).fromTo(n,.7,.03),H.addAnimation([U,W]),B.addAnimation([H])}}L.forEach(function(e){var t=Object(i.a)();t.addElement(e);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var s=Object(i.a)(),l=e.querySelectorAll("ion-buttons,[menuToggle]"),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive"),f=Array.from(l).filter(function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t});s.addElement(f);var g=Object(i.a)(),v=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");v.length>0&&g.addElement(v);var y=Object(i.a)();y.addElement(a(e).querySelector(".toolbar-background"));var b=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([r,s,g,b,y]),k.addAnimation(t),b.fromTo(n,.99,0),s.fromTo(n,.99,0),g.fromTo(n,.99,0),m){if(c||r.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)").fromTo(n,.99,0),g.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?y.fromTo("transform","translateX(0px)",h?"translateX(-100%)":"translateX(100%)"):y.fromTo(n,"var(--opacity)",0),w&&!M){var x=Object(i.a)();x.addElement(a(w).querySelector(".button-text")).fromTo("transform","translateX(".concat(d,")"),"translateX(".concat((h?-124:124)+"px",")")),t.addAnimation(x)}}else c||r.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,.99,0).afterClearStyles([o,n]),g.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).afterClearStyles([o,n]),b.afterClearStyles([n]),r.afterClearStyles([n]),s.afterClearStyles([n])})}return k}catch(G){throw G}}},"m9/o":function(n,k,S){"use strict";S.r(k);var P={};function T(e){return"function"==typeof e}S.r(P),S.d(P,"Any",function(){return nq}),S.d(P,"BaseBlock",function(){return QW}),S.d(P,"BaseStringBlock",function(){return JW}),S.d(P,"BitString",function(){return vG}),S.d(P,"BmpString",function(){return FG}),S.d(P,"Boolean",function(){return hG}),S.d(P,"CharacterString",function(){return ZG}),S.d(P,"Choice",function(){return iq}),S.d(P,"Constructed",function(){return sG}),S.d(P,"DATE",function(){return XG}),S.d(P,"DateTime",function(){return $G}),S.d(P,"Duration",function(){return eq}),S.d(P,"EndOfContent",function(){return uG}),S.d(P,"Enumerated",function(){return xG}),S.d(P,"GeneralString",function(){return YG}),S.d(P,"GeneralizedTime",function(){return QG}),S.d(P,"GraphicString",function(){return GG}),S.d(P,"HexBlock",function(){return WW}),S.d(P,"IA5String",function(){return WG}),S.d(P,"Integer",function(){return kG}),S.d(P,"Null",function(){return cG}),S.d(P,"NumericString",function(){return zG}),S.d(P,"ObjectIdentifier",function(){return CG}),S.d(P,"OctetString",function(){return pG}),S.d(P,"Primitive",function(){return iG}),S.d(P,"PrintableString",function(){return jG}),S.d(P,"RawData",function(){return oq}),S.d(P,"RelativeObjectIdentifier",function(){return PG}),S.d(P,"Repeated",function(){return rq}),S.d(P,"Sequence",function(){return OG}),S.d(P,"Set",function(){return DG}),S.d(P,"TIME",function(){return tq}),S.d(P,"TeletexString",function(){return HG}),S.d(P,"TimeOfDay",function(){return JG}),S.d(P,"UTCTime",function(){return KG}),S.d(P,"UniversalString",function(){return VG}),S.d(P,"Utf8String",function(){return RG}),S.d(P,"ValueBlock",function(){return qW}),S.d(P,"VideotexString",function(){return UG}),S.d(P,"ViewWriter",function(){return zW}),S.d(P,"VisibleString",function(){return qG}),S.d(P,"compareSchema",function(){return aq}),S.d(P,"fromBER",function(){return oG}),S.d(P,"verifySchema",function(){return sq});var H=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else H&&console.log("RxJS: Back to a better error behavior. Thank you. <3");H=e},get useDeprecatedSynchronousErrorHandling(){return H}};function q(e){setTimeout(function(){throw e},0)}var K={closed:!0,next:function(e){},error:function(e){if(W.useDeprecatedSynchronousErrorHandling)throw e;q(e)},complete:function(){}},Q=Array.isArray||function(e){return e&&"number"==typeof e.length};function X(e){return null!==e&&"object"==typeof e}var J,ee=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),te=((J=function(){function e(t){Z(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return Y(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(T(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(c){t=c instanceof ee?ne(c.errors):[c]}}if(Q(o))for(var s=-1,l=o.length;++s<l;){var u=o[s];if(X(u))try{u.unsubscribe()}catch(c){t=t||[],c instanceof ee?t=t.concat(ne(c.errors)):t.push(c)}}if(t)throw new ee(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new J),J);function ne(e){return e.reduce(function(e,t){return e.concat(t instanceof ee?t.errors:t)},[])}var ie="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),re=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;switch(Z(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=K;break;case 1:if(!e){o.destination=K;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(I(o))):(o.syncErrorThrowable=!0,o.destination=new oe(I(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new oe(I(o),e,i,r)}return o}return Y(n,[{key:ie,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,C(M(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(te),oe=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a,s;Z(this,n),(a=t.call(this))._parentSubscriber=e;var l=I(a);return T(i)?s=i:i&&(s=i.next,r=i.error,o=i.complete,i!==K&&(T((l=Object.create(i)).unsubscribe)&&a.add(l.unsubscribe.bind(l)),l.unsubscribe=a.unsubscribe.bind(I(a)))),a._context=l,a._next=s,a._error=r,a._complete=o,a}return Y(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;W.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=W.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):q(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;q(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};W.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),W.useDeprecatedSynchronousErrorHandling)throw n;q(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!W.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return W.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(q(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(re),ae="function"==typeof Symbol&&Symbol.observable||"@@observable";function se(e){return e}var le,ue=((le=function(){function e(t){Z(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Y(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof re)return e;if(e[ie])return e[ie]()}return e||t||n?new re(e,t,n):new re(K)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||W.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),W.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){W.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof re?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=ce(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:ae,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(i=t).length?se:1===i.length?i[0]:function(e){return i.reduce(function(e,t){return t(e)},e)})(this);var i}},{key:"toPromise",value:function(e){var t=this;return new(e=ce(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}()).create=function(e){return new le(e)},le);function ce(e){if(e||(e=W.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var de,he=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),fe=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return Y(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(te),pe=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e)).destination=e,i}return Y(n)}(re),ge=((de=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Y(n,[{key:ie,value:function(){return new pe(this)}},{key:"lift",value:function(e){var t=new ve(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new he;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new he;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new he;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new he;return C(M(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new he;return this.hasError?(e.error(this.thrownError),te.EMPTY):this.isStopped?(e.complete(),te.EMPTY):(this.observers.push(e),new fe(this,e))}},{key:"asObservable",value:function(){var e=new ue;return e.source=this,e}}]),n}(ue)).create=function(e,t){return new ve(e,t)},de),ve=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).destination=e,r.source=i,r}return Y(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):te.EMPTY}}]),n}(ge);function me(e){return e&&"function"==typeof e.schedule}function ye(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new be(e,t))}}var be=function(){function e(t,n){Z(this,e),this.project=t,this.thisArg=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new we(e,this.project,this.thisArg))}}]),e}(),we=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||I(o),o}return Y(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(re),ke=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};var xe="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",_e=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ae(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Ce=function(e){if(e&&"function"==typeof e[ae])return i=e,function(e){var t=i[ae]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(_e(e))return ke(e);if(Ae(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,q),e};if(e&&"function"==typeof e[xe])return t=e,function(e){for(var n=t[xe]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i,r=X(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(r," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function Se(e,t){return new ue(function(n){var i=new te,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function Ee(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[ae]}(e))return function(e,t){return new ue(function(n){var i=new te;return i.add(t.schedule(function(){var r=e[ae]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Ae(e))return function(e,t){return new ue(function(n){var i=new te;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(_e(e))return Se(e,t);if(function(e){return e&&"function"==typeof e[xe]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new ue(function(n){var i,r=new te;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[xe](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}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 ue?e:new ue(Ce(e))}var Pe=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).parent=e,i}return Y(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(re),Oe=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(re);function De(e,t){if(!t.closed)return e instanceof ue?e.subscribe(t):Ce(e)(t)}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(Ie(function(n,i){return Ee(e(n,i)).pipe(ye(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Te(e,n))})}var Te=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Z(this,e),this.project=t,this.concurrent=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Me(e,this.project,this.concurrent))}}]),e}(),Me=function(e){E(n,e);var t=O(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Z(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return Y(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new Pe(this),n=this.destination;n.add(t);var i=De(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Oe);function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Ie(se,e)}function Re(e,t){return t?Se(e,t):new ue(ke(e))}function Le(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return me(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof ue?t[0]:Be(i)(Re(t,r))}function Fe(){return function(e){return e.lift(new Ve(e))}}var Ne,Ve=function(){function e(t){Z(this,e),this.connectable=t}return Y(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new ze(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),ze=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).connectable=i,r}return Y(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(re),je=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return Y(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new te).add(this.source.subscribe(new Ue(this.getSubject(),this))),e.closed&&(this._connection=null,e=te.EMPTY)),e}},{key:"refCount",value:function(){return Fe()(this)}}]),n}(ue),He={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(Ne=je.prototype)._subscribe},_isComplete:{value:Ne._isComplete,writable:!0},getSubject:{value:Ne.getSubject},connect:{value:Ne.connect},refCount:{value:Ne.refCount}},Ue=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).connectable=i,r}return Y(n,[{key:"_error",value:function(e){this._unsubscribe(),C(M(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),C(M(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(pe);function We(){return new ge}function Ge(){return function(e){return Fe()((t=We,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,He);return i.source=e,i.subjectFactory=n,i})(e));var t}}function qe(e){for(var t in e)if(e[t]===qe)return t;throw Error("Could not find renamed property on target object.")}function Ye(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ze(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ze).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ke(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Qe=qe({__forward_ref__:qe});function Xe(e){return e.__forward_ref__=Xe,e.toString=function(){return Ze(this())},e}function Je(e){return $e(e)?e():e}function $e(e){return"function"==typeof e&&e.hasOwnProperty(Qe)&&e.__forward_ref__===Xe}var et=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return Y(n)}(_(Error));function tt(e){return"string"==typeof e?e:null==e?"":String(e)}function nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tt(e)}function it(e,t){var n=t?" in "+t:"";throw new et("201","No provider for ".concat(nt(e)," found").concat(n))}function rt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var ot=rt;function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function st(e){return lt(e,dt)||lt(e,ft)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function ut(e){return e&&(e.hasOwnProperty(ht)||e.hasOwnProperty(pt))?e[ht]:null}var ct,dt=qe({"\u0275prov":qe}),ht=qe({"\u0275inj":qe}),ft=qe({ngInjectableDef:qe}),pt=qe({ngInjectorDef:qe}),gt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function vt(e){var t=ct;return ct=e,t}function mt(e,t,n){var i=st(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&gt.Optional?null:void 0!==t?t:void it(Ze(e),"Injector")}function yt(e){return{toString:e}.toString()}var bt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),wt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),kt="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,_t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Ct=kt||At||xt||_t,St={},Et=[],Pt=[],Ot=qe({"\u0275cmp":qe}),Dt=qe({"\u0275dir":qe}),It=qe({"\u0275pipe":qe}),Tt=qe({"\u0275mod":qe}),Mt=qe({"\u0275loc":qe}),Bt=qe({"\u0275fac":qe}),Rt=qe({__NG_ELEMENT_ID__:qe}),Lt=0;function Ft(e){return yt(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Pt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,id:"c",styles:e.styles||Pt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=Lt++,n.inputs=Ht(e.inputs,t),n.outputs=Ht(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Nt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Vt)}:null,n})}function Nt(e){return Gt(e)||function(e){return e[Dt]||null}(e)}function Vt(e){return function(e){return e[It]||null}(e)}var zt={};function jt(e){var t={type:e.type,bootstrap:e.bootstrap||Pt,declarations:e.declarations||Pt,imports:e.imports||Pt,exports:e.exports||Pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&yt(function(){zt[e.id]=e.type}),t}function Ht(e,t){if(null==e)return St;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var Ut=Ft;function Wt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gt(e){return e[Ot]||null}function qt(e,t){var n=e[Tt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Ze(e)," does not have '\u0275mod' property."));return n}function Yt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Zt(e){return Array.isArray(e)&&!0===e[1]}function Kt(e){return 0!=(8&e.flags)}function Qt(e){return 2==(2&e.flags)}function Xt(e){return 1==(1&e.flags)}function Jt(e){return null!==e.template}function $t(e,t){return e.hasOwnProperty(Bt)?e[Bt]:null}var en=function(){function e(t,n,i){Z(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return Y(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function tn(){return nn}function nn(e){return e.type.prototype.ngOnChanges&&(e.setInput=on),rn}function rn(){var e=an(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===St)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function on(e,t,n,i){var r=an(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:St,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new en(l&&l.currentValue,t,a===St),e[i]=t}function an(e){return e.__ngSimpleChanges__||null}tn.ngInherit=!0;var sn=void 0;function ln(){return void 0!==sn?sn:"undefined"!=typeof document?document:void 0}function un(e){return!!e.listen}var cn={createRenderer:function(e,t){return ln()}};function dn(e){for(;Array.isArray(e);)e=e[0];return e}function hn(e,t){return dn(t[e])}function fn(e,t){return dn(t[e.index])}function pn(e,t){return e.data[t]}function gn(e,t){return e[t]}function vn(e,t){var n=t[e];return Yt(n)?n:n[0]}function mn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function yn(e){return 4==(4&e[2])}function bn(e){return 128==(128&e[2])}function wn(e,t){return null==t?null:e[t]}function kn(e){e[18]=0}function xn(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var _n={lFrame:Yn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function An(){return _n.bindingsEnabled}function Cn(){return _n.lFrame.lView}function Sn(){return _n.lFrame.tView}function En(e){_n.lFrame.contextLView=e}function Pn(){for(var e=On();null!==e&&64===e.type;)e=e.parent;return e}function On(){return _n.lFrame.currentTNode}function Dn(e,t){var n=_n.lFrame;n.currentTNode=e,n.isParent=t}function In(){return _n.lFrame.isParent}function Tn(){_n.lFrame.isParent=!1}function Mn(){return _n.isInCheckNoChangesMode}function Bn(e){_n.isInCheckNoChangesMode=e}function Rn(){var e=_n.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ln(){return _n.lFrame.bindingIndex}function Fn(){return _n.lFrame.bindingIndex++}function Nn(e){var t=_n.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Vn(e){_n.lFrame.currentDirectiveIndex=e}function zn(e){var t=_n.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function jn(){return _n.lFrame.currentQueryIndex}function Hn(e){_n.lFrame.currentQueryIndex=e}function Un(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wn(e,t,n){if(n&gt.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&gt.Host||(i=Un(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=_n.lFrame=qn();return o.currentTNode=t,o.lView=e,!0}function Gn(e){var t=qn(),n=e[1];_n.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qn(){var e=_n.lFrame,t=null===e?null:e.child;return null===t?Yn(e):t}function Yn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Zn(){var e=_n.lFrame;return _n.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Kn=Zn;function Qn(){var e=Zn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Xn(){return _n.lFrame.selectedIndex}function Jn(e){_n.lFrame.selectedIndex=e}function $n(){var e=_n.lFrame;return pn(e.tView,e.selectedIndex)}function ei(){_n.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ti(){_n.lFrame.currentNamespace=null}function ni(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,u=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function ii(e,t,n){ai(e,t,3,n)}function ri(e,t,n,i){(3&e[2])===n&&ai(e,t,n,i)}function oi(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ai(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(si(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function si(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var li=Y(function e(t,n,i){Z(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i});function ui(e,t,n){for(var i=un(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var u=o,c=n[++r];di(u)?i&&e.setProperty(t,u,c):i?e.setAttribute(t,u,c):t.setAttribute(u,c),r++}}return r}function ci(e){return 3===e||4===e||6===e}function di(e){return 64===e.charCodeAt(0)}function hi(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||fi(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function fi(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function pi(e){return-1!==e}function gi(e){return 32767&e}function vi(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var mi=!0;function yi(e){var t=mi;return mi=e,t}var bi=0;function wi(e,t){var n=xi(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ki(i.data,e),ki(t,null),ki(i.blueprint,null));var r=_i(e,t),o=e.injectorIndex;if(pi(r))for(var a=gi(r),s=vi(r,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=r,o}function ki(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xi(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _i(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ai(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Rt)&&(i=n[Rt]),null==i&&(i=n[Rt]=bi++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Ci(e,t,n){if(n&gt.Optional)return e;it(t,"NodeInjector")}function Si(e,t,n,i){if(n&gt.Optional&&void 0===i&&(i=null),0==(n&(gt.Self|gt.Host))){var r=e[9],o=vt(void 0);try{return r?r.get(t,i,n&gt.Optional):mt(t,i,n&gt.Optional)}finally{vt(o)}}return Ci(i,t,n)}function Ei(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Rt)?e[Rt]:void 0;return"number"==typeof t?t>=0?255&t:Oi:t}(n);if("function"==typeof o){if(!Wn(t,e,i))return i&gt.Host?Ci(r,n,i):Si(t,n,i,r);try{var a=o();if(null!=a||i&gt.Optional)return a;it(n)}finally{Kn()}}else if("number"==typeof o){var s=null,l=xi(e,t),u=-1,c=i&gt.Host?t[16][6]:null;for((-1===l||i&gt.SkipSelf)&&(-1!==(u=-1===l?_i(e,t):t[l+8])&&Bi(i,!1)?(s=t[1],l=gi(u),t=vi(u,t)):l=-1);-1!==l;){var d=t[1];if(Mi(o,l,d.data)){var h=Di(l,t,n,s,i,c);if(h!==Pi)return h}-1!==(u=t[l+8])&&Bi(i,t[1].data[l+8]===c)&&Mi(o,l,t)?(s=d,l=gi(u),t=vi(u,t)):l=-1}}}return Si(t,n,i,r)}var Pi={};function Oi(){return new Ri(Pn(),Cn())}function Di(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],l=Ii(s,a,n,null==i?Qt(s)&&mi:i!=a&&0!=(3&s.type),r&gt.Host&&o===s);return null!==l?Ti(t,a,l,s):Pi}function Ii(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,u=o>>20,c=r?s+u:e.directiveEnd,d=i?s:s+u;d<c;d++){var h=a[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(r){var f=a[l];if(f&&Jt(f)&&f.type===n)return l}return null}function Ti(e,t,n,i){var r=e[n],o=t.data;if(r instanceof li){var a=r;a.resolving&&function(e,t){throw new et("200","Circular dependency in DI detected for "+e)}(nt(o[n]));var s=yi(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?vt(a.injectImpl):null;Wn(e,i,gt.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=nn(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==l&&vt(l),yi(s),a.resolving=!1,Kn()}}return r}function Mi(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Bi(e,t){return!(e&gt.Self||e&gt.Host&&t)}var Ri=function(){function e(t,n){Z(this,e),this._tNode=t,this._lView=n}return Y(e,[{key:"get",value:function(e,t){return Ei(this._tNode,this._lView,e,void 0,t)}}]),e}();function Li(e){return yt(function(){for(var t=e.prototype.constructor,n=t[Bt]||Fi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[Bt]||Fi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function Fi(e){return $e(e)?function(){var t=Fi(Je(e));return t&&t()}:$t(e)}function Ni(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(ci(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(Pn(),e)}function Vi(e,t,n){return yt(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=A(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var zi=Vi("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return Ni(e)}}}),ji=function(){function e(t,n){Z(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=rt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return Y(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),Hi=new ji("AnalyzeForEntryComponents"),Ui=Function;function Wi(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Wi(i,t)):t!==e&&t.push(i)}return t}function Gi(e,t){e.forEach(function(e){return Array.isArray(e)?Gi(e,t):t(e)})}function qi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Yi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zi(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ki(e,t,n){var i=Xi(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Qi(e,t){var n=Xi(e,t);if(n>=0)return e[1|n]}function Xi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Ji={},$i=/\n/gm,er=qe({provide:String,useValue:qe}),tr=void 0;function nr(e){var t=tr;return tr=e,t}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt.Default;if(void 0===tr)throw new Error("inject() must be called from an injection context");return null===tr?mt(e,void 0,t):tr.get(e,t&gt.Optional?null:void 0,t)}function rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt.Default;return(ct||ir)(Je(e),t)}var or=rr;function ar(e){for(var t=[],n=0;n<e.length;n++){var i=Je(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=gt.Default,a=0;a<i.length;a++){var s=i[a],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:o|=l:r=s}t.push(rr(r,o))}else t.push(rr(i))}return t}function sr(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var lr,ur,cr=sr(Vi("Inject",function(e){return{token:e}}),-1),dr=sr(Vi("Optional"),8),hr=sr(Vi("SkipSelf"),4);function fr(e){var t;return(null===(t=function(){if(void 0===lr&&(lr=null,Ct.trustedTypes))try{lr=Ct.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return lr}())||void 0===t?void 0:t.createHTML(e))||e}function pr(e){var t;return(null===(t=function(){if(void 0===ur&&(ur=null,Ct.trustedTypes))try{ur=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return ur}())||void 0===t?void 0:t.createHTML(e))||e}var gr=function(){function e(t){Z(this,e),this.changingThisBreaksApplicationSecurity=t}return Y(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}]),e}(),vr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(gr),mr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(gr),yr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(gr),br=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(gr),wr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(gr);function kr(e){return e instanceof gr?e.changingThisBreaksApplicationSecurity:e}function xr(e,t){var n=_r(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function _r(e){return e instanceof gr&&e.getTypeName()||null}var Ar=function(){function e(t){Z(this,e),this.inertDocumentHelper=t}return Y(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(fr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Cr=function(){function e(t){if(Z(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return Y(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=fr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=fr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),Sr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Er=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Pr(e){return(e=String(e)).match(Sr)||e.match(Er)?e:"unsafe:"+e}function Or(e){var t,n={},i=R(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function Dr(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var Ir,Tr=Or("area,br,col,hr,img,wbr"),Mr=Or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Br=Or("rp,rt"),Rr=Dr(Br,Mr),Lr=Dr(Tr,Dr(Mr,Or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dr(Br,Or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Rr),Fr=Or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Nr=Or("srcset"),Vr=Dr(Fr,Nr,Or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),zr=Or("script,style,template"),jr=function(){function e(){Z(this,e),this.sanitizedSomething=!1,this.buf=[]}return Y(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!Lr.hasOwnProperty(t))return this.sanitizedSomething=!0,!zr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(Vr.hasOwnProperty(s)){var l=o.value;Fr[s]&&(l=Pr(l)),Nr[s]&&(n=l,l=(n=String(n)).split(",").map(function(e){return Pr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',Wr(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Lr.hasOwnProperty(t)&&!Tr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Wr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),Hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function Wr(e){return e.replace(/&/g,"&amp;").replace(Hr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gr(e,t){var n=null;try{Ir=Ir||function(e){var t=new Cr(e);return function(){try{return!!(new window.DOMParser).parseFromString(fr(""),"text/html")}catch(e){return!1}}()?new Ar(t):t}(e);var i=t?String(t):"";n=Ir.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ir.getInertBodyElement(i)}while(i!==o);return fr((new jr).sanitizeChildren(qr(n)||n))}finally{if(n)for(var a=qr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function qr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Yr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Zr(e){var t=Qr();return t?pr(t.sanitize(Yr.HTML,e)||""):xr(e,"HTML")?pr(kr(e)):Gr(ln(),tt(e))}function Kr(e){var t=Qr();return t?t.sanitize(Yr.URL,e)||"":xr(e,"URL")?kr(e):Pr(tt(e))}function Qr(){var e=Cn();return e&&e[12]}function Xr(e){return e.ngDebugContext}function Jr(e){return e.ngOriginalError}function $r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var eo=function(){function e(){Z(this,e),this._console=console}return Y(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||$r}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Xr(e)?Xr(e):this._findContext(Jr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Jr(e);t&&Jr(t);)t=Jr(t);return t}}]),e}();function to(e,t){e.__ngContext__=t}var no=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ct);function io(e){return{name:"window",target:e.ownerDocument.defaultView}}function ro(e){return{name:"body",target:e.ownerDocument.body}}function oo(e){return e instanceof Function?e():e}var ao=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function so(e,t){return(void 0)(e,t)}function lo(e){var t=e[3];return Zt(t)?t[3]:t}function uo(e){return ho(e[13])}function co(e){return ho(e[4])}function ho(e){for(;null!==e&&!Zt(e);)e=e[4];return e}function fo(e,t,n,i,r){if(null!=i){var o,a=!1;Zt(i)?o=i:Yt(i)&&(a=!0,i=i[0]);var s=dn(i);0===e&&null!==n?null==r?ko(t,n,s):wo(t,n,s,r||null,!0):1===e&&null!==n?wo(t,n,s,r||null,!0):2===e?function(e,t,n){var i=_o(e,t);i&&function(e,t,n,i){un(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==dn(n)&&fo(t,e,i,o,r);for(var a=10;a<n.length;a++){var s=n[a];Io(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function po(e,t,n){return un(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function go(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,xn(r,-1)),n.splice(i,1)}function vo(e,t){if(!(e.length<=10)){var n,i=10+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&go(o,r),t>0&&(e[i-1][4]=r[4]);var a=Yi(e,10+t);Io(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function mo(e,t){if(!(256&t[2])){var n=t[11];un(n)&&n.destroyNode&&Io(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return yo(e[1],e);for(;t;){var n=null;if(Yt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Yt(t)&&yo(t[1],t),t=t[3];null===t&&(t=e),Yt(t)&&yo(t[1],t),n=t&&t[4]}t=n}}(t)}}function yo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof li)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):dn(t[a]),l=i[r=n[o+2]],u=n[o+3];"boolean"==typeof u?s.removeEventListener(n[o],l,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var d=r+1;d<i.length;d++)(0,i[d])();t[7]=null}}(e,t),1===t[1].type&&un(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Zt(t[3])){n!==t[3]&&go(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function bo(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===wt.None||r===wt.Emulated)return null}return fn(i,n)}(e,t.parent,n)}function wo(e,t,n,i,r){un(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function ko(e,t,n){un(e)?e.appendChild(t,n):t.appendChild(n)}function xo(e,t,n,i,r){null!==i?wo(e,t,n,i,r):ko(e,t,n)}function _o(e,t){return un(e)?e.parentNode(t):t.parentNode}function Ao(e,t,n){return Co(e,t,n)}var Co=function(e,t,n){return 40&e.type?fn(e,n):null};function So(e,t,n,i){var r=bo(e,i,t),o=t[11],a=Ao(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)xo(o,r,n[s],a,!1);else xo(o,r,n,a,!1)}function Eo(e,t){if(null!==t){var n=t.type;if(3&n)return fn(t,e);if(4&n)return Oo(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return Eo(e,i);var r=e[t.index];return Zt(r)?Oo(-1,r):dn(r)}if(32&n)return so(t,e)()||dn(e[t.index]);var o=Po(e,t);return null!==o?Array.isArray(o)?o[0]:Eo(lo(e[16]),o):Eo(e,t.next)}return null}function Po(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Oo(e,t){var n=10+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return Eo(i,r)}return t[7]}function Do(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],l=n.type;if(a&&0===t&&(s&&to(dn(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)Do(e,t,n.child,i,r,o,!1),fo(t,e,r,s,o);else if(32&l){for(var u=so(n,i),c=void 0;c=u();)fo(t,e,r,c,o);fo(t,e,r,s,o)}else 16&l?To(e,t,i,n,r,o):fo(t,e,r,s,o);n=a?n.projectionNext:n.next}}function Io(e,t,n,i,r,o){Do(n,i,e.firstChild,t,r,o,!1)}function To(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)fo(t,e,r,s[l],o);else Do(e,t,s,a[3],r,o,!0)}function Mo(e,t,n){un(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Bo(e,t,n){un(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ro(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}function Lo(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==Ro((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Fo(e){return 4===e.type&&"ng-template"!==e.value}function No(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Vo(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(ci(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!No(e,l,n)||""===l&&1===t.length){if(zo(i))return!1;a=!0}}else{var u=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!Lo(e.attrs,u,n)){if(zo(i))return!1;a=!0}continue}var c=jo(8&i?"class":l,r,Fo(e),n);if(-1===c){if(zo(i))return!1;a=!0;continue}if(""!==u){var d;d=c>o?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==Ro(h,u,0)||2&i&&u!==d){if(zo(i))return!1;a=!0}}}}else{if(!a&&!zo(i)&&!zo(l))return!1;if(a&&zo(l))continue;a=!1,i=l|1&i}}return zo(i)||a}function zo(e){return 0==(1&e)}function jo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Ho(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(Vo(e,t[i],n))return!0;return!1}function Uo(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Wo(e,t){return e?":not("+t.trim()+")":t}function Go(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||zo(a)||(t+=Wo(o,r),r=""),i=a,o=o||!zo(i);n++}return""!==r&&(t+=Wo(o,r)),t}var qo={};function Yo(e){Zo(Sn(),Cn(),Xn()+e,Mn())}function Zo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&ii(t,r,n)}else{var o=e.preOrderHooks;null!==o&&ri(t,o,0,n)}Jn(n)}function Ko(e,t){return e<<17|t<<2}function Qo(e){return e>>17&32767}function Xo(e){return 2|e}function Jo(e){return(131068&e)>>2}function $o(e,t){return-131069&e|t<<2}function ea(e){return 1|e}function ta(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1];if(-1!==o){var a=e.data[o];Hn(r),a.contentQueries(2,t[o],o)}}}function na(e,t,n,i,r,o,a,s,l,u){var c=t.blueprint.slice();return c[0]=r,c[2]=140|i,kn(c),c[3]=c[15]=e,c[8]=n,c[10]=a||e&&e[10],c[11]=s||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function ia(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=On(),a=In(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),_n.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(o=_n.lFrame,a=o.currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return Dn(s,!0),s}function ra(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function oa(e,t,n){Gn(t);try{var i=e.viewQuery;null!==i&&Ra(1,i,n);var r=e.template;null!==r&&la(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&ta(e,t),e.staticViewQueries&&Ra(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)Da(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Qn()}}function aa(e,t,n,i){var r=t[2];if(256!=(256&r)){Gn(t);var o=Mn();try{kn(t),_n.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&la(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&ii(t,s,null)}else{var l=e.preOrderHooks;null!==l&&ri(t,l,0,null),oi(t,0)}if(function(e){for(var t=uo(e);null!==t;t=co(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i],o=r[3];0==(1024&r[2])&&xn(o,1),r[2]|=1024}}(t),function(e){for(var t=uo(e);null!==t;t=co(t))for(var n=10;n<t.length;n++){var i=t[n],r=i[1];bn(i)&&aa(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&ta(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&ii(t,u)}else{var c=e.contentHooks;null!==c&&ri(t,c,1),oi(t,1)}!function(e,t){var n,i,r,o=e.hostBindingOpCodes;if(null!==o)try{for(var a=0;a<o.length;a++){var s=o[a];if(s<0)Jn(~s);else{var l=s,u=o[++a],c=o[++a];n=u,i=l,r=void 0,(r=_n.lFrame).bindingIndex=r.bindingRootIndex=n,Vn(i),c(2,t[l])}}}finally{Jn(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)Pa(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&Ra(2,h,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&ii(t,f)}else{var p=e.viewHooks;null!==p&&ri(t,p,2),oi(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,xn(t[3],-1))}finally{Qn()}}}function sa(e,t,n,i){var r=t[10],o=!Mn(),a=yn(t);try{o&&!a&&r.begin&&r.begin(),a&&oa(e,t,i),aa(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function la(e,t,n,i,r){var o=Xn();try{Jn(-1),2&i&&t.length>20&&Zo(e,t,20,Mn()),n(i,r)}finally{Jn(o)}}function ua(e,t,n){if(Kt(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function ca(e,t,n){An()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||wi(n,t),to(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var l=e.data[s],u=Jt(l);u&&Aa(t,n,l);var c=Ti(t,e,s,n);to(c,t),null!==a&&Ca(0,s-r,c,l,0,a),u&&(vn(n.index,t)[8]=c)}}(e,t,n,fn(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=_n.lFrame.currentDirectiveIndex;try{Jn(o);for(var s=i;s<r;s++){var l=e.data[s],u=t[s];Vn(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||ba(l,u)}}finally{Jn(-1),Vn(a)}}(e,t,n))}function da(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function ha(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=fa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function fa(e,t,n,i,r,o,a,s,l,u){var c=20+i,d=c+r,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:qo);return n}(c,d),f="function"==typeof u?u():u;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function pa(e,t,n,i){var r=Fa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Na(e).push(i,r.length-1))}function ga(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function va(e,t,n,i,r,o,a,s){var l,u,c=fn(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(ja(e,n,l,i,r),Qt(t)&&function(e,t){var n=vn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=a?a(r,t.value||"",i):r,un(o)?o.setProperty(c,i,r):di(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function ma(e,t,n,i){var r=!1;if(An()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];Ho(n,a.selectors,!1)&&(r||(r=[]),Ai(wi(n,t),e,a.type),Jt(a)?(wa(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,xa(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var l=o[s];l.providersResolver&&l.providersResolver(l)}for(var u=!1,c=!1,d=ra(e,t,o.length,null),h=0;h<o.length;h++){var f=o[h];n.mergedAttrs=hi(n.mergedAttrs,f.hostAttrs),_a(e,n,t,d,f),ka(d,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),c||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),c=!0),d++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var u=i[l],c=u.inputs,d=null===r||Fo(t)?null:Sa(c,r);o.push(d),a=ga(c,l,a),s=ga(u.outputs,l,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new et("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=hi(n.mergedAttrs,n.attrs),r}function ya(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function ba(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function wa(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ka(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Jt(t)&&(n[""]=e)}}function xa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function _a(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=$t(r.type)),a=new li(o,Jt(r),null);e.blueprint[i]=a,n[i]=a,ya(e,t,0,i,ra(e,n,r.hostVars,qo),r)}function Aa(e,t,n){var i=fn(t,e),r=ha(n),o=e[10],a=Ia(e,na(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function Ca(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,l=0;l<a.length;){var u=a[l++],c=a[l++],d=a[l++];null!==s?i.setInput(n,d,u,c):n[c]=d}}function Sa(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Ea(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Pa(e,t){var n=vn(t,e);if(bn(n)){var i=n[1];80&n[2]?aa(i,n,i.template,n[8]):n[5]>0&&Oa(n)}}function Oa(e){for(var t=uo(e);null!==t;t=co(t))for(var n=10;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];aa(r,i,r.template,i[8])}else i[5]>0&&Oa(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=vn(o[a],e);bn(s)&&s[5]>0&&Oa(s)}}function Da(e,t){var n=vn(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),oa(i,n,n[8])}function Ia(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Ta(e){for(;e;){e[2]|=64;var t=lo(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Ma(e,t,n){var i=t[10];i.begin&&i.begin();try{aa(e,t,e.template,n)}catch(r){throw za(t,r),r}finally{i.end&&i.end()}}function Ba(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=mn(n),r=i[1];sa(r,i,r.template,n)}}(e[8])}function Ra(e,t,n){Hn(0),t(e,n)}var La=Promise.resolve(null);function Fa(e){return e[7]||(e[7]=[])}function Na(e){return e.cleanup||(e.cleanup=[])}function Va(e,t,n){return(null===e||Jt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function za(e,t){var n=e[9],i=n?n.get(eo,null):null;i&&i.handleError(t)}function ja(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],u=e.data[a];null!==u.setInput?u.setInput(l,r,i,s):l[s]=r}}function Ha(e,t,n){var i=hn(t,e);!function(e,t,n){un(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Ua(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Ke(r,s):2==o&&(i=Ke(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Wa=new ji("INJECTOR",-1),Ga=function(){function e(){Z(this,e)}return Y(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ji;if(t===Ji){var n=new Error("NullInjectorError: No provider for ".concat(Ze(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),qa=new ji("Set Injector scope."),Ya={},Za={},Ka=[],Qa=void 0;function Xa(){return void 0===Qa&&(Qa=new Ga),Qa}function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new $a(e,n,t||Xa(),i)}var $a=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Z(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Gi(n,function(e){return r.processProvider(e,t,n)}),Gi([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(Wa,ns(void 0,this));var s=this.records.get(qa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Ze(t))}return Y(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ji,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt.Default;this.assertNotDestroyed();var i,r=nr(this);try{if(!(n&gt.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof ji)&&st(e);o=a&&this.injectableDefInScope(a)?ns(es(e),Ya):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&gt.Self?Xa():this.parent).get(e,t=n&gt.Optional&&t===Ji?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Ze(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Ze(t);if(Array.isArray(t))r=t.map(Ze).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ze(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace($i,"\n  "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{nr(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Ze(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Je(e)))return!1;var r=ut(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=ut(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{Gi(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,r=t.providers;Gi(r,function(e){return i.processProvider(e,n,r||Ka)})},c=0;c<l.length;c++)u(c)}this.injectorDefTypes.add(a);var d=$t(a)||function(){return new a};this.records.set(a,ns(d,Ya));var h=r.providers;if(null!=h&&!s){var f=e;Gi(h,function(e){return i.processProvider(e,f,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=rs(e=Je(e))?e:Je(e&&e.provide),r=function(e,t,n){return is(e)?ns(void 0,e.useValue):ns(ts(e),Ya)}(e);if(rs(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=ns(void 0,Ya,!0)).factory=function(){return ar(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ya&&(t.value=Za,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function es(e){var t=st(e),n=null!==t?t.factory:$t(e);if(null!==n)return n;if(e instanceof ji)throw new Error("Token ".concat(Ze(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Zi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Ze(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[dt]||e[ft]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ts(e,t,n){var i,r=void 0;if(rs(e)){var o=Je(e);return $t(o)||es(o)}if(is(e))r=function(){return Je(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,V(ar(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return rr(Je(e.useExisting))};else{var a=Je(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return $t(a)||es(a);r=function(){return A(a,V(ar(e.deps)))}}return r}function ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function is(e){return null!==e&&"object"==typeof e&&er in e}function rs(e){return"function"==typeof e}var os=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ja(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},as=function(){var e=function(){function e(){Z(this,e)}return Y(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?os(e,t,""):os(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ji,e.NULL=new Ga,e.\u0275prov=rt({token:e,providedIn:"any",factory:function(){return rr(Wa)}}),e.__NG_ELEMENT_ID__=-1,e}();function ss(e,t){ni(mn(e)[1],Pn())}function ls(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Jt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=us(e.inputs),o.declaredInputs=us(e.declaredInputs),o.outputs=us(e.outputs);var a=r.hostBindings;a&&hs(e,a);var s=r.viewQuery,l=r.contentQueries;if(s&&cs(e,s),l&&ds(e,l),Ye(e.inputs,r.inputs),Ye(e.declaredInputs,r.declaredInputs),Ye(e.outputs,r.outputs),Jt(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d<c.length;d++){var h=c[d];h&&h.ngInherit&&h(e),h===ls&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=hi(r.hostAttrs,n=hi(n,r.hostAttrs))}}(i)}function us(e){return e===St?{}:e===Pt?[]:e}function cs(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function ds(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function hs(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var fs=null;function ps(){if(!fs){var e=Ct.Symbol;if(e&&e.iterator)fs=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(fs=i)}}return fs}var gs=function(){function e(t){Z(this,e),this.wrapped=t}return Y(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function vs(e){return!!ms(e)&&(Array.isArray(e)||!(e instanceof Map)&&ps()in e)}function ms(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ys(e,t,n){return e[t]=n}function bs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ws(e,t,n,i){var r=bs(e,t,n);return bs(e,t+1,i)||r}function ks(e,t,n,i,r){var o=ws(e,t,n,i);return bs(e,t+2,r)||o}function xs(e,t,n,i,r,o){var a=ws(e,t,n,i);return ws(e,t+2,r,o)||a}function _s(e,t,n,i){var r=Cn();return bs(r,Fn(),t)&&(Sn(),function(e,t,n,i,r,o){var a=fn(e,t);!function(e,t,n,i,r,o,a){if(null==o)un(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?tt(o):a(o,i||"",r);un(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}($n(),r,e,t,n,i)),_s}function As(e,t,n,i){return bs(e,Fn(),n)?t+tt(n)+i:qo}function Cs(e,t,n,i,r,o){var a=ws(e,Ln(),n,r);return Nn(2),a?t+tt(n)+i+tt(r)+o:qo}function Ss(e,t,n,i,r,o,a,s){var l=Cn(),u=Sn(),c=e+20,d=u.firstCreatePass?function(e,t,n,i,r,o,a,s,l){var u=t.consts,c=ia(t,e,4,a||null,wn(u,s));ma(t,n,c,wn(u,l)),ni(t,c);var d=c.tViews=fa(2,c,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,i,r,o,a):u.data[c];Dn(d,!1);var h=l[11].createComment("");So(u,l,h,d),to(h,l),Ia(l,l[c]=Ea(h,l,h,d)),Xt(d)&&ca(u,l,d),null!=a&&da(l,d,s)}function Es(e){return gn(_n.lFrame.contextLView,20+e)}function Ps(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt.Default,n=Cn();return null===n?rr(e,t):Ei(Pn(),n,Je(e),t)}function Os(e,t,n){var i=Cn();return bs(i,Fn(),t)&&va(Sn(),$n(),i,e,t,i[11],n,!1),Os}function Ds(e,t,n,i,r){var o=r?"class":"style";ja(e,n,t.inputs[o],o,i)}function Is(e,t,n,i){var r=Cn(),o=Sn(),a=20+e,s=r[11],l=r[a]=po(s,t,_n.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,l=ia(t,e,2,r,wn(s,o));return ma(t,n,l,wn(s,a)),null!==l.attrs&&Ua(l,l.attrs,!1),null!==l.mergedAttrs&&Ua(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(a,o,r,0,t,n,i):o.data[a];Dn(u,!0);var c=u.mergedAttrs;null!==c&&ui(s,l,c);var d=u.classes;null!==d&&Bo(s,l,d);var h=u.styles;null!==h&&Mo(s,l,h),64!=(64&u.flags)&&So(o,r,l,u),0===_n.lFrame.elementDepthCount&&to(l,r),_n.lFrame.elementDepthCount++,Xt(u)&&(ca(o,r,u),ua(o,u,r)),null!==i&&da(r,u)}function Ts(){var e=Pn();In()?Tn():Dn(e=e.parent,!1);var t=e;_n.lFrame.elementDepthCount--;var n=Sn();n.firstCreatePass&&(ni(n,e),Kt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ds(n,t,Cn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ds(n,t,Cn(),t.stylesWithoutHost,!1)}function Ms(e,t,n,i){Is(e,t,n,i),Ts()}function Bs(e,t,n){var i=Cn(),r=Sn(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=wn(o,i),s=ia(t,e,8,"ng-container",a);return null!==a&&Ua(s,a,!0),ma(t,n,s,wn(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];Dn(a,!0);var s=i[o]=i[11].createComment("");So(r,i,s,a),to(s,i),Xt(a)&&(ca(r,i,a),ua(r,a,i)),null!=n&&da(i,a)}function Rs(){var e=Pn(),t=Sn();In()?Tn():Dn(e=e.parent,!1),t.firstCreatePass&&(ni(t,e),Kt(e)&&t.queries.elementEnd(e))}function Ls(e,t,n){Bs(e,t,n),Rs()}function Fs(){return Cn()}function Ns(e){return!!e&&"function"==typeof e.then}function Vs(e){return!!e&&"function"==typeof e.subscribe}var zs=Vs;function js(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Cn(),o=Sn(),a=Pn();return Us(o,r,r[11],a,e,t,n,i),js}function Hs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Pn(),o=Cn(),a=Sn();return Us(a,o,Va(zn(a.data),r,o),r,e,t,n,i),Hs}function Us(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Xt(i),u=e.firstCreatePass&&Na(e),c=Fa(t),d=!0;if(3&i.type){var h=fn(i,t),f=s?s(h):St,p=f.target||h,g=c.length,v=s?function(e){return s(dn(e[i.index])).target}:i.index;if(un(n)){var m=null;if(!s&&l&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=Gs(i,t,o,!1);var y=n.listen(f.name||p,r,o);c.push(o,y),u&&u.push(r,v,g,g+1)}}else o=Gs(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),u&&u.push(r,v,g,a)}else o=Gs(i,t,o,!1);var b,w=i.outputs;if(d&&null!==w&&(b=w[r])){var k=b.length;if(k)for(var x=0;x<k;x+=2){var _=t[b[x]][b[x+1]].subscribe(o),A=c.length;c.push(o,_),u&&u.push(r,i.index,A,-(A+1))}}}function Ws(e,t,n){try{return!1!==t(n)}catch(i){return za(e,i),!1}}function Gs(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?vn(e.index,t):t;0==(32&t[2])&&Ta(a);for(var s=Ws(t,n,o),l=r.__ngNextListenerFn__;l;)s=Ws(t,l,o)&&s,l=l.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function qs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(_n.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,_n.lFrame.contextLView))[8]}(e)}function Ys(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?Ho(e,o,!0):Uo(i,o))return r}else n=r}return n}function Zs(e){var t=Cn()[16][6];if(!t.projection)for(var n=t.projection=Zi(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ys(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Cn(),r=Sn(),o=ia(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Tn(),64!=(64&o.flags)&&function(e,t,n){To(t[11],0,t,n,bo(e,n,t),Ao(n.parent||t[6],n,t))}(r,i,o)}function Qs(e,t,n){return Xs(e,"",t,"",n),Qs}function Xs(e,t,n,i,r){var o=Cn(),a=As(o,t,n,i);return a!==qo&&va(Sn(),$n(),o,e,a,o[11],r,!1),Xs}function Js(e,t,n,i,r,o,a){var s=Cn(),l=Cs(s,t,n,i,r,o);return l!==qo&&va(Sn(),$n(),s,e,l,s[11],a,!1),Js}function $s(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Qo(o):Jo(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];el(e[s],t)&&(l=!0,e[s+1]=i?ea(u):Xo(u)),s=i?Qo(u):Jo(u)}l&&(e[n+1]=i?Xo(o):ea(o))}function el(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xi(e,t)>=0}var tl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nl(e){return e.substring(tl.key,tl.keyEnd)}function il(e,t){var n=tl.textEnd;return n===t?-1:(t=tl.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,tl.key=t,n),rl(e,t,n))}function rl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ol(e,t,n){return ul(e,t,n,!1),ol}function al(e,t){return ul(e,t,null,!0),al}function sl(e){cl(Ki,ll,e,!0)}function ll(e,t){for(var n=function(e){return function(e){tl.key=0,tl.keyEnd=0,tl.value=0,tl.valueEnd=0,tl.textEnd=e.length}(e),il(e,rl(e,0,tl.textEnd))}(t);n>=0;n=il(t,n))Ki(e,nl(t),!0)}function ul(e,t,n,i){var r=Cn(),o=Sn(),a=Nn(2);o.firstUpdatePass&&hl(o,e,a,i),t!==qo&&bs(r,a,t)&&gl(o,o.data[Xn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ze(kr(e)))),e}(t,n),i,a)}function cl(e,t,n,i){var r=Sn(),o=Nn(2);r.firstUpdatePass&&hl(r,null,o,i);var a=Cn();if(n!==qo&&bs(a,o,n)){var s=r.data[Xn()];if(yl(s,i)&&!dl(r,o)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ke(l,n||"")),Ds(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===qo&&(r=Et);for(var l=0,u=0,c=0<r.length?r[0]:null,d=0<o.length?o[0]:null;null!==c||null!==d;){var h=l<r.length?r[l+1]:void 0,f=u<o.length?o[u+1]:void 0,p=null,g=void 0;c===d?(l+=2,u+=2,h!==f&&(p=d,g=f)):null===d||null!==c&&c<d?(l+=2,p=c):(u+=2,p=d,g=f),null!==p&&gl(e,t,n,i,p,g,a,s),c=l<r.length?r[l]:null,d=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return Et;var i=[],r=kr(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,o)}}function dl(e,t){return t>=e.expandoStartIndex}function hl(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Xn()],a=dl(e,n);yl(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=zn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=pl(n=fl(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=fl(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Jo(i))return e[Qo(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Qo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=pl(s=fl(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=pl(i,e[o].hostAttrs,n);return pl(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=Qo(a),l=Jo(a);e[i]=n;var u,c=!1;if(Array.isArray(n)){var d=n;(null===(u=d[1])||Xi(d,u)>0)&&(c=!0)}else u=n;if(r)if(0!==l){var h=Qo(e[s+1]);e[i+1]=Ko(h,s),0!==h&&(e[h+1]=$o(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ko(s,0),0!==s&&(e[s+1]=$o(e[s+1],i)),s=i;else e[i+1]=Ko(l,0),0===s?s=i:e[l+1]=$o(e[l+1],i),l=i;c&&(e[i+1]=Xo(e[i+1])),$s(e,u,i,!0),$s(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xi(o,t)>=0&&(n[i+1]=ea(n[i+1]))}(t,u,e,i,o),a=Ko(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function fl(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=pl(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function pl(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ki(e,a,!!n||t[++o]))}return void 0===e?null:e}function gl(e,t,n,i,r,o,a,s){if(3&t.type){var l=e.data,u=l[s+1];ml(1==(1&u)?vl(l,t,n,r,Jo(u),a):void 0)||(ml(o)||2==(2&u)&&(o=vl(l,null,n,r,s,a)),function(e,t,n,i,r){var o=un(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:ao.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=ao.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,hn(Xn(),n),r,o))}}function vl(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[r+1];h===qo&&(h=d?Et:void 0);var f=d?Qi(h,i):c===i?h:void 0;if(u&&!ml(f)&&(f=Qi(l,i)),ml(f)&&(s=f,a))return s;var p=e[r+1];r=a?Qo(p):Jo(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(s=Qi(g,i))}return s}function ml(e){return void 0!==e}function yl(e,t){return 0!=(e.flags&(t?16:32))}function bl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Cn(),i=Sn(),r=e+20,o=i.firstCreatePass?ia(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return un(e)?e.createText(t):e.createTextNode(t)}(n[11],t);So(i,n,a,o),Dn(o,!1)}function wl(e){return kl("",e,""),wl}function kl(e,t,n){var i=Cn(),r=As(i,e,t,n);return r!==qo&&Ha(i,Xn(),r),kl}function xl(e,t,n,i,r){var o=Cn(),a=Cs(o,e,t,n,i,r);return a!==qo&&Ha(o,Xn(),a),xl}function _l(e,t,n,i,r,o,a){var s=Cn(),l=function(e,t,n,i,r,o,a,s){var l=ks(e,Ln(),n,r,a);return Nn(3),l?t+tt(n)+i+tt(r)+o+tt(a)+s:qo}(s,e,t,n,i,r,o,a);return l!==qo&&Ha(s,Xn(),l),_l}function Al(e,t,n,i,r,o,a,s,l){var u=Cn(),c=function(e,t,n,i,r,o,a,s,l,u){var c=xs(e,Ln(),n,r,a,l);return Nn(4),c?t+tt(n)+i+tt(r)+o+tt(a)+s+tt(l)+u:qo}(u,e,t,n,i,r,o,a,s,l);return c!==qo&&Ha(u,Xn(),c),Al}function Cl(e,t,n){cl(Ki,ll,As(Cn(),e,t,n),!0)}function Sl(e,t,n){var i=Cn();return bs(i,Fn(),t)&&va(Sn(),$n(),i,e,t,i[11],n,!0),Sl}function El(e,t,n){var i=Cn();if(bs(i,Fn(),t)){var r=Sn(),o=$n();va(r,o,i,e,t,Va(zn(r.data),o,i),n,!0)}return El}var Pl=void 0,Ol=["en",[["a","p"],["AM","PM"],Pl],[["AM","PM"],Pl,Pl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Pl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Pl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Pl,"{1} 'at' {0}",Pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Dl={};function Il(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Tl(t);if(n)return n;var i=t.split("-")[0];if(n=Tl(i))return n;if("en"===i)return Ol;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Tl(e){return e in Dl||(Dl[e]=Ct.ng&&Ct.ng.common&&Ct.ng.common.locales&&Ct.ng.common.locales[e]),Dl[e]}var Ml=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Bl(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Rl(e,t,n,i,r){if(e=Je(e),Array.isArray(e))for(var o=0;o<e.length;o++)Rl(e[o],t,n,i,r);else{var a=Sn(),s=Cn(),l=rs(e)?e:Je(e.provide),u=ts(e),c=Pn(),d=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(rs(e)||!e.multi){var p=new li(u,r,Ps),g=Nl(l,t,r?d:d+f,h);-1===g?(Ai(wi(c,s),a,l),Ll(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var v=Nl(l,t,d+f,h),m=Nl(l,t,d,d+f),y=v>=0&&n[v],b=m>=0&&n[m];if(r&&!b||!r&&!y){Ai(wi(c,s),a,l);var w=function(e,t,n,i,r){var o=new li(e,n,Ps);return o.multi=[],o.index=t,o.componentProviders=0,Fl(o,r,i&&!n),o}(r?zl:Vl,n.length,r,i,u);!r&&b&&(n[m].providerFactory=w),Ll(a,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(w),s.push(w)}else Ll(a,e,v>-1?v:m,Fl(n[r?m:v],u,!r&&i));!r&&i&&b&&n[m].componentProviders++}}}function Ll(e,t,n,i){var r=rs(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Fl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Nl(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function Vl(e,t,n,i){return jl(this.multi,[])}function zl(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=Ti(n,n[1],this.providerFactory.index,i);jl(o,r=s.slice(0,a));for(var l=a;l<s.length;l++)r.push(s[l])}else jl(o,r=[]);return r}function jl(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Hl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=Sn();if(i.firstCreatePass){var r=Jt(e);Rl(n,i.data,i.blueprint,r,!0),Rl(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var Ul=Y(function e(){Z(this,e)}),Wl=function(){function e(){Z(this,e)}return Y(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Ze(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Gl=function(){var e=Y(function e(){Z(this,e)});return e.NULL=new Wl,e}();function ql(){}function Yl(e,t){return new Kl(fn(e,t))}var Zl=function(){return Yl(Pn(),Cn())},Kl=function(){var e=Y(function e(t){Z(this,e),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Zl,e}();function Ql(e){return e instanceof Kl?e.nativeElement:e}var Xl=Y(function e(){Z(this,e)}),Jl=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=function(){return $l()},e}(),$l=function(){var e=Cn(),t=vn(Pn().index,e);return function(e){return e[11]}(Yt(t)?t:e)},eu=function(){var e=Y(function e(){Z(this,e)});return e.\u0275prov=rt({token:e,providedIn:"root",factory:function(){return null}}),e}(),tu=Y(function e(t){Z(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}),nu=new tu("11.2.6"),iu=function(){function e(){Z(this,e)}return Y(e,[{key:"supports",value:function(e){return vs(e)}},{key:"create",value:function(e){return new ou(e)}}]),e}(),ru=function(e,t){return t},ou=function(){function e(t){Z(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ru}return Y(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<uu(n,i,r)?t:n,a=uu(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,u=s-i;if(l!=u){for(var c=0;c<l;c++){var d=c<r.length?r[c]:r[c]=0,h=d+c;u<=h&&h<l&&(r[c]=d+1)}r[o.previousIndex]=u-l}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!vs(e))throw new Error("Error trying to diff '".concat(Ze(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],r=this._trackByFn(s,i),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[ps()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new au(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new lu),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new lu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),au=Y(function e(t,n){Z(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),su=function(){function e(){Z(this,e),this._head=null,this._tail=null}return Y(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),lu=function(){function e(){Z(this,e),this.map=new Map}return Y(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new su,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function uu(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var cu=function(){function e(){Z(this,e)}return Y(e,[{key:"supports",value:function(e){return e instanceof Map||ms(e)}},{key:"create",value:function(){return new du}}]),e}(),du=function(){function e(){Z(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Y(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||ms(e)))throw new Error("Error trying to diff '".concat(Ze(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new hu(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),hu=Y(function e(t){Z(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function fu(){return new pu([new iu])}var pu=function(){var e=function(){function e(t){Z(this,e),this.factories=t}return Y(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||fu())},deps:[[e,new hr,new dr]]}}}]),e}();return e.\u0275prov=rt({token:e,providedIn:"root",factory:fu}),e}();function gu(){return new vu([new cu])}var vu=function(){var e=function(){function e(t){Z(this,e),this.factories=t}return Y(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||gu())},deps:[[e,new hr,new dr]]}}}]),e}();return e.\u0275prov=rt({token:e,providedIn:"root",factory:gu}),e}();function mu(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(dn(o)),Zt(o))for(var a=10;a<o.length;a++){var s=o[a],l=s[1].firstChild;null!==l&&mu(s[1],s,l,i)}var u=n.type;if(8&u)mu(e,t,n.child,i);else if(32&u)for(var c=so(n,t),d=void 0;d=c();)i.push(d);else if(16&u){var h=Po(t,n);if(Array.isArray(h))i.push.apply(i,V(h));else{var f=lo(t[16]);mu(f[1],f,h,i,!0)}}n=r?n.projectionNext:n.next}return i}var yu=function(){function e(t,n){Z(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return Y(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return mu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(Zt(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(vo(e,n),Yi(t,n))}this._attachedToViewContainer=!1}mo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){pa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ta(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ma(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Bn(!0);try{Ma(e,t,n)}finally{Bn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Io(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),bu=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e))._view=e,i}return Y(n,[{key:"detectChanges",value:function(){Ba(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Bn(!0);try{Ba(e)}finally{Bn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(yu),wu=xu,ku=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=wu,e.__ChangeDetectorRef__=!0,e}();function xu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Qt(e)){var i=vn(e.index,t);return new yu(i,i)}return 47&e.type?new yu(t[16],t):null}(Pn(),Cn(),e)}var _u=[new cu],Au=new pu([new iu]),Cu=new vu(_u),Su=function(){return Ou(Pn(),Cn())},Eu=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=Su,e}(),Pu=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return Y(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=na(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),oa(t,n,e),new yu(n)}}]),n}(Eu);function Ou(e,t){return 4&e.type?new Pu(t,e,Yl(e,t)):null}var Du=Y(function e(){Z(this,e)}),Iu=Y(function e(){Z(this,e)}),Tu=function(){return Fu(Pn(),Cn())},Mu=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=Tu,e}(),Bu=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return Y(n,[{key:"element",get:function(){return Yl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Ri(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=_i(this._hostTNode,this._hostLView);if(pi(e)){var t=vi(e,this._hostLView),n=gi(e);return new Ri(t[1].data[n+8],t)}return new Ri(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Du,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(Zt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-10?(t[4]=n[r],qi(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,i,u,l);var c=Oo(l,u),d=i[11],h=_o(d,u[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,Io(e,i,n,1,r,o)}(r,u[6],d,i,h,c),e.attachToViewContainerRef(),qi(Lu(u),l,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=Ru(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=vo(this._lContainer,t);n&&(Yi(Lu(this._lContainer),t),mo(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=vo(this._lContainer,t);return n&&null!=Yi(Lu(this._lContainer),t)?new yu(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Mu);function Ru(e){return e[8]}function Lu(e){return e[8]||(e[8]=[])}function Fu(e,t){var n,i=t[e.index];if(Zt(i))n=i;else{var r;if(8&e.type)r=dn(i);else{var o=t[11];r=o.createComment("");var a=fn(e,t);wo(o,_o(o,a),r,function(e,t){return un(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Ea(i,t,r,e),Ia(t,n)}return new Bu(n,e,t)}var Nu={},Vu=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).ngModule=e,i}return Y(n,[{key:"resolveComponentFactory",value:function(e){var t=Gt(e);return new Hu(t,this.ngModule)}}]),n}(Gl);function zu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ju=new ji("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return no}}),Hu=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Go).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return Y(n,[{key:"inputs",get:function(){return zu(this.componentDef.inputs)}},{key:"outputs",get:function(){return zu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Nu,r);return o!==Nu||i===Nu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Xl,cn),l=a.get(eu,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(un(e))return e.selectRootElement(t,n===wt.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):po(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:no,clean:La,playerHandler:null,flags:0},p=fa(0,null,null,1,0,null,null,null,null,null),g=na(null,p,f,h,null,null,s,u,l,a);Gn(g);try{var v=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=ia(a,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(Ua(s,l,!0),null!==e&&(ui(r,e,l),null!==s.classes&&Bo(r,e,s.classes),null!==s.styles&&Mo(r,e,s.styles)));var u=i.createRenderer(e,t),c=na(n,ha(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(Ai(wi(s,n),a,t.type),wa(a,s),xa(s,n.length,1)),Ia(n,c),n[20]=c}(d,this.componentDef,g,s,u);if(d)if(n)ui(u,d,["ng-version",nu.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!zo(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=m.attrs,b=m.classes;y&&ui(u,d,y),b&&b.length>0&&Bo(u,d,b.join(" "))}if(o=pn(p,20),void 0!==t)for(var w=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var x=t[k];w.push(null!=x?Array.from(x):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=Pn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),_a(e,i,t,ra(e,t,1,null),n));var r=Ti(t,e,i.directiveStart,i);to(r,t);var o=fn(i,t);return o&&to(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=Pn();t.contentQueries(1,a,s.directiveStart)}var l=Pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Jn(l.index),ya(n[1],l,0,l.directiveStart,l.directiveEnd,t),ba(t,a)),a}(v,this.componentDef,g,f,[ss]),oa(p,g,null)}finally{Qn()}return new Uu(this.componentType,r,Yl(o,g),g,o)}}]),n}(Ul),Uu=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.instance=i,s.hostView=s.changeDetectorRef=new bu(o),s.componentType=e,s}return Y(n,[{key:"injector",get:function(){return new Ri(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return Y(function e(){Z(this,e)})}()),Wu=new Map,Gu=function(e){E(n,e);var t=O(n);function n(e,i){var r;Z(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=I(r),r.destroyCbs=[],r.componentFactoryResolver=new Vu(I(r));var o=qt(e),a=e[Mt]||null;return a&&Bl(a),r._bootstrapComponents=oo(o.bootstrap),r._r3Injector=Ja(e,i,[{provide:Du,useValue:I(r)},{provide:Gl,useValue:r.componentFactoryResolver}],Ze(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return Y(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:as.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt.Default;return e===as||e===Du||e===Wa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Du),qu=function(e){E(n,e);var t=O(n);function n(e){var i,r,o;return Z(this,n),(i=t.call(this)).moduleType=e,null!==qt(e)&&(r=e,o=new Set,function e(t){var n=qt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Ze(t)," vs ").concat(Ze(t.name)))}(i,Wu.get(i),t),Wu.set(i,t));var r,a=R(oo(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return Y(n,[{key:"create",value:function(e){return new Gu(this.moduleType,e)}}]),n}(Iu);function Yu(e,t,n){var i=Rn()+e,r=Cn();return r[i]===qo?ys(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Zu(e,t,n,i){return Xu(Cn(),Rn(),e,t,n,i)}function Ku(e,t,n,i,r){return Ju(Cn(),Rn(),e,t,n,i,r)}function Qu(e,t){var n=e[t];return n===qo?void 0:n}function Xu(e,t,n,i,r,o){var a=t+n;return bs(e,a,r)?ys(e,a+1,o?i.call(o,r):i(r)):Qu(e,a+1)}function Ju(e,t,n,i,r,o,a){var s=t+n;return ws(e,s,r,o)?ys(e,s+2,a?i.call(a,r,o):i(r,o)):Qu(e,s+2)}function $u(e,t){var n,i=Sn(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new et("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=$t(n.type)),a=vt(Ps);try{var s=yi(!1),l=o();return yi(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Cn(),r,l),l}finally{vt(a)}}function ec(e,t,n){var i=e+20,r=Cn(),o=gn(r,i);return oc(r,rc(r,i)?Xu(r,Rn(),t,o.transform,n,o):o.transform(n))}function tc(e,t,n,i){var r=e+20,o=Cn(),a=gn(o,r);return oc(o,rc(o,r)?Ju(o,Rn(),t,a.transform,n,i,a):a.transform(n,i))}function nc(e,t,n,i,r){var o=e+20,a=Cn(),s=gn(a,o);return oc(a,rc(a,o)?function(e,t,n,i,r,o,a,s){var l=t+n;return ks(e,l,r,o,a)?ys(e,l+3,s?i.call(s,r,o,a):i(r,o,a)):Qu(e,l+3)}(a,Rn(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function ic(e,t,n,i,r,o){var a=e+20,s=Cn(),l=gn(s,a);return oc(s,rc(s,a)?function(e,t,n,i,r,o,a,s,l){var u=t+n;return xs(e,u,r,o,a,s)?ys(e,u+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Qu(e,u+4)}(s,Rn(),t,l.transform,n,i,r,o,l):l.transform(n,i,r,o))}function rc(e,t){return e[1].data[t].pure}function oc(e,t){return gs.isWrapped(t)&&(t=gs.unwrap(t),e[Ln()]=qo),t}var ac=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Z(this,n),(e=t.call(this)).__isAsync=i,e}return Y(n,[{key:"emit",value:function(e){C(M(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(a=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var s=C(M(n.prototype),"subscribe",this).call(this,r,o,a);return e instanceof te&&e.add(s),s}}]),n}(ge);function sc(){return this._results[ps()]()}var lc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Z(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ps(),i=e.prototype;i[n]||(i[n]=sc)}return Y(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ac)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=Wi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),uc=function(){function e(t){Z(this,e),this.queryList=t,this.matches=null}return Y(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),cc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Z(this,e),this.queries=t}return Y(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Ac(e,t).matches&&this.queries[t].setDirty()}}]),e}(),dc=Y(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Z(this,e),this.predicate=t,this.flags=n,this.read=i}),hc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Z(this,e),this.queries=t}return Y(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),fc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;Z(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Y(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,pc(t,r)),this.matchTNodeWithReadOption(e,t,Ii(t,e,r,!1,!1))}else n===Eu?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Ii(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Kl||i===Mu||i===Eu&&4&t.type)this.addMatch(t.index,-2);else{var r=Ii(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function pc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function gc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Yl(e,t):4&e.type?Ou(e,t):null}(t,e):-2===n?function(e,t,n){return n===Kl?Yl(t,e):n===Eu?Ou(t,e):n===Mu?Fu(t,e):void 0}(e,t,i):Ti(e,e[1],n,t)}function vc(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var u=a[l];s.push(u<0?null:gc(t,o[u],a[l+1],n.metadata.read))}r.matches=s}return r.matches}function mc(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=vc(e,t,r,n),s=0;s<o.length;s+=2){var l=o[s];if(l>0)i.push(a[s/2]);else{for(var u=o[s+1],c=t[-l],d=10;d<c.length;d++){var h=c[d];h[17]===h[3]&&mc(h[1],h,u,i)}if(null!==c[9])for(var f=c[9],p=0;p<f.length;p++){var g=f[p];mc(g[1],g,u,i)}}}return i}function yc(e){var t=Cn(),n=Sn(),i=jn();Hn(i+1);var r=Ac(n,i);if(e.dirty&&yn(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?mc(n,t,i,[]):vc(n,t,r,i);e.reset(o,Ql),e.notifyOnChanges()}return!0}return!1}function bc(e,t,n){var i=Sn();i.firstCreatePass&&(_c(i,new dc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),xc(i,Cn(),t)}function wc(e,t,n,i){var r=Sn();if(r.firstCreatePass){var o=Pn();_c(r,new dc(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}xc(r,Cn(),n)}function kc(){return e=Cn(),t=jn(),e[19].queries[t].queryList;var e,t}function xc(e,t,n){var i=new lc(4==(4&n));pa(e,t,i,i.destroy),null===t[19]&&(t[19]=new cc),t[19].queries.push(new uc(i))}function _c(e,t,n){null===e.queries&&(e.queries=new hc),e.queries.track(new fc(t,n))}function Ac(e,t){return e.queries.getByIndex(t)}function Cc(e,t){return Ou(e,t)}function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt.Default,t=xu(!0);if(null!=t||e&gt.Optional)return t;it("ChangeDetectorRef")}var Ec=new ji("Application Initializer"),Pc=function(){var e=function(){function e(t){var n=this;Z(this,e),this.appInits=t,this.resolve=ql,this.reject=ql,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return Y(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();Ns(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(Ec,8))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),Oc=new ji("AppId"),Dc={provide:Oc,useFactory:function(){return"".concat(Ic()).concat(Ic()).concat(Ic())},deps:[]};function Ic(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Tc=new ji("Platform Initializer"),Mc=new ji("Platform ID"),Bc=new ji("appBootstrapListener"),Rc=function(){var e=function(){function e(){Z(this,e)}return Y(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),Lc=new ji("LocaleId"),Fc=new ji("DefaultCurrencyCode"),Nc=Y(function e(t,n){Z(this,e),this.ngModuleFactory=t,this.componentFactories=n}),Vc=function(e){return new qu(e)},zc=Vc,jc=function(e){return Promise.resolve(Vc(e))},Hc=function(e){var t=Vc(e),n=oo(qt(e).declarations).reduce(function(e,t){var n=Gt(t);return n&&e.push(new Hu(n)),e},[]);return new Nc(t,n)},Uc=Hc,Wc=function(e){return Promise.resolve(Hc(e))},Gc=function(){var e=function(){function e(){Z(this,e),this.compileModuleSync=zc,this.compileModuleAsync=jc,this.compileModuleAndAllComponentsSync=Uc,this.compileModuleAndAllComponentsAsync=Wc}return Y(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),qc=Promise.resolve(0);function Yc(e){"undefined"==typeof Zone?qc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Zc=function(){function e(t){var n,i,r=t.enableLongStackTrace,o=void 0!==r&&r,a=t.shouldCoalesceEventChangeDetection,s=void 0!==a&&a,l=t.shouldCoalesceRunChangeDetection,u=void 0!==l&&l;if(Z(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ac(!1),this.onMicrotaskEmpty=new ac(!1),this.onStable=new ac(!1),this.onError=new ac(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!u&&s,this.shouldCoalesceRunChangeDetection=u,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Ct.requestAnimationFrame,t=Ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ct,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Xc(e),Qc(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Xc(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,o,a,s){try{return Jc(n),e.invokeTask(r,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&i(),$c(n)}},onInvoke:function(e,t,r,o,a,s,l){try{return Jc(n),e.invoke(r,o,a,s,l)}finally{n.shouldCoalesceRunChangeDetection&&i(),$c(n)}},onHasTask:function(e,t,i,r){e.hasTask(i,r),t===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Xc(n),Qc(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,i,r){return e.handleError(i,r),n.runOutsideAngular(function(){return n.onError.emit(r)}),!1}})}return Y(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,Kc,ql,ql);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Kc={};function Qc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Xc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Jc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $c(e){e._nesting--,Qc(e)}var ed,td=function(){function e(){Z(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ac,this.onMicrotaskEmpty=new ac,this.onStable=new ac,this.onError=new ac}return Y(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),nd=function(){var e=function(){function e(t){var n=this;Z(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return Y(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Zc.assertNotInAngularZone(),Yc(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Yc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(Zc))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),id=function(){var e=function(){function e(){Z(this,e),this._applications=new Map,rd.addToWindow(this)}return Y(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return rd.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),rd=new(function(){function e(){Z(this,e)}return Y(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),od=!0,ad=!1;function sd(){return ad=!0,od}var ld=new ji("AllowMultipleToken"),ud=Y(function e(t,n){Z(this,e),this.name=t,this.token=n});function cd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new ji(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=dd();if(!o||o.injector.get(ld,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:qa,useValue:"platform"});!function(e){if(ed&&!ed.destroyed&&!ed.injector.get(ld,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ed=e.get(hd);var t=e.get(Tc,null);t&&t.forEach(function(e){return e()})}(as.create({providers:a,name:i}))}return function(e){var t=dd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function dd(){return ed&&!ed.destroyed?ed:null}var hd=function(){var e=function(){function e(t){Z(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Y(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new td:("zone.js"===n?void 0:n)||new Zc({enableLongStackTrace:sd(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:Zc,useValue:o}];return o.run(function(){var t=as.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(eo,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){vd(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Pc)).runInitializers(),a.donePromise.then(function(){return Bl(n.injector.get(Lc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Ns(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=fd({},n);return function(e,t,n){var i=new qu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(gd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Ze(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(as))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}();function fd(e,t){return Array.isArray(t)?t.reduce(fd,e):Object.assign(Object.assign({},e),t)}var pd,gd=((pd=function(){function e(t,n,i,r,o){var a=this;Z(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new ue(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),l=new ue(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Zc.assertNotInAngularZone(),Yc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Zc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Le(s,l.pipe(Ge()))}return Y(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ul?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Du),o=n.create(as.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(nd,null),l=s&&o.injector.get(id);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),vd(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=R(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;vd(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Bc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||pd)(rr(Zc),rr(as),rr(eo),rr(Gl),rr(Pc))},pd.\u0275prov=rt({token:pd,factory:pd.\u0275fac}),pd);function vd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var md=Y(function e(){Z(this,e)}),yd=Y(function e(){Z(this,e)}),bd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},wd=function(){var e=function(){function e(t,n){Z(this,e),this._compiler=t,this._config=n||bd}return Y(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=L(e.split("#"),2),i=n[0],r=n[1];return void 0===r&&(r="default"),S("MYvV")(i).then(function(e){return e[r]}).then(function(e){return kd(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=L(e.split("#"),2),n=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),S("MYvV")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return kd(e,n,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(Gc),rr(yd,8))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}();function kd(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var xd=cd(null,"core",[{provide:Mc,useValue:"unknown"},{provide:hd,deps:[as]},{provide:id,deps:[]},{provide:Rc,deps:[]}]),_d=[{provide:gd,useClass:gd,deps:[Zc,as,eo,Gl,Pc]},{provide:ju,deps:[Zc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Pc,useClass:Pc,deps:[[new dr,Ec]]},{provide:Gc,useClass:Gc,deps:[]},Dc,{provide:pu,useFactory:function(){return Au},deps:[]},{provide:vu,useFactory:function(){return Cu},deps:[]},{provide:Lc,useFactory:function(e){return Bl(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new cr(Lc),new dr,new hr]]},{provide:Fc,useValue:"USD"}],Ad=function(){var e=Y(function e(t){Z(this,e)});return e.\u0275fac=function(t){return new(t||e)(rr(gd))},e.\u0275mod=jt({type:e}),e.\u0275inj=at({providers:_d}),e}(),Cd={production:!0,VERSION:S("kiQV").version,AUTHOR:S("kiQV").author},Sd=null;function Ed(){return Sd}var Pd,Od=new ji("DocumentToken"),Dd=((Pd=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Pd)},Pd.\u0275prov=rt({factory:Id,token:Pd,providedIn:"platform"}),Pd);function Id(){return rr(Bd)}var Td,Md=new ji("Location Initialized"),Bd=((Td=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._doc=e,i._init(),i}return Y(n,[{key:"_init",value:function(){this.location=Ed().getLocation(),this._history=Ed().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Ed().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Ed().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Ed().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Rd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Rd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(Dd)).\u0275fac=function(e){return new(e||Td)(rr(Od))},Td.\u0275prov=rt({factory:Ld,token:Td,providedIn:"platform"}),Td);function Rd(){return!!window.history.pushState}function Ld(){return new Bd(rr(Od))}function Fd(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Nd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Vd(e){return e&&"?"!==e[0]?"?"+e:e}var zd,jd=((zd=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zd)},zd.\u0275prov=rt({factory:Hd,token:zd,providedIn:"root"}),zd);function Hd(e){var t=rr(Od).location;return new Yd(rr(Dd),t&&t.origin||"")}var Ud,Wd,Gd,qd=new ji("appBaseHref"),Yd=((Gd=function(e){E(n,e);var t=O(n);function n(e,i){var r;if(Z(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,D(r)}return Y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Fd(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Vd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(jd)).\u0275fac=function(e){return new(e||Gd)(rr(Dd),rr(qd,8))},Gd.\u0275prov=rt({token:Gd,factory:Gd.\u0275fac}),Gd),Zd=((Wd=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return Y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Fd(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(jd)).\u0275fac=function(e){return new(e||Wd)(rr(Dd),rr(qd,8))},Wd.\u0275prov=rt({token:Wd,factory:Wd.\u0275fac}),Wd),Kd=((Ud=function(){function e(t,n){var i=this;Z(this,e),this._subject=new ac,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Nd(Xd(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return Y(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Vd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Xd(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vd(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vd(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ud)(rr(jd),rr(Dd))},Ud.normalizeQueryParams=Vd,Ud.joinWithSlash=Fd,Ud.stripTrailingSlash=Nd,Ud.\u0275prov=rt({factory:Qd,token:Ud,providedIn:"root"}),Ud);function Qd(){return new Kd(rr(jd),rr(Dd))}function Xd(e){return e.replace(/\/index.html$/,"")}var Jd=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),$d=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),eh=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),th=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),nh=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function ih(e,t){return lh(Il(e)[Ml.DateFormat],t)}function rh(e,t){return lh(Il(e)[Ml.TimeFormat],t)}function oh(e,t){return lh(Il(e)[Ml.DateTimeFormat],t)}function ah(e,t){var n=Il(e),i=n[Ml.NumberSymbols][t];if(void 0===i){if(t===nh.CurrencyDecimal)return n[Ml.NumberSymbols][nh.Decimal];if(t===nh.CurrencyGroup)return n[Ml.NumberSymbols][nh.Group]}return i}function sh(e){if(!e[Ml.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[Ml.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function lh(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function uh(e){var t=L(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var ch=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,dh={},hh=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,fh=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),ph=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),gh=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function vh(e,t,n,i){var r=function(e){if(Oh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=L(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,o=t[2];return mh(n,r-1,void 0===o?1:o)}var a,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(a=e.match(ch))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,l,u),t}(a)}var l=new Date(e);if(!Oh(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);t=yh(n,t)||t;for(var o,a=[];t;){if(!(o=hh.exec(t))){a.push(t);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;t=s}var l=r.getTimezoneOffset();i&&(l=Ph(i,l),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ph(t,i)-i))}(r,i));var u="";return a.forEach(function(e){var t=function(e){if(Eh[e])return Eh[e];var t;switch(e){case"G":case"GG":case"GGG":t=xh(gh.Eras,eh.Abbreviated);break;case"GGGG":t=xh(gh.Eras,eh.Wide);break;case"GGGGG":t=xh(gh.Eras,eh.Narrow);break;case"y":t=kh(ph.FullYear,1,0,!1,!0);break;case"yy":t=kh(ph.FullYear,2,0,!0,!0);break;case"yyy":t=kh(ph.FullYear,3,0,!1,!0);break;case"yyyy":t=kh(ph.FullYear,4,0,!1,!0);break;case"Y":t=Sh(1);break;case"YY":t=Sh(2,!0);break;case"YYY":t=Sh(3);break;case"YYYY":t=Sh(4);break;case"M":case"L":t=kh(ph.Month,1,1);break;case"MM":case"LL":t=kh(ph.Month,2,1);break;case"MMM":t=xh(gh.Months,eh.Abbreviated);break;case"MMMM":t=xh(gh.Months,eh.Wide);break;case"MMMMM":t=xh(gh.Months,eh.Narrow);break;case"LLL":t=xh(gh.Months,eh.Abbreviated,$d.Standalone);break;case"LLLL":t=xh(gh.Months,eh.Wide,$d.Standalone);break;case"LLLLL":t=xh(gh.Months,eh.Narrow,$d.Standalone);break;case"w":t=Ch(1);break;case"ww":t=Ch(2);break;case"W":t=Ch(1,!0);break;case"d":t=kh(ph.Date,1);break;case"dd":t=kh(ph.Date,2);break;case"E":case"EE":case"EEE":t=xh(gh.Days,eh.Abbreviated);break;case"EEEE":t=xh(gh.Days,eh.Wide);break;case"EEEEE":t=xh(gh.Days,eh.Narrow);break;case"EEEEEE":t=xh(gh.Days,eh.Short);break;case"a":case"aa":case"aaa":t=xh(gh.DayPeriods,eh.Abbreviated);break;case"aaaa":t=xh(gh.DayPeriods,eh.Wide);break;case"aaaaa":t=xh(gh.DayPeriods,eh.Narrow);break;case"b":case"bb":case"bbb":t=xh(gh.DayPeriods,eh.Abbreviated,$d.Standalone,!0);break;case"bbbb":t=xh(gh.DayPeriods,eh.Wide,$d.Standalone,!0);break;case"bbbbb":t=xh(gh.DayPeriods,eh.Narrow,$d.Standalone,!0);break;case"B":case"BB":case"BBB":t=xh(gh.DayPeriods,eh.Abbreviated,$d.Format,!0);break;case"BBBB":t=xh(gh.DayPeriods,eh.Wide,$d.Format,!0);break;case"BBBBB":t=xh(gh.DayPeriods,eh.Narrow,$d.Format,!0);break;case"h":t=kh(ph.Hours,1,-12);break;case"hh":t=kh(ph.Hours,2,-12);break;case"H":t=kh(ph.Hours,1);break;case"HH":t=kh(ph.Hours,2);break;case"m":t=kh(ph.Minutes,1);break;case"mm":t=kh(ph.Minutes,2);break;case"s":t=kh(ph.Seconds,1);break;case"ss":t=kh(ph.Seconds,2);break;case"S":t=kh(ph.FractionalSeconds,1);break;case"SS":t=kh(ph.FractionalSeconds,2);break;case"SSS":t=kh(ph.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=_h(fh.Short);break;case"ZZZZZ":t=_h(fh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_h(fh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=_h(fh.Long);break;default:return null}return Eh[e]=t,t}(e);u+=t?t(r,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function mh(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function yh(e,t){var n=function(e){return Il(e)[Ml.LocaleId]}(e);if(dh[n]=dh[n]||{},dh[n][t])return dh[n][t];var i="";switch(t){case"shortDate":i=ih(e,th.Short);break;case"mediumDate":i=ih(e,th.Medium);break;case"longDate":i=ih(e,th.Long);break;case"fullDate":i=ih(e,th.Full);break;case"shortTime":i=rh(e,th.Short);break;case"mediumTime":i=rh(e,th.Medium);break;case"longTime":i=rh(e,th.Long);break;case"fullTime":i=rh(e,th.Full);break;case"short":var r=yh(e,"shortTime"),o=yh(e,"shortDate");i=bh(oh(e,th.Short),[r,o]);break;case"medium":var a=yh(e,"mediumTime"),s=yh(e,"mediumDate");i=bh(oh(e,th.Medium),[a,s]);break;case"long":var l=yh(e,"longTime"),u=yh(e,"longDate");i=bh(oh(e,th.Long),[l,u]);break;case"full":var c=yh(e,"fullTime"),d=yh(e,"fullDate");i=bh(oh(e,th.Full),[c,d])}return i&&(dh[n][t]=i),i}function bh(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function wh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length<t;)a="0"+a;return i&&(a=a.substr(a.length-t)),o+a}function kh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,l=function(e,t){switch(e){case ph.FullYear:return t.getFullYear();case ph.Month:return t.getMonth();case ph.Date:return t.getDate();case ph.Hours:return t.getHours();case ph.Minutes:return t.getMinutes();case ph.Seconds:return t.getSeconds();case ph.FractionalSeconds:return t.getMilliseconds();case ph.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||l>-n)&&(l+=n),e===ph.Hours)0===l&&-12===n&&(l=12);else if(e===ph.FractionalSeconds)return s=t,wh(l,3).substr(0,s);var u=ah(a,nh.MinusSign);return wh(l,t,u,i,r)}}function xh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$d.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return function(e,t,n,i,r,o){switch(n){case gh.Months:return function(e,t,n){var i=Il(e),r=lh([i[Ml.MonthsFormat],i[Ml.MonthsStandalone]],t);return lh(r,n)}(t,r,i)[e.getMonth()];case gh.Days:return function(e,t,n){var i=Il(e),r=lh([i[Ml.DaysFormat],i[Ml.DaysStandalone]],t);return lh(r,n)}(t,r,i)[e.getDay()];case gh.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var l=function(e){var t=Il(e);return sh(t),(t[Ml.ExtraData][2]||[]).map(function(e){return"string"==typeof e?uh(e):[uh(e[0]),uh(e[1])]})}(t),u=function(e,t,n){var i=Il(e);sh(i);var r=lh([i[Ml.ExtraData][0],i[Ml.ExtraData][1]],t)||[];return lh(r,n)||[]}(t,r,i),c=l.findIndex(function(e){if(Array.isArray(e)){var t=L(e,2),n=t[0],i=t[1],r=a>=n.hours&&s>=n.minutes,o=a<i.hours||a===i.hours&&s<i.minutes;if(n.hours<i.hours){if(r&&o)return!0}else if(r||o)return!0}else if(e.hours===a&&e.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function(e,t,n){var i=Il(e),r=lh([i[Ml.DayPeriodsFormat],i[Ml.DayPeriodsStandalone]],t);return lh(r,n)}(t,r,i)[a<12?0:1];case gh.Eras:return function(e,t){return lh(Il(e)[Ml.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,o,e,t,n,i)}}function _h(e){return function(t,n,i){var r=-1*i,o=ah(n,nh.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case fh.Short:return(r>=0?"+":"")+wh(a,2,o)+wh(Math.abs(r%60),2,o);case fh.ShortGMT:return"GMT"+(r>=0?"+":"")+wh(a,1,o);case fh.Long:return"GMT"+(r>=0?"+":"")+wh(a,2,o)+":"+wh(Math.abs(r%60),2,o);case fh.Extended:return 0===i?"Z":(r>=0?"+":"")+wh(a,2,o)+":"+wh(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function Ah(e){return mh(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Ch(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var u=Ah(n),c=(o=u.getFullYear(),a=mh(o,0,1).getDay(),mh(o,0,1+(a<=4?4:11)-a)),d=u.getTime()-c.getTime();r=1+Math.round(d/6048e5)}return wh(r,e,ah(i,nh.MinusSign))}}function Sh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return wh(Ah(n).getFullYear(),e,ah(i,nh.MinusSign),t)}}var Eh={};function Ph(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Oh(e){return e instanceof Date&&!isNaN(e.valueOf())}var Dh,Ih=Y(function e(){Z(this,e)}),Th=((Dh=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).locale=e,i}return Y(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Il(e)[Ml.PluralCase]}(t||this.locale)(e)){case Jd.Zero:return"zero";case Jd.One:return"one";case Jd.Two:return"two";case Jd.Few:return"few";case Jd.Many:return"many";default:return"other"}}}]),n}(Ih)).\u0275fac=function(e){return new(e||Dh)(rr(Lc))},Dh.\u0275prov=rt({token:Dh,factory:Dh.\u0275fac}),Dh);function Mh(e,t){t=encodeURIComponent(t);var n,i=R(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=L(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],l=a[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(u){i.e(u)}finally{i.f()}return null}var Bh,Rh,Lh,Fh=((Bh=function(){function e(t,n,i,r){Z(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Y(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(vs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ze(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}()).\u0275fac=function(e){return new(e||Bh)(Ps(pu),Ps(vu),Ps(Kl),Ps(Jl))},Bh.\u0275dir=Ut({type:Bh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Bh),Nh=function(){function e(t,n,i,r){Z(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return Y(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Vh=((Rh=function(){function e(t,n,i){Z(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Y(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Nh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new zh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new zh(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Rh)(Ps(Mu),Ps(Eu),Ps(pu))},Rh.\u0275dir=Ut({type:Rh,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Rh),zh=Y(function e(t,n){Z(this,e),this.record=t,this.view=n}),jh=((Lh=function(){function e(t,n){Z(this,e),this._viewContainer=t,this._context=new Hh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Y(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Uh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Uh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Lh)(Ps(Mu),Ps(Eu))},Lh.\u0275dir=Ut({type:Lh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Lh),Hh=Y(function e(){Z(this,e),this.$implicit=null,this.ngIf=null});function Uh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Ze(t),"'."))}var Wh,Gh,qh,Yh,Zh,Kh=function(){function e(t,n){Z(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return Y(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Qh=((Zh=function(){function e(){Z(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Y(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}()).\u0275fac=function(e){return new(e||Zh)},Zh.\u0275dir=Ut({type:Zh,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Zh),Xh=((Yh=function(){function e(t,n,i){Z(this,e),this.ngSwitch=i,i._addCase(),this._view=new Kh(t,n)}return Y(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||Yh)(Ps(Mu),Ps(Eu),Ps(Qh,1))},Yh.\u0275dir=Ut({type:Yh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Yh),Jh=((qh=Y(function e(t,n,i){Z(this,e),i._addDefault(new Kh(t,n))})).\u0275fac=function(e){return new(e||qh)(Ps(Mu),Ps(Eu),Ps(Qh,1))},qh.\u0275dir=Ut({type:qh,selectors:[["","ngSwitchDefault",""]]}),qh),$h=((Gh=function(){function e(t,n,i){Z(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return Y(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=L(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}()).\u0275fac=function(e){return new(e||Gh)(Ps(Kl),Ps(vu),Ps(Jl))},Gh.\u0275dir=Ut({type:Gh,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Gh),ef=((Wh=function(){function e(t){Z(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return Y(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var i,r=R(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(-1===t.indexOf(o))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),e}()).\u0275fac=function(e){return new(e||Wh)(Ps(Mu))},Wh.\u0275dir=Ut({type:Wh,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[tn]}),Wh);function tf(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Ze(e),"'"))}var nf,rf,of,af,sf,lf=function(){function e(){Z(this,e)}return Y(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),uf=new(function(){function e(){Z(this,e)}return Y(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),cf=new lf,df=((nf=function(){function e(t){Z(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return Y(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(Ns(t))return uf;if(Vs(t))return cf;throw tf(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}()).\u0275fac=function(e){return new(e||nf)(Sc())},nf.\u0275pipe=Wt({name:"async",type:nf,pure:!1}),nf),hf=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,ff=((sf=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw tf(e,t);return t.replace(hf,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}]),e}()).\u0275fac=function(e){return new(e||sf)},sf.\u0275pipe=Wt({name:"titlecase",type:sf,pure:!0}),sf),pf=((af=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw tf(e,t);return t.toUpperCase()}}]),e}()).\u0275fac=function(e){return new(e||af)},af.\u0275pipe=Wt({name:"uppercase",type:af,pure:!0}),af),gf=((of=function(){function e(t){Z(this,e),this.locale=t}return Y(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return vh(t,n,r||this.locale,i)}catch(o){throw tf(e,o.message)}}}]),e}()).\u0275fac=function(e){return new(e||of)(Ps(Lc))},of.\u0275pipe=Wt({name:"date",type:of,pure:!0}),of),vf=((rf=function(){function e(t){Z(this,e),this.differs=t,this.keyValues=[]}return Y(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mf;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var i=this.differ.diff(e);return i&&(this.keyValues=[],i.forEachItem(function(e){t.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(n)),this.keyValues}}]),e}()).\u0275fac=function(e){return new(e||rf)(Ps(vu))},rf.\u0275pipe=Wt({name:"keyvalue",type:rf,pure:!1}),rf);function mf(e,t){var n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;var r=String(n),o=String(i);return r==o?0:r<o?-1:1}var yf,bf=((yf=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yf)},yf.\u0275mod=jt({type:yf}),yf.\u0275inj=at({providers:[{provide:Ih,useClass:Th}]}),yf);function wf(e){return"browser"===e}var kf,xf=((kf=Y(function e(){Z(this,e)})).\u0275prov=rt({token:kf,providedIn:"root",factory:function(){return new _f(rr(Od),window)}}),kf),_f=function(){function e(t,n){Z(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return Y(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Af(this.window.history)||Af(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Af(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Cf,Sf,Ef,Pf,Of=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Df||(Df=document.querySelector("base"))?Df.getAttribute("href"):null;return null==n?null:(t=n,Cf||(Cf=document.createElement("a")),Cf.setAttribute("href",t),"/"===Cf.pathname.charAt(0)?Cf.pathname:"/"+Cf.pathname)}},{key:"resetBaseElement",value:function(){Df=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Mh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Sd||(Sd=e)}}]),n}(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this)}return Y(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return Y(function e(){Z(this,e)})}())),Df=null,If=new ji("TRANSITION_ID"),Tf=[{provide:Ec,useFactory:function(e,t,n){return function(){n.get(Pc).donePromise.then(function(){var n=Ed();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[If,Od,as],multi:!0}],Mf=function(){function e(){Z(this,e)}return Y(e,[{key:"addToWindow",value:function(e){Ct.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Ct.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ct.getAllAngularRootElements=function(){return e.getAllRootElements()},Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(function(e){var t=Ct.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Ed().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,rd=t}}]),e}(),Bf=new ji("EventManagerPlugins"),Rf=((Sf=function(){function e(t,n){var i=this;Z(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return Y(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||Sf)(rr(Bf),rr(Zc))},Sf.\u0275prov=rt({token:Sf,factory:Sf.\u0275fac}),Sf),Lf=function(){function e(t){Z(this,e),this._doc=t}return Y(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Ed().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Ff=((Pf=function(){function e(){Z(this,e),this._stylesSet=new Set}return Y(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Pf)},Pf.\u0275prov=rt({token:Pf,factory:Pf.\u0275fac}),Pf),Nf=((Ef=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return Y(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return Ed().remove(e)})}}]),n}(Ff)).\u0275fac=function(e){return new(e||Ef)(rr(Od))},Ef.\u0275prov=rt({token:Ef,factory:Ef.\u0275fac}),Ef),Vf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},zf=/%COMP%/g;function jf(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?jf(e,r,n):(r=r.replace(zf,e),n.push(r))}return n}function Hf(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Uf,Wf,Gf,qf,Yf,Zf,Kf,Qf,Xf,Jf=((Uf=function(){function e(t,n,i){Z(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new $f(t)}return Y(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case wt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new ep(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case wt.ShadowDom:return new tp(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=jf(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Uf)(rr(Rf),rr(Nf),rr(Oc))},Uf.\u0275prov=rt({token:Uf,factory:Uf.\u0275fac}),Uf),$f=function(){function e(t){Z(this,e),this.eventManager=t,this.data=Object.create(null)}return Y(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Vf[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=Vf[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=Vf[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(ao.DashCase|ao.Important)?e.style.setProperty(t,n,i&ao.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&ao.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Hf(n)):this.eventManager.addEventListener(e,t,Hf(n))}}]),e}(),ep=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;Z(this,n),(a=t.call(this,e)).component=r;var s=jf(o+"-"+r.id,r.styles,[]);return i.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(zf,o+"-"+r.id),a.hostAttr="_nghost-%COMP%".replace(zf,o+"-"+r.id),a}return Y(n,[{key:"applyToHost",value:function(e){C(M(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=C(M(n.prototype),"createElement",this).call(this,e,t);return C(M(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}($f),tp=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;Z(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.shadowRoot=r.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=jf(o.id,o.styles,[]),l=0;l<s.length;l++){var u=document.createElement("style");u.textContent=s[l],a.shadowRoot.appendChild(u)}return a}return Y(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return C(M(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return C(M(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return C(M(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(C(M(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}($f),np=((Wf=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Lf)).\u0275fac=function(e){return new(e||Wf)(rr(Od))},Wf.\u0275prov=rt({token:Wf,factory:Wf.\u0275fac}),Wf),ip={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},rp=new ji("HammerGestureConfig"),op=new ji("HammerLoader"),ap=((Gf=function(){function e(){Z(this,e),this.events=[],this.overrides={}}return Y(e,[{key:"buildHammer",value:function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t}}]),e}()).\u0275fac=function(e){return new(e||Gf)},Gf.\u0275prov=rt({token:Gf,factory:Gf.\u0275fac}),Gf),sp=[{provide:Bf,useClass:(qf=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e))._config=i,a.console=r,a.loader=o,a._loaderPromise=null,a}return Y(n,[{key:"supports",value:function(e){return!(!ip.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(e,t,n){var i=this,r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();var o=!1,a=function(){o=!0};return this._loaderPromise.then(function(){window.Hammer?o||(a=i.addEventListener(e,t,n)):a=function(){}}).catch(function(){a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var o=i._config.buildHammer(e),a=function(e){r.runGuarded(function(){n(e)})};return o.on(t,a),function(){o.off(t,a),"function"==typeof o.destroy&&o.destroy()}})}},{key:"isCustomEvent",value:function(e){return this._config.events.indexOf(e)>-1}}]),n}(Lf),qf.\u0275fac=function(e){return new(e||qf)(rr(Od),rr(rp),rr(Rc),rr(op,8))},qf.\u0275prov=rt({token:qf,factory:qf.\u0275fac}),qf),multi:!0,deps:[Od,rp,Rc,[new dr,op]]},{provide:rp,useClass:ap,deps:[]}],lp=((Yf=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Yf)},Yf.\u0275mod=jt({type:Yf}),Yf.\u0275inj=at({providers:sp}),Yf),up=["alt","control","meta","shift"],cp={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dp={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},hp={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},fp=((Qf=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ed().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(up.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&dp.hasOwnProperty(t)&&(t=dp[t]))}return cp[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),up.forEach(function(i){i!=n&&(0,hp[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Lf)).\u0275fac=function(e){return new(e||Qf)(rr(Od))},Qf.\u0275prov=rt({token:Qf,factory:Qf.\u0275fac}),Qf),pp=((Kf=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Kf)},Kf.\u0275prov=rt({factory:function(){return rr(gp)},token:Kf,providedIn:"root"}),Kf),gp=((Zf=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._doc=e,i}return Y(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Yr.NONE:return t;case Yr.HTML:return xr(t,"HTML")?kr(t):Gr(this._doc,String(t)).toString();case Yr.STYLE:return xr(t,"Style")?kr(t):t;case Yr.SCRIPT:if(xr(t,"Script"))return kr(t);throw new Error("unsafe value used in a script context");case Yr.URL:return _r(t),xr(t,"URL")?kr(t):Pr(String(t));case Yr.RESOURCE_URL:if(xr(t,"ResourceURL"))return kr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new vr(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new mr(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new yr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new br(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new wr(e)}}]),n}(pp)).\u0275fac=function(e){return new(e||Zf)(rr(Od))},Zf.\u0275prov=rt({factory:function(){return e=rr(Wa),new gp(e.get(Od));var e},token:Zf,providedIn:"root"}),Zf),vp=cd(xd,"browser",[{provide:Mc,useValue:"browser"},{provide:Tc,useValue:function(){Of.makeCurrent(),Mf.init()},multi:!0},{provide:Od,useFactory:function(){return function(e){sn=e}(document),document},deps:[]}]),mp=[[],{provide:qa,useValue:"root"},{provide:eo,useFactory:function(){return new eo},deps:[]},{provide:Bf,useClass:np,multi:!0,deps:[Od,Zc,Mc]},{provide:Bf,useClass:fp,multi:!0,deps:[Od]},[],{provide:Jf,useClass:Jf,deps:[Rf,Nf,Oc]},{provide:Xl,useExisting:Jf},{provide:Ff,useExisting:Nf},{provide:Nf,useClass:Nf,deps:[Od]},{provide:nd,useClass:nd,deps:[Zc]},{provide:Rf,useClass:Rf,deps:[Bf,Zc]},[]],yp=((Xf=function(){function e(t){if(Z(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return Y(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Oc,useValue:t.appId},{provide:If,useExisting:Oc},Tf]}}}]),e}()).\u0275fac=function(e){return new(e||Xf)(rr(Xf,12))},Xf.\u0275mod=jt({type:Xf}),Xf.\u0275inj=at({providers:mp,imports:[bf,Ad]}),Xf);"undefined"!=typeof window&&window;var bp=Y(function e(){Z(this,e)});function wp(e,t){return{type:7,name:e,definitions:t,options:{}}}function kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function xp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function _p(e){return{type:6,styles:e,offset:null}}function Ap(e,t,n){return{type:0,name:e,styles:t,options:n}}function Cp(e){return{type:5,steps:e}}function Sp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Ep(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Pp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Op(e){Promise.resolve(null).then(e)}var Dp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Z(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return Y(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Op(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ip=function(){function e(t){var n=this;Z(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?Op(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return Y(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function Tp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Mp(e){switch(e.length){case 0:return new Dp;case 1:return e[0];default:return new Ip(e)}}function Bp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Rp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Lp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Lp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Lp(n,"destroy",e))})}}function Lp(e,t,n){var i=n.totalTime,r=Fp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Fp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Np(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Vp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var zp=function(e,t){return!1},jp=function(e,t){return!1},Hp=function(e,t,n){return[]},Up=Tp();(Up||"undefined"!=typeof Element)&&(zp=function(e,t){return e.contains(t)},jp=function(){if(Up||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:jp}(),Hp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var Wp=null,Gp=!1;function qp(e){Wp||(Wp=("undefined"!=typeof document?document.body:null)||{},Gp=!!Wp.style&&"WebkitAppearance"in Wp.style);var t=!0;return Wp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Wp.style)&&Gp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Wp.style),t}var Yp=jp,Zp=zp,Kp=Hp;function Qp(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Xp,Jp=((Xp=function(){function e(){Z(this,e)}return Y(e,[{key:"validateStyleProperty",value:function(e){return qp(e)}},{key:"matchesElement",value:function(e,t){return Yp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Kp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new Dp(n,i)}}]),e}()).\u0275fac=function(e){return new(e||Xp)},Xp.\u0275prov=rt({token:Xp,factory:Xp.\u0275fac}),Xp),$p=function(){var e=Y(function e(){Z(this,e)});return e.NOOP=new Jp,e}();function eg(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:tg(parseFloat(t[1]),t[2])}function tg(e,t){switch(t){case"s":return 1e3*e;default:return e}}function ng(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=tg(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=tg(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else i=e;if(!n){var u=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function ig(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function rg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else ig(e,n);return n}function og(e,t,n){return n?t+":"+n+";":""}function ag(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=og(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=og(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function sg(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=gg(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),Tp()&&ag(e))}function lg(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=gg(t);e.style[n]=""}),Tp()&&ag(e))}function ug(e){return Array.isArray(e)?1==e.length?e[0]:xp(e):e}var cg=new RegExp("{{\\s*(.+?)\\s*}}","g");function dg(e){var t=[];if("string"==typeof e){for(var n;n=cg.exec(e);)t.push(n[1]);cg.lastIndex=0}return t}function hg(e,t,n){var i=e.toString(),r=i.replace(cg,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?e:r}function fg(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var pg=/-+([a-z0-9])/g;function gg(e){return e.replace(pg,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function vg(e,t){return 0===e||0===t}function mg(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=bg(e,t)})},s=1;s<t.length;s++)a()}return t}function yg(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function bg(e,t){return window.getComputedStyle(e)[t]}var wg=new Set(["true","1"]),kg=new Set(["false","0"]);function xg(e,t){var n=wg.has(e)||kg.has(e),i=wg.has(t)||kg.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?wg.has(e):kg.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?wg.has(t):kg.has(t)),a&&s}}var _g=new RegExp("s*:selfs*,?","g");function Ag(e,t,n){return new Cg(e).build(t,n)}var Cg=function(){function e(t){Z(this,e),this._driver=t}return Y(e,[{key:"build",value:function(e,t){var n=new Sg(t);return this._resetContextStyleTimingState(n),yg(this,ug(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(Eg(e)){var t=e;Object.keys(t).forEach(function(e){dg(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=fg(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=yg(this,ug(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(xg(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(xg(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Pg(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return yg(n,e,t)}),options:Pg(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=yg(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:Pg(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Og(ng(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=Og(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Og((n=n||ng(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:_p({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=_p(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(Eg(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,u,c,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(o!=r&&o>=h.startTime&&r<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=h.startTime),f&&(d[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,l=t.errors,u=s.params||{},(c=dg(a)).length&&c.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Eg(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Eg(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(c-1));var h=c-1,f=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return u.forEach(function(e,r){var a=d>0?r==h?1:d*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:yg(this,ug(e.animation),t),options:Pg(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Pg(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Pg(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=L(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(_g,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,Np(t.collectedStyles,t.currentQuerySelector,{});var s=yg(this,ug(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Pg(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ng(e.timings,t.errors,!0);return{type:12,animation:yg(this,ug(e.animation),t),timings:n,options:null}}}]),e}(),Sg=Y(function e(t){Z(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function Eg(e){return!Array.isArray(e)&&"object"==typeof e}function Pg(e){var t;return e?(e=ig(e)).params&&(e.params=(t=e.params)?ig(t):null):e={},e}function Og(e,t,n){return{duration:e,delay:t,easing:n}}function Dg(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Ig=function(){function e(){Z(this,e),this._map=new Map}return Y(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,V(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Tg=new RegExp(":enter","g"),Mg=new RegExp(":leave","g");function Bg(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Rg).buildKeyframes(e,t,n,i,r,o,a,s,l,u)}var Rg=function(){function e(){Z(this,e)}return Y(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Ig;var c=new Fg(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),yg(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[Dg(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?eg(n.duration):null,o=null!=n.delay?eg(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),yg(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lg);var a=eg(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return yg(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?eg(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),yg(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return ng(t.params?hg(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?eg(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Lg);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(l=s.currentTimeline),yg(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;yg(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Lg={},Fg=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ng(this._driver,n,0),s.push(this.currentTimeline)}return Y(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=eg(i.duration)),null!=i.delay&&(r.delay=eg(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=hg(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Lg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Vg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Tg,"."+this._enterClassName)).replace(Mg,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,V(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),Ng=function(){function e(t,n,i,r){Z(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return Y(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):rg(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=hg(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=rg(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?fg(t.values()):[],a=n.size?fg(n.values()):[];if(i){var s=r[0],l=ig(s);s.offset=0,l.offset=1,r=[s,l]}return Dg(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),Vg=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Z(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=o,l.postStyleProps=a,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return Y(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=rg(e[0],!1);l.offset=0,o.push(l);var u=rg(e[0],!1);u.offset=zg(s),o.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=rg(e[d],!1);h.offset=zg((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",e=o}return Dg(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Ng);function zg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var jg=Y(function e(){Z(this,e)}),Hg=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"normalizePropertyName",value:function(e,t){return gg(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Ug[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(jg),Ug=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Wg(e,t,n,i,r,o,a,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var Gg={},qg=function(){function e(t,n,i){Z(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return Y(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||Gg,h=this.buildStyles(n,a&&a.params||Gg,c),f=s&&s.params||Gg,p=this.buildStyles(i,f,c),g=new Set,v=new Map,m=new Map,y="void"===i,b={params:Object.assign(Object.assign({},d),f)},w=u?[]:Bg(e,t,this.ast.animation,r,o,h,p,b,l,c),k=0;if(w.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Wg(t,this._triggerName,n,i,y,h,p,[],[],v,m,k,c);w.forEach(function(e){var n=e.element,i=Np(v,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Np(m,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var x=fg(g.values());return Wg(t,this._triggerName,n,i,y,h,p,w,x,v,m,k)}}]),e}(),Yg=function(){function e(t,n){Z(this,e),this.styles=t,this.defaultParams=n}return Y(e,[{key:"buildStyles",value:function(e,t){var n={},i=ig(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=hg(o,i,t)),n[e]=o})}}),n}}]),e}(),Zg=function(){function e(t,n){var i=this;Z(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Yg(e.style,e.options&&e.options.params||{})}),Kg(this.states,"true","1"),Kg(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new qg(t,e,i.states))}),this.fallbackTransition=new qg(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Y(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Kg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Qg=new Ig,Xg=function(){function e(t,n,i){Z(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return Y(e,[{key:"register",value:function(e,t){var n=[],i=Ag(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Bp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Bg(this._driver,t,a,"ng-enter","ng-leave",{},{},r,Qg,o)).forEach(function(e){var t=Np(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=Mp(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=Fp(t,"","","");return Rp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Jg=[],$g={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ev={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Z(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=ig(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Y(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),nv=new tv("void"),iv=function(){function e(t,n,i){Z(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,cv(n,this._hostClassName)}return Y(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Np(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var l=Np(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(cv(e,"ng-trigger"),cv(e,"ng-trigger-"+t),l[t]=nv),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new ov(this.id,t,e),s=this._engine.statesByElement.get(e);s||(cv(e,"ng-trigger"),cv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new tv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=nv),"void"===u.value||l.value!==u.value){var c=Np(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(cv(e,"ng-animate-queued"),a.onStart(function(){dv(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(l.params,u.params)){var f=[],p=o.matchStyles(l.value,l.params,f),g=o.matchStyles(u.value,u.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){lg(e,p),sg(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,"void",i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Mp(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||nv,l=new tv("void"),u=new ov(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==$g||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){cv(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=Fp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Rp(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),rv=function(){function e(t,n,i){Z(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return Y(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new iv(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(av(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(av(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),cv(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),dv(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(av(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return av(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Mp(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=$g,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)cv(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var o=0;o<r.length;o++)r[o]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?Mp(n).onDone(function(){s.forEach(function(e){return e()})}):s.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Ig,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)c.add(t[i])});var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=uv(h,this.collectedEnterElements),p=new Map,g=0;f.forEach(function(e,t){var n="ng-enter"+g++;p.set(t,n),e.forEach(function(e){return cv(e,n)})});for(var v=[],m=new Set,y=new Set,b=0;b<this.collectedLeaveElements.length;b++){var w=this.collectedLeaveElements[b],k=w.__ng_removed;k&&k.setForRemoval&&(v.push(w),m.add(w),k.hasAnimation?this.driver.query(w,".ng-star-inserted",!0).forEach(function(e){return m.add(e)}):y.add(w))}var x=new Map,_=uv(h,Array.from(m));_.forEach(function(e,t){var n="ng-leave"+g++;x.set(t,n),e.forEach(function(e){return cv(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return dv(e,n)})}),_.forEach(function(e,t){var n=x.get(t);e.forEach(function(e){return dv(e,n)})}),v.forEach(function(e){n.processLeaveNode(e)})});for(var A=[],C=[],S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(A.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,o),f=x.get(o),g=p.get(o),v=n._buildInstruction(e,i,g,f,h);if(v.errors&&v.errors.length)C.push(v);else{if(h)return t.onStart(function(){return lg(o,v.fromStyles)}),t.onDestroy(function(){return sg(o,v.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return lg(o,v.fromStyles)}),t.onDestroy(function(){return sg(o,v.toStyles)}),void r.push(t);v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,v.timelines),a.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return Np(s,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(C.length){var E=[];C.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),A.forEach(function(e){return e.destroy()}),this.reportError(E)}var P=new Map,O=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Np(P,t,[]).push(e),e.destroy()})});var D=v.filter(function(e){return pv(e,l,u)}),I=new Map;lv(I,this.driver,y,u,"*").forEach(function(e){pv(e,l,u)&&D.push(e)});var T=new Map;f.forEach(function(e,t){lv(T,n.driver,new Set(e),l,"!")}),D.forEach(function(e){var t=I.get(e),n=T.get(e);I.set(e,Object.assign(Object.assign({},t),n))});var M=[],B=[],R={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return sg(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=R;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var h=O.get(u);if(h){l=h;break}d.push(u)}d.forEach(function(e){return O.set(e,l)})}var f=n._buildAnimation(a.namespaceId,s,P,o,T,I);if(a.setRealPlayer(f),l===R)M.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=Mp(p)),r.push(a)}}else lg(t,s.fromStyles),a.onDestroy(function(){return sg(t,s.toStyles)}),B.push(a),c.has(t)&&r.push(a)}),B.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Mp(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var L=0;L<v.length;L++){var F=v[L],N=F.__ng_removed;if(dv(F,"ng-leave"),!N||!N.hasAnimation){var z=[];if(s.size){var j=s.get(F);j&&j.length&&z.push.apply(z,V(j));for(var H=this.driver.query(F,".ng-animating",!0),U=0;U<H.length;U++){var W=s.get(H[U]);W&&W.length&&z.push.apply(z,V(W))}}var G=z.filter(function(e){return!e.destroyed});G.length?hv(this,F,G):this.processLeaveNode(F)}}return v.length=0,M.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),M}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!r||"void"==r;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=R(t.timelines);try{var u=function(){var e=i.value.element,l=e!==o,u=Np(n,e,[]);r._getPreviousPlayers(e,l,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(l.s();!(i=l.n()).done;)u()}catch(c){l.e(c)}finally{l.f()}lg(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map(function(t){var h=t.element;c.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Dp(t.duration,t.delay);var p,g,v=h!==l,m=(p=(n.get(h)||Jg).map(function(e){return e.getRealPlayer()}),g=[],fv(p,g),g).filter(function(e){return!!e.element&&e.element===h}),y=r.get(h),b=o.get(h),w=Bp(0,a._normalizer,0,t.keyframes,y,b),k=a._buildPlayer(t,w,m);if(t.subTimeline&&i&&d.add(h),v){var x=new ov(e,s,h);x.setRealPlayer(k),u.push(x)}return k});u.forEach(function(e){Np(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return cv(e,"ng-animating")});var f=Mp(h);return f.onDestroy(function(){c.forEach(function(e){return dv(e,"ng-animating")}),sg(l,t.toStyles)}),d.forEach(function(e){Np(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Dp(e.duration,e.delay)}}]),e}(),ov=function(){function e(t,n,i){Z(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Dp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Y(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Rp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Np(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function av(e){return e&&1===e.nodeType}function sv(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function lv(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(sv(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=ev,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return sv(e,o[s++])}),a}function uv(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function cv(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function dv(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function hv(e,t,n){Mp(n).onDone(function(){return e.processLeaveNode(t)})}function fv(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof Ip?fv(i.players,t):t.push(i)}}function pv(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var gv=function(){function e(t,n,i){var r=this;Z(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new rv(t,n,i),this._timelineEngine=new Xg(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return Y(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=Ag(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Zg(e,t)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=L(Vp(n),2),o=r[0],a=r[1];this._timelineEngine.command(o,t,a,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=L(Vp(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,t,s,r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function vv(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=yv(t[0]),t.length>1&&(i=yv(t[t.length-1]))):t&&(n=yv(t)),n||i?new mv(e,n,i):null}var mv=function(){var e=function(){function e(t,n,i){Z(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return Y(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&sg(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(sg(this._element,this._initialStyles),this._endStyles&&(sg(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(lg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lg(this._element,this._endStyles),this._endStyles=null),sg(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function yv(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];bv(r)&&((t=t||{})[r]=e[r])}return t}function bv(e){return"display"===e||"position"===e}var wv=function(){function e(t,n,i,r,o,a,s){var l=this;Z(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return Y(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Sv(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),Cv(e,"",t),Av(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){kv(this._element,this._name,"paused")}},{key:"resume",value:function(){kv(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=xv(this._element,this._name);this._position=e*this._duration,Cv(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Av(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Sv(e,"").split(","),(i=_v(n,t))>=0&&(n.splice(i,1),Cv(e,"",n.join(","))))}}]),e}();function kv(e,t,n){Cv(e,"PlayState",n,xv(e,t))}function xv(e,t){var n=Sv(e,"");return n.indexOf(",")>0?_v(n.split(","),t):_v([n],t)}function _v(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Av(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Cv(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Sv(e,t){return e.style["animation"+t]||""}var Ev=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return Y(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new wv(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:bg(e.element,i))})}this.currentSnapshot=t}}]),e}(),Pv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Qp(i),r}return Y(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),C(M(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),C(M(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,C(M(n.prototype),"destroy",this).call(this))}}]),n}(Dp),Ov=function(){function e(){Z(this,e),this._count=0,this._head=document.querySelector("head")}return Y(e,[{key:"validateStyleProperty",value:function(e){return qp(e)}},{key:"matchesElement",value:function(e,t){return Yp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Kp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Qp(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof Ev}),s={};vg(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=mg(e,t,s));if(0==n)return new Pv(e,l);var u="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var d=vv(e,t),h=new Ev(e,t,u,n,i,r,l,d);return h.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),h}}]),e}(),Dv=function(){function e(t,n,i,r){Z(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return Y(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:bg(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Iv=function(){function e(){Z(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Tv().toString()),this._cssKeyframesDriver=new Ov}return Y(e,[{key:"validateStyleProperty",value:function(e){return qp(e)}},{key:"matchesElement",value:function(e,t){return Yp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Kp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=o.filter(function(e){return e instanceof Dv});vg(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var c=vv(e,t=mg(e,t=t.map(function(e){return rg(e,!1)}),l));return new Dv(e,t,s,c)}}]),e}();function Tv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Mv,Bv=((Mv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:wt.None,styles:[],data:{animation:[]}}),r}return Y(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?xp(e):e;return Fv(this._renderer,null,t,"register",[n]),new Rv(t,this._renderer)}}]),n}(bp)).\u0275fac=function(e){return new(e||Mv)(rr(Xl),rr(Od))},Mv.\u0275prov=rt({token:Mv,factory:Mv.\u0275fac}),Mv),Rv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return Y(n,[{key:"create",value:function(e,t){return new Lv(this._id,e,t||{},this._renderer)}}]),n}(function(){return Y(function e(){Z(this,e)})}()),Lv=function(){function e(t,n,i,r){Z(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return Y(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Fv(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Fv(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Nv,Vv,zv,jv=((Nv=function(){function e(t,n,i){Z(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return Y(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Hv("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new Uv(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=L(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||Nv)(rr(Xl),rr(gv),rr(Zc))},Nv.\u0275prov=rt({token:Nv,factory:Nv.\u0275fac}),Nv),Hv=function(){function e(t,n,i){Z(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return Y(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Uv=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return Y(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if("@"==t.charAt(0)){var a,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),u="";return"@"!=l.charAt(0)&&(r=(i=l).indexOf("."),l=(a=L([i.substring(0,r),i.substr(r+1)],2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,l,u,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Hv),Wv=((Vv=function(e){E(n,e);var t=O(n);function n(e,i,r){return Z(this,n),t.call(this,e.body,i,r)}return Y(n)}(gv)).\u0275fac=function(e){return new(e||Vv)(rr(Od),rr($p),rr(jg))},Vv.\u0275prov=rt({token:Vv,factory:Vv.\u0275fac}),Vv),Gv=new ji("AnimationModuleType"),qv=[{provide:$p,useFactory:function(){return"function"==typeof Tv()?new Iv:new Ov}},{provide:Gv,useValue:"BrowserAnimations"},{provide:bp,useClass:Bv},{provide:jg,useFactory:function(){return new Hg}},{provide:gv,useClass:Wv},{provide:Xl,useFactory:function(e,t,n){return new jv(e,t,n)},deps:[Jf,gv,Zc]}],Yv=((zv=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zv)},zv.\u0275mod=jt({type:zv}),zv.\u0275inj=at({providers:qv,imports:[yp]}),zv);function Zv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(Q(i))return Kv(i,null);if(X(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return Kv(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return Kv(t=1===t.length&&Q(t[0])?t[0]:t,null).pipe(ye(function(e){return o.apply(void 0,V(e))}))}return Kv(t,null)}function Kv(e,t){return new ue(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=Ee(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var Qv,Xv,Jv=Y(function e(){Z(this,e)}),$v=new ji("NgValueAccessor"),em={provide:$v,useExisting:Xe(function(){return tm}),multi:!0},tm=((Qv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r.onChange=function(e){},r.onTouched=function(){},r}return Y(n,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),n}(Jv)).\u0275fac=function(e){return new(e||Qv)(Ps(Jl),Ps(Kl))},Qv.\u0275dir=Ut({type:Qv,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&js("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Hl([em]),ls]}),Qv),nm={provide:$v,useExisting:Xe(function(){return rm}),multi:!0},im=new ji("CompositionEventMode"),rm=((Xv=function(){function e(t,n,i){var r;Z(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Ed()?Ed().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return Y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||Xv)(Ps(Jl),Ps(Kl),Ps(im,8))},Xv.\u0275dir=Ut({type:Xv,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&&js("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:[Hl([nm])]}),Xv);function om(e){return null==e||0===e.length}function am(e){return null!=e&&"number"==typeof e.length}var sm=new ji("NgValidators"),lm=new ji("NgAsyncValidators"),um=/^(?=.{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])?)*$/,cm=function(){function e(){Z(this,e)}return Y(e,null,[{key:"min",value:function(e){return function(e){return function(t){if(om(t.value)||om(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}},{key:"max",value:function(e){return function(e){return function(t){if(om(t.value)||om(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return dm(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return om(e.value)||um.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return om(t.value)||!am(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"maxLength",value:function(e){return hm(e)}},{key:"pattern",value:function(e){return fm(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return wm(e)}},{key:"composeAsync",value:function(e){return xm(e)}}]),e}();function dm(e){return om(e.value)?{required:!0}:null}function hm(e){return function(t){return am(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function fm(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(om(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):pm;var t,n}function pm(e){return null}function gm(e){return null!=e}function vm(e){var t=Ns(e)?Ee(e):e;return zs(t),t}function mm(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function ym(e,t){return t.map(function(t){return t(e)})}function bm(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function wm(e){if(!e)return null;var t=e.filter(gm);return 0==t.length?null:function(e){return mm(ym(e,t))}}function km(e){return null!=e?wm(bm(e)):null}function xm(e){if(!e)return null;var t=e.filter(gm);return 0==t.length?null:function(e){return Zv(ym(e,t).map(vm)).pipe(ye(mm))}}function _m(e){return null!=e?xm(bm(e)):null}function Am(e,t){return null===e?[t]:Array.isArray(e)?[].concat(V(e),[t]):[e,t]}function Cm(e){return e._rawValidators}function Sm(e){return e._rawAsyncValidators}var Em,Pm,Om,Dm,Im=((Pm=function(){function e(){Z(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return Y(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=km(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=_m(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||Pm)},Pm.\u0275dir=Ut({type:Pm}),Pm),Tm=((Em=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Im)).\u0275fac=function(e){return Mm(e||Em)},Em.\u0275dir=Ut({type:Em,features:[ls]}),Em),Mm=Li(Tm),Bm=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return Y(n)}(Im),Rm=function(){function e(t){Z(this,e),this._cd=t}return Y(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Lm=((Dm=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n)}(Rm)).\u0275fac=function(e){return new(e||Dm)(Ps(Bm,2))},Dm.\u0275dir=Ut({type:Dm,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&al("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:[ls]}),Dm),Fm=((Om=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n)}(Rm)).\u0275fac=function(e){return new(e||Om)(Ps(Tm,10))},Om.\u0275dir=Ut({type:Om,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&al("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:[ls]}),Om);function Nm(e,t){return[].concat(V(t.path),[e])}function Vm(e,t){Hm(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Wm(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Wm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function zm(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Um(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function jm(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Hm(e,t,n){var i=Cm(e);null!==t.validator?e.setValidators(Am(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=Sm(e);if(null!==t.asyncValidator?e.setAsyncValidators(Am(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var o=function(){return e.updateValueAndValidity()};jm(t._rawValidators,o),jm(t._rawAsyncValidators,o)}}function Um(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=Cm(e);if(Array.isArray(r)&&r.length>0){var o=r.filter(function(e){return e!==t.validator});o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=Sm(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};jm(t._rawValidators,l),jm(t._rawAsyncValidators,l)}return i}function Wm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Gm(e,t){Hm(e,t,!1)}function qm(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Ym(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Zm(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===rm?n=e:Object.getPrototypeOf(e.constructor)===Jv?i=e:r=e}),r||i||n||null}function Km(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Qm(e){return(ey(e)?e.validators:e)||null}function Xm(e){return Array.isArray(e)?km(e):e||null}function Jm(e,t){return(ey(t)?t.asyncValidators:e)||null}function $m(e){return Array.isArray(e)?_m(e):e||null}function ey(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ty,ny,iy,ry,oy,ay,sy,ly=function(){function e(t,n){Z(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Xm(this._rawValidators),this._composedAsyncValidatorFn=$m(this._rawAsyncValidators)}return Y(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Xm(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=$m(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=vm(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof cy?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof dy&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new ac,this.statusChanges=new ac}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ey(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),uy=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Z(this,n),(e=t.call(this,Qm(r),Jm(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return Y(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Km(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Km(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ly),cy=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Qm(i),Jm(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return Y(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof uy?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ly),dy=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Qm(i),Jm(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return Y(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof uy?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=R(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(ly),hy={provide:Tm,useExisting:Xe(function(){return py})},fy=Promise.resolve(null),py=((ty=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new ac,r.form=new cy({},km(e),_m(i)),r}return Y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Vm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Km(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path),i=new cy({});Gm(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;fy.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Ym(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Tm)).\u0275fac=function(e){return new(e||ty)(Ps(sm,10),Ps(lm,10))},ty.\u0275dir=Ut({type:ty,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&js("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Hl([hy]),ls]}),ty),gy={provide:Bm,useExisting:Xe(function(){return my})},vy=Promise.resolve(null),my=((ry=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this)).control=new uy,a._registered=!1,a.update=new ac,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=Zm(0,o),a}return Y(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),qm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Nm(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Vm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;vy.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;vy.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Bm)).\u0275fac=function(e){return new(e||ry)(Ps(Tm,9),Ps(sm,10),Ps(lm,10),Ps($v,10))},ry.\u0275dir=Ut({type:ry,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Hl([gy]),ls,tn]}),ry),yy=((iy=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||iy)},iy.\u0275dir=Ut({type:iy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),iy),by=((ny=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||ny)},ny.\u0275mod=jt({type:ny}),ny.\u0275inj=at({}),ny),wy=new ji("NgModelWithFormControlWarning"),ky={provide:Bm,useExisting:Xe(function(){return xy})},xy=((oy=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new ac,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=Zm(0,r),a}return Y(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&zm(t,this,!1),Vm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}qm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&zm(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(Bm)).\u0275fac=function(e){return new(e||oy)(Ps(sm,10),Ps(lm,10),Ps($v,10),Ps(wy,8))},oy.\u0275dir=Ut({type:oy,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Hl([ky]),ls,tn]}),oy._ngModelWarningSentOnce=!1,oy),_y={provide:Tm,useExisting:Xe(function(){return Ay})},Ay=((ay=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new ac,r._setValidators(e),r._setAsyncValidators(i),r}return Y(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Um(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Vm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){zm(e.control||null,e,!1),Km(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Ym(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(zm(n||null,t),i instanceof uy&&(Vm(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);Gm(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Um(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Hm(this.form,this,!1),this._oldForm&&Um(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Tm)).\u0275fac=function(e){return new(e||ay)(Ps(sm,10),Ps(lm,10))},ay.\u0275dir=Ut({type:ay,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&js("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Hl([_y]),ls,tn]}),ay),Cy={provide:Bm,useExisting:Xe(function(){return Sy})},Sy=((sy=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new ac,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=Zm(0,o),s}return Y(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),qm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return Nm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Bm)).\u0275fac=function(e){return new(e||sy)(Ps(Tm,13),Ps(sm,10),Ps(lm,10),Ps($v,10),Ps(wy,8))},sy.\u0275dir=Ut({type:sy,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Hl([Cy]),ls,tn]}),sy._ngModelWarningSentOnce=!1,sy),Ey={provide:$v,useExisting:Xe(function(){return Iy}),multi:!0};function Py(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Oy,Dy,Iy=((Dy=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return Y(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Py(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}]),n}(Jv)).\u0275fac=function(e){return new(e||Dy)(Ps(Jl),Ps(Kl))},Dy.\u0275dir=Ut({type:Dy,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&js("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Hl([Ey]),ls]}),Dy),Ty=((Oy=function(){function e(t,n,i){Z(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}return Y(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Py(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||Oy)(Ps(Kl),Ps(Jl),Ps(Iy,9))},Oy.\u0275dir=Ut({type:Oy,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Oy),My={provide:$v,useExisting:Xe(function(){return Wy}),multi:!0};function By(e,t){return null==e?""+t:("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Ry,Ly,Fy,Ny,Vy,zy,jy,Hy,Uy,Wy=((Ly=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return Y(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var l=n.options,u=0;u<l.length;u++){var c=l.item(u);if(c.selected){var d=t._getOptionValue(c.value);i.push(d)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}]),n}(Jv)).\u0275fac=function(e){return new(e||Ly)(Ps(Jl),Ps(Kl))},Ly.\u0275dir=Ut({type:Ly,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&js("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Hl([My]),ls]}),Ly),Gy=((Ry=function(){function e(t,n,i){Z(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}return Y(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(By(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(By(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||Ry)(Ps(Kl),Ps(Jl),Ps(Wy,9))},Ry.\u0275dir=Ut({type:Ry,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ry),qy={provide:sm,useExisting:Xe(function(){return Yy}),multi:!0},Yy=((Fy=function(){function e(){Z(this,e),this._required=!1}return Y(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?dm(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||Fy)},Fy.\u0275dir=Ut({type:Fy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&_s("required",t.required?"":null)},inputs:{required:"required"},features:[Hl([qy])]}),Fy),Zy={provide:sm,useExisting:Xe(function(){return Ky}),multi:!0},Ky=((Ny=function(){function e(){Z(this,e),this._validator=pm}return Y(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=hm("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||Ny)},Ny.\u0275dir=Ut({type:Ny,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&_s("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Hl([Zy]),tn]}),Ny),Qy={provide:sm,useExisting:Xe(function(){return Xy}),multi:!0},Xy=((Uy=function(){function e(){Z(this,e),this._validator=pm}return Y(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=fm(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||Uy)},Uy.\u0275dir=Ut({type:Uy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&_s("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[Hl([Qy]),tn]}),Uy),Jy=((Hy=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Hy)},Hy.\u0275mod=jt({type:Hy}),Hy.\u0275inj=at({imports:[[by]]}),Hy),$y=((jy=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||jy)},jy.\u0275mod=jt({type:jy}),jy.\u0275inj=at({imports:[Jy]}),jy),eb=((zy=function(){function e(){Z(this,e)}return Y(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:wy,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||zy)},zy.\u0275mod=jt({type:zy}),zy.\u0275inj=at({imports:[Jy]}),zy),tb=((Vy=function(){function e(){Z(this,e)}return Y(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new cy(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new uy(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new dy(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof uy||e instanceof cy||e instanceof dy?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||Vy)},Vy.\u0275prov=rt({factory:function(){return new Vy},token:Vy,providedIn:eb}),Vy);function nb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return me(i)?(t.pop(),Se(t,i)):Re(t)}function ib(e,t){return Ie(e,t,1)}function rb(e,t){return function(n){return n.lift(new ob(e,t))}}var ob=function(){function e(t,n){Z(this,e),this.predicate=t,this.thisArg=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new ab(e,this.predicate,this.thisArg))}}]),e}(),ab=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return Y(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(re),sb=Y(function e(){Z(this,e)}),lb=Y(function e(){Z(this,e)}),ub=function(){function e(t){var n=this;Z(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return Y(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,V(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),cb=function(){function e(){Z(this,e)}return Y(e,[{key:"encodeKey",value:function(e){return db(e)}},{key:"encodeValue",value:function(e){return db(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function db(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var hb=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Z(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new cb,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=L(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return Y(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function fb(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function pb(e){return"undefined"!=typeof Blob&&e instanceof Blob}function gb(e){return"undefined"!=typeof FormData&&e instanceof FormData}var vb=function(){function e(t,n,i,r){var o;if(Z(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new ub),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new hb,this.urlWithParams=n}return Y(e,[{key:"serializeBody",value:function(){return null===this.body?null:fb(this.body)||pb(this.body)||gb(this.body)||"string"==typeof this.body?this.body:this.body instanceof hb?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||gb(this.body)?null:pb(this.body)?this.body.type||null:fb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof hb?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,o,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),mb=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),yb=Y(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";Z(this,e),this.headers=t.headers||new ub,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}),bb=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).type=mb.ResponseHeader,e}return Y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(yb),wb=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).type=mb.Response,e.body=void 0!==i.body?i.body:null,e}return Y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(yb),kb=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return Y(n)}(yb);function xb(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var _b,Ab,Cb,Sb,Eb,Pb,Ob,Db,Ib,Tb=((_b=function(){function e(t){Z(this,e),this.handler=t}return Y(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof vb)n=e;else{var o=void 0;o=r.headers instanceof ub?r.headers:new ub(r.headers);var a=void 0;r.params&&(a=r.params instanceof hb?r.params:new hb({fromObject:r.params})),n=new vb(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=nb(n).pipe(ib(function(e){return i.handler.handle(e)}));if(e instanceof vb||"events"===r.observe)return s;var l=s.pipe(rb(function(e){return e instanceof wb}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(ye(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(ye(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(ye(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(ye(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new hb).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,xb(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,xb(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,xb(n,t))}}]),e}()).\u0275fac=function(e){return new(e||_b)(rr(sb))},_b.\u0275prov=rt({token:_b,factory:_b.\u0275fac}),_b),Mb=function(){function e(t,n){Z(this,e),this.next=t,this.interceptor=n}return Y(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Bb=new ji("HTTP_INTERCEPTORS"),Rb=((Ab=function(){function e(){Z(this,e)}return Y(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ab)},Ab.\u0275prov=rt({token:Ab,factory:Ab.\u0275fac}),Ab),Lb=/^\)\]\}',?\n/,Fb=Y(function e(){Z(this,e)}),Nb=((Sb=function(){function e(){Z(this,e)}return Y(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||Sb)},Sb.\u0275prov=rt({token:Sb,factory:Sb.\u0275fac}),Sb),Vb=((Cb=function(){function e(t){Z(this,e),this.xhrFactory=t}return Y(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ue(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new ub(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new bb({headers:r,status:t,statusText:n,url:o})},u=function(){var t=l(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(Lb,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new wb({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new kb({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,r=new kb({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:mb.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:mb.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:mb.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||Cb)(rr(Fb))},Cb.\u0275prov=rt({token:Cb,factory:Cb.\u0275fac}),Cb),zb=new ji("XSRF_COOKIE_NAME"),jb=new ji("XSRF_HEADER_NAME"),Hb=Y(function e(){Z(this,e)}),Ub=((Ib=function(){function e(t,n,i){Z(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return Y(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Ib)(rr(Od),rr(Mc),rr(zb))},Ib.\u0275prov=rt({token:Ib,factory:Ib.\u0275fac}),Ib),Wb=((Db=function(){function e(t,n){Z(this,e),this.tokenService=t,this.headerName=n}return Y(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Db)(rr(Hb),rr(jb))},Db.\u0275prov=rt({token:Db,factory:Db.\u0275fac}),Db),Gb=((Ob=function(){function e(t,n){Z(this,e),this.backend=t,this.injector=n,this.chain=null}return Y(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Bb,[]);this.chain=t.reduceRight(function(e,t){return new Mb(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ob)(rr(lb),rr(as))},Ob.\u0275prov=rt({token:Ob,factory:Ob.\u0275fac}),Ob),qb=((Pb=function(){function e(){Z(this,e)}return Y(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Wb,useClass:Rb}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:zb,useValue:t.cookieName}:[],t.headerName?{provide:jb,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||Pb)},Pb.\u0275mod=jt({type:Pb}),Pb.\u0275inj=at({providers:[Wb,{provide:Bb,useExisting:Wb,multi:!0},{provide:Hb,useClass:Ub},{provide:zb,useValue:"XSRF-TOKEN"},{provide:jb,useValue:"X-XSRF-TOKEN"}]}),Pb),Yb=((Eb=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Eb)},Eb.\u0275mod=jt({type:Eb}),Eb.\u0275inj=at({providers:[Tb,{provide:sb,useClass:Gb},Vb,{provide:lb,useExisting:Vb},Nb,{provide:Fb,useExisting:Nb}],imports:[[qb.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Eb),Zb=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._value=e,i}return Y(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=C(M(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new he;return this._value}},{key:"next",value:function(e){C(M(n.prototype),"next",this).call(this,this._value=e)}}]),n}(ge),Kb=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(re),Qb=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return Y(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(re);function Xb(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Qb(e,n,i);if(!r.closed)return t instanceof ue?t.subscribe(r):Ce(t)(r)}var Jb={};function $b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return me(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Q(t[0])&&(t=t[0]),Re(t,r).lift(new ew(i))}var ew=function(){function e(t){Z(this,e),this.resultSelector=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new tw(e,this.resultSelector))}}]),e}(),tw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return Y(n,[{key:"_next",value:function(e){this.values.push(Jb),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(Xb(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===Jb?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Kb),nw=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function iw(){return Be(1)(nb.apply(void 0,arguments))}var rw=new ue(function(e){return e.complete()});function ow(e){return e?function(e){return new ue(function(t){return e.schedule(function(){return t.complete()})})}(e):rw}function aw(e){return new ue(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Ee(n):ow()).subscribe(t)})}function sw(e,t){return"function"==typeof t?function(n){return n.pipe(sw(function(n,i){return Ee(e(n,i)).pipe(ye(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new lw(e))}}var lw=function(){function e(t){Z(this,e),this.project=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new uw(e,this.project))}}]),e}(),uw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return Y(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new Pe(this),i=this.destination;i.add(n),this.innerSubscription=De(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||C(M(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&C(M(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(Oe),cw=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function dw(e){return function(t){return 0===e?ow():t.lift(new hw(e))}}var hw=function(){function e(t){if(Z(this,e),this.total=t,this.total<0)throw new cw}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new fw(e,this.total))}}]),e}(),fw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Y(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(re);function pw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return me(i)?(t.pop(),function(e){return iw(t,e,i)}):function(e){return iw(t,e)}}function gw(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new vw(e,t,n))}}var vw=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Z(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new mw(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),mw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return Y(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(re);function yw(e){return function(t){var n=new bw(e),i=t.lift(n);return n.caught=i}}var bw=function(){function e(t){Z(this,e),this.selector=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new ww(e,this.selector,this.caught))}}]),e}(),ww=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return Y(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void C(M(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new Pe(this);this.add(i);var r=De(t,i);r!==i&&this.add(r)}}}]),n}(Oe);function kw(e){return function(t){return 0===e?ow():t.lift(new xw(e))}}var xw=function(){function e(t){if(Z(this,e),this.total=t,this.total<0)throw new cw}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new _w(e,this.total))}}]),e}(),_w=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return Y(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(re);function Aw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ew;return function(t){return t.lift(new Cw(e))}}var Cw=function(){function e(t){Z(this,e),this.errorFactory=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Sw(e,this.errorFactory))}}]),e}(),Sw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return Y(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(re);function Ew(){return new nw}function Pw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Ow(e))}}var Ow=function(){function e(t){Z(this,e),this.defaultValue=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Dw(e,this.defaultValue))}}]),e}(),Dw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return Y(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(re);function Iw(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?rb(function(t,n){return e(t,n,i)}):se,dw(1),n?Pw(t):Aw(function(){return new nw}))}}function Tw(){}function Mw(e,t,n){return function(i){return i.lift(new Bw(e,t,n))}}var Bw=function(){function e(t,n,i){Z(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Rw(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Rw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e))._tapNext=Tw,a._tapError=Tw,a._tapComplete=Tw,a._tapError=r||Tw,a._tapComplete=o||Tw,T(i)?(a._context=I(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Tw,a._tapError=i.error||Tw,a._tapComplete=i.complete||Tw),a}return Y(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(re);function Lw(e){return function(t){return t.lift(new Fw(e))}}var Fw=function(){function e(t){Z(this,e),this.callback=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Nw(e,this.callback))}}]),e}(),Nw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).add(new te(i)),r}return Y(n)}(re),Vw=Y(function e(t,n){Z(this,e),this.id=t,this.url=n}),zw=function(e){E(n,e);var t=O(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Z(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return Y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Vw),jw=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return Y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Vw),Hw=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e,i)).reason=r,o}return Y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Vw),Uw=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e,i)).error=r,o}return Y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Vw),Ww=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),Gw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),qw=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return Y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Vw),Yw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),Zw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),Kw=function(){function e(t){Z(this,e),this.route=t}return Y(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Qw=function(){function e(t){Z(this,e),this.route=t}return Y(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Xw=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Jw=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$w=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ek=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),tk=function(){function e(t,n,i){Z(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return Y(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),nk=function(){function e(t){Z(this,e),this.params=t||{}}return Y(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ik(e){return new nk(e)}function rk(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ok(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ak(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!sk(e[n=i[o]],t[n]))return!1;return!0}function sk(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=V(e).sort(),i=V(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function lk(e){return Array.prototype.concat.apply([],e)}function uk(e){return e.length>0?e[e.length-1]:null}function ck(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function dk(e){return zs(e)?e:Ns(e)?Ee(Promise.resolve(e)):nb(e)}function hk(e,t,n){return n?function(e,t){return ak(e,t)}(e.queryParams,t.queryParams)&&fk(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return sk(e[n],t[n])})}(e.queryParams,t.queryParams)&&pk(e.root,t.root)}function fk(e,t){if(!bk(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!fk(e.children[n],t.children[n]))return!1}return!0}function pk(e,t){return gk(e,t,t.segments)}function gk(e,t,n){if(e.segments.length>n.length)return!!bk(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!bk(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!pk(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!bk(e.segments,r)&&!!e.children.primary&&gk(e.children.primary,t,o)}var vk=function(){function e(t,n,i){Z(this,e),this.root=t,this.queryParams=n,this.fragment=i}return Y(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ik(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return xk.serialize(this)}}]),e}(),mk=function(){function e(t,n){var i=this;Z(this,e),this.segments=t,this.children=n,this.parent=null,ck(n,function(e,t){return e.parent=i})}return Y(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return _k(this)}}]),e}(),yk=function(){function e(t,n){Z(this,e),this.path=t,this.parameters=n}return Y(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ik(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Dk(this)}}]),e}();function bk(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var wk=Y(function e(){Z(this,e)}),kk=function(){function e(){Z(this,e)}return Y(e,[{key:"parse",value:function(e){var t=new Rk(e);return new vk(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Ak(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Sk(e),"=").concat(Sk(t))}).join("&"):"".concat(Sk(e),"=").concat(Sk(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),xk=new kk;function _k(e){return e.segments.map(function(e){return Dk(e)}).join("/")}function Ak(e,t){if(!e.hasChildren())return _k(e);if(t){var n=e.children.primary?Ak(e.children.primary,!1):"",i=[];return ck(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Ak(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return ck(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),ck(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Ak(e.children.primary,!1)]:["".concat(n,":").concat(Ak(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(_k(e),"/").concat(r[0]):"".concat(_k(e),"/(").concat(r.join("//"),")")}function Ck(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sk(e){return Ck(e).replace(/%3B/gi,";")}function Ek(e){return Ck(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pk(e){return decodeURIComponent(e)}function Ok(e){return Pk(e.replace(/\+/g,"%20"))}function Dk(e){return"".concat(Ek(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Ek(e),"=").concat(Ek(t[e]))}).join("")));var t}var Ik=/^[^\/()?;=#]+/;function Tk(e){var t=e.match(Ik);return t?t[0]:""}var Mk=/^[^=?&#]+/,Bk=/^[^?&#]+/,Rk=function(){function e(t){Z(this,e),this.url=t,this.remaining=t}return Y(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mk([],{}):new mk([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new mk(e,t)),n}},{key:"parseSegment",value:function(){var e=Tk(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new yk(Pk(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Tk(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Tk(this.remaining);i&&(n=i,this.capture(n))}e[Pk(t)]=Pk(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Mk);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Bk);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Ok(t),o=Ok(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Tk(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new mk([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Lk=function(){function e(t){Z(this,e),this._root=t}return Y(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Fk(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Fk(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Nk(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return Nk(e,this._root).map(function(e){return e.value})}}]),e}();function Fk(e,t){if(e===t.value)return t;var n,i=R(t.children);try{for(i.s();!(n=i.n()).done;){var r=Fk(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function Nk(e,t){if(e===t.value)return[t];var n,i=R(t.children);try{for(i.s();!(n=i.n()).done;){var r=Nk(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var Vk=function(){function e(t,n){Z(this,e),this.value=t,this.children=n}return Y(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function zk(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var jk=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).snapshot=i,Yk(I(r),e),r}return Y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Lk);function Hk(e,t){var n=function(e,t){var n=new Gk([],{},{},"",{},"primary",t,null,e.root,-1,{});return new qk("",new Vk(n,[]))}(e,t),i=new Zb([new yk("",{})]),r=new Zb({}),o=new Zb({}),a=new Zb({}),s=new Zb(""),l=new Uk(i,r,a,s,o,"primary",t,n.root);return l.snapshot=n.root,new jk(new Vk(l,[]),n)}var Uk=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return Y(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ye(function(e){return ik(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(function(e){return ik(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function Wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Gk=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return Y(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ik(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ik(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),qk=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,i)).url=e,Yk(I(r),i),r}return Y(n,[{key:"toString",value:function(){return Zk(this._root)}}]),n}(Lk);function Yk(e,t){t.value._routerState=e,t.children.forEach(function(t){return Yk(e,t)})}function Zk(e){var t=e.children.length>0?" { ".concat(e.children.map(Zk).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Kk(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ak(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ak(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ak(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ak(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Qk(e,t){var n,i;return ak(e.params,t.params)&&bk(n=e.url,i=t.url)&&n.every(function(e,t){return ak(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||Qk(e.parent,t.parent))}function Xk(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=R(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return Xk(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return Xk(e,t)})}(e,t,n);return new Vk(i,r)}var o=e.retrieve(t.value);if(o){var a=o.route;return Jk(t,a),a}var s,l=new Uk(new Zb((s=t.value).url),new Zb(s.params),new Zb(s.queryParams),new Zb(s.fragment),new Zb(s.data),s.outlet,s.component,s),u=t.children.map(function(t){return Xk(e,t)});return new Vk(l,u)}function Jk(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)Jk(e.children[n],t.children[n])}function $k(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ex(e){return"object"==typeof e&&null!=e&&e.outlets}function tx(e,t,n,i,r){var o={};return i&&ck(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new vk(n.root===e?t:nx(n.root,e,t),o,r)}function nx(e,t,n){var i={};return ck(e.children,function(e,r){i[r]=e===t?n:nx(e,t,n)}),new mk(e.segments,i)}var ix=function(){function e(t,n,i){if(Z(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&$k(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(ex);if(r&&r!==uk(i))throw new Error("{outlets:{}} has to be the last command")}return Y(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),rx=Y(function e(t,n,i){Z(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i});function ox(e,t,n){if(e||(e=new mk([],{})),0===e.segments.length&&e.hasChildren())return ax(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(ex(s))break;var l=""+s,u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!cx(l,u,a))return o;i+=2}else{if(!cx(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new mk(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new mk(e.segments.slice(i.pathIndex),e.children),ax(o,0,r)}return i.match&&0===r.length?new mk(e.segments,{}):i.match&&!e.hasChildren()?sx(e,t,n):i.match?ax(e,0,r):sx(e,t,n)}function ax(e,t,n){if(0===n.length)return new mk(e.segments,{});var i=function(e){return ex(e[0])?e[0].outlets:{primary:e}}(n),r={};return ck(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=ox(e.children[i],t,n))}),ck(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new mk(e.segments,r)}function sx(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(ex(o)){var a=lx(o.outlets);return new mk(i,a)}if(0===r&&$k(n[0]))i.push(new yk(e.segments[t].path,ux(n[0]))),r++;else{var s=ex(o)?o.outlets.primary:""+o,l=r<n.length-1?n[r+1]:null;s&&l&&$k(l)?(i.push(new yk(s,ux(l))),r+=2):(i.push(new yk(s,{})),r++)}}return new mk(i,{})}function lx(e){var t={};return ck(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=sx(new mk([],{}),0,e))}),t}function ux(e){var t={};return ck(e,function(e,n){return t[n]=""+e}),t}function cx(e,t,n){return e==n.path&&ak(t,n.parameters)}var dx=function(){function e(t,n,i,r){Z(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return Y(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Kk(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=zk(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),ck(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=zk(e),o=0,a=Object.keys(r);o<a.length;o++){var s=a[o];this.deactivateRouteAndItsChildren(r[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=zk(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new ek(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Jw(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(Kk(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),hx(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=u,a.outlet&&a.outlet.activateWith(i,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function hx(e){Kk(e.value),e.children.forEach(hx)}var fx=Y(function e(t,n){Z(this,e),this.routes=t,this.module=n});function px(e){return"function"==typeof e}function gx(e){return e instanceof vk}var vx=Symbol("INITIAL_VALUE");function mx(){return sw(function(e){return $b(e.map(function(e){return e.pipe(dw(1),pw(vx))})).pipe(gw(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==vx)return e;if(i===vx&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||gx(i))return i}return e},e)},vx),rb(function(e){return e!==vx}),ye(function(e){return gx(e)?e:!0===e}),dw(1))})}var yx,bx=((yx=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yx)},yx.\u0275cmp=Ft({type:yx,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Ms(0,"router-outlet")},directives:function(){return[b_]},encapsulation:2}),yx);function wx(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];kx(i,xx(t,i))}}function kx(e,t){e.children&&wx(e.children,t)}function xx(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function _x(e){var t=e.children&&e.children.map(_x),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=bx),n}function Ax(e){return e.outlet||"primary"}function Cx(e,t){var n=e.filter(function(e){return Ax(e)===t});return n.push.apply(n,V(e.filter(function(e){return Ax(e)!==t}))),n}var Sx={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ex(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Sx):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ok)(n,e,t);if(!r)return Object.assign({},Sx);var o={};ck(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Px(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ox(e,t,n)&&"primary"!==Ax(n)})}(e,n,i)){var o=new mk(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=R(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==Ax(s)){var l=new mk([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,r[Ax(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}(e,t,i,new mk(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ox(e,t,n)})}(e,n,i)){var a=new mk(e.segments,function(e,t,n,i,r,o){var a,s={},l=R(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(Ox(e,n,u)&&!r[Ax(u)]){var c=new mk([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Ax(u)]=c}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new mk(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ox(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Dx(e,t,n,i){return!!(Ax(e)===i||"primary"!==i&&Ox(t,n,e))&&("**"===e.path||Ex(t,e,n).matched)}function Ix(e,t,n){return 0===t.length&&!e.children[n]}var Tx=Y(function e(t){Z(this,e),this.segmentGroup=t||null}),Mx=Y(function e(t){Z(this,e),this.urlTree=t});function Bx(e){return new ue(function(t){return t.error(new Tx(e))})}function Rx(e){return new ue(function(t){return t.error(new Mx(e))})}function Lx(e){return new ue(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Fx=function(){function e(t,n,i,r,o){Z(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Du)}return Y(e,[{key:"apply",value:function(){var e=this,t=Px(this.urlTree.root,[],[],this.config).segmentGroup,n=new mk(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(ye(function(t){return e.createUrlTree(Nx(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(yw(function(t){if(t instanceof Mx)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Tx)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(ye(function(n){return t.createUrlTree(Nx(n),e.queryParams,e.fragment)})).pipe(yw(function(e){if(e instanceof Tx)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new mk([],{primary:e}):e;return new vk(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ye(function(e){return new mk([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return Ee(r).pipe(ib(function(r){var o=n.children[r],a=Cx(t,r);return i.expandSegmentGroup(e,a,o,r).pipe(ye(function(e){return{segment:e,outlet:r}}))}),gw(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?rb(function(t,n){return e(t,n,i)}):se,kw(1),n?Pw(t):Aw(function(){return new nw}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return Ee(n).pipe(ib(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(yw(function(e){if(e instanceof Tx)return nb(null);throw e}))}),Iw(function(e){return!!e}),yw(function(e,n){if(e instanceof nw||"EmptyError"===e.name){if(Ix(t,i,r))return nb(new mk([],{}));throw new Tx(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Dx(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Bx(t):Bx(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Rx(o):this.lineralizeSegments(n,o).pipe(Ie(function(n){var o=new mk(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Ex(t,i,r),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return Bx(t);var h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?Rx(h):this.lineralizeSegments(i,h).pipe(Ie(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?nb(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ye(function(e){return n._loadedConfig=e,new mk(i,{})})):nb(new mk(i,{}));var a=Ex(t,n,i),s=a.matched,l=a.consumedSegments,u=a.lastChild;if(!s)return Bx(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(Ie(function(e){var i=e.module,a=e.routes,s=Px(t,l,c,a),u=s.segmentGroup,d=s.slicedSegments,h=new mk(u.segments,u.children);if(0===d.length&&h.hasChildren())return o.expandChildren(i,a,h).pipe(ye(function(e){return new mk(l,e)}));if(0===a.length&&0===d.length)return nb(new mk(l,{}));var f=Ax(n)===r;return o.expandSegment(i,h,a,d,f?"primary":r,!0).pipe(ye(function(e){return new mk(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?nb(new fx(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?nb(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Ie(function(n){return n?i.configLoader.load(e.injector,t).pipe(ye(function(e){return t._loadedConfig=e,e})):function(e){return new ue(function(t){return t.error(rk("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):nb(new fx([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?nb(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&px(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!px(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return dk(r)})).pipe(mx(),Mw(function(e){if(gx(e)){var t=rk('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ye(function(e){return!0===e})):nb(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return nb(n);if(i.numberOfChildren>1||!i.children.primary)return Lx(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new vk(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return ck(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return ck(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new mk(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=R(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function Nx(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=Nx(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new mk(e.segments.concat(t.segments),t.children)}return e}(new mk(e.segments,t))}var Vx=Y(function e(t){Z(this,e),this.path=t,this.route=this.path[this.path.length-1]}),zx=Y(function e(t,n){Z(this,e),this.component=t,this.route=n});function jx(e,t,n){var i=e._root;return Ux(i,t?t._root:null,n,[i.value])}function Hx(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Ux(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=zk(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!bk(e.url,t.url);case"pathParamsOrQueryParamsChange":return!bk(e.url,t.url)||!ak(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qk(e,t)||!ak(e.queryParams,t.queryParams);case"paramsChange":default:return!Qk(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Vx(i)):(o.data=a.data,o._resolvedData=a._resolvedData),Ux(e,t,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new zx(s.outlet.component,a))}else a&&Wx(t,s,r),r.canActivateChecks.push(new Vx(i)),Ux(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),ck(o,function(e,t){return Wx(e,n.getContext(t),r)}),r}function Wx(e,t,n){var i=zk(e),r=e.value;ck(i,function(e,i){Wx(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new zx(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var Gx=Y(function e(){Z(this,e)});function qx(e){return new ue(function(t){return t.error(e)})}var Yx=function(){function e(t,n,i,r,o,a){Z(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return Y(e,[{key:"recognize",value:function(){var e=Px(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new Gk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Vk(n,t),r=new qk(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=Wk(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=Cx(e,o),l=this.processSegmentGroup(s,a,o);if(null===l)return null;n.push.apply(n,V(l))}var u=function(e){var t,n=[],i=R(e);try{var r=function(){var e,i=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(i))return n.push(i),"continue";var r=n.find(function(e){return i.value.routeConfig===e.value.routeConfig});void 0!==r?(e=r.children).push.apply(e,V(i.children)):n.push(i)};for(i.s();!(t=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return n}(n);return u.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),u}},{key:"processSegment",value:function(e,t,n,i){var r,o=R(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.processSegmentAgainstRoute(a,t,n,i);if(null!==s)return s}}catch(l){o.e(l)}finally{o.f()}return Ix(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!Dx(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?uk(n).parameters:{};r=new Gk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qx(e),Ax(e),e.component,e,Zx(t),Kx(t)+n.length,Xx(e))}else{var l=Ex(t,e,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new Gk(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qx(e),Ax(e),e.component,e,Zx(t),Kx(t)+o.length,Xx(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Px(t,o,a,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return null===f?null:[new Vk(r,f)]}if(0===u.length&&0===h.length)return[new Vk(r,[])];var p=Ax(e)===i,g=this.processSegment(u,d,h,p?"primary":i);return null===g?null:[new Vk(r,g)]}}]),e}();function Zx(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Kx(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Qx(e){return e.data||{}}function Xx(e){return e.resolve||{}}function Jx(e){return sw(function(t){var n=e(t);return n?Ee(n).pipe(ye(function(){return t})):nb(t)})}var $x=Y(function e(){Z(this,e)}),e_=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(function(){function e(){Z(this,e)}return Y(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),t_=new ji("ROUTES"),n_=function(){function e(t,n,i,r){Z(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return Y(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(ye(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new fx(lk(r.injector.get(t_,void 0,gt.Self|gt.Optional)).map(_x),r)}),yw(function(e){throw t._loader$=void 0,e}));return t._loader$=new je(i,function(){return new ge}).pipe(Fe()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Ee(this.loader.load(e)):dk(e()).pipe(Ie(function(e){return e instanceof Iu?nb(e):Ee(t.compiler.compileModuleAsync(e))}))}}]),e}(),i_=Y(function e(){Z(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new r_,this.attachRef=null}),r_=function(){function e(){Z(this,e),this.contexts=new Map}return Y(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new i_,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),o_=function(){function e(){Z(this,e)}return Y(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function a_(e){throw e}function s_(e,t,n){return t.parse("/")}function l_(e,t){return nb(null)}var u_,c_,d_,h_=((d_=function(){function e(t,n,i,r,o,a,s,l){var u=this;Z(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new ge,this.errorHandler=a_,this.malformedUriErrorHandler=s_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:l_,afterPreactivation:l_},this.urlHandlingStrategy=new o_,this.routeReuseStrategy=new e_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Du),this.console=o.get(Rc);var c=o.get(Zc);this.isNgZoneEnabled=c instanceof Zc&&Zc.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new vk(new mk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new n_(a,s,function(e){return u.triggerEvent(new Kw(e))},function(e){return u.triggerEvent(new Qw(e))}),this.routerState=Hk(this.currentUrlTree,this.rootComponentType),this.transitions=new Zb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return Y(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(rb(function(e){return 0!==e.id}),ye(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),sw(function(e){var i,r,o,a=!1,s=!1;return nb(e).pipe(Mw(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sw(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return nb(e).pipe(sw(function(e){var i=t.transitions.getValue();return n.next(new zw(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?rw:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,sw(function(e){return function(e,t,n,i,r){return new Fx(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(ye(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Mw(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return Ie(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Yx(e,t,n,i,r,o).recognize();return null===a?qx(new Gx):nb(a)}catch(s){return qx(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(ye(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Mw(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new Ww(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new zw(l,t.serializeUrl(u),c,d);n.next(f);var p=Hk(u,t.rootComponentType).snapshot;return nb(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),rw}),Jx(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),Mw(function(e){var n=new Gw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ye(function(e){return Object.assign(Object.assign({},e),{guards:jx(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return Ie(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?nb(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Ee(e).pipe(Ie(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?nb(o.map(function(o){var a,s=Hx(o,t,r);if(function(e){return e&&px(e.canDeactivate)}(s))a=dk(s.canDeactivate(e,t,n,i));else{if(!px(s))throw new Error("Invalid CanDeactivate guard");a=dk(s(e,t,n,i))}return a.pipe(Iw())})).pipe(mx()):nb(!0)}(e.component,e.route,n,t,i)}),Iw(function(e){return!0!==e},!0))}(s,i,r,e).pipe(Ie(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return Ee(t).pipe(ib(function(t){return iw(function(e,t){return null!==e&&t&&t(new Xw(e)),nb(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new $w(e)),nb(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return aw(function(){return nb(t.guards.map(function(r){var o,a=Hx(r,t.node,n);if(function(e){return e&&px(e.canActivateChild)}(a))o=dk(a.canActivateChild(i,e));else{if(!px(a))throw new Error("Invalid CanActivateChild guard");o=dk(a(i,e))}return o.pipe(Iw())})).pipe(mx())})});return nb(r).pipe(mx())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?nb(i.map(function(i){return aw(function(){var r,o=Hx(i,t,n);if(function(e){return e&&px(e.canActivate)}(o))r=dk(o.canActivate(t,e));else{if(!px(o))throw new Error("Invalid CanActivate guard");r=dk(o(t,e))}return r.pipe(Iw())})})).pipe(mx()):nb(!0)}(e,t.route,n))}),Iw(function(e){return!0!==e},!0))}(i,a,e,t):nb(n)}),ye(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Mw(function(e){if(gx(e.guardsResult)){var n=rk('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new qw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),rb(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new Hw(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),Jx(function(e){if(e.guards.canActivateChecks.length)return nb(e).pipe(Mw(function(e){var n=new Yw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),sw(function(e){var i,r,o=!1;return nb(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,Ie(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return nb(e);var o=0;return Ee(n).pipe(ib(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return nb({});var o={};return Ee(r).pipe(Ie(function(r){return function(e,t,n,i){var r=Hx(e,t,i);return dk(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Mw(function(e){o[r]=e}))}),kw(1),Ie(function(){return Object.keys(o).length===r.length?nb(o):rw}))}(e._resolve,e,t,i).pipe(ye(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Wk(e,n).resolve),null}))}(e.route,t,i,r)}),Mw(function(){return o++}),kw(1),Ie(function(t){return o===n.length?nb(e):rw}))})),Mw({next:function(){return o=!0},complete:function(){if(!o){var i=new Hw(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Mw(function(e){var n=new Zw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Jx(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),ye(function(e){var n=function(e,t,n){var i=Xk(e,t._root,n?n._root:void 0);return new jk(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Mw(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},ye(function(e){return new dx(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Mw({next:function(){a=!0},complete:function(){a=!0}}),Lw(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new Hw(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),yw(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=gx(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Hw(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new Uw(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var l;return rw}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){wx(e),this.config=e.map(_x),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,r){if(0===n.length)return tx(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ix(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return ck(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(V(e),[{outlets:o}])}if(i.segmentPath)return[].concat(V(e),[i.segmentPath])}return"string"!=typeof i?[].concat(V(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(V(e),[i])},[]);return new ix(n,t,i)}(n);if(o.toRoot())return tx(t.root,new mk([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new rx(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new rx(i,i===t.root,0)}var r=$k(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new rx(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?ax(a.segmentGroup,a.index,o.commands):ox(a.segmentGroup,a.index,o.commands);return tx(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,u,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=gx(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(gx(e))return hk(this.currentUrlTree,e,t);var n=this.parseUrl(e);return hk(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new jw(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==t&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(e,t){o=e,a=t});var d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}()).\u0275fac=function(e){return new(e||d_)(rr(Ui),rr(wk),rr(r_),rr(Kd),rr(as),rr(md),rr(Gc),rr(void 0))},d_.\u0275prov=rt({token:d_,factory:d_.\u0275fac}),d_),f_=((c_=function(){function e(t,n,i,r,o){Z(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new ge,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return Y(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:g_(this.skipLocationChange),replaceUrl:g_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:g_(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||c_)(Ps(h_),Ps(Uk),Ni("tabindex"),Ps(Jl),Ps(Kl))},c_.\u0275dir=Ut({type:c_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&js("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[tn]}),c_),p_=((u_=function(){function e(t,n,i){var r=this;Z(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new ge,this.subscription=t.events.subscribe(function(e){e instanceof jw&&r.updateTargetUrlAndHref()})}return Y(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:g_(this.skipLocationChange),replaceUrl:g_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:g_(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||u_)(Ps(h_),Ps(Uk),Ps(jd))},u_.\u0275dir=Ut({type:u_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&js("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Sl("href",t.href,Kr),_s("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[tn]}),u_);function g_(e){return""===e||!!e}var v_,m_,y_,b_=((v_=function(){function e(t,n,i,r,o){Z(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ac,this.deactivateEvents=new ac,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return Y(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new w_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||v_)(Ps(r_),Ps(Mu),Ps(Gl),Ni("name"),Ps(ku))},v_.\u0275dir=Ut({type:v_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),v_),w_=function(){function e(t,n,i){Z(this,e),this.route=t,this.childContexts=n,this.parent=i}return Y(e,[{key:"get",value:function(e,t){return e===Uk?this.route:e===r_?this.childContexts:this.parent.get(e,t)}}]),e}(),k_=Y(function e(){Z(this,e)}),x_=function(){function e(){Z(this,e)}return Y(e,[{key:"preload",value:function(e,t){return nb(null)}}]),e}(),__=((y_=function(){function e(t,n,i,r,o){Z(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new n_(n,i,function(e){return t.triggerEvent(new Kw(e))},function(e){return t.triggerEvent(new Qw(e))})}return Y(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(rb(function(e){return e instanceof jw}),ib(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(Du);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=R(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return Ee(i).pipe(Be(),ye(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?nb(t._loadedConfig):n.loader.load(e.injector,t)).pipe(Ie(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||y_)(rr(h_),rr(md),rr(Gc),rr(as),rr(k_))},y_.\u0275prov=rt({token:y_,factory:y_.\u0275fac}),y_),A_=((m_=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Z(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return Y(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof zw?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof jw&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof tk&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new tk(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||m_)(rr(h_),rr(xf),rr(void 0))},m_.\u0275prov=rt({token:m_,factory:m_.\u0275fac}),m_),C_=new ji("ROUTER_CONFIGURATION"),S_=new ji("ROUTER_FORROOT_GUARD"),E_=[Kd,{provide:wk,useClass:kk},{provide:h_,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new h_(null,e,t,n,i,r,o,lk(a));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var d=Ed();c.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[wk,r_,Kd,as,md,Gc,t_,C_,[function(){return Y(function e(){Z(this,e)})}(),new dr],[$x,new dr]]},r_,{provide:Uk,useFactory:function(e){return e.routerState.root},deps:[h_]},{provide:md,useClass:wd},__,x_,function(){function e(){Z(this,e)}return Y(e,[{key:"preload",value:function(e,t){return t().pipe(yw(function(){return nb(null)}))}}]),e}(),{provide:C_,useValue:{enableTracing:!1}}];function P_(){return new ud("Router",h_)}var O_,D_=((O_=function(){function e(t,n){Z(this,e)}return Y(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[E_,B_(t),{provide:S_,useFactory:M_,deps:[[h_,new dr,new hr]]},{provide:C_,useValue:n||{}},{provide:jd,useFactory:T_,deps:[Dd,[new cr(qd),new dr],C_]},{provide:A_,useFactory:I_,deps:[h_,xf,C_]},{provide:k_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:x_},{provide:ud,multi:!0,useFactory:P_},[L_,{provide:Ec,multi:!0,useFactory:F_,deps:[L_]},{provide:V_,useFactory:N_,deps:[L_]},{provide:Bc,multi:!0,useExisting:V_}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[B_(t)]}}}]),e}()).\u0275fac=function(e){return new(e||O_)(rr(S_,8),rr(h_,8))},O_.\u0275mod=jt({type:O_}),O_.\u0275inj=at({}),O_);function I_(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new A_(e,t,n)}function T_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Zd(e,t):new Yd(e,t)}function M_(e){return"guarded"}function B_(e){return[{provide:Hi,multi:!0,useValue:e},{provide:t_,multi:!0,useValue:e}]}var R_,L_=((R_=function(){function e(t){Z(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new ge}return Y(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Md,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(h_),r=e.injector.get(C_);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?nb(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(C_),n=this.injector.get(__),i=this.injector.get(A_),r=this.injector.get(h_),o=this.injector.get(gd);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||R_)(rr(as))},R_.\u0275prov=rt({token:R_,factory:R_.\u0275fac}),R_);function F_(e){return e.appInitializer.bind(e)}function N_(e){return e.bootstrapListener.bind(e)}var V_=new ji("Router Initializer");function z_(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function j_(e,t){return function(n,i){t(n,i,e)}}function H_(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function U_(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}S("meiF"),S("lTIg"),S("RQGG"),S("bC4P"),S("iWo5");var W_=S("E/Mt"),G_=S("1vRN"),q_=(S("39oe"),S("k4ps")),Y_=S("r7QR"),Z_=S("7OTs"),K_=(S("y08P"),S("wEJo"));function Q_(e,t,n,i){return T(n)&&(i=n,n=void 0),i?Q_(e,t,n).pipe(ye(function(e){return Q(e)?i.apply(void 0,V(e)):i(e)})):new ue(function(i){X_(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function X_(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)X_(e[u],t,n,i,r)}i.add(o)}function J_(e,t){return function(n){return n.lift(new hA(e,t))}}S("B4Jq");var $_,eA,tA,nA,iA,rA,oA,aA,sA,lA,uA,cA,dA,hA=function(){function e(t,n){Z(this,e),this.compare=t,this.keySelector=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new fA(e,this.compare,this.keySelector))}}]),e}(),fA=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return Y(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(re),pA=W_.e,gA=["*"],vA=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},mA=(($_=function(){function e(t,n){Z(this,e),this.injector=t,this.el=n,this.onChange=function(){},this.onTouched=function(){}}return Y(e,[{key:"writeValue",value:function(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,yA(this.el)}},{key:"handleChangeEvent",value:function(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),yA(this.el))}},{key:"_handleBlurEvent",value:function(e){e===this.el.nativeElement&&(this.onTouched(),yA(this.el))}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.el.nativeElement.disabled=e}},{key:"ngOnDestroy",value:function(){this.statusChanges&&this.statusChanges.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e,t=this;try{e=this.injector.get(Bm)}catch(i){}if(e){e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(function(){return yA(t.el)}));var n=e.control;n&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(function(e){if(n[e]){var i=n[e].bind(n);n[e]=function(){i.apply(void 0,arguments),yA(t.el)}}})}}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},$_.\u0275dir=Ut({type:$_,hostBindings:function(e,t){1&e&&js("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),$_),yA=function(e){vA(function(){var t=e.nativeElement,n=bA(t);wA(t,n);var i=t.closest("ion-item");i&&wA(i,n)})},bA=function(e){for(var t=e.classList,n=[],i=0;i<t.length;i++){var r=t.item(i);null!==r&&kA(r,"ng-")&&n.push("ion-"+r.substr(3))}return n},wA=function(e,t){var n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(function(e){return n.remove(e)}),t.forEach(function(e){return n.add(e)})},kA=function(e,t){return e.substr(0,t.length)===t},xA=((tA=eA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"writeValue",value:function(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,yA(this.el)}},{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(mA)).\u0275fac=function(e){return new(e||tA)(Ps(as),Ps(Kl))},tA.\u0275dir=Ut({type:tA,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Hl([{provide:$v,useExisting:eA,multi:!0}]),ls]}),tA),_A=((iA=nA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.value)}},{key:"registerOnChange",value:function(e){C(M(n.prototype),"registerOnChange",this).call(this,function(t){e(""===t?null:parseFloat(t))})}}]),n}(mA)).\u0275fac=function(e){return new(e||iA)(Ps(as),Ps(Kl))},iA.\u0275dir=Ut({type:iA,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Hl([{provide:$v,useExisting:nA,multi:!0}]),ls]}),iA),AA=((oA=rA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleIonSelect",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(mA)).\u0275fac=function(e){return new(e||oA)(Ps(as),Ps(Kl))},oA.\u0275dir=Ut({type:oA,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&js("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[Hl([{provide:$v,useExisting:rA,multi:!0}]),ls]}),oA),CA=((sA=aA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleChangeEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(mA)).\u0275fac=function(e){return new(e||sA)(Ps(as),Ps(Kl))},sA.\u0275dir=Ut({type:sA,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[Hl([{provide:$v,useExisting:aA,multi:!0}]),ls]}),sA),SA=((cA=lA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleInputEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(mA)).\u0275fac=function(e){return new(e||cA)(Ps(as),Ps(Kl))},cA.\u0275dir=Ut({type:cA,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[Hl([{provide:$v,useExisting:lA,multi:!0}]),ls]}),cA),EA=((uA=function(){function e(t,n){var i=this;Z(this,e),this.doc=t,this.backButton=new ge,this.keyboardDidShow=new ge,this.keyboardDidHide=new ge,this.pause=new ge,this.resume=new ge,this.resize=new ge,n.run(function(){var e;i.win=t.defaultView,i.backButton.subscribeWithPriority=function(e,t){return this.subscribe(function(i){return i.register(e,function(e){return n.run(function(){return t(e)})})})},OA(i.pause,t,"pause"),OA(i.resume,t,"resume"),OA(i.backButton,t,"ionBackButton"),OA(i.resize,i.win,"resize"),OA(i.keyboardDidShow,i.win,"ionKeyboardDidShow"),OA(i.keyboardDidHide,i.win,"ionKeyboardDidHide"),i._readyPromise=new Promise(function(t){e=t}),i.win&&i.win.cordova?t.addEventListener("deviceready",function(){e("cordova")},{once:!0}):e("dom")})}return Y(e,[{key:"is",value:function(e){return Object(W_.a)(this.win,e)}},{key:"platforms",value:function(){return Object(W_.d)(this.win)}},{key:"ready",value:function(){return this._readyPromise}},{key:"isRTL",get:function(){return"rtl"===this.doc.dir}},{key:"getQueryParam",value:function(e){return PA(this.win.location.href,e)}},{key:"isLandscape",value:function(){return!this.isPortrait()}},{key:"isPortrait",value:function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}},{key:"testUserAgent",value:function(e){var t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}},{key:"url",value:function(){return this.win.location.href}},{key:"width",value:function(){return this.win.innerWidth}},{key:"height",value:function(){return this.win.innerHeight}}]),e}()).\u0275fac=function(e){return new(e||uA)(rr(Od),rr(Zc))},uA.\u0275prov=rt({token:uA,factory:function(e){return uA.\u0275fac(e)},providedIn:"root"}),uA.ngInjectableDef=rt({factory:function(){return new uA(rr(Od),rr(Zc))},token:uA,providedIn:"root"}),uA=z_([j_(0,cr(Od))],uA)),PA=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},OA=function(e,t,n){t&&t.addEventListener(n,function(t){e.next(null!=t?t.detail:void 0)})},DA=((dA=function(){function e(t,n,i,r){var o=this;Z(this,e),this.location=n,this.serializer=i,this.router=r,this.direction=TA,this.animated=MA,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(e){if(e instanceof zw){var t=e.restoredState?e.restoredState.navigationId:e.id;o.guessDirection=t<o.lastNavId?"back":"forward",o.guessAnimation=e.restoredState?void 0:o.guessDirection,o.lastNavId="forward"===o.guessDirection?e.id:t}}),t.backButton.subscribeWithPriority(0,function(e){o.pop(),e()})}return Y(e,[{key:"navigateForward",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"back",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animated:!0,animationDirection:"back"};return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}},{key:"pop",value:function(){return U_(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.topOutlet;case 1:if(e.t0=t,!e.t0){e.next=6;break}return e.next=5,t.pop();case 5:e.t0=!e.sent;case 6:if(!e.t0){e.next=10;break}t=t.parentOutlet;case 8:e.next=1;break;case 10:case"end":return e.stop()}},e,this)}))}},{key:"setDirection",value:function(e,t,n,i){this.direction=e,this.animated=IA(e,t,n),this.animationBuilder=i}},{key:"setTopOutlet",value:function(e){this.topOutlet=e}},{key:"consumeTransition",value:function(){var e,t="root",n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=TA,this.animated=MA,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}},{key:"navigate",value:function(e,t){if(Array.isArray(e))return this.router.navigate(e,t);var n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}]),e}()).\u0275fac=function(e){return new(e||dA)(rr(EA),rr(Kd),rr(wk),rr(h_,8))},dA.\u0275prov=rt({token:dA,factory:function(e){return dA.\u0275fac(e)},providedIn:"root"}),dA.ngInjectableDef=rt({factory:function(){return new dA(rr(EA),rr(Kd),rr(wk),rr(h_,8))},token:dA,providedIn:"root"}),dA=z_([j_(3,dr())],dA)),IA=function(e,t,n){if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},TA="auto",MA=void 0,BA=function(e,t,n){n.forEach(function(n){return e[n]=Q_(t,n)})};function RA(e){return function(t){return e.inputs&&(n=t,i=e.inputs,r=n.prototype,i.forEach(function(e){Object.defineProperty(r,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular(function(){return n.el[e]=t})}})})),e.methods&&function(e,t){var n=e.prototype;t.forEach(function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular(function(){return t.el[e].apply(t.el,n)})}})}(t,e.methods),t;var n,i,r}}var LA,FA,NA,VA,zA,jA,HA,UA,WA,GA,qA,YA,ZA,KA,QA,XA,JA,$A,eC,tC,nC,iC,rC,oC,aC,sC,lC,uC,cC,dC,hC,fC,pC,gC,vC,mC,yC,bC,wC,kC,xC,_C,AC,CC,SC,EC,PC,OC,DC,IC,TC,MC,BC,RC,LC,FC,NC,VC,zC,jC,HC,UC,WC,GC,qC,YC,ZC,KC,QC,XC,JC,$C,eS,tS=((FC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||FC)(Ps(ku),Ps(Kl),Ps(Zc))},FC.\u0275cmp=Ft({type:FC,selectors:[["ion-app"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),FC),nS=((LC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||LC)(Ps(ku),Ps(Kl),Ps(Zc))},LC.\u0275cmp=Ft({type:LC,selectors:[["ion-avatar"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),LC),iS=((RC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||RC)(Ps(ku),Ps(Kl),Ps(Zc))},RC.\u0275cmp=Ft({type:RC,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),RC=z_([RA({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],RC)),rS=((BC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||BC)(Ps(ku),Ps(Kl),Ps(Zc))},BC.\u0275cmp=Ft({type:BC,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),BC=z_([RA({inputs:["color","mode"]})],BC)),oS=((MC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||MC)(Ps(ku),Ps(Kl),Ps(Zc))},MC.\u0275cmp=Ft({type:MC,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),MC=z_([RA({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],MC)),aS=((TC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||TC)(Ps(ku),Ps(Kl),Ps(Zc))},TC.\u0275cmp=Ft({type:TC,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),TC=z_([RA({inputs:["collapse"]})],TC)),sS=((IC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||IC)(Ps(ku),Ps(Kl),Ps(Zc))},IC.\u0275cmp=Ft({type:IC,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),IC=z_([RA({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],IC)),lS=((DC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||DC)(Ps(ku),Ps(Kl),Ps(Zc))},DC.\u0275cmp=Ft({type:DC,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),DC=z_([RA({inputs:["mode"]})],DC)),uS=((OC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||OC)(Ps(ku),Ps(Kl),Ps(Zc))},OC.\u0275cmp=Ft({type:OC,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),OC=z_([RA({inputs:["color","mode","translucent"]})],OC)),cS=((PC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||PC)(Ps(ku),Ps(Kl),Ps(Zc))},PC.\u0275cmp=Ft({type:PC,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),PC=z_([RA({inputs:["color","mode"]})],PC)),dS=((EC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||EC)(Ps(ku),Ps(Kl),Ps(Zc))},EC.\u0275cmp=Ft({type:EC,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),EC=z_([RA({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],EC)),hS=((SC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||SC)(Ps(ku),Ps(Kl),Ps(Zc))},SC.\u0275cmp=Ft({type:SC,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),SC=z_([RA({inputs:["color","disabled","mode","outline"]})],SC)),fS=((CC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||CC)(Ps(ku),Ps(Kl),Ps(Zc))},CC.\u0275cmp=Ft({type:CC,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),CC=z_([RA({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],CC)),pS=((AC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])})).\u0275fac=function(e){return new(e||AC)(Ps(ku),Ps(Kl),Ps(Zc))},AC.\u0275cmp=Ft({type:AC,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),AC=z_([RA({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],AC)),gS=((_C=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||_C)(Ps(ku),Ps(Kl),Ps(Zc))},_C.\u0275cmp=Ft({type:_C,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),_C=z_([RA({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],_C)),vS=((xC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||xC)(Ps(ku),Ps(Kl),Ps(Zc))},xC.\u0275cmp=Ft({type:xC,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),xC=z_([RA({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],xC)),mS=((kC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||kC)(Ps(ku),Ps(Kl),Ps(Zc))},kC.\u0275cmp=Ft({type:kC,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),kC=z_([RA({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],kC)),yS=((wC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||wC)(Ps(ku),Ps(Kl),Ps(Zc))},wC.\u0275cmp=Ft({type:wC,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),wC=z_([RA({inputs:["activated","side"]})],wC)),bS=((bC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||bC)(Ps(ku),Ps(Kl),Ps(Zc))},bC.\u0275cmp=Ft({type:bC,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),bC=z_([RA({inputs:["mode","translucent"]})],bC)),wS=((yC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||yC)(Ps(ku),Ps(Kl),Ps(Zc))},yC.\u0275cmp=Ft({type:yC,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),yC=z_([RA({inputs:["fixed"]})],yC)),kS=((mC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||mC)(Ps(ku),Ps(Kl),Ps(Zc))},mC.\u0275cmp=Ft({type:mC,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),mC=z_([RA({inputs:["collapse","mode","translucent"]})],mC)),xS=((vC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||vC)(Ps(ku),Ps(Kl),Ps(Zc))},vC.\u0275cmp=Ft({type:vC,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),vC=z_([RA({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],vC)),_S=((gC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])})).\u0275fac=function(e){return new(e||gC)(Ps(ku),Ps(Kl),Ps(Zc))},gC.\u0275cmp=Ft({type:gC,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),gC=z_([RA({inputs:["alt","src"]})],gC)),AS=((pC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionInfinite"])})).\u0275fac=function(e){return new(e||pC)(Ps(ku),Ps(Kl),Ps(Zc))},pC.\u0275cmp=Ft({type:pC,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),pC=z_([RA({inputs:["disabled","position","threshold"],methods:["complete"]})],pC)),CS=((fC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||fC)(Ps(ku),Ps(Kl),Ps(Zc))},fC.\u0275cmp=Ft({type:fC,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),fC=z_([RA({inputs:["loadingSpinner","loadingText"]})],fC)),SS=((hC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])})).\u0275fac=function(e){return new(e||hC)(Ps(ku),Ps(Kl),Ps(Zc))},hC.\u0275cmp=Ft({type:hC,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),hC=z_([RA({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],hC)),ES=((dC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||dC)(Ps(ku),Ps(Kl),Ps(Zc))},dC.\u0275cmp=Ft({type:dC,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),dC=z_([RA({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],dC)),PS=((cC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||cC)(Ps(ku),Ps(Kl),Ps(Zc))},cC.\u0275cmp=Ft({type:cC,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),cC=z_([RA({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],cC)),OS=((uC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionSwipe"])})).\u0275fac=function(e){return new(e||uC)(Ps(ku),Ps(Kl),Ps(Zc))},uC.\u0275cmp=Ft({type:uC,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),uC=z_([RA({inputs:["side"]})],uC)),DS=((lC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionDrag"])})).\u0275fac=function(e){return new(e||lC)(Ps(ku),Ps(Kl),Ps(Zc))},lC.\u0275cmp=Ft({type:lC,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),lC=z_([RA({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],lC)),IS=((sC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||sC)(Ps(ku),Ps(Kl),Ps(Zc))},sC.\u0275cmp=Ft({type:sC,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),sC=z_([RA({inputs:["color","mode","position"]})],sC)),TS=((aC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||aC)(Ps(ku),Ps(Kl),Ps(Zc))},aC.\u0275cmp=Ft({type:aC,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),aC=z_([RA({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],aC)),MS=((oC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||oC)(Ps(ku),Ps(Kl),Ps(Zc))},oC.\u0275cmp=Ft({type:oC,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),oC=z_([RA({inputs:["color","lines","mode"]})],oC)),BS=((rC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])})).\u0275fac=function(e){return new(e||rC)(Ps(ku),Ps(Kl),Ps(Zc))},rC.\u0275cmp=Ft({type:rC,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),rC=z_([RA({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],rC)),RS=((iC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||iC)(Ps(ku),Ps(Kl),Ps(Zc))},iC.\u0275cmp=Ft({type:iC,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),iC=z_([RA({inputs:["autoHide","color","disabled","menu","mode","type"]})],iC)),LS=((nC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||nC)(Ps(ku),Ps(Kl),Ps(Zc))},nC.\u0275cmp=Ft({type:nC,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),nC=z_([RA({inputs:["autoHide","menu"]})],nC)),FS=((tC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||tC)(Ps(ku),Ps(Kl),Ps(Zc))},tC.\u0275cmp=Ft({type:tC,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),tC=z_([RA({inputs:["color","mode"]})],tC)),NS=((eC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||eC)(Ps(ku),Ps(Kl),Ps(Zc))},eC.\u0275cmp=Ft({type:eC,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),eC=z_([RA({inputs:["color","disabled","mode","name","value"]})],eC)),VS=(($A=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange"])})).\u0275fac=function(e){return new(e||$A)(Ps(ku),Ps(Kl),Ps(Zc))},$A.\u0275cmp=Ft({type:$A,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),$A=z_([RA({inputs:["allowEmptySelection","name","value"]})],$A)),zS=((JA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||JA)(Ps(ku),Ps(Kl),Ps(Zc))},JA.\u0275cmp=Ft({type:JA,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),JA=z_([RA({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],JA)),jS=((XA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||XA)(Ps(ku),Ps(Kl),Ps(Zc))},XA.\u0275cmp=Ft({type:XA,selectors:[["ion-reorder"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),XA),HS=((QA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionItemReorder"])})).\u0275fac=function(e){return new(e||QA)(Ps(ku),Ps(Kl),Ps(Zc))},QA.\u0275cmp=Ft({type:QA,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),QA=z_([RA({inputs:["disabled"],methods:["complete"]})],QA)),US=((KA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||KA)(Ps(ku),Ps(Kl),Ps(Zc))},KA.\u0275cmp=Ft({type:KA,selectors:[["ion-row"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),KA),WS=((ZA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])})).\u0275fac=function(e){return new(e||ZA)(Ps(ku),Ps(Kl),Ps(Zc))},ZA.\u0275cmp=Ft({type:ZA,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),ZA=z_([RA({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],ZA)),GS=((YA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange"])})).\u0275fac=function(e){return new(e||YA)(Ps(ku),Ps(Kl),Ps(Zc))},YA.\u0275cmp=Ft({type:YA,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),YA=z_([RA({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],YA)),qS=((qA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||qA)(Ps(ku),Ps(Kl),Ps(Zc))},qA.\u0275cmp=Ft({type:qA,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),qA=z_([RA({inputs:["disabled","layout","mode","type","value"]})],qA)),YS=((GA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||GA)(Ps(ku),Ps(Kl),Ps(Zc))},GA.\u0275cmp=Ft({type:GA,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),GA=z_([RA({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],GA)),ZS=((WA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||WA)(Ps(ku),Ps(Kl),Ps(Zc))},WA.\u0275cmp=Ft({type:WA,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),WA=z_([RA({inputs:["disabled","value"]})],WA)),KS=((UA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||UA)(Ps(ku),Ps(Kl),Ps(Zc))},UA.\u0275cmp=Ft({type:UA,selectors:[["ion-slide"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),UA),QS=((HA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])})).\u0275fac=function(e){return new(e||HA)(Ps(ku),Ps(Kl),Ps(Zc))},HA.\u0275cmp=Ft({type:HA,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),HA=z_([RA({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],HA)),XS=((jA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||jA)(Ps(ku),Ps(Kl),Ps(Zc))},jA.\u0275cmp=Ft({type:jA,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),jA=z_([RA({inputs:["color","duration","name","paused"]})],jA)),JS=((zA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionSplitPaneVisible"])})).\u0275fac=function(e){return new(e||zA)(Ps(ku),Ps(Kl),Ps(Zc))},zA.\u0275cmp=Ft({type:zA,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),zA=z_([RA({inputs:["contentId","disabled","when"]})],zA)),$S=((VA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||VA)(Ps(ku),Ps(Kl),Ps(Zc))},VA.\u0275cmp=Ft({type:VA,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),VA=z_([RA({inputs:["color","size"]})],VA)),eE=((NA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||NA)(Ps(ku),Ps(Kl),Ps(Zc))},NA.\u0275cmp=Ft({type:NA,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),NA=z_([RA({inputs:["checked","color","disabled","mode","name","value"]})],NA)),tE=((FA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||FA)(Ps(ku),Ps(Kl),Ps(Zc))},FA.\u0275cmp=Ft({type:FA,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),FA=z_([RA({inputs:["color","mode"]})],FA)),nE=((LA=function(){function e(){Z(this,e)}return Y(e,[{key:"get",value:function(e,t){var n=rE();return n?n.get(e,t):null}},{key:"getBoolean",value:function(e,t){var n=rE();return!!n&&n.getBoolean(e,t)}},{key:"getNumber",value:function(e,t){var n=rE();return n?n.getNumber(e,t):0}},{key:"set",value:function(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=rE();n&&n.set(e,t)}}]),e}()).\u0275fac=function(e){return new(e||LA)},LA.\u0275prov=rt({token:LA,factory:function(e){return LA.\u0275fac(e)},providedIn:"root"}),LA.ngInjectableDef=rt({factory:function(){return new LA},token:LA,providedIn:"root"}),LA),iE=new ji("USERCONFIG"),rE=function(){if("undefined"!=typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},oE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.data=t}return Y(e,[{key:"get",value:function(e){return this.data[e]}}]),e}(),aE=((NC=function(){function e(t,n){Z(this,e),this.zone=t,this.appRef=n}return Y(e,[{key:"create",value:function(e,t,n){return new sE(e,t,n,this.appRef,this.zone)}}]),e}()).\u0275fac=function(e){return new(e||NC)(rr(Zc),rr(gd))},NC.\u0275prov=rt({token:NC,factory:function(e){return NC.\u0275fac(e)}}),NC),sE=function(){function e(t,n,i,r,o){Z(this,e),this.resolver=t,this.injector=n,this.location=i,this.appRef=r,this.zone=o,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return Y(e,[{key:"attachViewToDom",value:function(e,t,n,i){var r=this;return this.zone.run(function(){return new Promise(function(o){o(lE(r.zone,r.resolver,r.injector,r.location,r.appRef,r.elRefMap,r.elEventsMap,e,t,n,i))})})}},{key:"removeViewFromDom",value:function(e,t){var n=this;return this.zone.run(function(){return new Promise(function(e){var i=n.elRefMap.get(t);if(i){i.destroy(),n.elRefMap.delete(t);var r=n.elEventsMap.get(t);r&&(r(),n.elEventsMap.delete(t))}e()})})}}]),e}(),lE=function(e,t,n,i,r,o,a,s,l,u,c){var d=t.resolveComponentFactory(l),h=as.create({providers:hE(u),parent:n}),f=i?i.createComponent(d,i.length,h):d.create(h),p=f.instance,g=f.location.nativeElement;if(u&&Object.assign(p,u),c){var v,m=R(c);try{for(m.s();!(v=m.n()).done;){var y=v.value;g.classList.add(y)}}catch(w){m.e(w)}finally{m.f()}}var b=cE(e,p,g);return s.appendChild(g),i||r.attachView(f.hostView),f.changeDetectorRef.reattach(),o.set(g,f),a.set(g,b),g},uE=[q_.a,q_.b,q_.c,q_.d,q_.e],cE=function(e,t,n){return e.run(function(){var e=uE.filter(function(e){return"function"==typeof t[e]}).map(function(e){var i=function(n){return t[e](n.detail)};return n.addEventListener(e,i),function(){return n.removeEventListener(e,i)}});return function(){return e.forEach(function(e){return e()})}})},dE=new ji("NavParamsToken"),hE=function(e){return[{provide:dE,useValue:e},{provide:oE,useFactory:fE,deps:[dE]}]},fE=function(e){return new oE(e)},pE=function(e,t){return(e=e.filter(function(e){return e.stackId!==t.stackId})).push(t),e},gE=function(e,t){var n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},vE=function(e,t){if(e)for(var n=mE(t),i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},mE=function(e){return e.split("/").map(function(e){return e.trim()}).filter(function(e){return""!==e})},yE=function(e){e&&(e.ref.destroy(),e.unlistenEvents())},bE=function(){function e(t,n,i,r,o,a){Z(this,e),this.containerEl=n,this.router=i,this.navCtrl=r,this.zone=o,this.location=a,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?mE(t):void 0}return Y(e,[{key:"createView",value:function(e,t){var n=gE(this.router,t),i=e&&e.location&&e.location.nativeElement,r=cE(this.zone,e.instance,i);return{id:this.nextId++,stackId:vE(this.tabsPrefix,n),unlistenEvents:r,element:i,ref:e,url:n}}},{key:"getExistingView",value:function(e){var t=gE(this.router,e),n=this.views.find(function(e){return e.url===t});return n&&n.ref.changeDetectorRef.reattach(),n}},{key:"setActive",value:function(e){var t=this,n=this.navCtrl.consumeTransition(),i=n.direction,r=n.animation,o=n.animationBuilder,a=this.activeView,s=function(e,t){return!t||e.stackId!==t.stackId}(e,a);s&&(i="back",r=void 0);var l,u=this.views.slice(),c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var d=this.views.includes(e),h=this.insertView(e,i);d||e.ref.changeDetectorRef.detectChanges();var f=e.animationBuilder;return void 0!==o||"back"!==i||s||void 0===f||(o=f),a&&(a.animationBuilder=o),this.zone.runOutsideAngular(function(){return t.wait(function(){return a&&a.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),t.transition(e,a,r,t.canGoBack(1),!1,o).then(function(){return wE(e,h,u,t.location)}).then(function(){return{enteringView:e,direction:i,animation:r,tabSwitch:s}})})})}},{key:"canGoBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.getStack(t).length>e}},{key:"pop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.zone.run(function(){var i=t.getStack(n);if(i.length<=e)return Promise.resolve(!1);var r=i[i.length-e-1],o=r.url,a=r.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(o=s.route._routerState.snapshot.url)}var l=t.navCtrl.consumeTransition().animationBuilder;return t.navCtrl.navigateBack(o,Object.assign({},r.savedExtras,{animation:l})).then(function(){return!0})})}},{key:"startBackTransition",value:function(){var e=this,t=this.activeView;if(t){var n=this.getStack(t.stackId),i=n[n.length-2],r=i.animationBuilder;return this.wait(function(){return e.transition(i,t,"back",e.canGoBack(2),!0,r)})}return Promise.resolve()}},{key:"endBackTransition",value:function(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&kE(this.activeView,this.views,this.views,this.location)}},{key:"getLastUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}},{key:"getRootUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[0]:void 0}},{key:"getActiveStackId",value:function(){return this.activeView?this.activeView.stackId:void 0}},{key:"destroy",value:function(){this.containerEl=void 0,this.views.forEach(yE),this.activeView=void 0,this.views=[]}},{key:"getStack",value:function(e){return this.views.filter(function(t){return t.stackId===e})}},{key:"insertView",value:function(e,t){return this.activeView=e,this.views=function(e,t,n){return"root"===n?pE(e,t):"forward"===n?function(e,t){return e.indexOf(t)>=0?e=e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):e.push(t),e}(e,t):function(e,t){return e.indexOf(t)>=0?e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):pE(e,t)}(e,t)}(this.views,e,t),this.views.slice()}},{key:"transition",value:function(e,t,n,i,r,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);var a=e?e.element:void 0,s=t?t.element:void 0,l=this.containerEl;return a&&a!==s&&(a.classList.add("ion-page"),a.classList.add("ion-page-invisible"),a.parentElement!==l&&l.appendChild(a),l.commit)?l.commit(a,s,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:r,animationBuilder:o}):Promise.resolve(!1)}},{key:"wait",value:function(e){return U_(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0!==this.runningTask,!t.t0){t.next=5;break}return t.next=4,this.runningTask;case 4:this.runningTask=void 0;case 5:return t.abrupt("return",this.runningTask=e());case 6:case"end":return t.stop()}},t,this)}))}}]),e}(),wE=function(e,t,n,i){return"function"==typeof requestAnimationFrame?new Promise(function(r){requestAnimationFrame(function(){kE(e,t,n,i),r()})}):Promise.resolve()},kE=function(e,t,n,i){n.filter(function(e){return!t.includes(e)}).forEach(yE),t.forEach(function(t){var n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){var r=t.element;r.setAttribute("aria-hidden","true"),r.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})},xE=((VC=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f){Z(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.config=a,this.navCtrl=s,this.parentOutlet=f,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Zb(null),this.stackEvents=new ac,this.activateEvents=new ac,this.deactivateEvents=new ac,this.nativeEl=u.nativeElement,this.name=r||"primary",this.tabsPrefix="true"===o?gE(c,h):void 0,this.stackCtrl=new bE(this.tabsPrefix,this.nativeEl,c,s,d,l),t.onChildOutletCreated(this.name,this)}return Y(e,[{key:"animation",set:function(e){this.nativeEl.animation=e}},{key:"animated",set:function(e){this.nativeEl.animated=e}},{key:"swipeGesture",set:function(e){var t=this;this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:function(){return t.stackCtrl.canGoBack(1)},onStart:function(){return t.stackCtrl.startBackTransition()},onEnd:function(e){return t.stackCtrl.endBackTransition(e)}}:void 0}},{key:"ngOnDestroy",value:function(){this.stackCtrl.destroy()}},{key:"getContext",value:function(){return this.parentContexts.getContext(this.name)}},{key:"ngOnInit",value:function(){var e=this;if(!this.activated){var t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}new Promise(function(t){return Object(G_.c)(e.nativeEl,t)}).then(function(){void 0===e._swipeGesture&&(e.swipeGesture=e.config.getBoolean("swipeBackEnabled","ios"===e.nativeEl.mode))})}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){throw new Error("incompatible reuse strategy")}},{key:"attach",value:function(e,t){throw new Error("incompatible reuse strategy")}},{key:"deactivate",value:function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var e=this.getContext();if(e.route){var t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}},{key:"activateWith",value:function(e,t){var n,i=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var r=this.stackCtrl.getExistingView(e);if(r){n=this.activated=r.ref;var o=r.savedData;o&&(this.getContext().children.contexts=o),this.updateActivatedRouteProxy(n.instance,e)}else{var a=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,l=new Zb(null),u=this.createActivatedRouteProxy(l,e),c=new _E(u,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,c),l.next(n.instance),r=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,u),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=r,this.stackCtrl.setActive(r).then(function(e){i.navCtrl.setTopOutlet(i),i.activateEvents.emit(n.instance),i.stackEvents.emit(e)})}},{key:"canGoBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.canGoBack(e,t)}},{key:"pop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.pop(e,t)}},{key:"getLastUrl",value:function(e){var t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}},{key:"getLastRouteView",value:function(e){return this.stackCtrl.getLastUrl(e)}},{key:"getRootView",value:function(e){return this.stackCtrl.getRootUrl(e)}},{key:"getActiveStackId",value:function(){return this.stackCtrl.getActiveStackId()}},{key:"createActivatedRouteProxy",value:function(e,t){var n=new Uk;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}},{key:"proxyObservable",value:function(e,t){var n=this;return e.pipe(rb(function(e){return!!e}),sw(function(e){return n.currentActivatedRoute$.pipe(rb(function(t){return null!==t&&t.component===e}),sw(function(e){return e&&e.activatedRoute[t]}),J_())}))}},{key:"updateActivatedRouteProxy",value:function(e,t){var n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}}]),e}()).\u0275fac=function(e){return new(e||VC)(Ps(r_),Ps(Mu),Ps(Gl),Ni("name"),Ni("tabs"),Ps(nE),Ps(DA),Ps(Kd),Ps(Kl),Ps(h_),Ps(Zc),Ps(Uk),Ps(VC,12))},VC.\u0275dir=Ut({type:VC,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),VC=z_([j_(3,zi("name")),j_(4,dr()),j_(4,zi("tabs")),j_(12,hr()),j_(12,dr())],VC)),_E=function(){function e(t,n,i){Z(this,e),this.route=t,this.childContexts=n,this.parent=i}return Y(e,[{key:"get",value:function(e,t){return e===Uk?this.route:e===r_?this.childContexts:this.parent.get(e,t)}}]),e}(),AE=((GC=function(){function e(t,n,i){Z(this,e),this.routerOutlet=t,this.navCtrl=n,this.config=i}return Y(e,[{key:"onClick",value:function(e){var t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}}]),e}()).\u0275fac=function(e){return new(e||GC)(Ps(xE,8),Ps(DA),Ps(nE))},GC.\u0275dir=Ut({type:GC,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&js("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),GC=z_([j_(0,dr())],GC)),CE=((WC=function(){function e(t,n,i,r,o){Z(this,e),this.locationStrategy=t,this.navCtrl=n,this.elementRef=i,this.router=r,this.routerLink=o,this.routerDirection="forward"}return Y(e,[{key:"ngOnInit",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnChanges",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"updateTargetUrlAndHref",value:function(){if(this.routerLink){var e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}},{key:"onClick",value:function(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}}]),e}()).\u0275fac=function(e){return new(e||WC)(Ps(jd),Ps(DA),Ps(Kl),Ps(h_),Ps(f_,8))},WC.\u0275dir=Ut({type:WC,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&js("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[tn]}),WC=z_([j_(4,dr())],WC)),SE=((UC=Y(function e(t){Z(this,e),this.templateRef=t})).\u0275fac=function(e){return new(e||UC)(Ps(Eu))},UC.\u0275dir=Ut({type:UC,selectors:[["","virtualFooter",""]]}),UC),EE=((HC=Y(function e(t){Z(this,e),this.templateRef=t})).\u0275fac=function(e){return new(e||HC)(Ps(Eu))},HC.\u0275dir=Ut({type:HC,selectors:[["","virtualHeader",""]]}),HC),PE=((jC=Y(function e(t,n){Z(this,e),this.templateRef=t,this.viewContainer=n})).\u0275fac=function(e){return new(e||jC)(Ps(Eu),Ps(Mu))},jC.\u0275dir=Ut({type:jC,selectors:[["","virtualItem",""]]}),jC),OE=((zC=function(){function e(t,n,i){Z(this,e),this.z=t,this.iterableDiffers=n,this.refMap=new WeakMap,this.el=i.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return Y(e,[{key:"ngOnChanges",value:function(e){if(this.trackBy&&"items"in e){var t=e.items.currentValue;if(void 0===this.differ&&null!=t)try{this.differ=this.iterableDiffers.find(t).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"'. VirtualScroll only supports binding to Iterables such as Arrays."))}}}},{key:"ngDoCheck",value:function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}},{key:"nodeRender",value:function(e,t,n){var i=this;return this.z.run(function(){var r;if(e){var o=(r=i.refMap.get(e)).context;o.$implicit=t.value,o.index=t.index}else r=i.itmTmp.viewContainer.createEmbeddedView(i.getComponent(t.type),{$implicit:t.value,index:n},n),e=DE(r),i.refMap.set(e,r);return r.detectChanges(),e})}},{key:"getComponent",value:function(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}}]),e}()).\u0275fac=function(e){return new(e||zC)(Ps(Zc),Ps(pu),Ps(Kl))},zC.\u0275cmp=Ft({type:zC,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,PE,1),wc(n,EE,1),wc(n,SE,1)),2&e&&(yc(i=kc())&&(t.itmTmp=i.first),yc(i=kc())&&(t.hdrTmp=i.first),yc(i=kc())&&(t.ftrTmp=i.first))},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[tn],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),zC=z_([RA({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],zC)),DE=function(e){for(var t=e.rootNodes,n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")},IE=function(){function e(t){Z(this,e),this.ctrl=t}return Y(e,[{key:"create",value:function(e){return this.ctrl.create(e||{})}},{key:"dismiss",value:function(e,t,n){return this.ctrl.dismiss(e,t,n)}},{key:"getTop",value:function(){return this.ctrl.getTop()}}]),e}(),TE=((JC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.c)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||JC)},JC.\u0275prov=rt({token:JC,factory:function(e){return JC.\u0275fac(e)},providedIn:"root"}),JC.ngInjectableDef=rt({factory:function(){return new JC},token:JC,providedIn:"root"}),JC),ME=((XC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.b)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||XC)},XC.\u0275prov=rt({token:XC,factory:function(e){return XC.\u0275fac(e)},providedIn:"root"}),XC.ngInjectableDef=rt({factory:function(){return new XC},token:XC,providedIn:"root"}),XC),BE=((QC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.k)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||QC)},QC.\u0275prov=rt({token:QC,factory:function(e){return QC.\u0275fac(e)},providedIn:"root"}),QC.ngInjectableDef=rt({factory:function(){return new QC},token:QC,providedIn:"root"}),QC),RE=((KC=function(){function e(){Z(this,e)}return Y(e,[{key:"open",value:function(e){return Y_.a.open(e)}},{key:"close",value:function(e){return Y_.a.close(e)}},{key:"toggle",value:function(e){return Y_.a.toggle(e)}},{key:"enable",value:function(e,t){return Y_.a.enable(e,t)}},{key:"swipeGesture",value:function(e,t){return Y_.a.swipeGesture(e,t)}},{key:"isOpen",value:function(e){return Y_.a.isOpen(e)}},{key:"isEnabled",value:function(e){return Y_.a.isEnabled(e)}},{key:"get",value:function(e){return Y_.a.get(e)}},{key:"getOpen",value:function(){return Y_.a.getOpen()}},{key:"getMenus",value:function(){return Y_.a.getMenus()}}]),e}()).\u0275fac=function(e){return new(e||KC)},KC.\u0275prov=rt({token:KC,factory:function(e){return KC.\u0275fac(e)},providedIn:"root"}),KC.ngInjectableDef=rt({factory:function(){return new KC},token:KC,providedIn:"root"}),KC),LE=((ZC=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Z_.l)).angularDelegate=e,o.resolver=i,o.injector=r,o}return Y(n,[{key:"create",value:function(e){return C(M(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(IE)).\u0275fac=function(e){return new(e||ZC)(rr(aE),rr(Gl),rr(as))},ZC.\u0275prov=rt({token:ZC,factory:function(e){return ZC.\u0275fac(e)}}),ZC),FE=((YC=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Z_.d)).angularDelegate=e,o.resolver=i,o.injector=r,o}return Y(n,[{key:"create",value:function(e){return C(M(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(IE)).\u0275fac=function(e){return new(e||YC)(rr(aE),rr(Gl),rr(as))},YC.\u0275prov=rt({token:YC,factory:function(e){return YC.\u0275fac(e)}}),YC),NE=((qC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.o)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||qC)},qC.\u0275prov=rt({token:qC,factory:function(e){return qC.\u0275fac(e)},providedIn:"root"}),qC.ngInjectableDef=rt({factory:function(){return new qC},token:qC,providedIn:"root"}),qC),VE=function(){function e(){Z(this,e)}return Y(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"shouldAttach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){if(e.routeConfig!==t.routeConfig)return!1;var n=e.params,i=t.params,r=Object.keys(n),o=Object.keys(i);if(r.length!==o.length)return!1;for(var a=0,s=r;a<s.length;a++){var l=s[a];if(i[l]!==n[l])return!1}return!0}}]),e}(),zE=!1,jE=function(e,t,n){return function(){var i=t.defaultView;if(i&&"undefined"!=typeof window){zE&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),zE=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:function(e){return n.run(e)}});var r="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(S.e(7).then(S.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(S.e(5).then(S.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(function(){return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:vA,jmp:function(e){return n.runOutsideAngular(e)},ael:function(e,t,n,i){e[r](t,n,i)},rel:function(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(K_.b&&K_.b.supports&&K_.b.supports("color","var(--c)")?Object(K_.d)():S.e(6).then(S.t.bind(null,"9qUq",7)).then(function(){return(K_.n.$cssShim$=K_.q.__cssshim)?K_.n.$cssShim$.i():0})).then(function(){return pA(),Object(K_.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)});var e})}}},HE=((eS=$C=function(){function e(){Z(this,e)}return Y(e,null,[{key:"forRoot",value:function(e){return{ngModule:$C,providers:[{provide:iE,useValue:e},{provide:Ec,useFactory:jE,multi:!0,deps:[iE,Od,Zc]}]}}}]),e}()).\u0275fac=function(e){return new(e||eS)},eS.\u0275mod=jt({type:eS}),eS.\u0275inj=at({providers:[aE,LE,FE],imports:[[bf]]}),eS),UE=S("Hfs6"),WE=S.n(UE);function GE(e){return!!e&&(e instanceof ue||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var qE=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return Y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this)}return Y(n,[{key:"schedule",value:function(e){return this}}]),n}(te)),YE=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return Y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?C(M(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?C(M(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?C(M(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(qE),ZE=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;Z(this,e),this.SchedulerAction=t,this.now=n}return Y(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),KE=function(e){E(n,e);var t=O(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ZE.now;return Z(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==I(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return Y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):C(M(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(ZE),QE=new(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(KE))(YE);function XE(e,t){return new ue(t?function(n){return t.schedule(JE,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function JE(e){var t=e.error;e.subscriber.error(t)}var $E,eP=(($E=function(){function e(t,n,i){Z(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return Y(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return nb(this.value);case"E":return XE(this.error);case"C":return ow()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new $E("C"),$E.undefinedValueNotification=new $E("N",void 0),$E),tP=function(e){E(n,e);var t=O(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Z(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return Y(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new nP(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(eP.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(eP.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(eP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(re),nP=Y(function e(t,n){Z(this,e),this.notification=t,this.destination=n}),iP=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return Z(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return Y(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}C(M(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new rP(this._getNow(),e)),this._trimBufferThenGetEvents()),C(M(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new he;if(this.isStopped||this.hasError?t=te.EMPTY:(this.observers.push(e),t=new fe(this,e)),r&&e.add(e=new tP(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||QE).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(ge),rP=Y(function e(t,n){Z(this,e),this.time=t,this.value=n});function oP(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var i;u++,!t||c?(c=!1,t=new iP(r,a,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}var aP,sP,lP=Y(function e(){Z(this,e)}),uP=((aP=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTranslation",value:function(e){return nb({})}}]),n}(lP)).\u0275fac=function(e){return cP(e||aP)},aP.\u0275prov=rt({token:aP,factory:aP.\u0275fac}),aP),cP=Li(uP),dP=Y(function e(){Z(this,e)}),hP=((sP=function(){function e(){Z(this,e)}return Y(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||sP)},sP.\u0275prov=rt({token:sP,factory:sP.\u0275fac}),sP);function fP(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,r,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!fP(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!fP(e[i],t[i]))return!1;return!0}}return!1}function pP(e){return null!=e}function gP(e){return e&&"object"==typeof e&&!Array.isArray(e)}function vP(e,t){var n=Object.assign({},e);return gP(e)&&gP(t)&&Object.keys(t).forEach(function(i){gP(t[i])&&i in e?n[i]=vP(e[i],t[i]):Object.assign(n,B({},i,t[i]))}),n}var mP,yP,bP,wP,kP,xP,_P,AP,CP,SP,EP,PP,OP=Y(function e(){Z(this,e)}),DP=((mP=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return Y(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!pP(e)||!pP(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,function(e,i){var r=n.getValue(t,i);return pP(r)?r:e}):e}}]),n}(OP)).\u0275fac=function(e){return IP(e||mP)},mP.\u0275prov=rt({token:mP,factory:mP.\u0275fac}),mP),IP=Li(DP),TP=Y(function e(){Z(this,e)}),MP=((yP=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(TP)).\u0275fac=function(e){return BP(e||yP)},yP.\u0275prov=rt({token:yP,factory:yP.\u0275fac}),yP),BP=Li(MP),RP=Y(function e(){Z(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new ac,this.onLangChange=new ac,this.onDefaultLangChange=new ac}),LP=new ji("USE_STORE"),FP=new ji("USE_DEFAULT_LANG"),NP=new ji("DEFAULT_LANGUAGE"),VP=new ji("USE_EXTEND"),zP=((kP=function(){function e(t,n,i,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0;Z(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=l,this.pending=!1,this._onTranslationChange=new ac,this._onLangChange=new ac,this._onDefaultLangChange=new ac,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}return Y(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(dw(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return nb(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(dw(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),nb(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(oP(1),dw(1));return this.loadingTranslations=n.pipe(ye(function(n){return t.compiler.compileTranslations(n,e)}),oP(1),dw(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?vP(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},a=!1,s=R(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;o[l]=this.getParsedResult(e,l,n),GE(o[l])&&(a=!0)}}catch(c){s.e(c)}finally{s.f()}return a?Zv(t.map(function(e){return GE(o[e])?o[e]:nb(o[e])})).pipe(ye(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!pP(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(ib(function(i){return GE(i=n.getParsedResult(i,e,t))?i:nb(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return GE(i)?i:nb(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!pP(e)||!e.length)throw new Error('Parameter "key" required');return iw(aw(function(){return n.get(e,t)}),this.onTranslationChange.pipe(sw(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:nb(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!pP(e)||!e.length)throw new Error('Parameter "key" required');return iw(aw(function(){return n.get(e,t)}),this.onLangChange.pipe(sw(function(i){var r=n.getParsedResult(i.translations,e,t);return GE(r)?r:nb(r)})))}},{key:"instant",value:function(e,t){if(!pP(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(GE(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}()).\u0275fac=function(e){return new(e||kP)(rr(RP),rr(lP),rr(TP),rr(OP),rr(dP),rr(FP),rr(LP),rr(VP),rr(NP))},kP.\u0275prov=rt({token:kP,factory:kP.\u0275fac}),kP),jP=((wP=function(){function e(t,n){Z(this,e),this.translate=t,this._ref=n,this.value=""}return Y(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);GE(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(fP(e,this.lastKey)&&fP(r,this.lastParams))return this.value;if(pP(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){var a=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+r[0])}}else"object"!=typeof r[0]||Array.isArray(r[0])||(t=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(i){n.lastKey&&i.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(i){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))})),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}()).\u0275fac=function(e){return new(e||wP)(Ps(zP),Sc())},wP.\u0275pipe=Wt({name:"translate",type:wP,pure:!1}),wP.\u0275prov=rt({token:wP,factory:wP.\u0275fac}),wP),HP=((bP=function(){function e(){Z(this,e)}return Y(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:lP,useClass:uP},t.compiler||{provide:TP,useClass:MP},t.parser||{provide:OP,useClass:DP},t.missingTranslationHandler||{provide:dP,useClass:hP},RP,{provide:LP,useValue:t.isolate},{provide:FP,useValue:t.useDefaultLang},{provide:VP,useValue:t.extend},{provide:NP,useValue:t.defaultLanguage},zP]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:lP,useClass:uP},t.compiler||{provide:TP,useClass:MP},t.parser||{provide:OP,useClass:DP},t.missingTranslationHandler||{provide:dP,useClass:hP},{provide:LP,useValue:t.isolate},{provide:FP,useValue:t.useDefaultLang},{provide:VP,useValue:t.extend},{provide:NP,useValue:t.defaultLanguage},zP]}}}]),e}()).\u0275fac=function(e){return new(e||bP)},bP.\u0275mod=jt({type:bP}),bP.\u0275inj=at({}),bP),UP=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},WP=((xP=function(){function e(t,n,i){Z(this,e),this.translate=t,this.router=n,this.toastController=i}return Y(e,[{key:"success",value:function(e){return UP(this,void 0,void 0,U().mark(function t(){var n;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-success",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"message",value:function(e){return UP(this,void 0,void 0,U().mark(function t(){var n;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-primary",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"error",value:function(e){return UP(this,void 0,void 0,U().mark(function t(){var n;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return"object"==typeof e&&(e=e.toString()),n=e.indexOf("lang.")>-1?this.translate.instant(e):e,t.next=4,this.toastController.create({cssClass:"notif-error",duration:3e3,message:n,position:"top"});case 4:t.sent.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"handleErrors",value:function(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}]),e}()).\u0275fac=function(e){return new(e||xP)(rr(zP),rr(h_),rr(NE))},xP.\u0275prov=rt({token:xP,factory:xP.\u0275fac}),xP),GP=function(){function e(){Z(this,e)}return Y(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),qP=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return Y(n)}(GP),YP=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return Y(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,C(M(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,C(M(n.prototype),"detach",this).call(this)}}]),n}(GP),ZP=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).element=e instanceof Kl?e.nativeElement:e,i}return Y(n)}(GP),KP=function(){function e(){Z(this,e),this._isDisposed=!1,this.attachDomPortal=null}return Y(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof qP?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof YP?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof ZP?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),QP=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s,l;return Z(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=o,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),C((s=I(l),M(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=a,l}return Y(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){C(M(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(KP),XP=((PP=function(e){E(n,e);var t=O(n);function n(e,i,r){var o,a;return Z(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new ac,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(I(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),C((o=I(a),M(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return Y(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&C(M(n.prototype),"detach",this).call(this),e&&C(M(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){C(M(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),C(M(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return C(M(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(KP)).\u0275fac=function(e){return new(e||PP)(Ps(Gl),Ps(Mu),Ps(Od))},PP.\u0275dir=Ut({type:PP,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ls]}),PP),JP=((EP=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||EP)},EP.\u0275mod=jt({type:EP}),EP.\u0275inj=at({}),EP),$P=((SP=function(){function e(t,n,i){Z(this,e),this.componentFactoryResolver=t,this.injector=n,this.appRef=i,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.mustRefreshCerts=!0,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}return Y(e,[{key:"reset",value:function(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}},{key:"getAppSession",value:function(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}},{key:"initTemplate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"adminMenu";document.getElementById(""+n).innerHTML="",this.portalHost=new QP(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);var i=new YP(e,t);this.portalHost.attach(i)}},{key:"detachTemplate",value:function(){this.portalHost.detach()}}]),e}()).\u0275fac=function(e){return new(e||SP)(rr(Gl),rr(as),rr(gd))},SP.\u0275prov=rt({token:SP,factory:SP.\u0275fac}),SP),eO=((CP=function(){function e(){Z(this,e)}return Y(e,[{key:"setAppSession",value:function(e){this.appSession=e}},{key:"getAppSession",value:function(){return this.appSession}},{key:"save",value:function(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}},{key:"get",value:function(e){return localStorage.getItem(e+"_"+this.getAppSession())}},{key:"remove",value:function(e){localStorage.removeItem(e+"_"+this.getAppSession())}}]),e}()).\u0275fac=function(e){return new(e||CP)},CP.\u0275prov=rt({token:CP,factory:CP.\u0275fac,providedIn:"root"}),CP),tO=((AP=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.localStorage=o,this.navCtrl=a,this.authMode="default",this.changeKey=!1,this.casToken=null,this.coreUrl="",this.authUri="",this.user={},this.signatureRoles=[],this.authFailed=!1}return Y(e,[{key:"cleanUrl",value:function(e){return this.localStorage.remove("MaarchCourrierUrl_"+e)}},{key:"getToken",value:function(){return this.localStorage.get("MaarchParapheurToken")}},{key:"setToken",value:function(e){this.localStorage.save("MaarchParapheurToken",e)}},{key:"getRefreshToken",value:function(){return this.localStorage.get("MaarchParapheurRefreshToken")}},{key:"setRefreshToken",value:function(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}},{key:"clearTokens",value:function(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}},{key:"refreshToken",value:function(){var e=this;return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(Mw(function(t){e.setToken(t.token),e.updateUserInfo(t.token)}),yw(function(t){return e.logout(),e.notificationService.error("lang.sessionExpired"),nb(!1)}))}},{key:"logout",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");["cas"].indexOf(this.authMode)>-1&&!n?this.SsoLogout(t):i&&this.http.get("../rest/authenticate/logout").subscribe(),this.http.get("../rest/authenticate/logout").pipe(Mw(function(){e.clearTokens(),e.navCtrl.navigateRoot("/login")}),yw(function(t){return e.notificationService.handleErrors(t),e.clearTokens(),e.navCtrl.navigateRoot("/login"),nb(!1)})).subscribe()}},{key:"SsoLogout",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.http.get("../rest/authenticate/logout").pipe(Mw(function(n){return i=e,o=U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.redirectAfterLogout(t),window.location.href=n.logoutUrl;case 1:case"end":return e.stop()}},e,this)}),new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,a)}s((o=o.apply(i,[])).next())});var i,r,o})).subscribe()}},{key:"redirectAfterLogout",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!==this.getToken()&&e&&this.cleanUrl(JSON.parse(atob(this.getToken().split(".")[1])).user.id),this.clearTokens()}},{key:"saveTokens",value:function(e,t){this.setToken(e),this.setRefreshToken(t)}},{key:"isAuth",value:function(){return null!==this.getToken()}},{key:"updateUserInfo",value:function(e){var t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}},{key:"updateUserInfoWithTokenRefresh",value:function(){var e=this;this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:function(t){e.setToken(t.token),e.updateUserInfo(e.getToken())},error:function(t){e.notificationService.handleErrors(t)}})}},{key:"setUser",value:function(e){this.user=e}},{key:"getSignatureMode",value:function(e){return"visa"===e?"stamp":e}},{key:"getWorkflowMode",value:function(e){return this.signatureRoles.filter(function(t){return t.id===e})[0].type}},{key:"setCachedUrl",value:function(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}},{key:"getCachedUrl",value:function(){return this.localStorage.get("MaarchParapheurCacheUrl")}},{key:"cleanCachedUrl",value:function(){return this.localStorage.remove("MaarchParapheurCacheUrl")}},{key:"getCasToken",value:function(){null!==window.location.search.match(/ticket=[.]*/g)&&(this.casToken=window.location.search.substring(1,window.location.search.length))}}]),e}()).\u0275fac=function(e){return new(e||AP)(rr(Tb),rr(h_),rr(WP),rr($P),rr(eO),rr(DA))},AP.\u0275prov=rt({token:AP,factory:AP.\u0275fac,providedIn:"root"}),AP),nO=((_P=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.authService=o,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Zb(null)}return Y(e,[{key:"addAuthHeader",value:function(e){var t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}},{key:"intercept",value:function(e,t){var n=this;return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(yw(function(i){return n.byPassHandleErrors.filter(function(t){return e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1}).length>0?t.handle(e):401===i.status?n.handle401Error(e,t):"Password expired : User must change his password"===i.error.errors?n.router.navigate(["/password-modification"]):("GET"===e.method&&n.frontUrl.forEach(function(t){if(e.url.indexOf(t)>-1)return"../rest/documents/"===t&&(n.signaturesService.mainDocumentId=null),r=new kb({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r)}),r=new kb({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r));var r})))}},{key:"handle401Error",value:function(e,t){var n=this;return this.isRefreshing?this.refreshTokenSubject.pipe(rb(function(e){return null!=e}),dw(1),sw(function(){return e=n.addAuthHeader(e),t.handle(e)})):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(sw(function(i){return n.isRefreshing=!1,n.refreshTokenSubject.next(i.token),e=n.addAuthHeader(e),t.handle(e)})))}}]),e}()).\u0275fac=function(e){return new(e||_P)(rr(Tb),rr(h_),rr(WP),rr($P),rr(tO))},_P.\u0275prov=rt({token:_P,factory:_P.\u0275fac}),_P);function iO(e,t){if(1&e){var n=Fs();Is(0,"div",2),Is(1,"div",3),Is(2,"button",4),ei(),Is(3,"svg",5),Ms(4,"path",6),Ts(),ti(),Is(5,"span",7),bl(6,"Presentation Mode"),Ts(),Ts(),Is(7,"button",8),ei(),Is(8,"svg",5),Ms(9,"path",9),Ts(),ti(),Is(10,"span",10),bl(11,"Open"),Ts(),Ts(),Is(12,"button",11),ei(),Is(13,"svg",5),Ms(14,"path",12),Ts(),ti(),Is(15,"span",13),bl(16,"Print"),Ts(),Ts(),Is(17,"button",14),ei(),Is(18,"svg",5),Ms(19,"path",15),Ts(),ti(),Is(20,"span",16),bl(21,"Download"),Ts(),Ts(),Is(22,"a",17),ei(),Is(23,"svg",5),Ms(24,"path",18),Ts(),ti(),Is(25,"span",19),bl(26,"Current View"),Ts(),Ts(),Is(27,"button",20),ei(),Is(28,"svg",21),Ms(29,"path",22),Ts(),ti(),Is(30,"span",23),bl(31,"Go to First Page"),Ts(),Ts(),Is(32,"button",24),js("click",function(){return En(n),qs().previousPage()}),ei(),Is(33,"svg",21),Ms(34,"path",25),Ts(),ti(),Is(35,"span",26),bl(36,"Go to Previous Page"),Ts(),Ts(),Is(37,"button",27),js("click",function(){return En(n),qs().nextPage()}),ei(),Is(38,"svg",21),Ms(39,"path",28),Ts(),ti(),Is(40,"span",29),bl(41,"Go to Next Page"),Ts(),Ts(),Is(42,"button",30),ei(),Is(43,"svg",21),Ms(44,"path",31),Ts(),ti(),Is(45,"span",32),bl(46,"Go to Last Page"),Ts(),Ts(),Is(47,"button",33),ei(),Is(48,"svg",5),Ms(49,"path",34),Ts(),ti(),Is(50,"span",35),bl(51,"Rotate Clockwise"),Ts(),Ts(),Is(52,"button",36),ei(),Is(53,"svg",5),Ms(54,"path",37),Ts(),ti(),Is(55,"span",38),bl(56,"Rotate Counterclockwise"),Ts(),Ts(),Is(57,"button",39),ei(),Is(58,"svg",5),Ms(59,"path",40),Ts(),ti(),Is(60,"span",41),bl(61,"Text Selection Tool"),Ts(),Ts(),Is(62,"button",42),ei(),Is(63,"svg",5),Ms(64,"path",43),Ts(),ti(),Is(65,"span",44),bl(66,"Hand Tool"),Ts(),Ts(),Is(67,"button",45),ei(),Is(68,"svg",46),Ms(69,"path",47),Ts(),ti(),Is(70,"span",48),bl(71,"Vertical Scrolling"),Ts(),Ts(),Is(72,"button",49),ei(),Is(73,"svg",46),Ms(74,"path",50),Ts(),ti(),Is(75,"span",51),bl(76,"Horizontal Scrolling"),Ts(),Ts(),Is(77,"button",52),ei(),Is(78,"svg",46),Ms(79,"path",53),Ts(),ti(),Is(80,"span",54),bl(81,"Wrapped Scrolling"),Ts(),Ts(),Is(82,"button",55),js("click",function(){return En(n),qs().onSpreadChange("off")}),ei(),Is(83,"svg",56),Ms(84,"path",57),Ts(),ti(),Is(85,"span",58),bl(86,"No Spreads"),Ts(),Ts(),Is(87,"button",59),js("click",function(){return En(n),qs().onSpreadChange("odd")}),ei(),Is(88,"svg",46),Ms(89,"path",60),Ts(),ti(),Is(90,"span",61),bl(91,"Odd Spreads"),Ts(),Ts(),Is(92,"button",62),js("click",function(){return En(n),qs().onSpreadChange("even")}),ei(),Is(93,"svg",46),Ms(94,"path",63),Ts(),ti(),Is(95,"span",64),bl(96,"Even Spreads"),Ts(),Ts(),Is(97,"button",65),ei(),Is(98,"svg",66),Ms(99,"path",67),Ms(100,"path",68),Ms(101,"circle",69),Ts(),ti(),Is(102,"span",70),bl(103,"Document Properties\u2026"),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();ol("top",i.secondaryToolbarTop)("transform","scale("+i.mobileFriendlyZoomScale+")")("transform-origin","right top"),Yo(2),al("invisible",!i.showPresentationModeButton),Yo(5),al("invisible",!i.showOpenFileButton),Yo(5),al("invisible",!i.showPrintButton),Yo(5),al("invisible",!i.showDownloadButton),Yo(5),al("invisible",!i.showBookmarkButton),Yo(5),al("invisible",!i.showPagingButtons),Yo(5),al("invisible",!i.showPagingButtons),Os("disabled",i.disablePreviousPage),Yo(5),al("invisible",!i.showPagingButtons),Os("disabled",i.disableNextPage),Yo(5),al("invisible",!i.showPagingButtons),Yo(5),al("invisible",!i.showRotateButton),Yo(5),al("invisible",!i.showRotateButton),Yo(5),al("invisible",!i.showHandToolButton),Yo(5),al("invisible",!i.showHandToolButton),Yo(5),al("invisible",!i.showScrollingButton),Yo(5),al("invisible",!i.showScrollingButton),Yo(5),al("invisible",!i.showScrollingButton),Yo(5),al("invisible",!i.showSpreadButton),Yo(5),al("invisible",!i.showSpreadButton),Yo(5),al("invisible",!i.showSpreadButton),Yo(5),al("invisible",!i.showPropertiesButton)}}function rO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function oO(e,t){if(1&e){var n=Fs();Is(0,"div",2),Is(1,"div",3),Ms(2,"pdf-sidebar-toolbar"),Ts(),Is(3,"pdf-sidebar-content",4),js("thumbnailDrawn",function(e){return En(n),qs().thumbnailDrawn.emit(e)}),Ts(),Ms(4,"div",5),Ts()}if(2&e){var i=qs();ol("top",i.sidebarPositionTop),Yo(1),ol("display",i.hideSidebarToolbar?"none":""),Yo(2),Os("customThumbnail",i.customThumbnail)("hideSidebarToolbar",i.hideSidebarToolbar)}}var aO=["*"],sO=["root"],lO=["pdfSecondaryToolbarComponent"],uO=["pdfsidebar"];function cO(e,t){1&e&&Ms(0,"link",48)}function dO(e,t){1&e&&Ms(0,"pdf-dark-theme")}function hO(e,t){1&e&&Ms(0,"pdf-light-theme")}function fO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function pO(e,t){}function gO(e,t){if(1&e&&(Is(0,"div",3),Ls(1,0),Ts()),2&e){var n=qs(),i=Es(4);ol("transform","scale("+n.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",n.findbarLeft)("top",n.findbarTop),al("invisible",!n.showFindButton),Yo(1),Os("ngTemplateOutlet",n.customFindbarButtons?n.customFindbarButtons:i)}}function vO(e,t){1&e&&(Ms(0,"pdf-find-input-area",4),Ms(1,"pdf-findbar-options-one-container"),Ms(2,"pdf-findbar-options-two-container"),Ms(3,"pdf-findbar-options-three-container"),Ms(4,"pdf-findbar-message-container")),2&e&&Os("customFindbarInputArea",qs().customFindbarInputArea)}function mO(e,t){1&e&&(Is(0,"div",2),Ms(1,"pdf-search-input-field"),Ms(2,"pdf-find-previous"),Ms(3,"pdf-find-next"),Ts())}var yO=["button"],bO="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",wO=["button1"],kO=["button2"],xO="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",_O="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function AO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function CO(e,t){if(1&e&&(Is(0,"div",7),Is(1,"div",8),Ms(2,"pdf-toggle-sidebar",9),Ms(3,"pdf-find-button",10),Ms(4,"pdf-paging-area",11),Ts(),Ms(5,"pdf-zoom-toolbar",12),Is(6,"div",13),Ms(7,"pdf-hand-tool",14),Ms(8,"pdf-select-tool",15),Ms(9,"pdf-rotate-page",16),Ms(10,"pdf-presentation-mode",17),Ms(11,"pdf-open-file",18),Ms(12,"pdf-print",19),Ms(13,"pdf-download",20),Ms(14,"pdf-bookmark",21),Ms(15,"pdf-toggle-secondary-toolbar",22),Ts(),Ts()),2&e){var n=qs();Yo(2),Os("showSidebarButton",n.showSidebarButton),Yo(1),Os("showFindButton",n.showFindButton)("textLayer",n.textLayer),Yo(1),Os("showPagingButtons",n.showPagingButtons),Yo(1),Os("showZoomButtons",n.showZoomButtons)("zoomLevels",n.zoomLevels),Yo(2),Os("showHandToolButton",n.showHandToolButton),Yo(1),Os("showSelectToolButton",n.showHandToolButton),Yo(1),Os("showRotateButton",n.showRotateButton),Yo(1),Os("showPresentationModeButton",n.showPresentationModeButton),Yo(1),Os("showOpenFileButton",n.showOpenFileButton),Yo(1),Os("showPrintButton",n.showPrintButton),Yo(1),Os("showDownloadButton",n.showDownloadButton),Yo(1),Os("showBookmarkButton",n.showBookmarkButton),Yo(1),Os("showSecondaryToolbarButton",n.showSecondaryToolbarButton)}}var SO=["sizeSelector"];function EO(e,t){if(1&e&&(Is(0,"option",5),bl(1),Ts()),2&e){var n=t.$implicit;Os("id",n.id),_s("value",n.value)("data-l10n-id",n.dataL10nId)("data-l10n-args",n.dataL10nArgs),Yo(1),kl(" ",n.displayValue," ")}}var PO=["thumbnailViewTemplate"];function OO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function DO(e,t){1&e&&(Is(0,"a",8),Is(1,"div",9),Ms(2,"div",10),Ts(),Ts())}var IO="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,TO=/Edge\/\d./i.test(navigator.userAgent),MO="undefined"==typeof ReadableStream||void 0===Promise.allSettled,BO={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:function(){return"./"+BO.assetsFolder+"/cmaps/"},disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:function(){return IO||TO||MO?"./"+BO.assetsFolder+"/pdf.worker-es5.js":"./"+BO.assetsFolder+"/pdf.worker.js"}};window.pdfDefaultOptions?BO=window.pdfDefaultOptions:window.pdfDefaultOptions=BO;var RO={ERRORS:0,WARNINGS:1,INFOS:5};RO[RO.ERRORS]="ERRORS",RO[RO.WARNINGS]="WARNINGS",RO[RO.INFOS]="INFOS";var LO={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};LO[LO.FOUND]="FOUND",LO[LO.NOT_FOUND]="NOT_FOUND",LO[LO.WRAPPED]="WRAPPED",LO[LO.PENDING]="PENDING";var FO,NO,VO,zO=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"],jO=((VO=function(){function e(){Z(this,e)}return Y(e,[{key:"addMissingStandardWidgets",value:function(){var e=this;this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];var t=this.dummyComponentsContainer;if(t)for(var n=0;n<t.children.length;n++){var i=t.firstChild;i&&t.removeChild(i)}if(zO.forEach(function(t){if(e.needsDummyWidget(t)){var n=document.createElement("span");n.id=t,n.className="invisible dummy-component",e.dummyComponentsContainer.appendChild(n)}}),this.needsDummyWidget("scaleSelect")){var r=document.createElement("select");r.id="scaleSelect",r.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(r)}}},{key:"needsDummyWidget",value:function(e){return!document.getElementById(e)}}]),e}()).\u0275fac=function(e){return new(e||VO)},VO.\u0275cmp=Ft({type:VO,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&Ms(0,"span",0)},encapsulation:2}),VO),HO=((NO=Y(function e(){var t=this;Z(this,e),this.onPDFJSInit=new ge,this.pdfjsVersion=new iP(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(function(){t.pdfjsVersion.next(window.pdfjsLib.version)})})).\u0275fac=function(e){return new(e||NO)},NO.\u0275prov=rt({token:NO,factory:NO.\u0275fac,providedIn:"root"}),NO.ngInjectableDef=ot({factory:function(){return new NO},token:NO,providedIn:"root"}),NO),UO=((FO=function(){function e(t,n){var i=this;Z(this,e),this.element=t,this.notificationService=n,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new ac,this.secondaryMenuIsEmpty=new ac,this.disablePreviousPage=!0,this.disableNextPage=!0;var r=this.notificationService.onPDFJSInit.subscribe(function(){i.onPdfJsInit(),r.unsubscribe()})}return Y(e,[{key:"onPdfJsInit",value:function(){var e=this,t=window.PDFViewerApplication;t.eventBus.on("pagechanging",function(){e.updateUIState()}),t.eventBus.on("pagerendered",function(){e.updateUIState()})}},{key:"updateUIState",value:function(){var e=this;setTimeout(function(){var t=window.PDFViewerApplication,n=t.pdfViewer.currentPageNumber,i=document.getElementById("previousPage");i&&(e.disablePreviousPage=Number(n)<=1,i.disabled=e.disablePreviousPage);var r=document.getElementById("nextPage");r&&(e.disableNextPage=n===t.pagesCount,r.disabled=e.disableNextPage)})}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"ngOnChanges",value:function(e){var t=this;setTimeout(function(){return t.checkVisibility()})}},{key:"onResize",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"checkVisibility",value:function(){var e=0,t=this.element.nativeElement.children.item(0);if(t){var n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}},{key:"checkVisibilityRecursively",value:function(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;var t=0,n=e.children;if(n&&n.length)for(var i=0;i<n.length&&0===t;i++){var r=n.item(i);r&&r instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(r))}return t}},{key:"previousPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}},{key:"nextPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}]),e}()).\u0275fac=function(e){return new(e||FO)(Ps(Kl),Ps(HO))},FO.\u0275cmp=Ft({type:FO,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&js("resize",function(){return t.onResize()},!1,io)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[tn],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&(Ls(0,0),Ss(1,iO,104,48,"ng-template",null,1,Cc)),2&e){var n=Es(2);Os("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:n)}},directives:[ef],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),FO),WO={SELECT:0,HAND:1,ZOOM:2};WO[WO.SELECT]="SELECT",WO[WO.HAND]="HAND",WO[WO.ZOOM]="ZOOM";var GO,qO,YO,ZO,KO,QO,XO,JO,$O,eD,tD,nD,iD,rD,oD,aD,sD,lD,uD,cD,dD,hD,fD,pD,gD,vD,mD,yD,bD,wD,kD,xD,_D,AD,CD,SD,ED,PD,OD,DD,ID,TD,MD,BD,RD,LD,FD,ND,VD,zD=function(){function e(t){Z(this,e),this._zone=t,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}return Y(e,[{key:"isMobile",value:function(){return"ontouchstart"in document.documentElement}},{key:"onViewerTouchStart",value:function(e){if(this.initialPinchDistance=0,2===e.touches.length){var t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}},{key:"onViewerTouchMove",value:function(e){var t=window.PDFViewerApplicationOptions;if(!(this.initialPinchDistance<=0||2!==e.touches.length)){1!==this.pinchScale&&e.preventDefault();var n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,r=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;var o=Number(t.get("minZoom"));o||(o=.1),this.pinchScale<o&&(this.pinchScale=o);var a=Number(t.get("maxZoom"));a||(a=10),this.pinchScale>a&&(this.pinchScale=a),this.viewer.style.transform="scale(".concat(this.pinchScale,")"),this.viewer.style.transformOrigin="".concat(i,"px ").concat(r,"px"),e.preventDefault(),e.stopPropagation()}}},{key:"onViewerTouchEnd",value:function(e){var t=window.PDFViewerApplication;if(!(this.initialPinchDistance<=0)){this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;var n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}}},{key:"resetPinchZoomParams",value:function(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}},{key:"initializePinchZoom",value:function(){var e=this;this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(function(){document.addEventListener("touchstart",e.onViewerTouchStart.bind(e)),document.addEventListener("touchmove",e.onViewerTouchMove.bind(e),{passive:!1}),document.addEventListener("touchend",e.onViewerTouchEnd.bind(e))})}},{key:"destroyPinchZoom",value:function(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}]),e}(),jD=((VD=function(){function e(t,n){Z(this,e),this.elementRef=t,this.ref=n,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new ac,this.hideSidebarToolbar=!0}return Y(e,[{key:"showToolbarWhenNecessary",value:function(){var e=this.elementRef.nativeElement.querySelectorAll("button"),t=0;e.forEach(function(e){e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||VD)(Ps(Kl),Ps(ku))},VD.\u0275cmp=Ft({type:VD,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:aO,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(Zs(),Is(0,"div"),Ss(1,rO,1,0,"ng-content",0),Ts(),Ss(2,oO,5,6,"ng-template",null,1,Cc)),2&e){var n=Es(3);Yo(1),Os("ngTemplateOutlet",t.customSidebar?t.customSidebar:n)}},directives:function(){return[ef,MI,TI]},styles:[""]}),VD),HD=((ND=function(){function e(t,n,i,r){Z(this,e),this.ngZone=t,this.platformId=n,this.notificationService=i,this.location=r,this.customFindbarButtons=void 0,this.srcChange=new ac,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new ac,this.beforePrint=new ac,this.currentZoomFactor=new ac,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=RO.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new ac,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+BO.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new ac,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new ac,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new ac,this.thumbnailDrawn=new ac,this._page=void 0,this.pageChange=new ac,this.pageLabel=void 0,this.pageLabelChange=new ac,this.pagesLoaded=new ac,this.pageRendered=new ac,this.pdfDownloaded=new ac,this.pdfLoaded=new ac,this.pdfLoadingFailed=new ac,this.textLayer=void 0,this.textlayerRendered=new ac,this.textLayerRendered=new ac,this.updateFindMatchesCount=new ac,this.updateFindState=new ac,this.zoom=void 0,this.zoomChange=new ac,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}return Y(e,[{key:"src",set:function(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}},{key:"base64Src",set:function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);this.src=i.buffer}},{key:"height",get:function(){return this._height},set:function(e){var t=this;this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(function(){t.checkHeight()})}},{key:"showSidebarButton",get:function(){return this._showSidebarButton},set:function(e){this._showSidebarButton=e;var t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}},{key:"page",get:function(){return this._page},set:function(e){this._page=e?Number(e):void 0}},{key:"mobileFriendlyZoom",get:function(){return this._mobileFriendlyZoom},set:function(e){var t;"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e,String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}},{key:"mobileZoom",set:function(e){this.mobileFriendlyZoom=e}},{key:"sidebarPositionTop",get:function(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}},{key:"calcViewerPositionTop",value:function(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){var e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}},{key:"iOSVersionRequiresES5",value:function(){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}},{key:"loadViewer",value:function(){var e=this;if(window["pdfjs-dist/build/pdf"]){var t=!!window.MSInputMethodContext&&!!document.documentMode,n=/Edge\/\d./i.test(navigator.userAgent),i=this.iOSVersionRequiresES5(),r="undefined"==typeof ReadableStream||void 0===Promise.allSettled,o=this.minifiedJSLibraries?".min.js":".js",a=document.createElement("script"),s=BO.assetsFolder;r&&console.log("Using the ES5 version of the PDF viewer."),a.src=this.location.normalize(t||n||i||r?s+"/viewer-es5"+o:s+"/viewer"+o),a.type="text/javascript",a.async=!0,document.getElementsByTagName("head")[0].appendChild(a)}else setTimeout(function(){return e.loadViewer()},25)}},{key:"ngOnInit",value:function(){if(this.onResize(),wf(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){var e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),r=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!BO.workerSrc().endsWith(".min.js")){var o=BO.workerSrc();BO.workerSrc=function(){return o.replace(".js",".min.js")}}var a=BO.assetsFolder,s=document.createElement("script");s.src=this.location.normalize(e||t||i||n?a+"/pdf-es5"+r:a+"/pdf"+r),s.type="text/javascript",s.async=!0,document.getElementsByTagName("head")[0].appendChild(s)}window.webViewerLoad||this.loadViewer()}}},{key:"ngAfterViewInit",value:function(){var e=this;this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(function(){return e.ngAfterViewInit()},50))}},{key:"assignTabindexes",value:function(){if(this.startTabindex){var e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);var t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);for(var n=t.sort(function(e,t){return e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x}),i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}},{key:"showElementsRecursively",value:function(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(var t=0;t<e.childElementCount;t++){var n=e.children.item(t);n&&this.showElementsRecursively(n)}}},{key:"collectElementPositions",value:function(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){var i=e.getBoundingClientRect(),r={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(r)}else if(e.childElementCount>0)for(var o=0;o<e.childElementCount;o++){var a=e.children.item(o),s=t.children.item(o);a&&s&&(n=this.collectElementPositions(a,s,n))}return n}},{key:"doInitPDFViewer",value:function(){var t=this,n=document.querySelectorAll('link[type="application/l10n"]');if(0===n.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){var i=n[0].attributes.origin;i&&"ngx-extended-pdf-viewer"!==i.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}window.addEventListener("afterprint",function(e){t.afterPrint.emit()}),window.addEventListener("beforeprint",function(e){t.beforePrint.emit()}),document.addEventListener("localized",function e(n){document.removeEventListener("localized",e),t.initTimeout=setTimeout(function(){t.shuttingDown||(t.afterLibraryInit(),t.openPDF(),t.assignTabindexes())},t.delayFirstView)}),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors."),document.addEventListener("webviewerloaded",function e(){t.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",e),t.enablePinchOnMobile&&(t.pinchOnMobileSupport=new zD(t.ngZone))}),this.activateTextlayerIfNecessary(null),setTimeout(function(){if(!t.shuttingDown){t.primaryMenuVisible=!0,t.hideKebabMenuForSecondaryToolbar&&!t.showSecondaryToolbarButton&&(t.isPrimaryMenuVisible()||(t.primaryMenuVisible=!1)),t.calcViewerPositionTop(),t.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();var e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=t.filenameForDownload;var n=window.PDFViewerApplicationOptions;n.set("locale",t.language),n.set("imageResourcesPath",t.imageResourcesPath),n.set("minZoom",t.minZoom),n.set("maxZoom",t.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);var i=document.getElementById("printContainer");i&&document.getElementsByTagName("body")[0].appendChild(i)}},0)}},{key:"afterLibraryInit",value:function(){this.notificationService.onPDFJSInit.next()}},{key:"checkHeight",value:function(){var e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){var t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"activateTextlayerIfNecessary",value:function(e){var t=this;void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(function(){t.showFindButton=!1}),this.logLevel>=RO.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=RO.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=RO.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(function(){t.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=RO.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}},{key:"overrideDefaultSettings",value:function(){var e=window.PDFViewerApplicationOptions;for(var t in BO)e.set(t,BO[t]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);var n=this.sidebarVisible;void 0===n&&(n=this.showSidebarOnLoad);var i=window.PDFViewerApplication;void 0!==n&&(i.sidebarViewOnLoad=n?1:0,i.appConfig&&(i.appConfig.sidebarViewOnLoad=n?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),i.pdfViewer&&(i.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),i.pdfViewer&&(i.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),i.pdfViewer&&(i.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}},{key:"openPDF",value:function(){var t=this;ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;var n=window.PDFViewerApplication;n.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(n.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),n.eventBus.on("textlayerrendered",function(e){t.textlayerRendered.emit(e),t.textLayerRendered.emit(e)}),n.eventBus.on("pagesloaded",function(e){if(t.pagesLoaded.emit(e),t.rotation){var i=Number(t.rotation);0!==i&&90!==i&&180!==i&&270!==i||(n.pdfViewer.pagesRotation=i)}else n.pdfViewer.pagesRotation=0;setTimeout(function(){t.shuttingDown||(t.nameddest?n.pdfLinkService.navigateTo(t.nameddest):t.page?n.page=Number(t.page):t.pageLabel&&(n.pdfViewer.currentPageLabel=t.pageLabel))}),t.setZoom()}),n.eventBus.on("pagerendered",function(e){t.ngZone.run(function(){t.pageRendered.emit(e)})}),n.eventBus.on("download",function(e){t.ngZone.run(function(){t.pdfDownloaded.emit(e)})}),n.eventBus.on("scalechanging",function(e){setTimeout(function(){t.ngZone.run(function(){t.currentZoomFactor.emit(e.scale);var n=t.root.nativeElement.querySelector("#scaleSelect"),i=t.zoom;n&&(i=n.value),"auto"!==i&&"page-fit"!==i&&"page-actual"!==i&&"page-width"!==i&&t.zoomChange.emit(100*e.scale)})})}),n.eventBus.on("rotationchanging",function(e){t.ngZone.run(function(){t.rotationChange.emit(e.pagesRotation)})}),n.eventBus.on("fileinputchange",function(e){t.ngZone.run(function(){var n=e.fileInput.value.replace("C:\\fakepath\\","");t.srcChange.emit(n)})}),n.eventBus.on("cursortoolchanged",function(e){t.ngZone.run(function(){t.handToolChange.emit(e.tool===WO.HAND)})}),n.eventBus.on("sidebarviewchanged",function(e){t.ngZone.run(function(){t.sidebarVisibleChange.emit(e.view>0),t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})});var i=function(){t.ngZone.run(function(){t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})};if(n.eventBus.on("outlineloaded",i),n.eventBus.on("attachmentsloaded",i),n.eventBus.on("layersloaded",i),n.eventBus.on("updatefindcontrolstate",function(e){t.updateFindMatchesCount&&(e.state===LO.NOT_FOUND?t.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)),t.updateFindState&&t.updateFindState.emit(e.state)}),n.eventBus.on("updatefindmatchescount",function(e){t.updateFindMatchesCount&&e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)}),n.eventBus.on("pagechanging",function(e){t.shuttingDown||t.ngZone.run(function(){var e=n.pdfViewer.currentPageNumber,i=n.pdfViewer.currentPageLabel;e!==t.page&&t.pageChange.emit(e),i!==t.pageLabel&&t.pageLabelChange.emit(i)})}),this.checkHeight(),this._src){var r={password:this.password,verbosity:this.logLevel};this._src.range&&(r.range=this._src.range),this.httpHeaders&&(r.httpHeaders=this.httpHeaders),this.authorization&&(r.withCredentials=!0,r.httpHeaders?r.httpHeaders.Authorization||(r.httpHeaders.Authorization=this.authorization):r.httpHeaders={Authorization:this.authorization}),n.onError=function(e){return t.pdfLoadingFailed.emit(e)},n.open(this._src,r).then(function(){return t.pdfLoaded.emit({pagesCount:n.pagesCount})})}setTimeout(function(){t.shuttingDown||t.page&&(n.page=Number(t.page))},100)}},{key:"selectCursorTool",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}},{key:"ngOnDestroy",value:function(){var t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();var n=t.eventBus;if(n)for(var i in t.unbindEvents(),n._listeners)if(n._listeners[i]){for(var r=n._listeners[i],o=0;o<r.length;o++)r[o]=void 0;n._listeners[i]=void 0}t.eventBus=null}var a=document.getElementsByTagName("body");if(a[0])for(var s=a[0].children,l=s.length-1;l>=0;l--){var u=s.item(l);(u&&"printContainer"===u.id||u&&"fileInput"===u.id)&&a[0].removeChild(u)}}},{key:"isPrimaryMenuVisible",value:function(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}},{key:"ngOnChanges",value:function(t){var n=this,i=window.PDFViewerApplication,r=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();var o={password:this.password,verbosity:this.logLevel};this._src.range&&(o.range=this._src.range),this.httpHeaders&&(o.httpHeaders=this.httpHeaders),this.authorization&&(o.withCredentials=!0,o.httpHeaders?o.httpHeaders.Authorization||(o.httpHeaders.Authorization=this.authorization):o.httpHeaders={Authorization:this.authorization}),i.open(this._src,o).then(function(){return n.pdfLoaded.emit({pagesCount:i.pagesCount})},function(e){return n.pdfLoadingFailed.emit(e)})}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&r.set("maxZoom",this.maxZoom),"minZoom"in t&&r.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=i.page&&(i.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==i.pdfViewer.currentPageLabel&&(i.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){var a=Number(this.rotation);0!==a&&90!==a&&180!==a&&270!==a||(i.pdfViewer.pagesRotation=a)}else i.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?i.pdfSidebar.open():i.pdfSidebar.close()),"filenameForDownload"in t&&(i.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&i.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(i.spreadModeOnLoad=2,i.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(i.spreadModeOnLoad=1,i.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(i.spreadModeOnLoad=0,i.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new zD(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t&&r&&r.set("printResolution",this.printResolution),"ignoreKeyboard"in t&&r&&this.overrideDefaultSettings(),"ignoreKeys"in t&&r&&this.overrideDefaultSettings(),"acceptKeys"in t&&r&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&r){this.overrideDefaultSettings();var s=document.getElementById("viewer");this.showBorders?s.classList.remove("removePageBorders"):s.classList.add("removePageBorders"),i.pdfViewer&&(i.pdfViewer.removePageBorders=!this.showBorders);var l={source:s,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};i.eventBus.dispatch("scalechanging",l)}"showUnverifiedSignatures"in t&&i&&i.pdfDocument&&i.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(i.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}},{key:"setZoom",value:function(){var e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");var t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}},{key:"onResize",value:function(){var e=document.getElementsByClassName("html");if(e&&e.length>0){var t=document.getElementById("outerContainer");t&&(this.toolbarWidthInPixels=t.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}},{key:"onContextMenu",value:function(){return this.contextMenuAllowed}},{key:"onSecondaryMenuIsEmpty",value:function(e){this.hideKebabMenuForSecondaryToolbar=e}}]),e}()).\u0275fac=function(e){return new(e||ND)(Ps(Zc),Ps(Mc),Ps(HO),Ps(Kd))},ND.\u0275cmp=Ft({type:ND,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){var n;1&e&&(bc(jO,1),bc(sO,1),bc(lO,1),bc(uO,1)),2&e&&(yc(n=kc())&&(t.dummyComponents=n.first),yc(n=kc())&&(t.root=n.first),yc(n=kc())&&(t.secondaryToolbarComponent=n.first),yc(n=kc())&&(t.sidebarComponent=n.first))},hostBindings:function(e,t){1&e&&js("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[tn],ngContentSelectors:aO,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(Zs(),Ss(0,cO,1,0,"link",0),Ss(1,dO,1,0,"pdf-dark-theme",1),Ss(2,hO,1,0,"pdf-light-theme",1),Ms(3,"pdf-dynamic-css",2),Is(4,"div",3,4),Is(6,"div",5),Is(7,"div",6),Is(8,"div",7),js("resize",function(){return t.onResize()},!1,io),Is(9,"div",8),Ss(10,fO,1,0,"ng-content",9),Ts(),Is(11,"pdf-sidebar",10,11),js("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),Ts(),Is(13,"div",12),Ms(14,"pdf-dummy-components"),Ms(15,"pdf-toolbar",13),Is(16,"pdf-secondary-toolbar",14,15),js("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),Ts(),Ms(18,"pdf-findbar",16),Ms(19,"pdf-context-menu"),Is(20,"div",17),Ms(21,"div",18),Ts(),Is(22,"div",19),Is(23,"div",20),Ms(24,"span",21),Is(25,"button",22),bl(26," More Information "),Ts(),Is(27,"button",23),bl(28," Less Information "),Ts(),Ts(),Is(29,"div",24),Is(30,"button",25),bl(31,"Close"),Ts(),Ts(),Ms(32,"div",26),Ms(33,"textarea",27),Ts(),Ts(),Is(34,"div",28),Is(35,"div",29),Is(36,"div",30),Is(37,"div",31),Is(38,"p",32),bl(39," Enter the password to open this PDF file: "),Ts(),Ts(),Is(40,"div",31),Ms(41,"input",33),Ts(),Is(42,"div",34),Is(43,"button",35),Is(44,"span",36),bl(45,"Cancel"),Ts(),Ts(),Is(46,"button",37),Is(47,"span",38),bl(48,"OK"),Ts(),Ts(),Ts(),Ts(),Ts(),Ms(49,"pdf-document-properties-overlay",39),Is(50,"div",40),Is(51,"div",30),Is(52,"div",31),Is(53,"span",41),bl(54,"Preparing document for printing\u2026"),Ts(),Ts(),Is(55,"div",31),Ms(56,"progress",42),Is(57,"span",43),bl(58,"0%"),Ts(),Ts(),Is(59,"div",34),Is(60,"button",44),Is(61,"span",45),bl(62,"Cancel"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ms(63,"div",46),Ts(),Ts(),Ts(),Ss(64,pO,0,0,"ng-template",null,47,Cc)),2&e){var n=Es(65);Os("ngIf",t.useBrowserLocale),Yo(1),Os("ngIf","dark"===t.theme),Yo(1),Os("ngIf","light"===t.theme),Yo(1),Os("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),Yo(1),ol("height",t.height)("min-height",t.minHeight),Yo(3),ol("background-color",t.backgroundColor),Yo(3),Os("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:n),Yo(1),Os("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),Yo(4),Os("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),Yo(1),Os("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),Yo(2),Os("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),Yo(2),ol("top",t.viewerPositionTop),Yo(1),ol("background-color",t.backgroundColor)}},directives:function(){return[jh,II,ef,jD,jO,CI,UO,KD,qD,YD,RI,BI]},encapsulation:2,changeDetection:0}),ND.ngxExtendedPdfViewerInitialized=!1,ND),UD=((FD=function(){function e(){Z(this,e)}return Y(e,[{key:"findMultiple",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},t,{findMultipleSearchTexts:!0});var n=e.join("\n")+"\n";return this.find(n,t)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(HD.ngxExtendedPdfViewerInitialized){var n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);var i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);var r=document.getElementById("findEntireWord");r&&(r.checked=t.wholeWords||!1);var o=document.getElementById("findIgnoreAccents");o&&(o.checked=t.ignoreAccents||!1);var a=t.findMultipleSearchTexts||e.includes("\n")||!1,s=document.getElementById("findMultipleSearchTexts");s&&(s.checked=a);var l=document.getElementById("individualWordsMode");l&&(l.checked=!1);var u=document.getElementById("findFuzzy");u&&(u.checked=t.fuzzySearch||!1);var c=a?document.getElementById("findInputMultiline"):document.getElementById("findInput");return c?(c instanceof HTMLTextAreaElement?(c.value=e,c.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):c instanceof HTMLInputElement&&(c.value=e,c.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),c.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}},{key:"findNext",value:function(){if(HD.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}},{key:"findPrevious",value:function(){if(HD.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}},{key:"print",value:function(e){var t=this,n=window.PDFViewerApplication,i=!!window.isInPDFPrintRange&&!e;i||(e||(e={}),this.setPrintRange(e)),window.printPDF(),i||n.eventBus.on("afterprint",function(){t.removePrintRange()})}},{key:"removePrintRange",value:function(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}},{key:"setPrintRange",value:function(e){var t=this,n=window.PDFViewerApplication;window.isInPDFPrintRange=function(n){return t.isInPDFPrintRange(n,e)},window.filteredPageCount=this.filteredPageCount(n.pagesCount,e)}},{key:"filteredPageCount",value:function(e,t){for(var n=0,i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}},{key:"isInPDFPrintRange",value:function(e,t){var n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(function(e){return e===n})||t.included&&!t.included.some(function(e){return e===n}))}},{key:"getPageAsText_preview",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){e.getTextContent().then(function(e){return t(n.convertTextInfoToText(e))})})}},{key:"getPageAsText",value:function(e){var t=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(t,n){t(e.getTextContent())})}).then(function(e){return new Promise(function(n,i){n(t.convertTextInfoToText(e))})})}},{key:"convertTextInfoToText",value:function(e){return e?e.items.map(function(e){return e.str}).join(""):""}},{key:"getPageAsImage_preview",value:function(e,t,n,i){var r=this;window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){r.draw_preview(e,t,n,i)}).catch(function(e){i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}},{key:"getPageAsImage",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(i,r){i(n.draw(e,t))})})}},{key:"draw",value:function(e,t){var n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);var i=e.getViewport({scale:n}),r=this.getPageDrawContext(i.width,i.height),o=r.ctx,a=r.canvas,s=i.clone();return e.render({canvasContext:o,viewport:s}).promise.then(function(){return new Promise(function(e,t){e(a.toDataURL())})})}},{key:"draw_preview",value:function(e,t,n,i){var r=1;t.scale?r=t.scale:t.width?r=t.width/e.getViewport({scale:1}).width:t.height&&(r=t.height/e.getViewport({scale:1}).height);var o=e.getViewport({scale:r}),a=this.getPageDrawContext(o.width,o.height),s=a.ctx,l=a.canvas,u=o.clone();e.render({canvasContext:s,viewport:u}).promise.then(function(){var e=l.toDataURL();n(e)},function(e){i&&i(e)})}},{key:"getPageDrawContext",value:function(e,t){var n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}]),e}()).\u0275fac=function(e){return new(e||FD)},FD.\u0275prov=rt({token:FD,factory:FD.\u0275fac}),FD),WD=((LD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.showHandToolButton=!0,this.isSelected=!1;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===WO.HAND})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:WO.HAND})}}]),e}()).\u0275fac=function(e){return new(e||LD)(Ps(HO))},LD.\u0275cmp=Ft({type:LD,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(Is(0,"button",0),js("click",function(){return t.onClick()}),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Hand Tool"),Ts(),Ts()),2&e&&al("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),LD),GD=((RD=Y(function e(){Z(this,e),this.showBookmarkButton=!0})).\u0275fac=function(e){return new(e||RD)},RD.\u0275cmp=Ft({type:RD,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(Is(0,"a",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Current View"),Ts(),Ts()),2&e&&al("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),RD),qD=((BD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||BD)},BD.\u0275cmp=Ft({type:BD,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"div",1),Ms(2,"div",2),Ms(3,"div",3),Ms(4,"div",4),Ts())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),BD),YD=((MD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||MD)},MD.\u0275cmp=Ft({type:MD,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(Is(0,"div"),Is(1,"div",0),Is(2,"div",1),Is(3,"span",2),bl(4,"File name:"),Ts(),Is(5,"p",3),bl(6,"-"),Ts(),Ts(),Is(7,"div",1),Is(8,"span",4),bl(9,"File size:"),Ts(),Is(10,"p",5),bl(11,"-"),Ts(),Ts(),Is(12,"div",1),Is(13,"span",6),bl(14,"Title:"),Ts(),Is(15,"p",7),bl(16,"-"),Ts(),Ts(),Is(17,"div",1),Is(18,"span",8),bl(19,"Author:"),Ts(),Is(20,"p",9),bl(21,"-"),Ts(),Ts(),Is(22,"div",1),Is(23,"span",10),bl(24,"Subject:"),Ts(),Is(25,"p",11),bl(26,"-"),Ts(),Ts(),Is(27,"div",1),Is(28,"span",12),bl(29,"Keywords:"),Ts(),Is(30,"p",13),bl(31,"-"),Ts(),Ts(),Is(32,"div",1),Is(33,"span",14),bl(34,"Creation Date:"),Ts(),Is(35,"p",15),bl(36,"-"),Ts(),Ts(),Is(37,"div",1),Is(38,"span",16),bl(39,"Modification Date:"),Ts(),Is(40,"p",17),bl(41,"-"),Ts(),Ts(),Is(42,"div",1),Is(43,"span",18),bl(44,"Creator:"),Ts(),Is(45,"p",19),bl(46,"-"),Ts(),Ts(),Is(47,"div",1),Is(48,"span",20),bl(49,"PDF Producer:"),Ts(),Is(50,"p",21),bl(51,"-"),Ts(),Ts(),Is(52,"div",1),Is(53,"span",22),bl(54,"PDF Version:"),Ts(),Is(55,"p",23),bl(56,"-"),Ts(),Ts(),Is(57,"div",1),Is(58,"span",24),bl(59,"Page Count:"),Ts(),Is(60,"p",25),bl(61,"-"),Ts(),Ts(),Is(62,"div",1),Is(63,"span",26),bl(64,"Page Size:"),Ts(),Is(65,"p",27),bl(66,"-"),Ts(),Ts(),Ms(67,"div",28),Is(68,"div",1),Is(69,"span",29),bl(70,"Fast Web View:"),Ts(),Is(71,"p",30),bl(72,"-"),Ts(),Ts(),Is(73,"div",31),Is(74,"button",32),Is(75,"span",33),bl(76,"Close"),Ts(),Ts(),Ts(),Ts(),Ts())},styles:[""]}),MD),ZD=((TD=Y(function e(){Z(this,e),this.showDownloadButton=!0})).\u0275fac=function(e){return new(e||TD)},TD.\u0275cmp=Ft({type:TD,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Download"),Ts(),Ts()),2&e&&al("invisible",!t.showDownloadButton)},styles:[bO]}),TD),KD=((ID=Y(function e(){Z(this,e),this.showFindButton=!0})).\u0275fac=function(e){return new(e||ID)},ID.\u0275cmp=Ft({type:ID,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&(Ls(0,0),Ss(1,gO,2,11,"ng-template",null,1,Cc),Ss(3,vO,5,1,"ng-template",null,2,Cc)),2&e){var n=Es(2);Os("ngTemplateOutlet",t.customFindbar?t.customFindbar:n)}},directives:function(){return[ef,oI,XD,$D,JD,QD]},styles:[""]}),ID),QD=((DD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||DD)},DD.\u0275cmp=Ft({type:DD,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"span",1),Ts())},styles:[""]}),DD),XD=((OD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||OD)},OD.\u0275cmp=Ft({type:OD,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-find-highlight-all"),Ms(2,"pdf-find-match-case"),Ts())},directives:function(){return[iI,aI]},styles:[""]}),OD),JD=((PD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||PD)},PD.\u0275cmp=Ft({type:PD,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-find-ignore-accents"),Ms(2,"pdf-find-fuzzily"),Ms(3,"pdf-find-results-count"),Ts())},directives:function(){return[rI,nI,dI]},styles:[""]}),PD),$D=((ED=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ED)},ED.\u0275cmp=Ft({type:ED,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-find-entire-word"),Ms(2,"pdf-find-entire-phrase"),Ts())},directives:function(){return[tI,lI]},styles:[""]}),ED),eI=((SD=function(){function e(){Z(this,e),this.showFindButton=void 0,this.textLayer=void 0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||SD)},SD.\u0275cmp=Ft({type:SD,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Find"),Ts(),Ts()),2&e&&al("invisible",!t.showFindButton||!t.textLayer)},styles:[_O]}),SD),tI=((CD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||CD)},CD.\u0275cmp=Ft({type:CD,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Whole words\n"),Ts())},styles:[""]}),CD),nI=((AD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||AD)},AD.\u0275cmp=Ft({type:AD,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Fuzzy search\n"),Ts())},styles:[""]}),AD),iI=((_D=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||_D)},_D.\u0275cmp=Ft({type:_D,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Highlight all\n"),Ts())},styles:[""]}),_D),rI=((xD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||xD)},xD.\u0275cmp=Ft({type:xD,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Ignore accents and diacritics\n"),Ts())},styles:[""]}),xD),oI=((kD=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||kD)},kD.\u0275cmp=Ft({type:kD,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(Ss(0,mO,4,0,"div",0),Ls(1,1)),2&e&&(Os("ngIf",!t.customFindbarInputArea),Yo(1),Os("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[jh,ef,xI,cI,uI]},styles:[""]}),kD),aI=((wD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wD)},wD.\u0275cmp=Ft({type:wD,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Match case\n"),Ts())},styles:[""]}),wD),sI=((bD=Y(function e(){Z(this,e),this.individualWordsMode=!0,this.multipleSearchTexts=!1})).\u0275fac=function(e){return new(e||bD)},bD.\u0275prov=rt({token:bD,factory:bD.\u0275fac,providedIn:"root"}),bD.ngInjectableDef=ot({factory:function(){return new bD},token:bD,providedIn:"root"}),bD),lI=((yD=function(){function e(t){Z(this,e),this.pdfFindbarService=t}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||yD)(Ps(sI))},yD.\u0275cmp=Ft({type:yD,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Is(0,"input",0),js("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),Ts(),Is(1,"label",1),bl(2," multiple search texts\n"),Ts(),Is(3,"input",2),js("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),Ts(),Is(4,"label",3),bl(5," separated by word boundaries\n"),Ts()),2&e&&(Os("ngModel",t.pdfFindbarService.multipleSearchTexts),Yo(3),al("hidden",!t.pdfFindbarService.multipleSearchTexts),Os("ngModel",t.pdfFindbarService.individualWordsMode),Yo(1),al("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[tm,Lm,my],styles:[""]}),yD),uI=((mD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||mD)},mD.\u0275cmp=Ft({type:mD,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Next"),Ts(),Ts())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),mD),cI=((vD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||vD)},vD.\u0275cmp=Ft({type:vD,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Previous"),Ts(),Ts())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),vD),dI=((gD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||gD)},gD.\u0275cmp=Ft({type:gD,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&Ms(0,"span",0)},styles:[""]}),gD),hI=((pD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.disableFirstPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}]),e}()).\u0275fac=function(e){return new(e||pD)(Ps(HO))},pD.\u0275cmp=Ft({type:pD,selectors:[["pdf-first-page"]],viewQuery:function(e,t){var n;1&e&&bc(yO,1),2&e&&yc(n=kc())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(Is(0,"button",0,1),js("click",function(){return t.firstPage()}),ei(),Is(2,"svg",2),Ms(3,"path",3),Ts(),ti(),Is(4,"span",4),bl(5,"First page"),Ts(),Ts()),2&e&&Os("disabled",t.disableFirstPage)},styles:[""]}),pD),fI=((fD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.disableLastPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}},{key:"lastPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}]),e}()).\u0275fac=function(e){return new(e||fD)(Ps(HO))},fD.\u0275cmp=Ft({type:fD,selectors:[["pdf-last-page"]],viewQuery:function(e,t){var n;1&e&&bc(yO,1),2&e&&yc(n=kc())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(Is(0,"button",0,1),js("click",function(){return t.lastPage()}),ei(),Is(2,"svg",2),Ms(3,"path",3),Ts(),ti(),Is(4,"span",4),bl(5,"Last page"),Ts(),Ts()),2&e&&Os("disabled",t.disableLastPage)},styles:[""]}),fD),pI=((hD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||hD)},hD.\u0275cmp=Ft({type:hD,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Next"),Ts(),Ts())},styles:[""]}),hD),gI=((dD=Y(function e(){Z(this,e),this.showOpenFileButton=!0})).\u0275fac=function(e){return new(e||dD)},dD.\u0275cmp=Ft({type:dD,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Open"),Ts(),Ts()),2&e&&al("invisible",!t.showOpenFileButton)},styles:[bO]}),dD),vI=((cD=function(){function e(){Z(this,e),this.showPagingButtons=!0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||cD)},cD.\u0275cmp=Ft({type:cD,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(Ms(0,"input",0),Ms(1,"span",1)),2&e&&(al("invisible",!t.showPagingButtons),Yo(1),al("invisible",!t.showPagingButtons))},styles:[""]}),cD),mI=((uD=Y(function e(){Z(this,e),this.showPagingButtons=!0})).\u0275fac=function(e){return new(e||uD)},uD.\u0275cmp=Ft({type:uD,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-first-page",1),Ms(2,"pdf-previous-page",2),Ts(),Ms(3,"pdf-page-number",3),Is(4,"div",4),Ms(5,"pdf-next-page",5),Ms(6,"pdf-last-page",2),Ts()),2&e&&(al("invisible",!t.showPagingButtons),Yo(3),Os("showPagingButtons",t.showPagingButtons),Yo(1),al("invisible",!t.showPagingButtons))},directives:function(){return[hI,bI,vI,pI,fI]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),uD),yI=((lD=Y(function e(){Z(this,e),this.showPresentationModeButton=!0})).\u0275fac=function(e){return new(e||lD)},lD.\u0275cmp=Ft({type:lD,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Presentation Mode"),Ts(),Ts()),2&e&&al("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),lD),bI=((sD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||sD)},sD.\u0275cmp=Ft({type:sD,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Previous"),Ts(),Ts())},styles:[""]}),sD),wI=((aD=Y(function e(){Z(this,e),this.showPrintButton=!0})).\u0275fac=function(e){return new(e||aD)},aD.\u0275cmp=Ft({type:aD,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Print"),Ts(),Ts()),2&e&&al("invisible",!t.showPrintButton)},styles:[xO]}),aD),kI=((oD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.showRotateButton=!0,this.disableRotate=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"rotateCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}},{key:"rotateCCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}]),e}()).\u0275fac=function(e){return new(e||oD)(Ps(HO))},oD.\u0275cmp=Ft({type:oD,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){var n;1&e&&(bc(wO,1),bc(kO,1)),2&e&&(yc(n=kc())&&(t.button1=n.first),yc(n=kc())&&(t.button2=n.first))},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(Is(0,"button",0,1),js("click",function(){return t.rotateCW()}),ei(),Is(2,"svg",2),Ms(3,"path",3),Ts(),Ts(),ti(),Is(4,"button",4,5),js("click",function(){return t.rotateCCW()}),ei(),Is(6,"svg",2),Ms(7,"path",6),Ts(),Ts()),2&e&&(al("invisible",!t.showRotateButton),Os("disabled",t.disableRotate),Yo(4),al("invisible",!t.showRotateButton),Os("disabled",t.disableRotate))},styles:[xO]}),oD),xI=((rD=Y(function e(t){Z(this,e),this.pdfFindbarService=t})).\u0275fac=function(e){return new(e||rD)(Ps(sI))},rD.\u0275cmp=Ft({type:rD,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(Ms(0,"input",0),Ms(1,"textarea",1)),2&e&&(al("hidden",!t.pdfFindbarService.individualWordsMode),Os("placeholder","Find in document\u2026"),Yo(1),al("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),rD),_I=((iD=function(){function e(){Z(this,e),this.showSecondaryToolbarButton=!0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||iD)},iD.\u0275cmp=Ft({type:iD,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Tools"),Ts(),Ts()),2&e&&al("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),iD),AI=((nD=function(){function e(){Z(this,e),this.showSidebarButton=!0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||nD)},nD.\u0275cmp=Ft({type:nD,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Toggle Sidebar"),Ts(),Ts()),2&e&&al("invisible",!t.showSidebarButton)},styles:[_O]}),nD),CI=((tD=Y(function e(){Z(this,e),this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]})).\u0275fac=function(e){return new(e||tD)},tD.\u0275cmp=Ft({type:tD,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:aO,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(Zs(),Is(0,"div",0),Is(1,"div",1),Ss(2,AO,1,0,"ng-content",2),Is(3,"div",3),Is(4,"div",4),Ms(5,"div",5),Ts(),Ts(),Ts(),Ts(),Ss(6,CO,16,15,"ng-template",null,6,Cc)),2&e){var n=Es(7);al("invisible",!t.primaryMenuVisible),Yo(1),ol("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),Yo(1),Os("ngTemplateOutlet",t.customToolbar?t.customToolbar:n)}},directives:function(){return[ef,AI,eI,mI,OI,WD,DI,kI,yI,gI,wI,ZD,GD,_I]},styles:[""]}),tD),SI=((eD=function(){function e(){Z(this,e),this._zoomLevels=[]}return Y(e,[{key:"zoomLevels",set:function(e){var t=this;this._zoomLevels=e.map(function(e){return t.valueToZoomLevel(e)})}},{key:"ngOnInit",value:function(){}},{key:"valueToZoomLevel",value:function(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);var t=Number(e);if(!t){var n=String(e);return{id:this.snakeToCamel(e+"Option"),value:n,dataL10nId:"page_scale_"+n.replace("page-",""),dataL10nArgs:void 0,displayValue:n}}var i=Math.round(100*t);return{id:"scale_"+i,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:'{ "scale": '.concat(i," }"),displayValue:String(i)+"%"}}},{key:"snakeToCamel",value:function(e){return e.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace("-","").replace("_","")})}}]),e}()).\u0275fac=function(e){return new(e||eD)},eD.\u0275cmp=Ft({type:eD,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){var n;1&e&&bc(SO,1),2&e&&yc(n=kc())&&(t.sizeSelector=n.first)},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(Is(0,"span",0),Is(1,"select",1,2),Ss(3,EO,2,5,"option",3),Ms(4,"option",4),Ts(),Ts()),2&e&&(Yo(3),Os("ngForOf",t._zoomLevels))},directives:[Vh,Ty,Gy],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),eD),EI=(($O=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||$O)},$O.\u0275cmp=Ft({type:$O,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(Is(0,"button",0),bl(1," + "),Is(2,"span",1),bl(3,"Zoom In"),Ts(),Ts())},styles:[""]}),$O),PI=((JO=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||JO)},JO.\u0275cmp=Ft({type:JO,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(Is(0,"button",0),bl(1," - "),Is(2,"span",1),bl(3,"Zoom Out"),Ts(),Ts())},styles:[""]}),JO),OI=((XO=Y(function e(){Z(this,e),this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]})).\u0275fac=function(e){return new(e||XO)},XO.\u0275cmp=Ft({type:XO,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-zoom-out"),Ms(2,"pdf-zoom-in"),Ms(3,"pdf-zoom-dropdown",1),Ts()),2&e&&(al("invisible",!t.showZoomButtons),Yo(3),Os("zoomLevels",t.zoomLevels))},directives:[PI,EI,SI],styles:[""]}),XO),DI=((QO=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.showSelectToolButton=!0,this.isSelected=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===WO.SELECT})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:WO.SELECT})}}]),e}()).\u0275fac=function(e){return new(e||QO)(Ps(HO))},QO.\u0275cmp=Ft({type:QO,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(Is(0,"button",0),js("click",function(){return t.onClick()}),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Text selection tool"),Ts(),Ts()),2&e&&al("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),QO),II=((KO=function(){function e(t,n){Z(this,e),this.renderer=t,this.document=n,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}return Y(e,[{key:"style",get:function(){return"\n@media all and (max-width: ".concat(this.xl,"px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ").concat(this.lg,"px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.sm,"px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ").concat(this.xl,"px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ").concat(this.xxl,"px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  ")}},{key:"ngOnInit",value:function(){this.injectStyle()}},{key:"ngOnChanges",value:function(){var e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;var t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}},{key:"injectStyle",value:function(){var e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}},{key:"ngOnDestroy",value:function(){var e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}]),e}()).\u0275fac=function(e){return new(e||KO)(Ps(Jl),Ps(Od))},KO.\u0275cmp=Ft({type:KO,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[tn],decls:0,vars:0,template:function(e,t){},styles:[""]}),KO),TI=((ZO=function(){function e(){var t=this;Z(this,e),this.thumbnailDrawn=new ac,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=function(){return t.pdfThumbnailGeneratorReady()},window.pdfThumbnailGenerator=function(e,n,i,r,o){return t.createThumbnail(e,n,i,r,o)}}return Y(e,[{key:"ngOnDestroy",value:function(){this.linkService=void 0}},{key:"pdfThumbnailGeneratorReady",value:function(){if(!this.thumbnailViewTemplate)return!1;var e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}},{key:"createThumbnail",value:function(e,t,n,i,r){this.linkService=t;var o=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),a=e.canvasWidth+2+"px",s=e.canvasHeight+2+"px",l=o.split("WIDTH_OF_RING").join(a).split("HEIGHT_OF_RING").join(s).split("PAGE_NUMBER").join(n),u=this.createElementFromHTML(l);u.classList.remove("pdf-viewer-template");var c=u;c.href=t.getAnchorUrl("#page="+n),r.then(function(e){c.title=e}),c.onclick=function(){return t.page=n,!1},e.anchor=c;var d=u.getElementsByClassName("image-container")[0];e.ring=d,e.div=u.getElementsByClassName("thumbnail")[0],i.appendChild(u),this.thumbnailDrawn.emit({thumbnail:u,container:i,pageId:n})}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"onKeyDown",value:function(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}},{key:"hideSidebarToolbar",set:function(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}]),e}()).\u0275fac=function(e){return new(e||ZO)},ZO.\u0275cmp=Ft({type:ZO,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){var n;1&e&&bc(PO,1),2&e&&yc(n=kc())&&(t.thumbnailViewTemplate=n.first)},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:aO,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(Zs(),Is(0,"div",0),Is(1,"div",null,1),Ss(3,OO,1,0,"ng-content",2),Ts(),Is(4,"div",3),js("keydown",function(e){return t.onKeyDown(e)}),Ts(),Ms(5,"div",4),Ms(6,"div",5),Ms(7,"div",6),Ts(),Ss(8,DO,3,0,"ng-template",null,7,Cc)),2&e){var n=Es(9);ol("top",t.top),Yo(3),Os("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:n)}},directives:[ef],styles:[""]}),ZO),MI=((YO=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||YO)},YO.\u0275cmp=Ft({type:YO,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"button",1),Is(2,"span",2),bl(3,"Thumbnails"),Ts(),ei(),Is(4,"svg",3),Ms(5,"path",4),Ts(),Ts(),ti(),Is(6,"button",5),Is(7,"span",6),bl(8,"Document Outline"),Ts(),ei(),Is(9,"svg",3),Ms(10,"path",7),Ts(),Ts(),ti(),Is(11,"button",8),Is(12,"span",9),bl(13,"Attachments"),Ts(),ei(),Is(14,"svg",3),Ms(15,"path",10),Ts(),Ts(),ti(),Is(16,"button",11),Is(17,"span",12),bl(18,"Layers"),Ts(),ei(),Is(19,"svg",13),Ms(20,"path",14),Ts(),Ts(),Ts())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),YO),BI=((qO=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||qO)},qO.\u0275cmp=Ft({type:qO,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),qO),RI=((GO=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||GO)},GO.\u0275cmp=Ft({type:GO,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),GO);function LI(e,t,n){return!e||e.some(function(e){return function(e,t,n){var i,r=0;return(e=e.toLowerCase()).includes("ctrl+")&&(r|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(r|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(r|=2,e=e.replace("alt+","")),e.includes("shift+")&&(r|=4,e=e.replace("shift+","")),e.includes("meta+")&&(r|=8,e=e.replace("meta+","")),i="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===r:i===n&&t===r}(e,t,n)})}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){var n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),r=n.get("acceptKeys");return"WHEEL"===t?!!LI(i,e,"WHEEL")||!!(r&&r.length>0)&&!LI(r,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&LI(i,e,t))||!!(r&&r.length>0)&&!LI(r,e,t)});var FI,NI,VI,zI,jI,HI,UI,WI=((FI=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||FI)},FI.\u0275mod=jt({type:FI}),FI.\u0275inj=at({providers:[UD,HO,Kd,{provide:jd,useClass:Yd}],imports:[[bf,$y]]}),FI),GI=["contentRef"],qI=["*"],YI=((zI=function(){function e(t){Z(this,e),this.display="inline-block",this._dragDisabled=!1,this._elementRef=t}return Y(e,[{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}}]),e}()).\u0275fac=function(e){return new(e||zI)(Ps(Kl))},zI.\u0275dir=Ut({type:zI,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&ol("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),zI=z_([j_(0,cr(Kl)),H_("design:paramtypes",[Kl])],zI)),ZI=((VI=function(){function e(t,n,i){Z(this,e),this._elementRef=t,this._renderer=n,this._document=i,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new ac,this.indexChanged=new ac,this.reachesLeftBound=new ac,this.reachesRightBound=new ac,this.snapAnimationFinished=new ac,this.dragStart=new ac,this.dragEnd=new ac,this.scrollbarWidth=this.getScrollbarWidth()+"px"}return Y(e,[{key:"isDragging",get:function(){return this._isDragging}},{key:"currIndex",get:function(){return this._index},set:function(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}},{key:"scrollbarHidden",get:function(){return this._scrollbarHidden},set:function(e){this._scrollbarHidden=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"xDisabled",get:function(){return this._xDisabled},set:function(e){this._xDisabled=e}},{key:"yDisabled",get:function(){return this._yDisabled},set:function(e){this._yDisabled=e}},{key:"xWheelEnabled",get:function(){return this._xWheelEnabled},set:function(e){this._xWheelEnabled=e}},{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}},{key:"snapDisabled",get:function(){return this._snapDisabled},set:function(e){this._snapDisabled=e}},{key:"snapOffset",get:function(){return this._snapOffset},set:function(e){this._snapOffset=e}},{key:"snapDuration",get:function(){return this._snapDuration},set:function(e){this._snapDuration=e}},{key:"ngOnChanges",value:function(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}},{key:"ngAfterViewInit",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",function(e){e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}},{key:"ngAfterViewChecked",value:function(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}},{key:"ngOnDestroy",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}},{key:"onMouseMoveHandler",value:function(e){this.onMouseMove(e)}},{key:"onMouseMove",value:function(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){var t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){var n=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-n+this.downY,this.downY=n}}}},{key:"onMouseDownHandler",value:function(e){var t=this.locateDragScrollItem(e.target);if(!t||!t.dragDisabled){this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;var n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}}},{key:"onScrollHandler",value:function(){var e=this;this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(function(){e.isScrolling=!1,e.locateCurrentIndex(!0)},500))}},{key:"onMouseUpHandler",value:function(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}},{key:"moveLeft",value:function(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveRight",value:function(){var e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveTo",value:function(e){var t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"checkNavStatus",value:function(){var e=this;setTimeout(function(){var t=Boolean(e._children.length<=1),n=Boolean(e._contentRef.nativeElement.scrollWidth<=e._contentRef.nativeElement.clientWidth);t||n?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!0)):e.isScrollReachesRightEnd()?(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!0)):0===e._contentRef.nativeElement.scrollLeft&&e._contentRef.nativeElement.scrollWidth>e._contentRef.nativeElement.clientWidth?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!1)):(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!1))},0)}},{key:"onWheel",value:function(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}},{key:"onWindowResize",value:function(){this.refreshWrapperDimensions(),this.checkNavStatus()}},{key:"_setIsDragging",value:function(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}},{key:"_startGlobalListening",value:function(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}},{key:"_stopGlobalListening",value:function(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}},{key:"disableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}},{key:"enableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}},{key:"hideScrollbar",value:function(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"height","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}},{key:"showScrollbar",value:function(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}},{key:"checkScrollbar",value:function(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":"calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":"calc(100% + ".concat(this.scrollbarWidth,")"))}},{key:"setScrollBar",value:function(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}},{key:"getScrollbarWidth",value:function(){var e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);var t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");var n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);var i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}},{key:"refreshWrapperDimensions",value:function(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}},{key:"scrollTo",value:function(e,t,n){var i=this;i.isAnimating=!0;var r=e.scrollLeft,o=t-r-this.snapOffset,a=0;!function t(){var s,l,u;a+=20,e.scrollLeft=(s=a,l=r,u=o,(s/=n/2)<1?u/2*s*s+l:-u/2*(--s*(s-2)-1)+l),a<n?i.scrollToTimer=setTimeout(t,20):setTimeout(function(){i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)}()}},{key:"locateCurrentIndex",value:function(e){var t=this;this.currentChildWidth(function(n,i,r,o,a){t._contentRef.nativeElement.scrollLeft>=r&&t._contentRef.nativeElement.scrollLeft<=i?(i-t._contentRef.nativeElement.scrollLeft>n/2&&!t.isScrollReachesRightEnd()?(t.isAnimating||(t.currIndex=o),e&&t.scrollTo(t._contentRef.nativeElement,r,t.snapDuration)):0!==t._contentRef.nativeElement.scrollLeft&&(t.isAnimating||(t.currIndex=o+1),e&&t.scrollTo(t._contentRef.nativeElement,r+n,t.snapDuration)),a()):o+1===t._children.length-1&&(t.isAnimating||(t.currIndex=o+1),a())})}},{key:"currentChildWidth",value:function(e){for(var t=0,n=!1,i=function(){n=!0},r=this._children.toArray(),o=0;o<r.length&&o!==r.length-1&&!n;o++){var a=r[o]._elementRef.nativeElement.clientWidth;e(a,t+r[o+1]._elementRef.nativeElement.clientWidth,t,o,i),t+=a}}},{key:"toChildrenLocation",value:function(){for(var e=0,t=this._children.toArray(),n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}},{key:"locateDragScrollItem",value:function(e){for(var t=null,n=this._children.toArray(),i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}},{key:"markElDimension",value:function(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");var e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}},{key:"maximumIndex",value:function(e,t){for(var n=0,i=0,r=0;r<=t.length;r++){var o=t[t.length-1-r];if(!o)break;var a=o._elementRef.nativeElement,s=a.clientWidth;if(0===s&&a.firstElementChild&&(s=o._elementRef.nativeElement.firstElementChild.clientWidth),!((i+=s)<e))break;n++}return t.length-n}},{key:"isScrollReachesRightEnd",value:function(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}},{key:"adjustMarginToLastChild",value:function(){if(this._children&&this._children.length>0&&this.hideScrollbar){var e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}}]),e}()).\u0275fac=function(e){return new(e||VI)(Ps(Kl),Ps(Jl),Ps(Od))},VI.\u0275cmp=Ft({type:VI,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){var i;1&e&&wc(n,YI,0),2&e&&yc(i=kc())&&(t._children=i)},viewQuery:function(e,t){var n;1&e&&bc(GI,3),2&e&&yc(n=kc())&&(t._contentRef=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&js("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,io),2&e&&ol("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[tn],ngContentSelectors:qI,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(Zs(),Is(0,"div",0,1),Ks(2),Ts())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),VI=z_([j_(0,cr(Kl)),j_(1,cr(Jl)),j_(2,cr(Od)),H_("design:paramtypes",[Kl,Jl,Object])],VI)),KI=((NI=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||NI)},NI.\u0275mod=jt({type:NI}),NI.\u0275inj=at({}),NI),QI=function(){function e(t,n){Z(this,e),this.x=t,this.y=n}return Y(e,[{key:"value",get:function(){return{x:this.x,y:this.y}}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"subtract",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"multiply",value:function(e){this.x*=e,this.y*=e}},{key:"divide",value:function(e){this.x/=e,this.y/=e}},{key:"reset",value:function(){return this.x=0,this.y=0,this}},{key:"set",value:function(e){return this.x=e.x,this.y=e.y,this}}],[{key:"fromEvent",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isMouseEvent(t))return new e(t.clientX,t.clientY);if(null===n||1===t.changedTouches.length)return new e(t.changedTouches[0].clientX,t.changedTouches[0].clientY);for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].target===n)return new e(t.changedTouches[i].clientX,t.changedTouches[i].clientY)}},{key:"isMouseEvent",value:function(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}},{key:"isIPosition",value:function(e){return!!e&&"x"in e&&"y"in e}},{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);if(i){var r=parseInt(i.getPropertyValue("left"),10),o=parseInt(i.getPropertyValue("top"),10);n.x=isNaN(r)?0:r,n.y=isNaN(o)?0:o}return n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),XI=function(){function e(t,n){Z(this,e),this.parent=t,this.renderer=n,this._added=!1;var i=n.createElement("div");n.setStyle(i,"position","absolute"),n.setStyle(i,"width","100%"),n.setStyle(i,"height","100%"),n.setStyle(i,"background-color","transparent"),n.setStyle(i,"top","0"),n.setStyle(i,"left","0"),this._helper=i}return Y(e,[{key:"add",value:function(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}},{key:"remove",value:function(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}},{key:"dispose",value:function(){this._helper=null,this._added=!1}},{key:"el",get:function(){return this._helper}}]),e}(),JI=((jI=function(){function e(t,n){Z(this,e),this.el=t,this.renderer=n,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new QI(0,0),this.tempTrans=new QI(0,0),this.currTrans=new QI(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new ac,this.stopped=new ac,this.edge=new ac,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new ac,this.endOffset=new ac,this._helperBlock=new XI(t.nativeElement,n)}return Y(e,[{key:"zIndex",set:function(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}},{key:"ngDraggable",set:function(e){if(null!=e&&""!==e){this.allowDrag=!!e;var t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}},{key:"ngOnInit",value:function(){if(this.allowDrag){var e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}},{key:"ngOnDestroy",value:function(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}},{key:"ngOnChanges",value:function(e){if(e.position&&!e.position.isFirstChange()){var t=e.position.currentValue;this.moving?this.needTransform=!0:(QI.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}},{key:"ngAfterViewInit",value:function(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}},{key:"getDragEl",value:function(){return this.handle?this.handle:this.el.nativeElement}},{key:"resetPosition",value:function(){QI.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}},{key:"moveTo",value:function(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}},{key:"transform",value:function(){var e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);var n="translate(".concat(Math.round(e),"px, ").concat(Math.round(t),"px)");this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}},{key:"pickUp",value:function(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;var e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Q_(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Q_(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Q_(document,"mouseup",{passive:!1}).subscribe(function(){return e.putBack()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Q_(document,"mouseleave",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Q_(document,"touchend",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Q_(document,"touchcancel",{passive:!1}).subscribe(function(){return e.putBack()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"boundsCheck",value:function(){if(this.bounds){var e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}},{key:"getCurrentOffset",value:function(){return this.currTrans.value}},{key:"putBack",value:function(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(QI.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();var e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}},{key:"checkHandleTarget",value:function(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(var n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}},{key:"onMouseDown",value:function(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=QI.fromEvent(e,this.getDragEl()),this.pickUp())}},{key:"onMouseMove",value:function(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(QI.fromEvent(e,this.getDragEl())))}}]),e}()).\u0275fac=function(e){return new(e||jI)(Ps(Kl),Ps(Jl))},jI.\u0275dir=Ut({type:jI,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&js("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[tn]}),jI),$I=function(){function e(t,n,i,r,o){var a=this;Z(this,e),this.parent=t,this.renderer=n,this.type=i,this.css=r,this.onMouseDown=o;var s=n.createElement("div");n.addClass(s,"ng-resizable-handle"),n.addClass(s,r),"se"===i&&n.addClass(s,"ng-resizable-diagonal"),this.parent&&t.appendChild(s),this._onResize=function(e){o(e,a)},s.addEventListener("mousedown",this._onResize,{passive:!1}),s.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=s}return Y(e,[{key:"dispose",value:function(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}},{key:"el",get:function(){return this._handle}}]),e}(),eT=function(){function e(t,n){Z(this,e),this.width=t,this.height=n}return Y(e,[{key:"set",value:function(e){return this.width=e.width,this.height=e.height,this}}],[{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);return i&&(n.width=parseInt(i.getPropertyValue("width"),10),n.height=parseInt(i.getPropertyValue("height"),10)),n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),tT=((UI=function(){function e(t,n){Z(this,e),this.el=t,this.renderer=n,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new ac,this.rzResizing=new ac,this.rzStop=new ac,this._helperBlock=new XI(t.nativeElement,n)}return Y(e,[{key:"ngResizable",set:function(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}},{key:"ngOnChanges",value:function(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}},{key:"ngOnInit",value:function(){this.updateResizable()}},{key:"ngOnDestroy",value:function(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}},{key:"ngAfterViewInit",value:function(){var e=this.el.nativeElement;this._initSize=eT.getCurrent(e),this._initPos=QI.getCurrent(e),this._currSize=eT.copy(this._initSize),this._currPos=QI.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}},{key:"resetSize",value:function(){this._currSize=eT.copy(this._initSize),this._currPos=QI.copy(this._initPos),this.doResize()}},{key:"getStatus",value:function(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}},{key:"updateResizable",value:function(){var e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}},{key:"updateAspectRatio",value:function(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{var e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}},{key:"updateContainment",value:function(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}},{key:"createHandles",value:function(){if(this.rzHandles)if("string"==typeof this.rzHandles){var e,t=R("all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(","));try{for(t.s();!(e=t.n()).done;){var n=e.value,i=this.createHandleByType(n,"ng-resizable-"+n);i&&(this._handleType.push(n),this._handles[n]=i)}}catch(l){t.e(l)}finally{t.f()}}else{var r,o=R(Object.keys(this.rzHandles));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.createHandleByType(a,this.rzHandles[a]);s&&(this._handleType.push(a),this._handles[a]=s)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"createHandleByType",value:function(e,t){var n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new $I(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}},{key:"removeHandles",value:function(){var e,t=R(this._handleType);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._handles[n].dispose()}}catch(i){t.e(i)}finally{t.f()}this._handleType=[],this._handles={}}},{key:"onMouseDown",value:function(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=QI.fromEvent(e),this.startResize(t),this.subscribeEvents()))}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Q_(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Q_(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Q_(document,"mouseup",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Q_(document,"mouseleave",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Q_(document,"touchend",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Q_(document,"touchcancel",{passive:!1}).subscribe(function(){return e.onMouseLeave()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"onMouseLeave",value:function(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}},{key:"onMouseMove",value:function(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(QI.fromEvent(e)),this.onResizing())}},{key:"startResize",value:function(e){var t=this.el.nativeElement;this._origSize=eT.getCurrent(t),this._origPos=QI.getCurrent(t),this._currSize=eT.copy(this._origSize),this._currPos=QI.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}},{key:"stopResize",value:function(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}},{key:"onResizing",value:function(){this.rzResizing.emit(this.getResizingEvent())}},{key:"getResizingEvent",value:function(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}},{key:"updateDirection",value:function(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}},{key:"resizeTo",value:function(e){e.subtract(this._origMousePos);var t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}},{key:"doResize",value:function(){var e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}},{key:"adjustByRatio",value:function(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){var e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{var t=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-t),this._currSize.width=t}}},{key:"checkBounds",value:function(){if(this._containment){var e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){var n=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-n),this._currSize.width=n,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){var i=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-i),this._currSize.width=e,this._currSize.height=i,this._adjusted=!0}}}}},{key:"checkSize",value:function(){var e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}},{key:"getBounding",value:function(){var e=this._containment,t=window.getComputedStyle(e);if(t){var n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}},{key:"resetBounding",value:function(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}},{key:"getGridSize",value:function(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}]),e}()).\u0275fac=function(e){return new(e||UI)(Ps(Kl),Ps(Jl))},UI.\u0275dir=Ut({type:UI,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[tn]}),UI),nT=((HI=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||HI)},HI.\u0275mod=jt({type:HI}),HI.\u0275inj=at({imports:[[]]}),HI);function iT(e,t){return function(n,i){t(n,i,e)}}var rT,oT=((rT=function(){function e(t,n){Z(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=wf(this.platformId)}return Y(e,[{key:"check",value:function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}},{key:"get",value:function(e){if(!this.documentIsAccessible||!this.check(e))return"";e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(t[1])}catch(n){return t[1]}}},{key:"getAll",value:function(){if(!this.documentIsAccessible)return{};var e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(function(t){var n=L(t.split("="),2),i=n[0],r=n[1];e[decodeURIComponent(i.replace(/^ /,""))]=decodeURIComponent(r)}),e}},{key:"set",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"Lax";if(this.documentIsAccessible){var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(s+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(s+="path="+i+";"),r&&(s+="domain="+r+";"),!1===o&&"None"===a&&(o=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),o&&(s+="secure;"),s+="sameSite="+a+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,r)}},{key:"deleteAll",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var r=this.getAll();for(var o in r)r.hasOwnProperty(o)&&this.delete(o,e,t,n,i)}}},{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}}]),e}()).\u0275fac=function(e){return new(e||rT)(rr(Od),rr(Mc))},rT.\u0275prov=rt({factory:function(){return new rT(rr(Od),rr(Mc))},token:rT,providedIn:"root"}),rT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([iT(0,cr(Od)),iT(1,cr(Mc))],rT));function aT(e){return"string"==typeof e}var sT,lT,uT,cT,dT,hT,fT,pT,gT,vT,mT=((vT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||vT)},vT.\u0275mod=jt({type:vT}),vT.\u0275inj=at({imports:[[]]}),vT),yT=((gT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gT)},gT.\u0275mod=jt({type:gT}),gT.\u0275inj=at({imports:[[]]}),gT),bT=((pT=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!aT(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}}]),e}()).\u0275fac=function(e){return new(e||pT)},pT.\u0275pipe=Wt({name:"shorten",type:pT,pure:!0}),pT),wT=((fT=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(e){return aT(e)?function(e){var t,n=e.split(/\s/g),i=N(t=n)||j(t)||z(t)||F(),r=i[0],o=i.slice(1);return[r.toLowerCase().split(/(?=['|-])/g).map(function(e){return e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)}).join("")].concat(V(o)).join(" ")}(e):e}}]),e}()).\u0275fac=function(e){return new(e||fT)},fT.\u0275pipe=Wt({name:"ucfirst",type:fT,pure:!0}),fT),kT=((hT=function(){function e(){Z(this,e),this.latinMap={"\xc1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\xc2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\xc4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\xc0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\xc5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\xc3":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\xc9":"E","\u0114":"E","\u011a":"E","\u0228":"E","\u1e1c":"E","\xca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\xcb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\xc8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\xcd":"I","\u012c":"I","\u01cf":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\xcc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u1e3a":"L","\u013f":"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\xd1":"N","\u01ca":"NJ","\xd3":"O","\u014e":"O","\u01d1":"O","\xd4":"O","\u1ed0":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\xd6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\xd2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\xd5":"O","\u1e4c":"O","\u1e4e":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u1e9e":"SS","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\xda":"U","\u016c":"U","\u01d3":"U","\xdb":"U","\u1e76":"U","\xdc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\xd9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u1e8c":"X","\u1e8a":"X","\xdd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u1ef6":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\xe1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\xe2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\xe4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\xe0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\xe5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\xe3":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\xe9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\xea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\xeb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\xe8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\ua76b":"et","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\xed":"i","\u012d":"i","\u01d0":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u1ecb":"i","\u0209":"i","\xec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\xf1":"n","\u01cc":"nj","\xf3":"o","\u014f":"o","\u01d2":"o","\xf4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\xf6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\xf2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\xf5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\xdf":"ss","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\xfa":"u","\u016d":"u","\u01d4":"u","\xfb":"u","\u1e77":"u","\xfc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\xf9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\xfd":"y","\u0177":"y","\xff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"}}return Y(e,[{key:"transform",value:function(e){var t=this;return aT(e)?e.replace(/[^A-Za-z0-9]/g,function(e){return t.latinMap[e]||e}):e}}]),e}()).\u0275fac=function(e){return new(e||hT)},hT.\u0275pipe=Wt({name:"latinise",type:hT,pure:!0}),hT),xT=((dT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||dT)},dT.\u0275mod=jt({type:dT}),dT.\u0275inj=at({imports:[[]]}),dT),_T=((cT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||cT)},cT.\u0275mod=jt({type:cT}),cT.\u0275inj=at({imports:[[]]}),cT),AT=((uT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||uT)},uT.\u0275mod=jt({type:uT}),uT.\u0275inj=at({imports:[[]]}),uT),CT=((lT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||lT)},lT.\u0275mod=jt({type:lT}),lT.\u0275inj=at({imports:[[]]}),lT),ST=((sT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||sT)},sT.\u0275mod=jt({type:sT}),sT.\u0275inj=at({imports:[mT,xT,_T,AT,yT,CT]}),sT);function ET(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var PT=new KE(qE);function OT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return function(n){return n.lift(new IT(e,t))}}var DT,IT=function(){function e(t,n){Z(this,e),this.dueTime=t,this.scheduler=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new TT(e,this.dueTime,this.scheduler))}}]),e}(),TT=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return Y(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MT,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(re);function MT(e){e.debouncedNext()}function BT(e){return null!=e&&""+e!="false"}function RT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function LT(e){return Array.isArray(e)?e:[e]}function FT(e){return null==e?"":"string"==typeof e?e:e+"px"}function NT(e){return e instanceof Kl?e.nativeElement:e}try{DT="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V4){DT=!1}var VT,zT,jT,HT,UT=function(){var e=Y(function e(t){Z(this,e),this._platformId=t,this.isBrowser=this._platformId?wf(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!DT)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return e.\u0275fac=function(t){return new(t||e)(rr(Mc))},e.\u0275prov=rt({factory:function(){return new e(rr(Mc))},token:e,providedIn:"root"}),e}(),WT=((HT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||HT)},HT.\u0275mod=jt({type:HT}),HT.\u0275inj=at({}),HT);function GT(e){return function(){if(null==VT&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return VT=!0}}))}finally{VT=VT||!1}return VT}()?e:!!e.capture}function qT(e){if(function(){if(null==jT){var e="undefined"!=typeof document?document.head:null;jT=!(!e||!e.createShadowRoot&&!e.attachShadow)}return jT}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var YT,ZT,KT,QT,XT=((QT=function(){function e(){Z(this,e)}return Y(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||QT)},QT.\u0275prov=rt({factory:function(){return new QT},token:QT,providedIn:"root"}),QT),JT=((KT=function(){function e(t){Z(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return Y(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=NT(e);return new ue(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new ge,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||KT)(rr(XT))},KT.\u0275prov=rt({factory:function(){return new KT(rr(XT))},token:KT,providedIn:"root"}),KT),$T=((ZT=function(){function e(t,n,i){Z(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new ac,this._disabled=!1,this._currentSubscription=null}return Y(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=BT(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=RT(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(OT(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ZT)(Ps(JT),Ps(Kl),Ps(Zc))},ZT.\u0275dir=Ut({type:ZT,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),ZT),eM=((YT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||YT)},YT.\u0275mod=jt({type:YT}),YT.\u0275inj=at({providers:[XT]}),YT);function tM(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var nM,iM=0,rM=new Map,oM=null,aM=((nM=function(){function e(t){Z(this,e),this._document=t}return Y(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=sM(t,n);"string"!=typeof t?(lM(t),rM.set(i,{messageElement:t,referenceCount:0})):rM.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=sM(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=rM.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}oM&&0===oM.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");oM&&this._deleteMessagesContainer(),rM.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");lM(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),oM.appendChild(n),rM.set(sM(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=rM.get(e),n=t&&t.messageElement;oM&&n&&oM.removeChild(n),rM.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!oM){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),(oM=this._document.createElement("div")).id="cdk-describedby-message-container",oM.style.visibility="hidden",oM.classList.add("cdk-visually-hidden"),this._document.body.appendChild(oM)}}},{key:"_deleteMessagesContainer",value:function(){oM&&oM.parentNode&&(oM.parentNode.removeChild(oM),oM=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=tM(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o,a=rM.get(t);n=e,i="aria-describedby",r=a.messageElement.id,(o=tM(n,i)).some(function(e){return e.trim()==r.trim()})||(o.push(r.trim()),n.setAttribute(i,o.join(" "))),e.setAttribute("cdk-describedby-host",""),a.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=rM.get(t);a.referenceCount--,n=e,i="aria-describedby",r=a.messageElement.id,(o=tM(n,i).filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=tM(e,"aria-describedby"),i=rM.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||nM)(rr(Od))},nM.\u0275prov=rt({factory:function(){return new nM(rr(Od))},token:nM,providedIn:"root"}),nM);function sM(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function lM(e){e.id||(e.id="cdk-describedby-message-"+iM++)}var uM,cM=function(){function e(t){var n=this;Z(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ge,this._typeaheadSubscription=te.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new ge,this.change=new ge,t instanceof lc&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return Y(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Mw(function(t){return e._pressedLetters.push(t)}),OT(t),rb(function(){return e._pressedLetters.length>0}),ye(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||ET(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof lc?this._items.toArray():this._items}}]),e}(),dM=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),C(M(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(cM),hM=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._origin="program",e}return Y(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){C(M(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(cM),fM=((uM=function(){function e(t){Z(this,e),this._platform=t}return Y(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(V4){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===gM(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=gM(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||pM(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||uM)(rr(UT))},uM.\u0275prov=rt({factory:function(){return new uM(rr(UT))},token:uM,providedIn:"root"}),uM);function pM(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function gM(e){if(!pM(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var vM,mM=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return Y(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(dw(1)).subscribe(e)}}]),e}(),yM=((vM=function(){function e(t,n,i){Z(this,e),this._checker=t,this._ngZone=n,this._document=i}return Y(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new mM(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||vM)(rr(fM),rr(Zc),rr(Od))},vM.\u0275prov=rt({factory:function(){return new vM(rr(fM),rr(Zc),rr(Od))},token:vM,providedIn:"root"}),vM);"undefined"!=typeof Element&&Element;var bM,wM=new ji("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),kM=new ji("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xM=((bM=function(){function e(t,n,i,r){Z(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return Y(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(t=L(s,2))[0],i=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=o&&o.politeness?o.politeness:"polite"),null==i&&o&&(i=o.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=e,t(),"number"==typeof i&&(r._previousTimeout=setTimeout(function(){return r.clear()},i))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||bM)(rr(wM,8),rr(Zc),rr(Od),rr(kM,8))},bM.\u0275prov=rt({factory:function(){return new bM(rr(wM,8),rr(Zc),rr(Od),rr(kM,8))},token:bM,providedIn:"root"}),bM);function _M(e){return 0===e.buttons}function AM(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var CM,SM=new ji("cdk-focus-monitor-default-options"),EM=GT({passive:!0,capture:!0}),PM=((CM=function(){function e(t,n,i,r){var o=this;Z(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=_M(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){AM(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=OM(e),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650))},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=OM(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return Y(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=NT(e);if(!this._platform.isBrowser||1!==n.nodeType)return nb(null);var i=qT(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new ge,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=NT(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=NT(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=L(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=OM(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===OM(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,EM),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,EM)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,EM),e.addEventListener("mousedown",t._documentMousedownListener,EM),e.addEventListener("touchstart",t._documentTouchstartListener,EM),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,EM),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,EM),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,EM),i.removeEventListener("mousedown",this._documentMousedownListener,EM),i.removeEventListener("touchstart",this._documentTouchstartListener,EM),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||CM)(rr(Zc),rr(UT),rr(Od,8),rr(SM,8))},CM.\u0275prov=rt({factory:function(){return new CM(rr(Zc),rr(UT),rr(Od,8),rr(SM,8))},token:CM,providedIn:"root"}),CM);function OM(e){return e.composedPath?e.composedPath()[0]:e.target}var DM,IM,TM,MM,BM=((IM=function(){function e(t,n){Z(this,e),this._platform=t,this._document=n}return Y(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||IM)(rr(UT),rr(Od))},IM.\u0275prov=rt({factory:function(){return new IM(rr(UT),rr(Od))},token:IM,providedIn:"root"}),IM),RM=((DM=Y(function e(t){Z(this,e),t._applyBodyHighContrastModeCssClasses()})).\u0275fac=function(e){return new(e||DM)(rr(BM))},DM.\u0275mod=jt({type:DM}),DM.\u0275inj=at({imports:[[WT,eM]]}),DM),LM=new ji("cdk-dir-doc",{providedIn:"root",factory:function(){return or(Od)}}),FM=((MM=function(){function e(t){if(Z(this,e),this.value="ltr",this.change=new ac,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return Y(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||MM)(rr(LM,8))},MM.\u0275prov=rt({factory:function(){return new MM(rr(LM,8))},token:MM,providedIn:"root"}),MM),NM=((TM=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||TM)},TM.\u0275mod=jt({type:TM}),TM.\u0275inj=at({}),TM),VM=new tu("11.2.5");function zM(e,t){if(1&e&&Ms(0,"mat-pseudo-checkbox",4),2&e){var n=qs();Os("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function jM(e,t){if(1&e&&(Is(0,"span",5),bl(1),Ts()),2&e){var n=qs();Yo(1),kl("(",n.group.label,")")}}var HM,UM=["*"],WM=function(){var e=Y(function e(){Z(this,e)});return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),GM=function(){var e=Y(function e(){Z(this,e)});return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),qM=new tu("11.2.5"),YM=new ji("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ZM=((HM=function(){function e(t,n,i){Z(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return Y(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return sd()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qM.full!==VM.full&&console.warn("The Angular Material version ("+qM.full+") does not match the Angular CDK version ("+VM.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||HM)(rr(BM),rr(YM,8),rr(Od))},HM.\u0275mod=jt({type:HM}),HM.\u0275inj=at({imports:[[NM],NM]}),HM);function KM(e){return function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return Y(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=BT(e)}}]),n}(e)}function QM(e,t){return function(e){E(i,e);var n=O(i);function i(){var e;Z(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return Y(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}]),i}(e)}function XM(e){return function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return Y(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=BT(e)}}]),n}(e)}function JM(e){return function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new ue(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return Y(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}try{"undefined"!=typeof Intl}catch(V4){!1}var $M,eB,tB,nB,iB,rB,oB,aB,sB,lB=((eB=function(){function e(){Z(this,e)}return Y(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||eB)},eB.\u0275prov=rt({factory:function(){return new eB},token:eB,providedIn:"root"}),eB),uB=(($M=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||$M)},$M.\u0275mod=jt({type:$M}),$M.\u0275inj=at({imports:[[ZM],ZM]}),$M),cB=function(){function e(t,n,i){Z(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return Y(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),dB={enterDuration:450,exitDuration:400},hB=GT({passive:!0}),fB=["mousedown","touchstart"],pB=["mouseup","mouseleave","touchend","touchcancel"],gB=function(){function e(t,n,i,r){Z(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=NT(i))}return Y(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},dB),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=l-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=u+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var d=new cB(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},u),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},dB),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=NT(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(fB))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pB),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=_M(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!AM(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,hB)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(fB.forEach(function(t){e._triggerElement.removeEventListener(t,e,hB)}),this._pointerUpEventsRegistered&&pB.forEach(function(t){e._triggerElement.removeEventListener(t,e,hB)}))}}]),e}(),vB=new ji("mat-ripple-global-options"),mB=((rB=function(){function e(t,n,i,r,o){Z(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new gB(this,n,t,i)}return Y(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||rB)(Ps(Kl),Ps(Zc),Ps(UT),Ps(vB,8),Ps(Gv,8))},rB.\u0275dir=Ut({type:rB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&al("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),rB),yB=((iB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||iB)},iB.\u0275mod=jt({type:iB}),iB.\u0275inj=at({imports:[[ZM,WT],ZM]}),iB),bB=((nB=Y(function e(t){Z(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1})).\u0275fac=function(e){return new(e||nB)(Ps(Gv,8))},nB.\u0275cmp=Ft({type:nB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&al("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),nB),wB=((tB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||tB)},tB.\u0275mod=jt({type:tB}),tB.\u0275inj=at({imports:[[ZM]]}),tB),kB=new ji("MAT_OPTION_PARENT_COMPONENT"),xB=KM(Y(function e(){Z(this,e)})),_B=0,AB=((oB=function(e){E(n,e);var t=O(n);function n(e){var i,r;return Z(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+_B++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return Y(n)}(xB)).\u0275fac=function(e){return new(e||oB)(Ps(kB,8))},oB.\u0275dir=Ut({type:oB,inputs:{label:"label"},features:[ls]}),oB),CB=new ji("MatOptgroup"),SB=0,EB=Y(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Z(this,e),this.source=t,this.isUserInput=n}),PB=((sB=function(){function e(t,n,i,r){Z(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+SB++,this.onSelectionChange=new ac,this._stateChanges=new ge}return Y(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=BT(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||ET(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new EB(this,e))}}]),e}()).\u0275fac=function(e){return new(e||sB)(Ps(Kl),Ps(ku),Ps(void 0),Ps(AB))},sB.\u0275dir=Ut({type:sB,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),sB),OB=((aB=function(e){E(n,e);var t=O(n);function n(e,i,r,o){return Z(this,n),t.call(this,e,i,r,o)}return Y(n)}(PB)).\u0275fac=function(e){return new(e||aB)(Ps(Kl),Ps(ku),Ps(kB,8),Ps(CB,8))},aB.\u0275cmp=Ft({type:aB,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&js("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Sl("id",t.id),_s("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),al("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[ls],ngContentSelectors:UM,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Zs(),Ss(0,zM,1,2,"mat-pseudo-checkbox",0),Is(1,"span",1),Ks(2),Ts(),Ss(3,jM,2,1,"span",2),Ms(4,"div",3)),2&e&&(Os("ngIf",t.multiple),Yo(3),Os("ngIf",t.group&&t.group._inert),Yo(1),Os("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[jh,mB,bB],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),aB);function DB(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var IB,TB=((IB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||IB)},IB.\u0275mod=jt({type:IB}),IB.\u0275inj=at({imports:[[yB,bf,ZM,wB]]}),IB),MB=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return Y(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?C(M(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return C(M(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(qE),BB=new(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(KE))(MB),RB=1,LB=Promise.resolve(),FB={};function NB(e){return e in FB&&(delete FB[e],!0)}var VB=function(e){var t=RB++;return FB[t]=!0,LB.then(function(){return NB(t)&&e()}),t},zB=function(e){NB(e)},jB=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return Y(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?C(M(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=VB(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return C(M(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(zB(t),e.scheduled=void 0)}}]),n}(qE),HB=new(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(KE))(jB),UB=function(){function e(t){Z(this,e),this.durationSelector=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new WB(e,this.durationSelector))}}]),e}(),WB=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return Y(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=De(t,new Pe(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(Oe);function GB(e){return!Q(e)&&e-parseFloat(e)+1>=0}function qB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return GB(t)?i=Number(t)<1?1:Number(t):me(t)&&(n=t),me(n)||(n=PT),new ue(function(t){var r=GB(e)?e:+e-n.now();return n.schedule(YB,r,{index:0,period:i,subscriber:t})})}function YB(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function ZB(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return t=function(){return qB(e,n)},function(e){return e.lift(new UB(t))}}function KB(e){return function(t){return t.lift(new eR(e))}}var QB,XB,JB,$B,eR=function(){function e(t){Z(this,e),this.notifier=t}return Y(e,[{key:"call",value:function(e,t){var n=new tR(e),i=De(this.notifier,new Pe(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),tR=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e)).seenValue=!1,i}return Y(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Oe),nR=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Z(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ge,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return Y(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),iR=(($B=function(){function e(t,n,i){Z(this,e),this._ngZone=t,this._platform=n,this._scrolled=new ge,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return Y(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ue(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(ZB(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):nb()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(rb(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=NT(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Q_(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||$B)(rr(Zc),rr(UT),rr(Od,8))},$B.\u0275prov=rt({factory:function(){return new $B(rr(Zc),rr(UT),rr(Od,8))},token:$B,providedIn:"root"}),$B),rR=((JB=function(){function e(t,n,i){var r=this;Z(this,e),this._platform=t,this._change=new ge,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return Y(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(ZB(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||JB)(rr(UT),rr(Zc),rr(Od,8))},JB.\u0275prov=rt({factory:function(){return new JB(rr(UT),rr(Zc),rr(Od,8))},token:JB,providedIn:"root"}),JB),oR=((XB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||XB)},XB.\u0275mod=jt({type:XB}),XB.\u0275inj=at({}),XB),aR=((QB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||QB)},QB.\u0275mod=jt({type:QB}),QB.\u0275inj=at({imports:[[NM,WT,oR],NM,oR]}),QB),sR=function(){function e(t,n){Z(this,e),this.predicate=t,this.inclusive=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new lR(e,this.predicate,this.inclusive))}}]),e}(),lR=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return Y(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(re),uR=function(){if(null==zT){if("object"!=typeof document||!document)return zT=!1;if("scrollBehavior"in document.documentElement.style)zT=!0;else{var e=Element.prototype.scrollTo;zT=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return zT}(),cR=function(){function e(t,n){Z(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return Y(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=FT(-this._previousScrollPosition.left),e.style.top=FT(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),uR&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),uR&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),dR=function(){function e(t,n,i,r){var o=this;Z(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return Y(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),hR=function(){function e(){Z(this,e)}return Y(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function fR(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function pR(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var gR,vR,mR,yR,bR,wR=function(){function e(t,n,i,r){Z(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return Y(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;fR(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),kR=((gR=Y(function e(t,n,i,r){var o=this;Z(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new hR},this.close=function(e){return new dR(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new cR(o._viewportRuler,o._document)},this.reposition=function(e){return new wR(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r})).\u0275fac=function(e){return new(e||gR)(rr(iR),rr(rR),rr(Zc),rr(Od))},gR.\u0275prov=rt({factory:function(){return new gR(rr(iR),rr(rR),rr(Zc),rr(Od))},token:gR,providedIn:"root"}),gR),xR=Y(function e(t){if(Z(this,e),this.scrollStrategy=new hR,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}}),_R=Y(function e(t,n,i,r,o){Z(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY}),AR=Y(function e(t,n){Z(this,e),this.connectionPair=t,this.scrollableViewProperties=n}),CR=((yR=function(){function e(t){Z(this,e),this._attachedOverlays=[],this._document=t}return Y(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||yR)(rr(Od))},yR.\u0275prov=rt({factory:function(){return new yR(rr(Od))},token:yR,providedIn:"root"}),yR),SR=((mR=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return Y(n,[{key:"add",value:function(e){C(M(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(CR)).\u0275fac=function(e){return new(e||mR)(rr(Od))},mR.\u0275prov=rt({factory:function(){return new mR(rr(Od))},token:mR,providedIn:"root"}),mR),ER=((vR=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return Y(n,[{key:"add",value:function(e){C(M(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(CR)).\u0275fac=function(e){return new(e||vR)(rr(Od),rr(UT))},vR.\u0275prov=rt({factory:function(){return new vR(rr(Od),rr(UT))},token:vR,providedIn:"root"}),vR),PR=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),OR=((bR=function(){function e(t,n){Z(this,e),this._platform=n,this._document=t}return Y(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||PR)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),PR?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),e}()).\u0275fac=function(e){return new(e||bR)(rr(Od),rr(UT))},bR.\u0275prov=rt({factory:function(){return new bR(rr(Od),rr(UT))},token:bR,providedIn:"root"}),bR),DR=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;Z(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new ge,this._attachments=new ge,this._detachments=new ge,this._locationChanges=te.EMPTY,this._backdropClickHandler=function(e){return c._backdropClick.next(e)},this._keydownEvents=new ge,this._outsidePointerEvents=new ge,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return Y(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dw(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=FT(this._config.width),e.height=FT(this._config.height),e.minWidth=FT(this._config.minWidth),e.minHeight=FT(this._config.minHeight),e.maxWidth=FT(this._config.maxWidth),e.maxHeight=FT(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;LT(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(KB(Le(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),IR=/([A-Za-z%]+)$/,TR=function(){function e(t,n,i,r,o){Z(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ge,this._resizeSubscription=te.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return Y(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=R(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),u=this._getOverlayPoint(l,i,s),c=this._getOverlayFit(u,i,r,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,r)?o.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:i})}}catch(m){a.e(m)}finally{a.f()}if(o.length){var d,h=null,f=-1,p=R(o);try{for(p.s();!(d=p.n()).done;){var g=d.value,v=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);v>f&&(f=v,h=g)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&MR(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=RR(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,d=this._subtractOverflows(r.width,0-o,o+r.width-n.width),h=this._subtractOverflows(r.height,u,c),f=d*h;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=BR(this._overlayRef.getConfig().minHeight),a=BR(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=RR(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),l=Math.max(e.y+o.height-a.height,0),u=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,r=o.height<=a.height?u||-l:e.y<this._viewportMargin?a.top-n.top-e.y:0,this._previousPushAmount={x:i,y:r},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new AR(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)r=l.height-e.y+2*this._viewportMargin,n=l.height-r+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;n=2*c,i=e.y-c,n>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;o=2*h,a=e.x-h,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=FT(n.height),i.top=FT(n.top),i.bottom=FT(n.bottom),i.width=FT(n.width),i.left=FT(n.left),i.right=FT(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=FT(r)),o&&(i.maxWidth=FT(o))}this._lastBoundingBoxSize=n,MR(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){MR(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){MR(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();MR(n,this._getExactOverlayY(t,e,a)),MR(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=FT(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=FT(o.maxWidth):r&&(n.maxWidth="")),MR(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=FT(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=FT(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:pR(e,n),isOriginOutsideView:fR(e,n),isOverlayClipped:pR(t,n),isOverlayOutsideView:fR(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&LT(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Kl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function MR(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function BR(e){if("number"!=typeof e&&null!=e){var t=L(e.split(IR),2),n=t[0],i=t[1];return i&&"px"!==i?null:parseFloat(n)}return e||null}function RR(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var LR,FR,NR,VR,zR,jR=function(){function e(t,n,i,r,o,a,s){Z(this,e),this._preferredPositions=[],this._positionStrategy=new TR(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return Y(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new _R(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),HR=function(){function e(){Z(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return Y(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),UR=((FR=function(){function e(t,n,i,r){Z(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return Y(e,[{key:"global",value:function(){return new HR}},{key:"connectedTo",value:function(e,t,n){return new jR(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new TR(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||FR)(rr(rR),rr(Od),rr(UT),rr(OR))},FR.\u0275prov=rt({factory:function(){return new FR(rr(rR),rr(Od),rr(UT),rr(OR))},token:FR,providedIn:"root"}),FR),WR=0,GR=((LR=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=d}return Y(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new xR(e);return r.direction=r.direction||this._directionality.value,new DR(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+WR++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(gd)),new QP(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||LR)(rr(kR),rr(OR),rr(Gl),rr(UR),rr(SR),rr(as),rr(Zc),rr(Od),rr(FM),rr(Kd),rr(ER))},LR.\u0275prov=rt({token:LR,factory:LR.\u0275fac}),LR),qR=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],YR=new ji("cdk-connected-overlay-scroll-strategy"),ZR=((VR=Y(function e(t){Z(this,e),this.elementRef=t})).\u0275fac=function(e){return new(e||VR)(Ps(Kl))},VR.\u0275dir=Ut({type:VR,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),VR),KR=((NR=function(){function e(t,n,i,r,o){Z(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=te.EMPTY,this._attachSubscription=te.EMPTY,this._detachSubscription=te.EMPTY,this._positionSubscription=te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ac,this.positionChange=new ac,this.attach=new ac,this.detach=new ac,this.overlayKeydown=new ac,this.overlayOutsideClick=new ac,this._templatePortal=new YP(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return Y(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=BT(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=BT(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=BT(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=BT(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=BT(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=qR);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||ET(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new xR({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new sR(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||NR)(Ps(GR),Ps(Eu),Ps(Mu),Ps(YR),Ps(FM,8))},NR.\u0275dir=Ut({type:NR,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[tn]}),NR),QR={provide:YR,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},XR=((zR=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zR)},zR.\u0275mod=jt({type:zR}),zR.\u0275inj=at({providers:[GR,QR],imports:[[NM,JP,aR],aR]}),zR),JR=["underline"],$R=["connectionContainer"],eL=["inputContainer"],tL=["label"];function nL(e,t){1&e&&(Bs(0),Is(1,"div",14),Ms(2,"div",15),Ms(3,"div",16),Ms(4,"div",17),Ts(),Is(5,"div",18),Ms(6,"div",15),Ms(7,"div",16),Ms(8,"div",17),Ts(),Rs())}function iL(e,t){1&e&&(Is(0,"div",19),Ks(1,1),Ts())}function rL(e,t){if(1&e&&(Bs(0),Ks(1,2),Is(2,"span"),bl(3),Ts(),Rs()),2&e){var n=qs(2);Yo(3),wl(n._control.placeholder)}}function oL(e,t){1&e&&Ks(0,3,["*ngSwitchCase","true"])}function aL(e,t){1&e&&(Is(0,"span",23),bl(1," *"),Ts())}function sL(e,t){if(1&e){var n=Fs();Is(0,"label",20,21),js("cdkObserveContent",function(){return En(n),qs().updateOutlineGap()}),Ss(2,rL,4,1,"ng-container",12),Ss(3,oL,1,0,"ng-content",12),Ss(4,aL,2,0,"span",22),Ts()}if(2&e){var i=qs();al("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Os("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),_s("for",i._control.id)("aria-owns",i._control.id),Yo(2),Os("ngSwitchCase",!1),Yo(1),Os("ngSwitchCase",!0),Yo(1),Os("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function lL(e,t){1&e&&(Is(0,"div",24),Ks(1,4),Ts())}function uL(e,t){if(1&e&&(Is(0,"div",25,26),Ms(2,"span",27),Ts()),2&e){var n=qs();Yo(2),al("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function cL(e,t){1&e&&(Is(0,"div"),Ks(1,5),Ts()),2&e&&Os("@transitionMessages",qs()._subscriptAnimationState)}function dL(e,t){if(1&e&&(Is(0,"div",31),bl(1),Ts()),2&e){var n=qs(2);Os("id",n._hintLabelId),Yo(1),wl(n.hintLabel)}}function hL(e,t){if(1&e&&(Is(0,"div",28),Ss(1,dL,2,2,"div",29),Ks(2,6),Ms(3,"div",30),Ks(4,7),Ts()),2&e){var n=qs();Os("@transitionMessages",n._subscriptAnimationState),Yo(1),Os("ngIf",n.hintLabel)}}var fL,pL,gL,vL,mL,yL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],wL=new ji("MatError"),kL={transitionMessages:wp("transitionMessages",[Ap("enter",_p({opacity:1,transform:"translateY(0%)"})),Sp("void => enter",[_p({opacity:0,transform:"translateY(-5px)"}),kp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xL=((fL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||fL)},fL.\u0275dir=Ut({type:fL}),fL),_L=new ji("MatHint"),AL=((gL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gL)},gL.\u0275dir=Ut({type:gL,selectors:[["mat-label"]]}),gL),CL=((pL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||pL)},pL.\u0275dir=Ut({type:pL,selectors:[["mat-placeholder"]]}),pL),SL=new ji("MatPrefix"),EL=new ji("MatSuffix"),PL=0,OL=QM(Y(function e(t){Z(this,e),this._elementRef=t}),"primary"),DL=new ji("MAT_FORM_FIELD_DEFAULT_OPTIONS"),IL=new ji("MatFormField"),TL=((mL=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s,l,u){var c;return Z(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=i,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new ge,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+PL++,c._labelId="mat-form-field-label-"+PL++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return Y(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=BT(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(pw(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(KB(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(KB(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Le(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(pw(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(pw(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(KB(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Q_(this._label.nativeElement,"transitionend").pipe(dw(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,V(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,V(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,d=0;d<l.length;d++)c+=l[d].offsetWidth;t=Math.abs(u-s)-5,n=c>0?.75*c+10:0}for(var h=0;h<r.length;h++)r[h].style.width=t+"px";for(var f=0;f<o.length;f++)o[f].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(OL)).\u0275fac=function(e){return new(e||mL)(Ps(Kl),Ps(ku),Ps(Kl),Ps(FM,8),Ps(DL,8),Ps(UT),Ps(Zc),Ps(Gv,8))},mL.\u0275cmp=Ft({type:mL,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,xL,1),wc(n,xL,3),wc(n,AL,1),wc(n,AL,3),wc(n,CL,1),wc(n,wL,1),wc(n,_L,1),wc(n,SL,1),wc(n,EL,1)),2&e&&(yc(i=kc())&&(t._controlNonStatic=i.first),yc(i=kc())&&(t._controlStatic=i.first),yc(i=kc())&&(t._labelChildNonStatic=i.first),yc(i=kc())&&(t._labelChildStatic=i.first),yc(i=kc())&&(t._placeholderChild=i.first),yc(i=kc())&&(t._errorChildren=i),yc(i=kc())&&(t._hintChildren=i),yc(i=kc())&&(t._prefixChildren=i),yc(i=kc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(bc(JR,1),bc($R,3),bc(eL,1),bc(tL,1)),2&e&&(yc(n=kc())&&(t.underlineRef=n.first),yc(n=kc())&&(t._connectionContainerRef=n.first),yc(n=kc())&&(t._inputContainerRef=n.first),yc(n=kc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&al("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Hl([{provide:IL,useExisting:mL}]),ls],ngContentSelectors:bL,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(Zs(yL),Is(0,"div",0),Is(1,"div",1,2),js("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),Ss(3,nL,9,0,"ng-container",3),Ss(4,iL,2,0,"div",4),Is(5,"div",5,6),Ks(7),Is(8,"span",7),Ss(9,sL,5,16,"label",8),Ts(),Ts(),Ss(10,lL,2,0,"div",9),Ts(),Ss(11,uL,3,4,"div",10),Is(12,"div",11),Ss(13,cL,2,1,"div",12),Ss(14,hL,5,2,"div",13),Ts(),Ts()),2&e&&(Yo(3),Os("ngIf","outline"==t.appearance),Yo(1),Os("ngIf",t._prefixChildren.length),Yo(5),Os("ngIf",t._hasFloatingLabel()),Yo(1),Os("ngIf",t._suffixChildren.length),Yo(1),Os("ngIf","outline"!=t.appearance),Yo(1),Os("ngSwitch",t._getDisplayedMessages()),Yo(1),Os("ngSwitchCase","error"),Yo(1),Os("ngSwitchCase","hint"))},directives:[jh,Qh,Xh,$T],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[kL.transitionMessages]},changeDetection:0}),mL),ML=((vL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||vL)},vL.\u0275mod=jt({type:vL}),vL.\u0275inj=at({imports:[[bf,ZM,eM],ZM]}),vL);function BL(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new VL(i,n))}}var RL,LL,FL,NL,VL=function(){function e(t,n){Z(this,e),this.delay=t,this.scheduler=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new zL(e,this.delay,this.scheduler))}}]),e}(),zL=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return Y(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new jL(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(eP.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(eP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(re),jL=Y(function e(t,n){Z(this,e),this.time=t,this.notification=n}),HL={provide:new ji("mat-autocomplete-scroll-strategy"),deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},UL=((LL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||LL)},LL.\u0275mod=jt({type:LL}),LL.\u0275inj=at({providers:[HL],imports:[[XR,TB,ZM,bf],oR,TB,ZM]}),LL),WL=((RL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||RL)},RL.\u0275mod=jt({type:RL}),RL.\u0275inj=at({imports:[[RM,ZM],ZM]}),RL),GL=function(){function e(t){Z(this,e),this.total=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new qL(e,this.total))}}]),e}(),qL=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Y(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(re),YL=new Set,ZL=((NL=function(){function e(t){Z(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):KL}return Y(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!YL.has(e))try{FL||((FL=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(FL)),FL.sheet&&(FL.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),YL.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||NL)(rr(UT))},NL.\u0275prov=rt({factory:function(){return new NL(rr(UT))},token:NL,providedIn:"root"}),NL);function KL(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var QL,XL=((QL=function(){function e(t,n){Z(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new ge}return Y(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return JL(LT(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=$b(JL(LT(e)).map(function(e){return t._registerQuery(e).observable}));return(n=iw(n.pipe(dw(1)),n.pipe(function(e){return e.lift(new GL(1))},OT(0)))).pipe(ye(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new ue(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(pw(n),ye(function(t){var n=t.matches;return{query:e,matches:n}}),KB(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||QL)(rr(ZL),rr(Zc))},QL.\u0275prov=rt({factory:function(){return new QL(rr(ZL),rr(Zc))},token:QL,providedIn:"root"}),QL);function JL(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}function $L(e,t){}var eF,tF,nF,iF,rF,oF,aF,sF,lF=new ji("MatBottomSheetData"),uF=Y(function e(){Z(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}),cF={bottomSheetState:wp("state",[Ap("void, hidden",_p({transform:"translateY(100%)"})),Ap("visible",_p({transform:"translateY(0%)"})),Sp("visible => void, visible => hidden",kp("".concat(GM.COMPLEX," ").concat(WM.ACCELERATION_CURVE))),Sp("void => visible",kp("".concat(GM.EXITING," ").concat(WM.DECELERATION_CURVE)))])},dF=((tF=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l;return Z(this,n),(l=t.call(this))._elementRef=e,l._changeDetectorRef=i,l._focusTrapFactory=r,l.bottomSheetConfig=s,l._animationState="void",l._animationStateChanged=new ac,l._elementFocusedBeforeOpened=null,l.attachDomPortal=function(e){return l._validatePortalAttached(),l._setPanelClass(),l._savePreviouslyFocusedElement(),l._portalOutlet.attachDomPortal(e)},l._document=a,l._breakpointSubscription=o.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(function(){l._toggleClass("mat-bottom-sheet-container-medium",o.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),l._toggleClass("mat-bottom-sheet-container-large",o.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),l._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched("(min-width: 1920px)"))}),l}return Y(n,[{key:"attachComponentPortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_toggleClass",value:function(e,t){var n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):t&&e.classList.add(t)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()})}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(KP)).\u0275fac=function(e){return new(e||tF)(Ps(Kl),Ps(ku),Ps(yM),Ps(XL),Ps(Od,8),Ps(uF))},tF.\u0275cmp=Ft({type:tF,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&bc(XP,3),2&e&&yc(n=kc())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Hs("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(_s("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),El("@state",t._animationState))},features:[ls],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Ss(0,$L,0,0,"ng-template",0)},directives:[XP],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[cF.bottomSheetState]}}),tF),hF=((eF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||eF)},eF.\u0275mod=jt({type:eF}),eF.\u0275inj=at({imports:[[XR,ZM,JP],ZM]}),eF),fF=function(){function e(t,n){var i=this;Z(this,e),this._overlayRef=n,this._afterDismissed=new ge,this._afterOpened=new ge,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(rb(function(e){return"done"===e.phaseName&&"visible"===e.toState}),dw(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe(rb(function(e){return"done"===e.phaseName&&"hidden"===e.toState}),dw(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),n.dispose()}),n.detachments().pipe(dw(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),Le(n.backdropClick(),n.keydownEvents().pipe(rb(function(e){return 27===e.keyCode}))).subscribe(function(e){i.disableClose||"keydown"===e.type&&ET(e)||(e.preventDefault(),i.dismiss())})}return Y(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(rb(function(e){return"start"===e.phaseName}),dw(1)).subscribe(function(e){t._closeFallbackTimeout=setTimeout(function(){t._overlayRef.dispose()},e.totalTime+100),t._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),e}(),pF=new ji("mat-bottom-sheet-default-options"),gF=((nF=function(){function e(t,n,i,r){Z(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=i,this._defaultOptions=r,this._bottomSheetRefAtThisLevel=null}return Y(e,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,t){var n=this,i=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new uF,t),r=this._createOverlay(i),o=this._attachContainer(r,i),a=new fF(o,r);if(e instanceof Eu)o.attachTemplatePortal(new YP(e,null,{$implicit:i.data,bottomSheetRef:a}));else{var s=new qP(e,void 0,this._createInjector(i,a)),l=o.attachComponentPortal(s);a.instance=l.instance}return a.afterDismissed().subscribe(function(){n._openedBottomSheetRef==a&&(n._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return a.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,t){var n=as.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:uF,useValue:t}]}),i=new qP(dF,t.viewContainerRef,n);return e.attach(i).instance}},{key:"_createOverlay",value:function(e){var t=new xR({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:fF,useValue:t},{provide:lF,useValue:e.data}];return!e.direction||n&&n.get(FM,null)||i.push({provide:FM,useValue:{value:e.direction,change:nb()}}),as.create({parent:n||this._injector,providers:i})}}]),e}()).\u0275fac=function(e){return new(e||nF)(rr(GR),rr(as),rr(nF,12),rr(pF,8))},nF.\u0275prov=rt({factory:function(){return new nF(rr(GR),rr(Wa),rr(nF,12),rr(pF,8))},token:nF,providedIn:hF}),nF),vF=["mat-button",""],mF=["*"],yF=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],bF=QM(KM(XM(Y(function e(t){Z(this,e),this._elementRef=t})))),wF=((sF=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;Z(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=R(yF);try{for(s.s();!(a=s.n()).done;){var l=a.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return Y(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(bF)).\u0275fac=function(e){return new(e||sF)(Ps(Kl),Ps(PM),Ps(Gv,8))},sF.\u0275cmp=Ft({type:sF,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&bc(mB,1),2&e&&yc(n=kc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(_s("disabled",t.disabled||null),al("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ls],attrs:vF,ngContentSelectors:mF,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Zs(),Is(0,"span",0),Ks(1),Ts(),Ms(2,"span",1),Ms(3,"span",2)),2&e&&(Yo(2),al("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Os("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[mB],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),sF),kF=((aF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||aF)},aF.\u0275mod=jt({type:aF}),aF.\u0275inj=at({imports:[[yB,ZM],ZM]}),aF),xF=((oF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||oF)},oF.\u0275mod=jt({type:oF}),oF.\u0275inj=at({imports:[[ZM],ZM]}),oF),_F=((rF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||rF)},rF.\u0275mod=jt({type:rF}),rF.\u0275inj=at({}),rF),AF=((iF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||iF)},iF.\u0275mod=jt({type:iF}),iF.\u0275inj=at({imports:[[yB,ZM,eM,_F],ZM,_F]}),iF);function CF(e,t){}var SF,EF,PF=Y(function e(){Z(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}),OF={dialogContainer:wp("dialogContainer",[Ap("void, exit",_p({opacity:0,transform:"scale(0.7)"})),Ap("enter",_p({transform:"none"})),Sp("* => enter",kp("150ms cubic-bezier(0, 0, 0.2, 1)",_p({transform:"none",opacity:1}))),Sp("* => void, * => exit",kp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",_p({opacity:0})))])},DF=((EF=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l;return Z(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=a,l._focusMonitor=s,l._animationStateChanged=new ac,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=a.ariaLabelledBy||null,l._document=o,l}return Y(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(KP)).\u0275fac=function(e){return new(e||EF)(Ps(Kl),Ps(yM),Ps(ku),Ps(Od,8),Ps(PF),Ps(PM))},EF.\u0275dir=Ut({type:EF,viewQuery:function(e,t){var n;1&e&&bc(XP,3),2&e&&yc(n=kc())&&(t._portalOutlet=n.first)},features:[ls]}),EF),IF=((SF=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._state="enter",e}return Y(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(DF)).\u0275fac=function(e){return TF(e||SF)},SF.\u0275cmp=Ft({type:SF,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Hs("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Sl("id",t._id),_s("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),El("@dialogContainer",t._state))},features:[ls],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Ss(0,CF,0,0,"ng-template",0)},directives:[XP],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[OF.dialogContainer]}}),SF),TF=Li(IF),MF=0,BF=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+MF++;Z(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ge,this._afterClosed=new ge,this._beforeClosed=new ge,this._state=0,n._id=r,n._animationStateChanged.pipe(rb(function(e){return"opened"===e.state}),dw(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(rb(function(e){return"closed"===e.state}),dw(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(rb(function(e){return 27===e.keyCode&&!i.disableClose&&!ET(e)})).subscribe(function(e){e.preventDefault(),RF(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():RF(i,"mouse")})}return Y(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(rb(function(e){return"closing"===e.state}),dw(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function RF(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var LF,FF,NF,VF,zF,jF,HF,UF,WF=new ji("MatDialogData"),GF=new ji("mat-dialog-default-options"),qF=new ji("mat-dialog-scroll-strategy"),YF={provide:qF,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},ZF=((UF=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;Z(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ge,this._afterOpenedAtThisLevel=new ge,this._ariaHiddenElements=new Map,this.afterAllClosed=aw(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(pw(void 0))}),this._scrollStrategy=a}return Y(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new PF)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new xR({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=as.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:PF,useValue:t}]}),i=new qP(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof Eu)t.attachTemplatePortal(new YP(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new qP(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(FM,null)||r.push({provide:FM,useValue:{value:e.direction,change:nb()}}),as.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||UF)(Ps(GR),Ps(as),Ps(void 0),Ps(void 0),Ps(OR),Ps(void 0),Ps(Ui),Ps(Ui),Ps(ji))},UF.\u0275dir=Ut({type:UF}),UF),KF=((HF=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s,l){return Z(this,n),t.call(this,e,i,o,s,l,a,BF,IF,WF)}return Y(n)}(ZF)).\u0275fac=function(e){return new(e||HF)(rr(GR),rr(as),rr(Kd,8),rr(GF,8),rr(qF),rr(HF,12),rr(OR))},HF.\u0275prov=rt({token:HF,factory:HF.\u0275fac}),HF),QF=0,XF=((jF=function(){function e(t,n,i){Z(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+QF++}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||jF)(Ps(BF,8),Ps(Kl),Ps(KF))},jF.\u0275dir=Ut({type:jF,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Sl("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),jF),JF=((zF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zF)},zF.\u0275dir=Ut({type:zF,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),zF),$F=((VF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||VF)},VF.\u0275dir=Ut({type:VF,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),VF),eN=((NF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||NF)},NF.\u0275mod=jt({type:NF}),NF.\u0275inj=at({providers:[KF,YF],imports:[[XR,JP,ZM],ZM]}),NF),tN=((FF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||FF)},FF.\u0275mod=jt({type:FF}),FF.\u0275inj=at({}),FF),nN=((LF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||LF)},LF.\u0275mod=jt({type:LF}),LF.\u0275inj=at({imports:[[bf,ZM,tN,JP]]}),LF),iN=["*"];function rN(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function oN(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function aN(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var sN,lN=Y(function e(t,n,i){Z(this,e),this.url=t,this.svgText=n,this.options=i}),uN=((sN=function(){function e(t,n,i,r){Z(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return Y(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new lN(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Yr.HTML,n);if(!r)throw aN(n);return this._addSvgIconConfig(e,t,new lN("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new lN(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Yr.HTML,t);if(!i)throw aN(t);return this._addSvgIconSetConfig(e,new lN("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Yr.RESOURCE_URL,e);if(!n)throw oN(e);var i=this._cachedIconsByUrl.get(n);return i?nb(cN(i)):this._loadSvgIconFromConfig(new lN(e,null)).pipe(Mw(function(e){return t._cachedIconsByUrl.set(n,e)}),ye(function(e){return cN(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=dN(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):XE(rN(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?nb(cN(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ye(function(e){return cN(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?nb(i):Zv(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(yw(function(t){var i=n._sanitizer.sanitize(Yr.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),nb(null)}))})).pipe(ye(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw rN(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Mw(function(t){return e.svgText=t}),ye(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?nb(null):this._fetchIcon(e).pipe(Mw(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name,a=r.value;"id"!==o&&t.setAttribute(o,a)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Yr.RESOURCE_URL,i);if(!a)throw oN(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Lw(function(){return n._inProgressUrlFetches.delete(a)}),Ge());return this._inProgressUrlFetches.set(a,l),l}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(dN(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new lN(i.url,null,i.options):new lN(i,null)}var r}}]),e}()).\u0275fac=function(e){return new(e||sN)(rr(Tb,8),rr(pp),rr(Od,8),rr(eo))},sN.\u0275prov=rt({factory:function(){return new sN(rr(Tb,8),rr(pp),rr(Od,8),rr(eo))},token:sN,providedIn:"root"}),sN);function cN(e){return e.cloneNode(!0)}function dN(e,t){return e+":"+t}var hN,fN,pN,gN,vN,mN,yN=QM(Y(function e(t){Z(this,e),this._elementRef=t})),bN=new ji("mat-icon-location",{providedIn:"root",factory:function(){var e=or(Od),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),wN=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],kN=wN.map(function(e){return"[".concat(e,"]")}).join(", "),xN=/^url\(['"]?#(.*?)['"]?\)$/,_N=((mN=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=te.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return Y(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=BT(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(kN),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){wN.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(xN):null;if(a){var s=n.get(r);s||(s=[],n.set(r,s)),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=L(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(dw(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){t._errorHandler.handleError(new Error("Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message)))})}}}]),n}(yN)).\u0275fac=function(e){return new(e||mN)(Ps(Kl),Ps(uN),Ni("aria-hidden"),Ps(bN),Ps(eo))},mN.\u0275cmp=Ft({type:mN,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(_s("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),al("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ls],ngContentSelectors:iN,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),mN),AN=((vN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||vN)},vN.\u0275mod=jt({type:vN}),vN.\u0275inj=at({imports:[[ZM],ZM]}),vN),CN=((gN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gN)},gN.\u0275mod=jt({type:gN}),gN.\u0275inj=at({imports:[[WT]]}),gN),SN=((pN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||pN)},pN.\u0275mod=jt({type:pN}),pN.\u0275inj=at({providers:[lB],imports:[[CN,ML,ZM],CN,ML]}),pN),EN=((fN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||fN)},fN.\u0275mod=jt({type:fN}),fN.\u0275inj=at({imports:[[ZM],ZM]}),fN),PN=((hN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||hN)},hN.\u0275mod=jt({type:hN}),hN.\u0275inj=at({imports:[[uB,yB,ZM,wB,bf],uB,ZM,wB,EN]}),hN),ON=["trigger"],DN=["panel"];function IN(e,t){if(1&e&&(Is(0,"span",8),bl(1),Ts()),2&e){var n=qs();Yo(1),wl(n.placeholder)}}function TN(e,t){if(1&e&&(Is(0,"span",12),bl(1),Ts()),2&e){var n=qs(2);Yo(1),wl(n.triggerValue)}}function MN(e,t){1&e&&Ks(0,0,["*ngSwitchCase","true"])}function BN(e,t){1&e&&(Is(0,"span",9),Ss(1,TN,2,1,"span",10),Ss(2,MN,1,0,"ng-content",11),Ts()),2&e&&(Os("ngSwitch",!!qs().customTrigger),Yo(2),Os("ngSwitchCase",!0))}function RN(e,t){if(1&e){var n=Fs();Is(0,"div",13),Is(1,"div",14,15),js("@transformPanel.done",function(e){return En(n),qs()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return En(n),qs()._handleKeydown(e)}),Ks(3,1),Ts(),Ts()}if(2&e){var i=qs();Os("@transformPanelWrap",void 0),Yo(1),Cl("mat-select-panel ",i._getPanelTheme(),""),ol("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),Os("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),_s("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var LN,FN,NN,VN,zN,jN,HN=[[["mat-select-trigger"]],"*"],UN=["mat-select-trigger","*"],WN={transformPanelWrap:wp("transformPanelWrap",[Sp("* => void",Pp("@transformPanel",[Ep()],{optional:!0}))]),transformPanel:wp("transformPanel",[Ap("void",_p({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Ap("showing",_p({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Ap("showing-multiple",_p({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Sp("void => *",kp("120ms cubic-bezier(0, 0, 0.2, 1)")),Sp("* => void",kp("100ms 25ms linear",_p({opacity:0})))])},GN=0,qN=new ji("mat-select-scroll-strategy"),YN=new ji("MAT_SELECT_CONFIG"),ZN={provide:qN,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},KN=Y(function e(t,n){Z(this,e),this.source=t,this.value=n}),QN=XM(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){E(i,e);var n=O(i);function i(){var e;Z(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return Y(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?RT(e):this.defaultTabIndex}}]),i}(e)}(KM(function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new ge,e}return Y(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(Y(function e(t,n,i,r,o){Z(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}))))),XN=new ji("MatSelectTrigger"),JN=((FN=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s,l,u,c,d,h,f,p,g){var v,m,y,b;return Z(this,n),(v=t.call(this,a,o,l,u,d))._viewportRuler=e,v._changeDetectorRef=i,v._ngZone=r,v._dir=s,v._parentFormField=c,v.ngControl=d,v._liveAnnouncer=p,v._defaultOptions=g,v._panelOpen=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-"+GN++,v._triggerAriaLabelledBy=null,v._destroy=new ge,v._onChange=function(){},v._onTouched=function(){},v._valueId="mat-select-value-"+GN++,v._panelDoneAnimatingStream=new ge,v._overlayPanelClass=(null===(m=v._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",v._focused=!1,v.controlType="mat-select",v._required=!1,v._multiple=!1,v._disableOptionCentering=null!==(b=null===(y=v._defaultOptions)||void 0===y?void 0:y.disableOptionCentering)&&void 0!==b&&b,v.ariaLabel="",v.optionSelectionChanges=aw(function(){var e=v.options;return e?e.changes.pipe(pw(e),sw(function(){return Le.apply(void 0,V(e.map(function(e){return e.onSelectionChange})))})):v._ngZone.onStable.pipe(dw(1),sw(function(){return v.optionSelectionChanges}))}),v.openedChange=new ac,v._openedStream=v.openedChange.pipe(rb(function(e){return e}),ye(function(){})),v._closedStream=v.openedChange.pipe(rb(function(e){return!e}),ye(function(){})),v.selectionChange=new ac,v.valueChange=new ac,v.ngControl&&(v.ngControl.valueAccessor=I(v)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(v._typeaheadDebounceInterval=g.typeaheadDebounceInterval),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(h)||0,v.id=v.id,v}return Y(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=BT(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=BT(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=BT(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=RT(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new nR(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(J_(),KB(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(KB(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(pw(null),KB(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!ET(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||ET(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(dw(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-"+this._parentFormField.color:""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new dM(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(KB(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(KB(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=Le(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(KB(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Le.apply(void 0,V(this.options.map(function(e){return e._stateChanges}))).pipe(KB(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(QN)).\u0275fac=function(e){return new(e||FN)(Ps(rR),Ps(ku),Ps(Zc),Ps(lB),Ps(Kl),Ps(FM,8),Ps(py,8),Ps(Ay,8),Ps(IL,8),Ps(Bm,10),Ni("tabindex"),Ps(qN),Ps(xM),Ps(YN,8))},FN.\u0275dir=Ut({type:FN,viewQuery:function(e,t){var n;1&e&&(bc(ON,1),bc(DN,1),bc(KR,1)),2&e&&(yc(n=kc())&&(t.trigger=n.first),yc(n=kc())&&(t.panel=n.first),yc(n=kc())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ls,tn]}),FN),$N=((LN=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return Y(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;C(M(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(KB(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;C(M(n.prototype),"_canOpen",this).call(this)&&(C(M(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(dw(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=DB(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),C(M(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new KN(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=DB(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(JN)).\u0275fac=function(e){return eV(e||LN)},LN.\u0275cmp=Ft({type:LN,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,XN,1),wc(n,OB,1),wc(n,CB,1)),2&e&&(yc(i=kc())&&(t.customTrigger=i.first),yc(i=kc())&&(t.options=i),yc(i=kc())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&js("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(_s("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),al("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Hl([{provide:xL,useExisting:LN},{provide:kB,useExisting:LN}]),ls],ngContentSelectors:UN,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Zs(HN),Is(0,"div",0,1),js("click",function(){return t.toggle()}),Is(3,"div",2),Ss(4,IN,2,1,"span",3),Ss(5,BN,3,2,"span",4),Ts(),Is(6,"div",5),Ms(7,"div",6),Ts(),Ts(),Ss(8,RN,4,14,"ng-template",7),js("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Es(1);_s("aria-owns",t.panelOpen?t.id+"-panel":null),Yo(3),Os("ngSwitch",t.empty),_s("id",t._valueId),Yo(1),Os("ngSwitchCase",!0),Yo(1),Os("ngSwitchCase",!1),Yo(3),Os("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[ZR,Qh,Xh,KR,Jh,Fh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[WN.transformPanelWrap,WN.transformPanel]},changeDetection:0}),LN),eV=Li($N),tV=((NN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||NN)},NN.\u0275mod=jt({type:NN}),NN.\u0275inj=at({providers:[ZN],imports:[[bf,XR,TB,ZM],oR,ML,TB,ZM]}),NN),nV={tooltipState:wp("state",[Ap("initial, void, hidden",_p({opacity:0,transform:"scale(0)"})),Ap("visible",_p({transform:"scale(1)"})),Sp("* => visible",kp("200ms cubic-bezier(0, 0, 0.2, 1)",Cp([_p({opacity:0,transform:"scale(0)",offset:0}),_p({opacity:.5,transform:"scale(0.99)",offset:.5}),_p({opacity:1,transform:"scale(1)",offset:1})]))),Sp("* => hidden",kp("100ms cubic-bezier(0, 0, 0.2, 1)",_p({opacity:0})))])},iV=GT({passive:!0}),rV=new ji("mat-tooltip-scroll-strategy"),oV={provide:rV,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},aV=new ji("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),sV=((jN=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){var f=this;Z(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ge,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!ET(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return Y(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=BT(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(KB(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=L(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,iV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new qP(lV,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(KB(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(KB(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(KB(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(dw(1),KB(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=L(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,iV)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||jN)(Ps(GR),Ps(Kl),Ps(iR),Ps(Mu),Ps(Zc),Ps(UT),Ps(aM),Ps(PM),Ps(rV),Ps(FM,8),Ps(aV,8),Ps(Od))},jN.\u0275dir=Ut({type:jN,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),jN),lV=((zN=function(){function e(t,n){Z(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ge,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return Y(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||zN)(Ps(ku),Ps(XL))},zN.\u0275cmp=Ft({type:zN,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&js("click",function(){return t._handleBodyInteraction()},!1,ro)("auxclick",function(){return t._handleBodyInteraction()},!1,ro),2&e&&ol("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(Is(0,"div",0),js("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),$u(1,"async"),bl(2),Ts()),2&e)&&(al("mat-tooltip-handset",null==(n=ec(1,5,t._isHandset))?null:n.matches),Os("ngClass",t.tooltipClass)("@state",t._visibility),Yo(2),wl(t.message))},directives:[Fh],pipes:[df],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[nV.tooltipState]},changeDetection:0}),zN),uV=((VN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||VN)},VN.\u0275mod=jt({type:VN}),VN.\u0275inj=at({providers:[oV],imports:[[RM,bf,XR,ZM],ZM,oR]}),VN);function cV(e,t){if(1&e&&(Is(0,"mat-option",19),bl(1),Ts()),2&e){var n=t.$implicit;Os("value",n),Yo(1),kl(" ",n," ")}}function dV(e,t){if(1&e){var n=Fs();Is(0,"mat-form-field",16),Is(1,"mat-select",17),js("selectionChange",function(e){return En(n),qs(2)._changePageSize(e.value)}),Ss(2,cV,2,2,"mat-option",18),Ts(),Ts()}if(2&e){var i=qs(2);Os("appearance",i._formFieldAppearance)("color",i.color),Yo(1),Os("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Yo(1),Os("ngForOf",i._displayedPageSizeOptions)}}function hV(e,t){if(1&e&&(Is(0,"div",20),bl(1),Ts()),2&e){var n=qs(2);Yo(1),wl(n.pageSize)}}function fV(e,t){if(1&e&&(Is(0,"div",12),Is(1,"div",13),bl(2),Ts(),Ss(3,dV,3,6,"mat-form-field",14),Ss(4,hV,2,1,"div",15),Ts()),2&e){var n=qs();Yo(2),kl(" ",n._intl.itemsPerPageLabel," "),Yo(1),Os("ngIf",n._displayedPageSizeOptions.length>1),Yo(1),Os("ngIf",n._displayedPageSizeOptions.length<=1)}}function pV(e,t){if(1&e){var n=Fs();Is(0,"button",21),js("click",function(){return En(n),qs().firstPage()}),ei(),Is(1,"svg",7),Ms(2,"path",22),Ts(),Ts()}if(2&e){var i=qs();Os("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),_s("aria-label",i._intl.firstPageLabel)}}function gV(e,t){if(1&e){var n=Fs();ei(),ti(),Is(0,"button",23),js("click",function(){return En(n),qs().lastPage()}),ei(),Is(1,"svg",7),Ms(2,"path",24),Ts(),Ts()}if(2&e){var i=qs();Os("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),_s("aria-label",i._intl.lastPageLabel)}}var vV,mV,yV,bV,wV,kV,xV,_V,AV,CV,SV=((vV=Y(function e(){Z(this,e),this.changes=new ge,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}})).\u0275fac=function(e){return new(e||vV)},vV.\u0275prov=rt({factory:function(){return new vV},token:vV,providedIn:"root"}),vV),EV={provide:SV,deps:[[new dr,new hr,SV]],useFactory:function(e){return e||new SV}},PV=new ji("MAT_PAGINATOR_DEFAULT_OPTIONS"),OV=KM(JM(Y(function e(){Z(this,e)}))),DV=((CV=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;if(Z(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new ac,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return D(o)}return Y(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(RT(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=RT(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(RT(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return RT(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=BT(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=BT(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(e,t){return e-t}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),n}(OV)).\u0275fac=function(e){return new(e||CV)(Ps(SV),Ps(ku),Ps(void 0))},CV.\u0275dir=Ut({type:CV,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ls]}),CV),IV=((AV=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),o=t.call(this,e,i,r),r&&null!=r.formFieldAppearance&&(o._formFieldAppearance=r.formFieldAppearance),o}return Y(n)}(DV)).\u0275fac=function(e){return new(e||AV)(Ps(SV),Ps(ku),Ps(PV,8))},AV.\u0275cmp=Ft({type:AV,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ls],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"div",1),Ss(2,fV,5,3,"div",2),Is(3,"div",3),Is(4,"div",4),bl(5),Ts(),Ss(6,pV,3,5,"button",5),Is(7,"button",6),js("click",function(){return t.previousPage()}),ei(),Is(8,"svg",7),Ms(9,"path",8),Ts(),Ts(),ti(),Is(10,"button",9),js("click",function(){return t.nextPage()}),ei(),Is(11,"svg",7),Ms(12,"path",10),Ts(),Ts(),Ss(13,gV,3,5,"button",11),Ts(),Ts(),Ts()),2&e&&(Yo(2),Os("ngIf",!t.hidePageSize),Yo(3),kl(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),Yo(1),Os("ngIf",t.showFirstLastButtons),Yo(1),Os("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),_s("aria-label",t._intl.previousPageLabel),Yo(3),Os("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),_s("aria-label",t._intl.nextPageLabel),Yo(3),Os("ngIf",t.showFirstLastButtons))},directives:[jh,wF,sV,TL,$N,Vh,OB],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),AV),TV=((_V=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||_V)},_V.\u0275mod=jt({type:_V}),_V.\u0275inj=at({providers:[EV],imports:[[bf,kF,tV,uV,ZM]]}),_V),MV=((xV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||xV)},xV.\u0275mod=jt({type:xV}),xV.\u0275inj=at({imports:[[ZM,bf],ZM]}),xV),BV=((kV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||kV)},kV.\u0275mod=jt({type:kV}),kV.\u0275inj=at({imports:[[bf,ZM,WT,oR],oR,ZM]}),kV),RV=((wV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||wV)},wV.\u0275mod=jt({type:wV}),wV.\u0275inj=at({}),wV),LV=((bV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||bV)},bV.\u0275mod=jt({type:bV}),bV.\u0275inj=at({imports:[[RV,yB,ZM,eM],RV,ZM]}),bV),FV=((yV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yV)},yV.\u0275mod=jt({type:yV}),yV.\u0275inj=at({imports:[[bf,ZM],ZM]}),yV),NV=((mV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||mV)},mV.\u0275mod=jt({type:mV}),mV.\u0275inj=at({imports:[[XR,JP,bf,kF,ZM],ZM]}),mV),VV=["mat-sort-header",""];function zV(e,t){if(1&e){var n=Fs();Is(0,"div",3),js("@arrowPosition.start",function(){return En(n),qs()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return En(n),qs()._disableViewStateAnimation=!1}),Ms(1,"div",4),Is(2,"div",5),Ms(3,"div",6),Ms(4,"div",7),Ms(5,"div",8),Ts(),Ts()}if(2&e){var i=qs();Os("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),Yo(2),Os("@indicator",i._getArrowDirectionState()),Yo(1),Os("@leftPointer",i._getArrowDirectionState()),Yo(1),Os("@rightPointer",i._getArrowDirectionState())}}var jV,HV,UV,WV,GV,qV,YV,ZV=["*"],KV=new ji("MAT_SORT_DEFAULT_OPTIONS"),QV=JM(KM(Y(function e(){Z(this,e)}))),XV=((jV=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new ge,i.start="asc",i._direction="",i.sortChange=new ac,i}return Y(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=BT(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(QV)).\u0275fac=function(e){return new(e||jV)(Ps(KV,8))},jV.\u0275dir=Ut({type:jV,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ls,tn]}),jV),JV=GM.ENTERING+" "+WM.STANDARD_CURVE,$V={indicator:wp("indicator",[Ap("active-asc, asc",_p({transform:"translateY(0px)"})),Ap("active-desc, desc",_p({transform:"translateY(10px)"})),Sp("active-asc <=> active-desc",kp(JV))]),leftPointer:wp("leftPointer",[Ap("active-asc, asc",_p({transform:"rotate(-45deg)"})),Ap("active-desc, desc",_p({transform:"rotate(45deg)"})),Sp("active-asc <=> active-desc",kp(JV))]),rightPointer:wp("rightPointer",[Ap("active-asc, asc",_p({transform:"rotate(45deg)"})),Ap("active-desc, desc",_p({transform:"rotate(-45deg)"})),Sp("active-asc <=> active-desc",kp(JV))]),arrowOpacity:wp("arrowOpacity",[Ap("desc-to-active, asc-to-active, active",_p({opacity:1})),Ap("desc-to-hint, asc-to-hint, hint",_p({opacity:.54})),Ap("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_p({opacity:0})),Sp("* => asc, * => desc, * => active, * => hint, * => void",kp("0ms")),Sp("* <=> *",kp(JV))]),arrowPosition:wp("arrowPosition",[Sp("* => desc-to-hint, * => desc-to-active",kp(JV,Cp([_p({transform:"translateY(-25%)"}),_p({transform:"translateY(0)"})]))),Sp("* => hint-to-desc, * => active-to-desc",kp(JV,Cp([_p({transform:"translateY(0)"}),_p({transform:"translateY(25%)"})]))),Sp("* => asc-to-hint, * => asc-to-active",kp(JV,Cp([_p({transform:"translateY(25%)"}),_p({transform:"translateY(0)"})]))),Sp("* => hint-to-asc, * => active-to-asc",kp(JV,Cp([_p({transform:"translateY(0)"}),_p({transform:"translateY(-25%)"})]))),Ap("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_p({transform:"translateY(0)"})),Ap("hint-to-desc, active-to-desc, desc",_p({transform:"translateY(-25%)"})),Ap("hint-to-asc, active-to-asc, asc",_p({transform:"translateY(25%)"}))]),allowChildren:wp("allowChildren",[Sp("* <=> *",[Pp("@*",Ep(),{optional:!0})])])},ez=((HV=Y(function e(){Z(this,e),this.changes=new ge,this.sortButtonLabel=function(e){return"Change sorting for "+e}})).\u0275fac=function(e){return new(e||HV)},HV.\u0275prov=rt({factory:function(){return new HV},token:HV,providedIn:"root"}),HV),tz={provide:ez,deps:[[new dr,new hr,ez]],useFactory:function(e){return e||new ez}},nz=KM(Y(function e(){Z(this,e)})),iz=((YV=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l;return Z(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=o,l._focusMonitor=a,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return Y(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=BT(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=Le(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(nz)).\u0275fac=function(e){return new(e||YV)(Ps(ez),Ps(ku),Ps(XV,8),Ps("MAT_SORT_HEADER_COLUMN_DEF",8),Ps(PM),Ps(Kl))},YV.\u0275cmp=Ft({type:YV,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&js("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(_s("aria-sort",t._getAriaSortAttribute()),al("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ls],attrs:VV,ngContentSelectors:ZV,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(Zs(),Is(0,"div",0),Is(1,"div",1),Ks(2),Ts(),Ss(3,zV,6,6,"div",2),Ts()),2&e&&(al("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),_s("tabindex",t._isDisabled()?null:0),Yo(3),Os("ngIf",t._renderArrow()))},directives:[jh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[$V.indicator,$V.leftPointer,$V.rightPointer,$V.arrowOpacity,$V.arrowPosition,$V.allowChildren]},changeDetection:0}),YV),rz=((qV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||qV)},qV.\u0275mod=jt({type:qV}),qV.\u0275inj=at({providers:[tz],imports:[[bf,ZM]]}),qV),oz=((GV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||GV)},GV.\u0275mod=jt({type:GV}),GV.\u0275inj=at({imports:[[aR]]}),GV),az=((WV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||WV)},WV.\u0275mod=jt({type:WV}),WV.\u0275inj=at({imports:[[oz,ZM],ZM]}),WV),sz=((UV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||UV)},UV.\u0275mod=jt({type:UV}),UV.\u0275inj=at({imports:[[bf,ZM,JP,yB,eM,RM],ZM]}),UV),lz=["mat-menu-item",""],uz=["*"];function cz(e,t){if(1&e){var n=Fs();Is(0,"div",0),js("keydown",function(e){return En(n),qs()._handleKeydown(e)})("click",function(){return En(n),qs().closed.emit("click")})("@transformMenu.start",function(e){return En(n),qs()._onAnimationStart(e)})("@transformMenu.done",function(e){return En(n),qs()._onAnimationDone(e)}),Is(1,"div",1),Ks(2),Ts(),Ts()}if(2&e){var i=qs();Os("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),_s("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var dz,hz,fz,pz,gz,vz,mz={transformMenu:wp("transformMenu",[Ap("void",_p({opacity:0,transform:"scale(0.8)"})),Sp("void => enter",kp("120ms cubic-bezier(0, 0, 0.2, 1)",_p({opacity:1,transform:"scale(1)"}))),Sp("* => void",kp("100ms 25ms linear",_p({opacity:0})))]),fadeInItems:wp("fadeInItems",[Ap("showing",_p({opacity:1})),Sp("void => *",[_p({opacity:0}),kp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yz=new ji("MatMenuContent"),bz=new ji("MAT_MENU_PANEL"),wz=XM(KM(Y(function e(){Z(this,e)}))),kz=((dz=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new ge,a._focused=new ge,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(I(a)),a}return Y(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(wz)).\u0275fac=function(e){return new(e||dz)(Ps(Kl),Ps(Od),Ps(PM),Ps(bz,8))},dz.\u0275cmp=Ft({type:dz,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&js("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(_s("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),al("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[ls],attrs:lz,ngContentSelectors:uz,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(Zs(),Ks(0),Ms(1,"div",0)),2&e&&(Yo(1),Os("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[mB],encapsulation:2,changeDetection:0}),dz),xz=new ji("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),_z=0,Az=((fz=function(){function e(t,n,i){Z(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new lc,this._tabSubscription=te.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new ge,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ac,this.close=this.closed,this.panelId="mat-menu-panel-"+_z++}return Y(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=BT(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=BT(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new hM(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(pw(this._directDescendantItems),sw(function(e){return Le.apply(void 0,V(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(pw(this._directDescendantItems),sw(function(e){return Le.apply(void 0,V(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case 27:ET(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(dw(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(pw(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||fz)(Ps(Kl),Ps(Zc),Ps(xz))},fz.\u0275dir=Ut({type:fz,contentQueries:function(e,t,n){var i;1&e&&(wc(n,yz,1),wc(n,kz,1),wc(n,kz,0)),2&e&&(yc(i=kc())&&(t.lazyContent=i.first),yc(i=kc())&&(t._allItems=i),yc(i=kc())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&bc(Eu,1),2&e&&yc(n=kc())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),fz),Cz=((hz=function(e){E(n,e);var t=O(n);function n(e,i,r){return Z(this,n),t.call(this,e,i,r)}return Y(n)}(Az)).\u0275fac=function(e){return new(e||hz)(Ps(Kl),Ps(Zc),Ps(xz))},hz.\u0275cmp=Ft({type:hz,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&_s("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Hl([{provide:bz,useExisting:hz}]),ls],ngContentSelectors:uz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(Zs(),Ss(0,cz,3,6,"ng-template"))},directives:[Fh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[mz.transformMenu,mz.fadeInItems]},changeDetection:0}),hz),Sz=new ji("mat-menu-scroll-strategy"),Ez={provide:Sz,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Pz=GT({passive:!0}),Oz=((vz=function(){function e(t,n,i,r,o,a,s,l){var u=this;Z(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=te.EMPTY,this._hoverSubscription=te.EMPTY,this._menuCloseSubscription=te.EMPTY,this._handleTouchStart=function(e){AM(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ac,this.onMenuOpen=this.menuOpened,this.menuClosed=new ac,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Az?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pz),a&&(a._triggersSubmenu=this.triggersSubmenu())}return Y(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pz),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Az&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Az?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(rb(function(e){return"void"===e.toState}),dw(1),KB(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new xR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=L("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=L("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,d=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:d},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:d},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-d},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Le(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:nb(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(rb(function(t){return t!==e._menuItemInstance}),rb(function(){return e._menuOpen})):nb(),n)}},{key:"_handleMousedown",value:function(e){_M(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(rb(function(t){return t===e._menuItemInstance&&!t.disabled}),BL(0,HB)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Az&&e.menu._isAnimating?e.menu._animationDone.pipe(dw(1),BL(0,HB),KB(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new YP(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||vz)(Ps(GR),Ps(Kl),Ps(Mu),Ps(Sz),Ps(bz,8),Ps(kz,10),Ps(FM,8),Ps(PM))},vz.\u0275dir=Ut({type:vz,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&js("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&_s("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),vz),Dz=((gz=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gz)},gz.\u0275mod=jt({type:gz}),gz.\u0275inj=at({providers:[Ez],imports:[ZM]}),gz),Iz=((pz=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||pz)},pz.\u0275mod=jt({type:pz}),pz.\u0275inj=at({providers:[Ez],imports:[[bf,ZM,yB,XR,Dz],oR,ZM,Dz]}),pz);function Tz(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function Mz(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Bz(e,t){var n=t?"":"none";Mz(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function Rz(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function Lz(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function Fz(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function Nz(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function Vz(e,t,n){var i=e.top,r=e.bottom,o=e.left,a=e.right;return n>=i&&n<=r&&t>=o&&t<=a}function zz(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function jz(e,t,n,i){var r=e.top,o=e.right,a=e.bottom,s=e.left,l=e.width*t,u=e.height*t;return i>r-u&&i<a+u&&n>s-l&&n<o+l}var Hz=function(){function e(t,n){Z(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return Y(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Nz(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,r,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=t.scrollTop,r=t.scrollLeft;var l=a.top-i,u=a.left-r;return this.positions.forEach(function(e,n){e.clientRect&&t!==n&&o.contains(n)&&zz(e.clientRect,l,u)}),a.top=i,a.left=r,{top:l,left:u}}}]),e}();function Uz(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?Yz(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||qz(e,t),Wz("canvas",e,t,Yz),Wz("input, textarea, select",e,t,qz),t}function Wz(e,t,n,i){var r=t.querySelectorAll(e);if(r.length)for(var o=n.querySelectorAll(e),a=0;a<r.length;a++)i(r[a],o[a])}var Gz=0;function qz(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(Gz++))}function Yz(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(V4){}}var Zz=GT({passive:!0}),Kz=GT({passive:!1}),Qz=function(){function e(t,n,i,r,o,a){var s=this;Z(this,e),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new ge,this._pointerMoveSubscription=te.EMPTY,this._pointerUpSubscription=te.EMPTY,this._scrollSubscription=te.EMPTY,this._resizeSubscription=te.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new ge,this.started=new ge,this.released=new ge,this.ended=new ge,this.entered=new ge,this.exited=new ge,this.dropped=new ge,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find(function(t){var n=e.target;return!!n&&(n===t||t.contains(n))});!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect())),e.preventDefault();var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n,t);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})})}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),o=s._dropContainer;if(!r)return void s._endDragSequence(e);o&&(o.isDragging()||o.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new Hz(i,o),a.registerDragItem(this)}return Y(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=BT(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return Bz(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return NT(e)}),this._handles.forEach(function(e){return Bz(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=NT(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,Kz),n.addEventListener("touchstart",t._pointerDown,Zz)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?NT(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&$z(this._rootElement),$z(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),Bz(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),Bz(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&$z(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&$z(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){ej(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();i.insertBefore(a,n),Rz(n,!1),this._document.body.appendChild(i.replaceChild(o,n)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,s).appendChild(r),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=ej(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=Nz(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;Rz(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=Xz(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=tj(o,this._document),this._previewRef=o,t.matchSize?nj(e,r):e.style.transform=Xz(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;nj(e=Uz(a),a.getBoundingClientRect())}return Mz(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),Bz(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=Xz(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=Fz(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=Fz(t,"transition-duration"),a=Fz(t,"transition-delay");return Lz(o[r])+Lz(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=tj(this._placeholderRef,this._document)):e=Uz(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=ej(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=ej(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,l=this._boundaryRect,u=this._previewRect,c=l.top+s,d=l.bottom-(u.height-s);i=Jz(i,l.left+a,l.right-(u.width-a)),r=Jz(r,c,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,Bz(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,Kz),e.removeEventListener("touchstart",this._pointerDown,Zz)}},{key:"_applyRootElementTransform",value:function(e,t){var n=Xz(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,l=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:ej(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&zz(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=qT(this._rootElement)),this._cachedShadowRoot}}]),e}();function Xz(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function Jz(e,t,n){return Math.max(t,Math.min(n,e))}function $z(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ej(e){return"t"===e.type[0]}function tj(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function nj(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=Xz(t.left,t.top)}function ij(e,t){return Math.max(0,Math.min(t,e))}var rj=function(){function e(t,n,i,r,o){var a=this;Z(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new ge,this.entered=new ge,this.exited=new ge,this.dropped=new ge,this.sorted=new ge,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=te.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ge,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return(!GB(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=PT),new ue(function(n){return n.add(t.schedule(Tz,e,{subscriber:n,counter:0,period:e})),n})}(0,BB).pipe(KB(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?aj(e,-t):2===a._verticalScrollDirection&&aj(e,t),1===a._horizontalScrollDirection?sj(e,-t):2===a._horizontalScrollDirection&&sj(e,t)})},this.element=NT(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new Hz(i,o)}return Y(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),l=o[r];if(l===e&&(l=o[r+1]),a>-1&&o.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var u=l.getRootElement();u.parentElement.insertBefore(s,u),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var c=o[0].getRootElement();c.parentNode.insertBefore(s,c),o.unshift(e)}else NT(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=NT(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(V(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?oj("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&jz(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=oj(r,function(t){return t.drag===e}),l=r[o],u=l.clientRect,c=s>o?1:-1,d=this._getItemOffsetPx(r[s].clientRect,u,c),h=this._getSiblingOffsetPx(s,r,c),f=r.slice();!function(e,t,n){var i=ij(t,e.length-1),r=ij(n,e.length-1);if(i!==r){for(var o=e[i],a=r<i?-1:1,s=i;s!==r;s+=a)e[s]=e[s+a];e[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?d:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),zz(t.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),zz(t.clientRect,r,0))}}),this._previousSwap.overlaps=Vz(u,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){var l;s!==n._document&&a.clientRect&&!i&&jz(a.clientRect,.05,e,t)&&(l=L(function(e,t,n,i){var r=lj(t,i),o=uj(t,n),a=0,s=0;if(r){var l=e.scrollTop;1===r?l>0&&(a=1):e.scrollHeight-l>e.clientHeight&&(a=2)}if(o){var u=e.scrollLeft;1===o?u>0&&(s=1):e.scrollWidth-u>e.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,e,t),2),r=l[0],o=l[1],(r||o)&&(i=s))}),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,l=a.height,u={width:s,height:l,top:0,right:s,bottom:l,left:0};r=lj(u,t),o=uj(u,e),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=NT(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=NT(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:Nz(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=NT(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",l=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[l]:a+=r[s]-o.clientRect[l]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=oj(this._itemPositions,function(a,s,l){var u=a.drag,c=a.clientRect;if(u===e)return l.length<2;if(i){var d=o?i.x:i.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&d===r._previousSwap.delta)return!1}return o?t>=Math.floor(c.left)&&t<Math.floor(c.right):n>=Math.floor(c.top)&&n<Math.floor(c.bottom)});return-1!==a&&this.sortPredicate(a,e,this)?a:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return null!=this._clientRect&&Vz(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find(function(i){return i._canReceive(e,t,n)})}},{key:"_canReceive",value:function(e,t,n){if(!this._clientRect||!Vz(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var r=NT(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(e,t){var n=this,i=this._activeSiblings;!i.has(e)&&t.every(function(e){return n.enterPredicate(e,n)||n._draggables.indexOf(e)>-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){zz(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=qT(NT(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function oj(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function aj(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function sj(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function lj(e,t){var n=e.top,i=e.bottom,r=.05*e.height;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function uj(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var cj,dj,hj,fj=GT({passive:!1,capture:!0}),pj=((cj=function(){function e(t,n){var i=this;Z(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new ge,this.pointerUp=new ge,this.scroll=new ge,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return Y(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,fj)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,fj)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fj}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:fj}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||cj)(rr(Zc),rr(Od))},cj.\u0275prov=rt({factory:function(){return new cj(rr(Zc),rr(Od))},token:cj,providedIn:"root"}),cj),gj={dragStartThreshold:5,pointerDirectionChangeThreshold:5},vj=((dj=function(){function e(t,n,i,r){Z(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return Y(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gj;return new Qz(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new rj(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||dj)(rr(Od),rr(Zc),rr(rR),rr(pj))},dj.\u0275prov=rt({factory:function(){return new dj(rr(Od),rr(Zc),rr(rR),rr(pj))},token:dj,providedIn:"root"}),dj),mj=new ji("CDK_DRAG_PARENT"),yj=new ji("CDK_DRAG_CONFIG"),bj=new ji("CdkDropList"),wj=new ji("CdkDragHandle"),kj=new ji("CdkDragPlaceholder"),xj=new ji("CdkDragPreview"),_j=((hj=function(){function e(t,n,i,r,o,a,s,l,u,c,d){var h=this;Z(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=u,this._selfHandle=c,this._parentDrag=d,this._destroyed=new ge,this.started=new ac,this.released=new ac,this.ended=new ac,this.entered=new ac,this.exited=new ac,this.dropped=new ac,this.moved=new ue(function(e){var t=h._dragRef.moved.pipe(ye(function(e){return{source:h,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return Y(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=BT(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(dw(1),KB(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(pw(e._handles),Mw(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),sw(function(e){return Le.apply(void 0,V(e.map(function(e){return e._stateChanges.pipe(pw(e))})))}),KB(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?Aj(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?Aj(this.element.nativeElement,e):NT(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,o=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:RT(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(dw(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var o=n.element.nativeElement.parentElement;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}}]),e}()).\u0275fac=function(e){return new(e||hj)(Ps(Kl),Ps(bj,12),Ps(Od),Ps(Zc),Ps(Mu),Ps(yj,8),Ps(FM,8),Ps(vj),Ps(ku),Ps(wj,10),Ps(mj,12))},hj.\u0275dir=Ut({type:hj,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,xj,1),wc(n,kj,1),wc(n,wj,1)),2&e&&(yc(i=kc())&&(t._previewTemplate=i.first),yc(i=kc())&&(t._placeholderTemplate=i.first),yc(i=kc())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&al("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Hl([{provide:mj,useExisting:hj}]),tn]}),hj._dragInstances=[],hj);function Aj(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var Cj,Sj=((Cj=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Cj)},Cj.\u0275mod=jt({type:Cj}),Cj.\u0275inj=at({providers:[vj],imports:[oR]}),Cj),Ej=function(e,t,n){if(0===n||0===t)return"";var i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),"".concat(e+1," / ").concat(Math.ceil(n/t))};var Pj,Oj,Dj,Ij,Tj=((Ij=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Ij)},Ij.\u0275mod=jt({type:Ij}),Ij.\u0275inj=at({providers:[{provide:SV,useValue:(Dj=new SV,Dj.itemsPerPageLabel="Afficher:",Dj.nextPageLabel="Page suivante",Dj.previousPageLabel="Page pr\xe9c\xe9dente",Dj.getRangeLabel=Ej,Dj)}],imports:[[BV,PN,eN,hF,yB,Sj,NV,kF,AN,MV,xF,SN,nN,Iz,sz,FV,tV,LV,WL,az,TV,rz,UL,AF],BV,PN,eN,hF,yB,Sj,NV,kF,AN,MV,xF,SN,nN,Iz,sz,FV,tV,LV,WL,az,TV,rz,UL,AF]}),Ij),Mj=((Oj=Y(function e(t,n,i){Z(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")})).\u0275fac=function(e){return new(e||Oj)(Ps(zP),Ps(WF),Ps(BF))},Oj.\u0275cmp=Ft({type:Oj,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(Is(0,"div"),Is(1,"h1",0),bl(2),$u(3,"translate"),Ts(),Ms(4,"div",1),$u(5,"translate"),Is(6,"div",2),Is(7,"button",3),js("click",function(){return t.dialogRef.close()}),bl(8),$u(9,"translate"),Ts(),Ts(),Ts()),2&e&&(Cl("modalContent ",t.data.mode,""),Yo(2),wl(ec(3,6,t.data.title)),Yo(2),Os("innerHTML",ec(5,8,t.data.msg),Zr),Yo(4),wl(ec(9,10,"lang.ok")))},directives:[XF,JF,$F,wF],pipes:[jP],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),Oj),Bj=((Pj=function(){function e(t,n,i,r,o,a,s,l,u){Z(this,e),this.translate=t,this.http=n,this.router=i,this.signaturesService=r,this.cookieService=o,this.authService=a,this.localStorage=s,this.dialog=l,this.menu=u}return Y(e,[{key:"canActivate",value:function(e,t){var n=this;if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):this.http.get("../rest/authenticationInformations").pipe(ye(function(e){return n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.authService.authUri=e.authUri,n.localStorage.setAppSession(e.instanceId),!0}));if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");var i=this.authService.getToken();if(null===i||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(ye(function(e){return n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.authService.authUri=e.authUri,n.localStorage.setAppSession(e.instanceId),null!==(i=n.authService.getToken())?(n.authService.user=JSON.parse(atob(i.split(".")[1])).user,n.translate.use(n.authService.user.preferences.lang),n.cookieService.set("maarchParapheurLang",n.authService.user.preferences.lang),n.setData(),n.authService.changeKey&&n.dialog.open(Mj,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(n.authService.setCachedUrl(t.url.replace(/^\//g,"")),n.authService.logout(),!1)}));if(void 0===this.authService.user.id){var r=JSON.parse(atob(i.split(".")[1]));this.authService.user=r.user,this.authService.authMode=r.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}},{key:"setData",value:function(){var e=this;0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(function(t){e.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],e.authService.signatureRoles=e.authService.signatureRoles.concat(t.map(function(e){return Object.assign(Object.assign({},e),{type:"sign"})}))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(function(t){e.signaturesService.signaturesList=t.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture})}}]),e}()).\u0275fac=function(e){return new(e||Pj)(rr(zP),rr(Tb),rr(h_),rr($P),rr(oT),rr(tO),rr(eO),rr(KF),rr(RE))},Pj.\u0275prov=rt({token:Pj,factory:Pj.\u0275fac,providedIn:"root"}),Pj);function Rj(e,t){if(1&e&&(Is(0,"ion-col"),Is(1,"ion-button",7),Is(2,"div",8),Ms(3,"ion-icon",9),Is(4,"ion-label",10),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-note",11),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Ts()),2&e){var n=t.$implicit;Yo(1),Os("routerLink",n.route),Yo(2),Os("name",n.icon),Yo(2),wl(ec(6,4,"lang."+n.id)),Yo(3),kl(" ",ec(9,6,"lang."+n.id+"Desc"),"")}}var Lj,Fj=function(e){return[e]},Nj=((Lj=function(){function e(t,n,i){Z(this,e),this.signaturesService=t,this.authService=n,this.menu=i}return Y(e,[{key:"ngOnInit",value:function(){this.menu.enable(!1,"right-menu")}}]),e}()).\u0275fac=function(e){return new(e||Lj)(Ps($P),Ps(tO),Ps(RE))},Lj.\u0275cmp=Ft({type:Lj,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content",null,4),Is(9,"ion-grid"),Is(10,"ion-row",5),Ss(11,Rj,10,8,"ion-col",6),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,4,"lang.administration")),Yo(5),Os("ngClass",Zu(6,Fj,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),Yo(1),Os("ngForOf",t.authService.user.administrativePrivileges))},directives:[kS,tE,aS,RS,$S,pS,wS,US,Fh,Vh,fS,oS,CE,f_,xS,IS,FS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),Lj);function Vj(e,t){if(1&e&&(Is(0,"div",15),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function zj(e,t){if(1&e&&(Bs(0),Ss(1,Vj,3,4,"div",14),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function jj(e,t){if(1&e){var n=Fs();Is(0,"div",16),Is(1,"ion-searchbar",17),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(2,"translate"),Ts(),Ts()}2&e&&(Yo(1),Os("placeholder",ec(2,1,"lang.filter")))}function Hj(e,t){if(1&e&&(Is(0,"div",16),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function Uj(e,t){if(1&e){var n=Fs();Is(0,"ion-item",7),Is(1,"ion-label",18),Ss(2,Hj,2,1,"div",19),Ts(),Is(3,"ion-button",20),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.delete(i)}),$u(4,"translate"),Ms(5,"ion-icon",21),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Xs("routerLink","/administration/users/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,4,"lang.delete")),Os("disabled",i.id===r.authService.user.id)}}var Wj,Gj=((Wj=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}return Y(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(ye(function(e){return e.users}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.userList=t,e.sortedData=e.userList.slice()}})}},{key:"delete",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/users/"+e.id).pipe(Lw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.userList.findIndex(function(t){return t.id===e.id});i.userList.splice(n,1),i.sortedData=i.userList.slice(),i.notificationService.success("lang.userDeleted")},error:function(e){i.notificationService.handleErrors(e)}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||Wj)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps($P),Ps(WP),Ps(tO),Ps(ME))},Wj.\u0275cmp=Ft({type:Wj,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),$u(8,"translate"),Ts(),Ts(),Is(9,"ion-toolbar",1),Is(10,"ion-buttons",2),Is(11,"ion-button",4),bl(12),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-title",5),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Is(17,"ion-content",null,6),Is(19,"ion-list"),Is(20,"ion-item",7),Is(21,"ion-label",8),js("matSortChange",function(e){return t.sortData(e)}),Ss(22,zj,2,1,"ng-container",9),Ss(23,jj,3,3,"div",10),Ts(),Is(24,"ion-button",11),Ms(25,"ion-icon"),Ts(),Ts(),Is(26,"ion-virtual-scroll",12),Ss(27,Uj,6,6,"ion-item",13),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),xl("",ec(7,10,"lang.administration")," ",ec(8,12,"lang.manage_usersAlt"),""),Yo(6),kl(" ",ec(13,14,"lang.userCreation")," "),Yo(3),xl("",t.userList.length," ",ec(16,16,"lang.manage_usersAlt"),""),Yo(6),Os("matSortActive",t.displayedColumns[1]),Yo(1),Os("ngForOf",t.displayedColumns),Yo(1),Os("ngIf",t.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",t.sortedData))},directives:[kS,tE,aS,RS,iS,AE,$S,oS,CE,f_,pS,TS,ES,IS,XV,Vh,jh,xS,OE,PE,iz,WS,SA],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),Wj);function qj(e,t){1&e&&(Ms(0,"div",5),$u(1,"translate")),2&e&&Os("innerHTML",ec(1,1,qs().data.msg),Zr)}var Yj,Zj=((Yj=Y(function e(t,n,i){Z(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.msg&&(this.data.msg="")})).\u0275fac=function(e){return new(e||Yj)(Ps(zP),Ps(WF),Ps(BF))},Yj.\u0275cmp=Ft({type:Yj,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(Is(0,"div"),Is(1,"h1",0),bl(2),$u(3,"translate"),Ts(),Ss(4,qj,2,3,"div",1),Is(5,"div",2),Is(6,"button",3),js("click",function(){return t.dialogRef.close("yes")}),bl(7),$u(8,"translate"),Ts(),Is(9,"button",4),js("click",function(){return t.dialogRef.close("no")}),bl(10),$u(11,"translate"),Ts(),Ts(),Ts()),2&e&&(Cl("modalContent ",t.data.mode,""),Yo(2),wl(ec(3,7,t.data.title)),Yo(2),Os("ngIf",null!==t.data.msg),Yo(3),wl(ec(8,9,"lang.yes")),Yo(3),wl(ec(11,11,"lang.no")))},directives:[XF,jh,$F,wF,JF],pipes:[jP],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),Yj);function Kj(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Is(4,"ion-checkbox",27),js("ionChange",function(e){En(n);var t=qs().$implicit;return qs(2).toggleSignMode(t,e.detail.checked)}),Ts(),Ts()}if(2&e){var i=qs().$implicit,r=qs(2);Yo(1),ol("color",i.color),Yo(1),wl(ec(3,5,"lang."+i.id)),Yo(2),Os("checked",r.user.signatureModes.indexOf(i.id)>-1)("disabled","stamp"===i.id)}}function Qj(e,t){if(1&e&&(Bs(0),Ss(1,Kj,5,7,"ion-item",11),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","visa"!==n.id)}}function Xj(e,t){if(1&e&&(Is(0,"ion-note",33),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(3);Yo(1),kl(" ",ec(2,1,n.handlePassword.errorMsg),"")}}function Jj(e,t){if(1&e){var n=Fs();Is(0,"ion-item",28),Is(1,"ion-button",29),js("click",function(){En(n);var e=qs(2);return e.hideNewPassword=!e.hideNewPassword}),Ms(2,"ion-icon",30),Ts(),Is(3,"ion-label",14),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-input",31),js("ngModelChange",function(e){return En(n),qs(2).passwordRest.newPassword=e})("ionChange",function(){En(n);var e=qs(2);return e.checkPasswordValidity(e.passwordRest.newPassword)}),Ts(),Ss(7,Xj,3,3,"ion-note",32),Ts()}if(2&e){var i=qs(2);Yo(2),Os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),Yo(2),wl(ec(5,5,"lang.newPassword")),Yo(2),Os("type",i.hideNewPassword?"password":"text")("ngModel",i.passwordRest.newPassword),Yo(1),Os("ngIf",i.handlePassword.error&&i.passwordRest.newPassword.length>0)}}function $j(e,t){1&e&&(Is(0,"ion-note",33),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.passwordNotMatch"),""))}function eH(e,t){1&e&&(Is(0,"ion-note",36),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.samePassword"),""))}function tH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",28),Is(1,"ion-button",29),js("click",function(){En(n);var e=qs(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),Ms(2,"ion-icon",30),Ts(),Is(3,"ion-label",14),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-input",34),js("ngModelChange",function(e){return En(n),qs(2).passwordRest.passwordConfirmation=e}),Ts(),Ss(7,$j,3,3,"ion-note",32),Ss(8,eH,3,3,"ion-note",35),Ts()}if(2&e){var i=qs(2);Yo(2),Os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),Yo(2),wl(ec(5,6,"lang.passwordConfirmation")),Yo(2),Os("type",i.hideNewPasswordConfirm?"password":"text")("ngModel",i.passwordRest.passwordConfirmation),Yo(1),Os("ngIf",i.passwordRest.passwordConfirmation!==i.passwordRest.newPassword&&i.passwordRest.passwordConfirmation.length>0),Yo(1),Os("ngIf",i.passwordRest.passwordConfirmation===i.passwordRest.newPassword&&i.passwordRest.newPassword.length>0&&i.passwordRest.passwordConfirmation.length>0&&!i.handlePassword.error)}}function nH(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"form",12,13),js("ngSubmit",function(){return En(n),qs().onSubmit()}),Is(3,"ion-content"),Is(4,"ion-item"),Is(5,"ion-label",14),bl(6),$u(7,"translate"),Ts(),Is(8,"ion-input",15),js("ngModelChange",function(e){return En(n),qs().user.login=e}),Ts(),Ts(),Is(9,"ion-item"),Is(10,"ion-label",14),bl(11),$u(12,"translate"),Ts(),Is(13,"ion-input",16),js("ngModelChange",function(e){return En(n),qs().user.firstname=e}),Ts(),Ts(),Is(14,"ion-item"),Is(15,"ion-label",14),bl(16),$u(17,"translate"),Ts(),Is(18,"ion-input",17),js("ngModelChange",function(e){return En(n),qs().user.lastname=e}),Ts(),Ts(),Is(19,"ion-item"),Is(20,"ion-label",14),bl(21),$u(22,"translate"),Ts(),Is(23,"ion-input",18),js("ngModelChange",function(e){return En(n),qs().user.email=e}),Ts(),Ts(),Is(24,"ion-item"),Is(25,"ion-label"),bl(26),$u(27,"translate"),Ts(),Is(28,"ion-toggle",19),js("ngModelChange",function(e){return En(n),qs().user.isRest=e})("ionChange",function(e){return En(n),qs().getPassRules(e)}),Ts(),Ts(),Is(29,"ion-list"),Is(30,"ion-list-header"),Is(31,"ion-label",20),bl(32),$u(33,"translate"),Ts(),Ts(),Ss(34,Qj,2,1,"ng-container",21),Ts(),Ss(35,Jj,8,7,"ion-item",22),Ss(36,tH,9,8,"ion-item",22),Is(37,"ion-item",23),Is(38,"div",24),Is(39,"ion-button",25),Is(40,"ion-label",26),bl(41),$u(42,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Rs()}if(2&e){var i=Es(2),r=qs();Yo(6),kl("",ec(7,23,"lang.login")," *"),Yo(2),Os("maxlength",128)("readonly",!r.creationMode)("ngModel",r.user.login),Yo(3),kl("",ec(12,25,"lang.firstname")," *"),Yo(2),Os("maxlength",128)("ngModel",r.user.firstname),Yo(3),kl("",ec(17,27,"lang.lastname")," *"),Yo(2),Os("maxlength",128)("ngModel",r.user.lastname),Yo(3),kl("",ec(22,29,"lang.email")," *"),Yo(2),Os("maxlength",128)("ngModel",r.user.email),Yo(3),wl(ec(27,31,"lang.restUser")),Yo(2),Os("disabled",!r.creationMode)("ngModel",r.user.isRest)("checked",r.user.isRest),Yo(4),wl(ec(33,33,"lang.signatureModes")),Yo(2),Os("ngForOf",r.authService.signatureRoles),Yo(1),Os("ngIf",r.user.isRest),Yo(1),Os("ngIf",r.user.isRest),Yo(3),Os("disabled",!i.form.valid||!r.canValidate()),Yo(2),wl(ec(42,35,"lang.validate"))}}function iH(e,t){if(1&e&&(Is(0,"ion-item"),Is(1,"ion-label"),bl(2),Ts(),Ts()),2&e){var n=t.$implicit;Yo(2),wl(n.label)}}function rH(e,t){if(1&e&&(Is(0,"ion-list"),Ss(1,iH,3,1,"ion-item",21),Ts()),2&e){var n=qs(2);Yo(1),Os("ngForOf",n.user.groups)}}function oH(e,t){1&e&&(Is(0,"ion-list",38),Is(1,"ion-item",39),Is(2,"ion-label",40),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.noAssociatedGroup")))}function aH(e,t){if(1&e&&(Bs(0),Is(1,"ion-content"),Ss(2,rH,2,1,"ion-list",11),Ss(3,oH,5,3,"ion-list",37),Ts(),Rs()),2&e){var n=qs();Yo(2),Os("ngIf",n.user.groups.length>0),Yo(1),Os("ngIf",0===n.user.groups.length)}}var sH,lH=((sH=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.userCreation"),e.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},e.loading=!1):(e.creationMode=!1,e.http.get("../rest/users/"+t.id).pipe(ye(function(e){return e.user}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.user=t,e.userClone=JSON.parse(JSON.stringify(e.user)),e.title=e.user.firstname+" "+e.user.lastname,e.user.isRest&&e.getPassRules({detail:{checked:!0}})}}))})}},{key:"canValidate",value:function(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}},{key:"onSubmit",value:function(){this.creationMode?this.createUser():this.modifyUser()}},{key:"modifyUser",value:function(){var e=this;this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(Lw(function(){return e.loading=!1}),Mw(function(){e.authService.user.id===e.user.id&&e.authService.updateUserInfoWithTokenRefresh(),""!==e.passwordRest.newPassword&&e.updateRestUser(),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userUpdated")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"updateRestUser",value:function(){var e=this,t=new ub({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:t}).subscribe(function(){e.passwordRest.newPassword="",e.passwordRest.passwordConfirmation=""},function(t){e.notificationService.handleErrors(t)})}},{key:"createUser",value:function(){var e=this;this.loading=!0,this.http.post("../rest/users",this.user).pipe(Lw(function(){return e.loading=!1}),Mw(function(t){e.user.isRest&&(e.user.id=t.id,e.updateRestUser()),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userAdded")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"delete",value:function(){var e=this;this.dialog.open(Zj,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/users/"+e.user.id).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/users"])}},{key:"getPassRules",value:function(e){var t=this;e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(e){var n=[],i=[];e.rules.forEach(function(e){"minLength"===e.label?(t.passwordRules.minLength.enabled=e.enabled,t.passwordRules.minLength.value=e.value,e.enabled&&t.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===e.label?(t.passwordRules.complexityUpper.enabled=e.enabled,t.passwordRules.complexityUpper.value=e.value,e.enabled&&n.push("lang.upperRequired")):"complexityNumber"===e.label?(t.passwordRules.complexityNumber.enabled=e.enabled,t.passwordRules.complexityNumber.value=e.value,e.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===e.label?(t.passwordRules.complexitySpecial.enabled=e.enabled,t.passwordRules.complexitySpecial.value=e.value,e.enabled&&n.push("lang.specialCharRequired")):"renewal"===e.label?(t.passwordRules.renewal.enabled=e.enabled,t.passwordRules.renewal.value=e.value,e.enabled&&t.translate.get("lang.renewalInfo",{time:e.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===e.label&&(t.passwordRules.historyLastUse.enabled=e.enabled,t.passwordRules.historyLastUse.value=e.value,e.enabled&&t.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(function(e){i.push(e)}))}),t.ruleText=n.join(", "),t.otherRuleText=i.join("<br/>")},function(e){t.notificationService.handleErrors(e)}))}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"toggleSignMode",value:function(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(function(t){return t!==e.id})}},{key:"initTab",value:function(e){this.currentTool=e}}]),e}()).\u0275fac=function(e){return new(e||sH)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO))},sH.\u0275cmp=Ft({type:sH,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Is(7,"ion-avatar",4),Ms(8,"img",5),Ts(),Ts(),Ts(),Is(9,"ion-header"),Is(10,"ion-toolbar"),Is(11,"ion-segment",6),js("ionChange",function(e){return t.initTab(e.detail.value)}),Is(12,"ion-segment-button",7),Is(13,"ion-label"),bl(14),$u(15,"translate"),Ts(),Ms(16,"ion-icon",8),Ts(),Is(17,"ion-segment-button",9),Is(18,"ion-label"),bl(19),$u(20,"translate"),Ts(),Ms(21,"ion-icon",10),Ts(),Ts(),Ts(),Ts(),Ss(22,nH,43,37,"ng-container",11),Ss(23,aH,4,2,"ng-container",11)),2&e&&(Os("translucent",!0),Yo(6),wl(t.title),Yo(2),Os("src",t.user.picture,Kr),Yo(3),Os("value",t.currentTool),Yo(3),wl(ec(15,9,"lang.informations")),Yo(3),Os("disabled",t.creationMode),Yo(2),wl(ec(20,11,"lang.manage_groups")),Yo(3),Os("ngIf","info"===t.currentTool),Yo(1),Os("ngIf","groups"===t.currentTool))},directives:[kS,tE,aS,RS,iS,AE,$S,nS,GS,CA,qS,IS,xS,jh,yy,Fm,py,pS,ES,SS,SA,Yy,Xy,Ky,Lm,my,eE,xA,TS,MS,Vh,oS,dS,FS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),sH);function uH(e,t){if(1&e&&(Is(0,"div",15),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function cH(e,t){if(1&e&&(Bs(0),Ss(1,uH,3,4,"div",14),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function dH(e,t){if(1&e){var n=Fs();Is(0,"div",16),Is(1,"ion-searchbar",17),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(2,"translate"),Ts(),Ts()}2&e&&(Yo(1),Os("placeholder",ec(2,1,"lang.filter")))}function hH(e,t){if(1&e&&(Is(0,"div",16),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function fH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",7),Is(1,"ion-label",18),Ss(2,hH,2,1,"div",19),Ts(),Is(3,"ion-button",20),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.delete(i)}),$u(4,"translate"),Ms(5,"ion-icon",21),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Xs("routerLink","/administration/groups/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,3,"lang.delete"))}}var pH,gH=((pH=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.alertController=s,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return Y(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/groups").pipe(ye(function(e){return e.groups}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.groupList=t,e.sortedData=e.groupList.slice()}})}},{key:"delete",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/groups/"+e.id).pipe(Lw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.groupList.findIndex(function(t){return t.id===e.id});i.groupList.splice(n,1),i.sortedData=i.groupList.slice(),i.notificationService.success("lang.groupDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||pH)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps($P),Ps(WP),Ps(ME))},pH.\u0275cmp=Ft({type:pH,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){var n;1&e&&(bc(IV,3),bc(XV,3)),2&e&&(yc(n=kc())&&(t.paginator=n.first),yc(n=kc())&&(t.sort=n.first))},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),$u(8,"translate"),Ts(),Ts(),Is(9,"ion-toolbar",1),Is(10,"ion-buttons",2),Is(11,"ion-button",4),bl(12),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-title",5),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Is(17,"ion-content",null,6),Is(19,"ion-list"),Is(20,"ion-item",7),Is(21,"ion-label",8),js("matSortChange",function(e){return t.sortData(e)}),Ss(22,cH,2,1,"ng-container",9),Ss(23,dH,3,3,"div",10),Ts(),Is(24,"ion-button",11),Ms(25,"ion-icon"),Ts(),Ts(),Is(26,"ion-virtual-scroll",12),Ss(27,fH,6,5,"ion-item",13),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),xl("",ec(7,10,"lang.administration")," ",ec(8,12,"lang.manage_groupsAlt"),""),Yo(6),kl(" ",ec(13,14,"lang.groupCreation")," "),Yo(3),xl("",t.groupList.length," ",ec(16,16,"lang.manage_groupsAlt"),""),Yo(6),Os("matSortActive",t.displayedColumns[0]),Yo(1),Os("ngForOf",t.displayedColumns),Yo(1),Os("ngIf",t.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",t.sortedData))},directives:[kS,tE,aS,RS,iS,AE,$S,oS,CE,f_,pS,TS,ES,IS,XV,Vh,jh,xS,OE,PE,iz,WS,SA],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),pH);function vH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",6),js("click",function(){En(n);var e=t.$implicit;return qs(2).selectUser(e)}),Is(1,"ion-label"),bl(2),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),xl(" ",i.firstname," ",i.lastname," ")}}function mH(e,t){if(1&e&&(Is(0,"ion-list"),Is(1,"ion-virtual-scroll",4),Ss(2,vH,3,2,"ion-item",5),Ts(),Ts()),2&e){var n=qs();Yo(1),Os("items",n.usersList)}}function yH(e,t){1&e&&(Is(0,"ion-item",7),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.emptyUsers")))}var bH,wH=((bH=function(){function e(t,n){Z(this,e),this.http=t,this.modalController=n,this.usersList=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(ye(function(e){return e.users})).subscribe({next:function(t){e.usersList=t.filter(function(t){return-1===e.users.findIndex(function(e){return e.id===t.id})})}})}},{key:"selectUser",value:function(e){this.modalController.dismiss(e)}}]),e}()).\u0275fac=function(e){return new(e||bH)(Ps(Tb),Ps(LE))},bH.\u0275cmp=Ft({type:bH,selectors:[["app-users"]],inputs:{users:"users"},decls:8,vars:6,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 35%;",4,"ngIf"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","35%"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Ts(),Ts(),Is(5,"ion-content"),Ss(6,mH,3,1,"ion-list",2),Ss(7,yH,4,3,"ion-item",3),Ts()),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,4,"lang.users")),Yo(3),Os("ngIf",t.usersList.length>0),Yo(1),Os("ngIf",0===t.usersList.length))},directives:[kS,tE,$S,pS,jh,TS,OE,PE,ES,IS],pipes:[jP],encapsulation:2}),bH),kH=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function xH(e,t){1&e&&(Is(0,"ion-item",18),Is(1,"ion-label",19),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),kl("",ec(3,1,"lang.privileges")," :"))}function _H(e,t){if(1&e){var n=Fs();Is(0,"ion-item",20),Is(1,"ion-toggle",21),js("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){En(n);var e=t.$implicit;return qs().togglePrivilege(e,!0)}),Ts(),Is(2,"ion-label",22),js("click",function(){En(n);var e=t.$implicit;return qs().togglePrivilege(e,!1)}),bl(3),$u(4,"translate"),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("name",i.id)("checked",i.checked)("ngModel",i.checked),Yo(2),wl(ec(4,4,"lang."+i.id+"Admin"))}}function AH(e,t){1&e&&(Is(0,"ion-item",18),Is(1,"ion-label",19),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),kl("",ec(3,1,"lang.linkedUsers")," :"))}function CH(e,t){if(1&e&&(Is(0,"div",34),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function SH(e,t){if(1&e&&(Bs(0),Ss(1,CH,3,4,"div",33),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function EH(e,t){if(1&e){var n=Fs();Is(0,"div",35),Is(1,"ion-button",36),js("click",function(){return En(n),qs(2).openUserList()}),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),kl(" ",ec(3,1,"lang.add")," "))}function PH(e,t){if(1&e&&(Is(0,"div",42),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function OH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",37),Is(1,"ion-label",38),Ss(2,PH,2,1,"div",39),Ts(),Is(3,"ion-button",40),js("click",function(e){En(n);var i=t.$implicit,r=qs(2);return e.stopPropagation(),r.unlinkUser(i)}),$u(4,"translate"),Ms(5,"ion-icon",41),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs(2);Yo(1),Xs("routerLink","/administration/users/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,3,"lang.unlinkUser"))}}function DH(e,t){if(1&e){var n=Fs();Is(0,"ion-infinite-scroll",43),js("ionInfinite",function(e){return En(n),qs(2).loadData(e)}),Ms(1,"ion-infinite-scroll-content",44),$u(2,"translate"),Ts()}2&e&&(Yo(1),Os("loadingText",ec(2,1,"lang.loadingMoreData")))}function IH(e,t){1&e&&(Is(0,"ion-item",45),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.emptyGroupUsers")))}function TH(e,t){if(1&e){var n=Fs();Is(0,"ion-content",23),Is(1,"ion-list"),Is(2,"ion-item",24),Bs(3,14),Is(4,"ion-label",25),js("matSortChange",function(e){return En(n),qs().sortData(e)}),Ss(5,SH,2,1,"ng-container",26),Ss(6,EH,4,3,"div",27),Ts(),Rs(),Is(7,"ion-button",28),Ms(8,"ion-icon"),Ts(),Ts(),Is(9,"ion-virtual-scroll",29),Ss(10,OH,6,5,"ion-item",30),Ts(),Ss(11,DH,3,3,"ion-infinite-scroll",31),Ts(),Ss(12,IH,4,3,"ion-item",32),Ts()}if(2&e){var i=qs();Yo(4),Os("matSortActive",i.displayedColumns[1]),Yo(1),Os("ngForOf",i.displayedColumns),Yo(1),Os("ngIf",i.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",i.sortedData),Yo(2),Os("ngIf",i.group.users.length>7),Yo(1),Os("ngIf",0===i.group.users.length)}}function MH(e,t){if(1&e){var n=Fs();Is(0,"ion-button",46),js("click",function(){return En(n),qs().deleteGroup()}),Is(1,"ion-label",16),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),wl(ec(3,1,"lang.delete")))}var BH,RH=((BH=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.popoverController=u,this.modalController=c,this.alertController=d,this.latinisePipe=h,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.groupCreation"),e.loading=!1,e.groupClone=JSON.parse(JSON.stringify(e.group))):(e.creationMode=!1,e.usersList=[],e.http.get("../rest/groups/"+t.id).pipe(ye(function(e){return e.group}),Lw(function(){e.loading=!1})).subscribe({next:function(t){e.group=t,e.groupClone=JSON.parse(JSON.stringify(e.group)),e.title=e.group.label,e.updateDataTable()}}),e.http.get("../rest/users?mode=all").pipe(ye(function(e){return e.users})).subscribe({next:function(t){e.usersList=t}}))})}},{key:"updateDataTable",value:function(){this.sortedData=this.group.users.slice()}},{key:"openUserList",value:function(e){return kH(this,void 0,void 0,U().mark(function e(){var t,n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:wH,componentProps:{users:this.group.users}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,void 0!==(i=n.data)&&this.linkUser(i);case 10:case"end":return e.stop()}},e,this)}))}},{key:"canValidate",value:function(){return this.group.label!==this.groupClone.label}},{key:"onSubmit",value:function(){this.creationMode?this.createGroup():this.modifyGroup()}},{key:"linkUser",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:function(){t.group.users.push(e),t.updateDataTable(),t.notificationService.success("lang.userAdded")}})}},{key:"unlinkUser",value:function(e){return kH(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!==this.authService.user.id){t.next=8;break}return t.next=3,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.deleteUser(e)}}]});case 3:return n=t.sent,t.next=6,n.present();case 6:t.next=9;break;case 8:this.deleteUser(e);case 9:case"end":return t.stop()}},t,this)}))}},{key:"deleteUser",value:function(e){var t=this;this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:function(){var n=t.group.users.findIndex(function(t){return t.id===e.id});t.group.users.splice(n,1),t.updateDataTable(),t.notificationService.success("lang.userDeleted")}})}},{key:"modifyGroup",value:function(){var e=this;this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:function(){e.router.navigate(["/administration/groups"]),e.notificationService.success("lang.groupUpdated")}})}},{key:"createGroup",value:function(){var e=this;this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:function(t){e.router.navigate(["/administration/groups/"+t.id]),e.notificationService.success("lang.groupAdded")}})}},{key:"deleteGroup",value:function(){return kH(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){n.http.delete("../rest/groups/"+n.group.id).subscribe({next:function(){n.router.navigate(["/administration/groups"]),n.notificationService.success("lang.groupDeleted")}})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"togglePrivilege",value:function(e,t){return kH(this,void 0,void 0,U().mark(function n(){var i,r=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("manage_groups"!==e.id||!e.checked){n.next=9;break}return t||(e.checked=!e.checked),n.next=4,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:function(){r.updatePrivilege(e)}}]});case 4:return i=n.sent,n.next=7,i.present();case 7:n.next=10;break;case 9:t||(e.checked=!e.checked),setTimeout(function(){r.updatePrivilege(e)},200);case 10:case"end":return n.stop()}},n,this)}))}},{key:"updatePrivilege",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:function(){t.notificationService.success("lang.privilegeUpdated"),t.authService.updateUserInfoWithTokenRefresh()}})}},{key:"cancel",value:function(){this.router.navigate(["/administration/groups"])}},{key:"sortData",value:function(e){var t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}},{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.group.users.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"loadData",value:function(e){var t=this;this.http.get("../rest/groups/"+this.group.id).pipe(Mw(function(n){t.group.users=n.group.users,e.target.complete(),e.target.disabled=!0})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||BH)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(FE),Ps(LE),Ps(ME),Ps(kT))},BH.\u0275cmp=Ft({type:BH,selectors:[["app-administration-group"]],viewQuery:function(e,t){var n;1&e&&(bc(IV,1),bc(XV,1)),2&e&&(yc(n=kc())&&(t.paginator=n.first),yc(n=kc())&&(t.sort=n.first))},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],[2,"margin-left","4x","display","flex","width","50%",3,"placeholder","ionChange"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 5px;",4,"ngIf"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","5px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Is(7,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-content"),Is(10,"ion-item"),Is(11,"ion-label",6),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",7),js("ngModelChange",function(e){return t.group.label=e}),Ts(),Ts(),Ss(15,xH,4,3,"ion-item",8),Is(16,"div",9),Ss(17,_H,5,6,"ion-item",10),Ts(),Ss(18,AH,4,3,"ion-item",8),Is(19,"ion-searchbar",11),js("ionChange",function(e){return t.applyFilter(e.detail.value)}),$u(20,"translate"),Ts(),Ss(21,TH,13,6,"ion-content",12),Is(22,"ion-item",13),Is(23,"div",14),Is(24,"ion-button",15),Is(25,"ion-label",16),bl(26),$u(27,"translate"),Ts(),Ts(),Ss(28,MH,4,3,"ion-button",17),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(6),wl(t.title),Yo(6),kl("",ec(13,17,"lang.label")," *"),Yo(2),Os("maxlength",128)("ngModel",t.group.label),Yo(1),Os("ngIf",!t.creationMode),Yo(1),al("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),Yo(1),Os("ngForOf",t.group.privileges),Yo(1),Os("ngIf",!t.creationMode),Yo(1),Os("placeholder",ec(20,19,"lang.filter")),Yo(2),Os("ngIf",!t.creationMode),Yo(3),Os("disabled",!n.form.valid||!t.canValidate()),Yo(2),wl(ec(27,21,"lang.validate")),Yo(2),Os("ngIf",!t.creationMode)}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Ky,Lm,my,jh,Vh,WS,oS,eE,xA,TS,XV,xS,OE,PE,iz,CE,f_,AS,CS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),BH);function LH(e,t){if(1&e&&(Is(0,"ion-select-option",10),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n.id)("disabled",!n.allowed),Yo(1),kl(" ",ec(2,3,"lang."+n.id+"Connection"),"")}}function FH(e,t){if(1&e){var n=Fs();Is(0,"ion-select",8),js("ionChange",function(e){return En(n),qs().changeConnection(e.detail.value)}),$u(1,"translate"),Ss(2,LH,3,5,"ion-select-option",9),Ts()}if(2&e){var i=qs();Qs("cancelText",ec(1,3,"lang.cancel")),Os("value",i.currentConnection.id),Yo(2),Os("ngForOf",i.connectionList)}}function NH(e,t){if(1&e&&(Is(0,"ion-col"),Is(1,"ion-button",11),Is(2,"div",12),Ms(3,"ion-icon",13),Is(4,"ion-label",14),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-note",15),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Ts()),2&e){var n=t.$implicit;Yo(1),Os("routerLink",n.route),Yo(2),Os("name",n.icon),Yo(2),kl("",ec(6,4,"lang."+n.id)," "),Yo(3),kl(" ",ec(9,6,"lang."+n.id+"Desc"),"")}}var VH,zH=((VH=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.alertController=r,this.authService=o,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"},{id:"manage_cas_configuration",icon:"server-sharp",route:"/administration/connections/cas"}],this.id=0,this.label="",this.connectionList=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.label=t.configurations.label,e.id=t.configurations.id,e.connectionList=t.configurations.availableConnections;var n=e.connectionList.findIndex(function(e){return e.id===t.configurations.value});e.currentConnection=void 0!==e.connectionList[n]?e.connectionList[n]:e.connectionList[0]}})}},{key:"changeConnection",value:function(e){return t=this,i=U().mark(function t(){var n=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(Lw(function(){return n.loading=!1})).subscribe({next:function(){n.authService.updateUserInfoWithTokenRefresh(),n.notificationService.success("lang.connectionModeUpdated"),n.authService.authMode=e}});case 1:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||VH)(Ps(Tb),Ps($P),Ps(WP),Ps(ME),Ps(tO))},VH.\u0275cmp=Ft({type:VH,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"ion-content",null,4),Is(10,"ion-item"),Is(11,"ion-label",5),bl(12),$u(13,"translate"),Ts(),Ss(14,FH,3,5,"ion-select",6),Ts(),Is(15,"ion-grid"),Is(16,"ion-row"),Ss(17,NH,10,8,"ion-col",7),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,5,"lang.manage_connections")),Yo(6),wl(ec(13,7,"lang.connectionMode")),Yo(2),Os("ngIf",t.currentConnection),Yo(3),Os("ngForOf",t.privileges))},directives:[kS,tE,aS,RS,iS,AE,$S,pS,ES,IS,jh,wS,US,Vh,YS,CA,ZS,fS,oS,CE,f_,xS,FS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),VH);function jH(e,t){if(1&e&&(Is(0,"div",15),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function HH(e,t){if(1&e&&(Bs(0),Ss(1,jH,3,4,"div",14),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function UH(e,t){if(1&e){var n=Fs();Is(0,"div",16),Is(1,"ion-searchbar",17),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(2,"translate"),Ts(),Ts()}2&e&&(Yo(1),Os("placeholder",ec(2,1,"lang.filter")))}function WH(e,t){if(1&e&&(Is(0,"div",16),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function GH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",7),Is(1,"ion-label",18),Ss(2,WH,2,1,"div",19),Ts(),Is(3,"ion-button",20),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.delete(i)}),$u(4,"translate"),Ms(5,"ion-icon",21),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Xs("routerLink","/administration/connections/ldaps/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,3,"lang.delete"))}}var qH,YH=((qH=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return Y(e,[{key:"updateDataTable",value:function(){this.sortedData=this.ldapList.slice()}},{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldapList=t.configurations,e.updateDataTable()}})}},{key:"delete",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/configurations/"+e.id).pipe(Lw(function(){return i.loading=!1})).subscribe({next:function(){var t=i.ldapList.findIndex(function(t){return t.id===e.id});i.ldapList.splice(t,1),i.updateDataTable(),i.notificationService.success("lang.ldapDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||qH)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps($P),Ps(WP),Ps(tO),Ps(ME))},qH.\u0275cmp=Ft({type:qH,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),$u(8,"translate"),Ts(),Ts(),Is(9,"ion-toolbar",1),Is(10,"ion-buttons",2),Is(11,"ion-button",4),bl(12),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-title",5),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Is(17,"ion-content",null,6),Is(19,"ion-list"),Is(20,"ion-item",7),Is(21,"ion-label",8),js("matSortChange",function(e){return t.sortData(e)}),Ss(22,HH,2,1,"ng-container",9),Ss(23,UH,3,3,"div",10),Ts(),Is(24,"ion-button",11),Ms(25,"ion-icon"),Ts(),Ts(),Is(26,"ion-virtual-scroll",12),Ss(27,GH,6,5,"ion-item",13),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),xl("",ec(7,10,"lang.administration")," ",ec(8,12,"lang.manage_ldap_configurationsAlt")," "),Yo(6),kl(" ",ec(13,14,"lang.ldapCreation")," "),Yo(3),xl("",t.ldapList.length," ",ec(16,16,"lang.manage_ldap_configurationsAlt"),""),Yo(6),Os("matSortActive",t.displayedColumns[0]),Yo(1),Os("ngForOf",t.displayedColumns),Yo(1),Os("ngIf",t.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",t.sortedData))},directives:[kS,tE,aS,RS,iS,AE,$S,oS,CE,f_,pS,TS,ES,IS,XV,Vh,jh,xS,OE,PE,iz,WS,SA],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),qH);function ZH(e,t){return t?function(n){return n.pipe(ZH(function(n,i){return Ee(e(n,i)).pipe(ye(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new KH(e))}}var KH=function(){function e(t){Z(this,e),this.project=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new QH(e,this.project))}}]),e}(),QH=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return Y(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new Pe(this),n=this.destination;n.add(t);var i=De(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(Oe);function XH(e,t){1&e&&(Bs(0),bl(1),$u(2,"translate"),Rs()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.connectionInProgress"),"... "))}function JH(e,t){if(1&e&&(Bs(0),bl(1),Rs()),2&e){var n=qs(2);Yo(1),kl(" ",n.ldapTest.result," ")}}function $H(e,t){if(1&e&&(Is(0,"div",16),Ss(1,XH,3,3,"ng-container",17),Ss(2,JH,2,1,"ng-container",17),Ts()),2&e){var n=qs();Yo(1),Os("ngIf",n.loadingTest),Yo(1),Os("ngIf",""!==n.ldapTest.result)}}var eU,tU=((eU=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.notificationService=o,this.alertController=a,this.loadingTest=!1}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"testLdap",value:function(){var e=this;this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Mw(function(){e.notificationService.success("lang.ldapUpdated")}),ZH(function(){return e.http.get("../rest/configurations/"+e.ldap.id+"/connection",{params:{login:e.ldapTest.login,password:e.ldapTest.password}})}),Mw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),Lw(function(){return e.loadingTest=!1}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(Mw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),Lw(function(){return e.loadingTest=!1}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||eU)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps(WP),Ps(ME))},eU.\u0275cmp=Ft({type:eU,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"form",3,4),js("ngSubmit",function(){return t.testLdap()}),Is(9,"ion-content",null,5),Is(11,"ion-item"),Is(12,"ion-label",6),bl(13),$u(14,"translate"),Ts(),Is(15,"ion-input",7),js("ngModelChange",function(e){return t.ldapTest.login=e}),Ts(),Ts(),Is(16,"ion-item"),Is(17,"ion-label",6),bl(18),$u(19,"translate"),Ts(),Is(20,"ion-input",8),js("ngModelChange",function(e){return t.ldapTest.password=e}),Ts(),Ts(),Is(21,"ion-card"),Is(22,"ion-card-header"),Is(23,"ion-card-subtitle",9),bl(24),$u(25,"translate"),Ts(),Ts(),Is(26,"ion-card-content"),Is(27,"ion-item"),Is(28,"ion-label",1),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-input",10),js("ngModelChange",function(e){return t.ldap.value.uri=e}),Ts(),Ts(),Is(32,"ion-item"),Is(33,"ion-label",1),bl(34),$u(35,"translate"),Ts(),Ms(36,"ion-input",11),Ts(),Ss(37,$H,3,2,"div",12),Ts(),Ts(),Ts(),Is(38,"ion-footer",13),Is(39,"ion-toolbar"),Is(40,"ion-buttons",14),Is(41,"ion-button",15),Is(42,"ion-label"),bl(43),$u(44,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(5),wl(ec(6,14,"lang.connectionTest")),Yo(8),kl("",ec(14,16,"lang.login")," *"),Yo(2),Os("ngModel",t.ldapTest.login),Yo(3),kl("",ec(19,18,"lang.password")," *"),Yo(2),Os("ngModel",t.ldapTest.password),Yo(4),kl("",ec(25,20,"lang.ldapInformations")," :"),Yo(5),kl("",ec(30,22,"lang.uri")," :"),Yo(2),Os("ngModel",t.ldap.value.uri),Yo(3),kl("",ec(35,24,"lang.login")," :"),Yo(2),Os("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),Yo(1),Os("ngIf",""!==t.ldapTest.result||t.loadingTest),Yo(4),Os("disabled",!n.form.valid||t.loadingTest),Yo(2),wl(ec(44,26,"lang.connectionTest"))}},directives:[kS,tE,aS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Lm,my,sS,uS,cS,lS,jh,bS,oS],pipes:[jP],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),eU);function nU(e,t){if(1&e){var n=Fs();Is(0,"ion-button",18),js("click",function(){return En(n),qs().checkConnection()}),Is(1,"ion-label",15),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),wl(ec(3,1,"lang.connectionTest")))}function iU(e,t){if(1&e){var n=Fs();Is(0,"ion-button",19),js("click",function(){return En(n),qs().delete()}),Is(1,"ion-label",15),bl(2),$u(3,"translate"),Ts(),Ts()}if(2&e){var i=qs();Os("disabled","ldap"===i.authService.authMode&&1===i.ldap.count),Yo(2),wl(ec(3,2,"lang.delete"))}}var rU,oU=((rU=function(){function e(t,n,i,r,o,a,s,l,u){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.modalController=u,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.ldapCreation"),e.loading=!1):(e.creationMode=!1,e.http.get("../rest/configurations/"+t.id).pipe(ye(function(e){return e.configuration}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldap=t,e.ldapClone=JSON.parse(JSON.stringify(e.ldap)),e.title=e.ldap.label}}))})}},{key:"canValidate",value:function(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}},{key:"onSubmit",value:function(){this.creationMode?this.createLdap():this.modifyLdap()}},{key:"modifyLdap",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapUpdated")}})}},{key:"createLdap",value:function(){var e=this;this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapAdded")}})}},{key:"delete",value:function(){var e=this;this.dialog.open(Zj,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/configurations/"+e.ldap.id).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/connections/ldaps"])}},{key:"checkConnection",value:function(e){return t=this,i=U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:tU,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||rU)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(LE))},rU.\u0275cmp=Ft({type:rU,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Is(7,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-content"),Is(10,"ion-item"),Is(11,"ion-label",6),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",7),js("ngModelChange",function(e){return t.ldap.label=e}),Ts(),Ts(),Is(15,"ion-item"),Is(16,"ion-label",6),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-input",8),js("ngModelChange",function(e){return t.ldap.value.uri=e}),Ts(),Ts(),Is(20,"ion-item"),Is(21,"ion-label",6),bl(22),$u(23,"translate"),Ts(),Is(24,"ion-input",9),js("ngModelChange",function(e){return t.ldap.value.baseDN=e}),Ts(),Is(25,"ion-note"),bl(26,"ex: dc=maarch,dc=com"),Ts(),Ts(),Is(27,"ion-item"),Is(28,"ion-label",6),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-input",10),js("ngModelChange",function(e){return t.ldap.value.prefix=e}),Ts(),Is(32,"ion-note"),bl(33,"ex: MAARCH"),Ts(),Ts(),Is(34,"ion-item"),Is(35,"ion-label",6),bl(36),$u(37,"translate"),Ts(),Is(38,"ion-input",11),js("ngModelChange",function(e){return t.ldap.value.suffix=e}),Ts(),Is(39,"ion-note"),bl(40,"ex: @maarch.com"),Ts(),Ts(),Is(41,"ion-item",12),Is(42,"div",13),Is(43,"ion-button",14),Is(44,"ion-label",15),bl(45),$u(46,"translate"),Ts(),Ts(),Ss(47,nU,4,3,"ion-button",16),Ss(48,iU,4,4,"ion-button",17),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(6),wl(t.title),Yo(6),kl("",ec(13,16,"lang.label")," *"),Yo(2),Os("ngModel",t.ldap.label),Yo(3),kl("",ec(18,18,"lang.uri")," *"),Yo(2),Os("ngModel",t.ldap.value.uri),Yo(3),wl(ec(23,20,"lang.baseDN")),Yo(2),Os("ngModel",t.ldap.value.baseDN),Yo(5),wl(ec(30,22,"lang.prefix")),Yo(2),Os("ngModel",t.ldap.value.prefix),Yo(5),wl(ec(37,24,"lang.suffix")),Yo(2),Os("ngModel",t.ldap.value.suffix),Yo(5),Os("disabled",!n.form.valid||!t.canValidate()),Yo(2),wl(ec(46,26,"lang.validate")),Yo(2),Os("ngIf",!t.creationMode),Yo(1),Os("ngIf",!t.creationMode)}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Lm,my,FS,oS,jh],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),rU);function aU(e,t){if(1&e&&(Is(0,"ion-item"),Ms(1,"ion-icon",13),Is(2,"ion-label",14),bl(3),$u(4,"translate"),Ts(),Ts()),2&e){var n=qs();Yo(1),Os("color","close-outline"===n.emailSendResult.icon?"danger":"primary")("name",n.emailSendResult.icon),Yo(1),Os("color","close-outline"===n.emailSendResult.icon?"danger":"primary"),Yo(1),wl(ec(4,4,n.emailSendResult.msg))}}function sU(e,t){if(1&e&&(Is(0,"div",15),bl(1),Ts()),2&e){var n=qs();Yo(1),kl(" ",n.emailSendResult.debug," ")}}var lU,uU=((lU=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.translate=n,this.dialog=i,this.notificationService=r,this.alertController=o,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"testEmailSend",value:function(){var e=this;this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};var t={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",t).pipe(Mw(function(t){e.emailSendResult=t.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:t.informations,error:!0}}),Lw(function(){return e.emailSendLoading=!1})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||lU)(Ps(Tb),Ps(zP),Ps(KF),Ps(WP),Ps(ME))},lU.\u0275cmp=Ft({type:lU,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"form",3,4),js("ngSubmit",function(){return t.testEmailSend()}),Is(9,"ion-content",null,5),Is(11,"ion-item"),Is(12,"ion-label",6),bl(13),$u(14,"translate"),Ts(),Is(15,"ion-input",7),js("ngModelChange",function(e){return t.recipientTest=e}),Ts(),Ts(),Ss(16,aU,5,6,"ion-item",8),Ss(17,sU,2,1,"div",9),Ts(),Is(18,"ion-footer",10),Is(19,"ion-toolbar"),Is(20,"ion-buttons",11),Is(21,"ion-button",12),Is(22,"ion-label"),bl(23),$u(24,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(5),wl(ec(6,9,"lang.emailSendTest")),Yo(8),kl("",ec(14,11,"lang.mailTo")," *"),Yo(2),Os("ngModel",t.recipientTest)("disabled",t.emailSendLoading),Yo(1),Os("ngIf",""!=t.emailSendResult.msg),Yo(1),Os("ngIf",t.emailSendResult.error),Yo(4),Os("disabled",!n.form.valid||t.emailSendLoading),Yo(2),wl(ec(24,13,"lang.connectionTest"))}},directives:[kS,tE,aS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Xy,Lm,my,jh,bS,oS,xS],pipes:[jP],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),lU);function cU(e,t){if(1&e&&(Is(0,"ion-select-option",27),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n.id),Yo(1),kl("",ec(2,2,n.label)," ")}}function dU(e,t){if(1&e&&(Is(0,"ion-select-option",27),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n.id),Yo(1),kl(" ",ec(2,2,n.label)," ")}}function hU(e,t){if(1&e){var n=Fs();Is(0,"form",5,6),js("ngSubmit",function(){return En(n),qs().onSubmit()}),Is(2,"ion-content"),Is(3,"ion-item"),Is(4,"ion-label",7),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-select",8),js("ngModelChange",function(e){return En(n),qs().sendmail.type=e}),Ss(8,cU,3,4,"ion-select-option",9),Ts(),Ts(),Is(9,"ion-grid"),Is(10,"ion-row"),Is(11,"ion-col",10),Is(12,"ion-item"),Is(13,"ion-label",7),bl(14),$u(15,"translate"),Ts(),Is(16,"ion-select",11),js("ngModelChange",function(e){return En(n),qs().sendmail.secure=e}),Ss(17,dU,3,4,"ion-select-option",9),Ts(),Ts(),Ts(),Is(18,"ion-col",12),Is(19,"ion-item"),Is(20,"ion-label",7),bl(21),$u(22,"translate"),Ts(),Is(23,"ion-input",13),js("ngModelChange",function(e){return En(n),qs().sendmail.host=e}),Ts(),Ts(),Ts(),Is(24,"ion-col",10),Is(25,"ion-item"),Is(26,"ion-label",7),bl(27),$u(28,"translate"),Ts(),Is(29,"ion-input",14),js("ngModelChange",function(e){return En(n),qs().sendmail.port=e}),Ts(),Ts(),Ts(),Ts(),Ts(),Is(30,"ion-item"),Is(31,"ion-toggle",15),js("ngModelChange",function(e){return En(n),qs().sendmail.auth=e})("ngModelChange",function(){return En(n),qs().cleanAuthInfo()}),Ts(),Is(32,"ion-label"),bl(33),$u(34,"translate"),Ts(),Ts(),Is(35,"ion-item"),Is(36,"ion-label",7),bl(37),$u(38,"translate"),Ts(),Is(39,"ion-input",16),js("ngModelChange",function(e){return En(n),qs().sendmail.user=e}),Ts(),Ts(),Is(40,"ion-item",17),Is(41,"ion-button",18),js("click",function(){En(n);var e=qs();return e.hidePassword=!e.hidePassword}),Ms(42,"ion-icon",19),Ts(),Is(43,"ion-label",7),bl(44),Ts(),Is(45,"ion-input",20),js("ngModelChange",function(e){return En(n),qs().sendmail.password=e}),Ts(),Ts(),Is(46,"ion-item"),Is(47,"ion-label",7),bl(48),$u(49,"translate"),Ts(),Is(50,"ion-input",21),js("ngModelChange",function(e){return En(n),qs().sendmail.from=e}),Ts(),Ts(),Is(51,"ion-item",22),Is(52,"div",23),Is(53,"ion-button",24),js("click",function(){return En(n),qs().checkConnection()}),Is(54,"ion-label",25),bl(55),$u(56,"translate"),Ts(),Ts(),Is(57,"ion-button",26),Is(58,"ion-label",25),bl(59),$u(60,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=Es(1),r=qs();Yo(5),kl("",ec(6,34,"lang.configurationType")," *"),Yo(2),Os("ngModel",r.sendmail.type),Yo(1),Os("ngForOf",r.smtpTypeList),Yo(6),kl("",ec(15,36,"lang.smtpAuth")," * "),Yo(2),Os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.secure)("value",r.sendmail.secure),Yo(1),Os("ngForOf",r.smtpSecList),Yo(4),kl("",ec(22,38,"lang.host")," *"),Yo(2),Os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.host),Yo(4),kl("",ec(28,40,"lang.port")," *"),Yo(2),Os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.port),Yo(2),Os("ngModel",r.sendmail.auth)("checked",r.sendmail.auth)("disabled","smtp"!=r.sendmail.type),Yo(2),wl(ec(34,42,"lang.enableAuth")),Yo(4),kl("",ec(38,44,"lang.id")," *"),Yo(2),Os("ngModel",r.sendmail.user)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type),Yo(3),Os("name",r.hidePassword?"eye-outline":"eye-off-outline"),Yo(2),xl("",r.passwordLanguage," ",r.sendmail.passwordAlreadyExists?"":"*",""),Yo(1),Os("type",r.hidePassword?"password":"text")("ngModel",r.sendmail.password)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type)("required",!r.sendmail.passwordAlreadyExists),Yo(3),wl(ec(49,46,"lang.mailFrom")),Yo(2),Os("ngModel",r.sendmail.from)("disabled","smtp"!=r.sendmail.type),Yo(5),wl(ec(56,48,"lang.connectionTest")),Yo(2),Os("disabled",!i.form.valid||!r.canValidate()),Yo(2),wl(ec(60,50,"lang.validate"))}}var fU,pU=((fU=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.route=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.authService=s,this.modalController=l,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(){e.http.get("../rest/configurations/1").pipe(ye(function(e){return e.configuration}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.sendmail=t.value,e.sendmailLabel=t.label,e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.title=e.translate.instant("lang.manage_email_configuration"),e.passwordLanguage=e.translate.instant(e.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}},{key:"canValidate",value:function(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.notificationService.success("lang.emailConfigurationUpdated")}})}},{key:"cleanAuthInfo",value:function(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}},{key:"checkConnection",value:function(e){return t=this,i=U().mark(function e(){var t,n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(this.authService.user)),JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit(),e.next=4,this.modalController.create({component:uU,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:t.email}});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||fU)(Ps(Tb),Ps(zP),Ps(Uk),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(LE))},fU.\u0275cmp=Ft({type:fU,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Ss(7,hU,61,52,"form",4)),2&e&&(Os("translucent",!0),Yo(6),wl(t.title),Yo(1),Os("ngIf",!t.loading))},directives:[kS,tE,aS,RS,iS,AE,$S,jh,yy,Fm,py,pS,ES,IS,YS,CA,Yy,Lm,my,Vh,wS,US,fS,SS,SA,_A,eE,xA,oS,xS,Xy,ZS],pipes:[jP],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),fU);function gU(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function vU(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function mU(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(i,r),a||(i=r=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return i=this,r=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}}(mU.prototype._strokeUpdate,this.throttle):mU.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}gU.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},gU.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},gU.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},vU.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,o=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var s=o-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=o,n=a}return e},vU.prototype._point=function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e},mU.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},mU.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/r,a=n.height||this._canvas.height/r;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,o,a)},this._isEmpty=!1},mU.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},mU.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},mU.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},mU.prototype.isEmpty=function(){return this._isEmpty},mU.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},mU.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],r=i&&t.distanceTo(i)<this.minDistance;if(!i||!r){var o=this._addPoint(t),a=o.curve,s=o.widths;a&&s&&this._drawCurve(a,s.start,s.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},mU.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},mU.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},mU.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},mU.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},mU.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new gU(e-i.left,t-i.top,n||(new Date).getTime())},mU.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var r=new vU(t[1],i,n.c1,t[2]),o=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:o}}return{}},mU.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,r=e.y-t.y,o=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),h=Math.sqrt(o*o+a*a),f=h/(d+h),p=t.x-(u+(s-u)*f),g=t.y-(c+(l-c)*f);return{c1:new gU(s+p,l+g),c2:new gU(u+p,c+g)}},mU.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},mU.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},mU.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},mU.prototype._drawCurve=function(e,t,n){var i=this._ctx,r=n-t,o=Math.floor(e.length());i.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,d=c*c,h=d*c,f=h*e.startPoint.x;f+=3*d*s*e.control1.x,f+=3*c*l*e.control2.x;var p=h*e.startPoint.y;p+=3*d*s*e.control1.y,p+=3*c*l*e.control2.y,this._drawPoint(f+=u*e.endPoint.x,p+=u*e.endPoint.y,t+u*r)}i.closePath(),i.fill()},mU.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},mU.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var r=e[i];if(r.length>1)for(var o=0;o<r.length;o+=1){var a=r[o],s=new gU(a.x,a.y,a.time),l=a.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(s);else if(o!==r.length-1){var u=this._addPoint(s),c=u.curve,d=u.widths;c&&d&&t(c,d,l)}}else this._reset(),n(r[0])}},mU.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,o=n.height/i,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)});var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+o+'" width="'+r+'" height="'+o+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var d=0;d<c.length;d+=1)u.appendChild(c[d].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},mU.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},mU.prototype.toData=function(){return this._data};var yU,bU,wU=mU,kU=((bU=function(){function e(t){Z(this,e),this.elementRef=t,this.options=this.options||{},this.onBeginEvent=new ac,this.onEndEvent=new ac}return Y(e,[{key:"ngAfterContentInit",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new wU(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}},{key:"ngOnDestroy",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}},{key:"resizeCanvas",value:function(){var e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}},{key:"toData",value:function(){return this.signaturePad?this.signaturePad.toData():[]}},{key:"fromData",value:function(e){this.signaturePad.fromData(e)}},{key:"toDataURL",value:function(e,t){return this.signaturePad.toDataURL(e,t)}},{key:"fromDataURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}},{key:"clear",value:function(){this.signaturePad.clear()}},{key:"isEmpty",value:function(){return this.signaturePad.isEmpty()}},{key:"off",value:function(){this.signaturePad.off()}},{key:"on",value:function(){this.signaturePad.on()}},{key:"set",value:function(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}},{key:"onBegin",value:function(){this.onBeginEvent.emit(!0)}},{key:"onEnd",value:function(){this.onEndEvent.emit(!0)}},{key:"queryPad",value:function(){return this.signaturePad}}]),e}()).\u0275fac=function(e){return new(e||bU)(Ps(Kl))},bU.\u0275cmp=Ft({type:bU,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&Ms(0,"canvas")},encapsulation:2}),bU),xU=((yU=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yU)},yU.\u0275mod=jt({type:yU}),yU.\u0275inj=at({imports:[[]]}),yU),_U=["signaturePad"],AU=function(e,t){return{"border-color":e,"background-color":t}};function CU(e,t){if(1&e){var n=Fs();Bs(0,20),Is(1,"input",21),js("change",function(){En(n);var e=t.$implicit;return qs().onColorChange(e)}),Ts(),Rs()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Os("checked",0===r.idx)("value",i.id)("ngStyle",Ku(3,AU,i.id,i.id))}}var SU,EU=((SU=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.notificationService=r,this.authService=o,this.localStorage=a,this.modalController=s,this.reloaded=new ac,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}return Y(e,[{key:"ngAfterViewInit",value:function(){this.localStorage.get("signature")}},{key:"onColorChange",value:function(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}},{key:"onDotChange",value:function(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}},{key:"drawComplete",value:function(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}},{key:"drawClear",value:function(){this.signaturePad.clear(),this.haveSigned=!1}},{key:"closePad",value:function(){this.modalController.dismiss("cancel")}},{key:"saveSignature",value:function(){var e=this;this.disableState=!0,this.haveSigned=!0;var t=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(t));var n={id:0,encodedSignature:t,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",n).pipe(Lw(function(){e.disableState=!1})).subscribe(function(t){n.id=t.signatureId,e.signaturesService.signaturesList.unshift({id:n.id,encodedSignature:n.encodedSignature}),e.modalController.dismiss("reload"),e.notificationService.success("lang.signatureRegistered")})}}]),e}()).\u0275fac=function(e){return new(e||SU)(Ps(zP),Ps(Tb),Ps($P),Ps(WP),Ps(tO),Ps(eO),Ps(LE))},SU.\u0275cmp=Ft({type:SU,selectors:[["app-pad"]],viewQuery:function(e,t){var n;1&e&&bc(_U,1),2&e&&yc(n=kc())&&(t.signaturePad=n.first)},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",2,"margin-top","10px",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.closePad()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-header",0),Is(9,"ion-toolbar",5),Is(10,"section",6),Is(11,"div",7),Ss(12,CU,2,6,"ng-container",8),Ts(),Is(13,"button",9),js("click",function(){return t.drawClear()}),bl(14),$u(15,"translate"),Ts(),Is(16,"div",7),Is(17,"input",10),js("input",function(e){return t.onDotChange(e.target.value)}),Ts(),Ts(),Ts(),Ts(),Ts(),Is(18,"ion-content",null,11),Is(20,"article",12),Is(21,"section",13),Is(22,"signature-pad",14,15),js("onEndEvent",function(){return t.drawComplete()}),Ts(),Ts(),Ms(24,"div",16),Ts(),Ts(),Is(25,"ion-footer",17),Is(26,"ion-button",18),js("click",function(){return t.closePad()}),Is(27,"ion-label"),bl(28),$u(29,"translate"),Ts(),Ts(),Is(30,"ion-button",19),js("click",function(){return t.saveSignature()}),Is(31,"ion-label"),bl(32),$u(33,"translate"),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,8,"lang.createNewSignature")),Yo(5),Os("translucent",!0),Yo(4),Os("ngForOf",t.penColors),Yo(2),wl(ec(15,10,"lang.erase")),Yo(8),Os("options",t.signaturePadOptions),Yo(6),wl(ec(29,12,"lang.cancel")),Yo(4),wl(ec(33,14,"lang.save")))},directives:[kS,tE,$S,aS,oS,xS,Vh,pS,kU,bS,IS,$h],pipes:[jP],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),SU),PU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},OU=["slides"];function DU(e,t){if(1&e&&(Is(0,"small",10),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2);Yo(1),xl("",n.currentWorflow.signaturePositions.length," ",ec(2,2,"lang.prePositionings"),"")}}function IU(e,t){if(1&e){var n=Fs();Is(0,"ion-header",4),Is(1,"ion-toolbar",5),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ss(5,DU,3,4,"small",6),Ts(),Is(6,"ion-buttons",7),Is(7,"ion-button",8),js("click",function(){return En(n),qs().dismissModal()}),Ms(8,"ion-icon",9),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(3),kl("",ec(4,3,"lang.signatures")," "),Yo(2),Os("ngIf",i.signPosMode)}}function TU(e,t){1&e&&(Is(0,"ion-item",26),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.emptySignList")))}function MU(e,t){1&e&&(Is(0,"ion-label",37),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.substitutedSignature")))}function BU(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",38),Is(1,"ion-button",39),js("click",function(){En(n);var e=qs().$implicit;return qs(4).selectSignature(e)}),$u(2,"translate"),Ms(3,"ion-icon",40),Ts(),Ts()}2&e&&(Yo(1),Os("title",ec(2,1,"lang.selectSignature")))}function RU(e,t){if(1&e){var n=Fs();Is(0,"ion-card",30),Is(1,"img",31),js("click",function(){En(n);var e=t.$implicit,i=qs(4);return"document"===i.target?i.selectSignature(e):""}),Ts(),Is(2,"ion-toolbar",32),Ss(3,MU,3,3,"ion-label",33),Ss(4,BU,4,3,"ion-buttons",34),Is(5,"ion-buttons",7),Is(6,"ion-button",35),js("click",function(){En(n);var e=t.$implicit;return qs(4).removeSignature(e)}),$u(7,"translate"),Ms(8,"ion-icon",36),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=qs(4);Yo(1),Xs("id","imgSign_",r,""),Os("src",o.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Kr),Yo(2),Os("ngIf",i.substituted),Yo(1),Os("ngIf","document"===o.target),Yo(2),Os("title",ec(7,5,"lang.removeSignature"))}}function LU(e,t){if(1&e&&(Is(0,"ion-slide",27),Is(1,"div",28),Ss(2,RU,9,7,"ion-card",29),Ts(),Ts()),2&e){var n=t.$implicit;Yo(2),Os("ngForOf",n)}}function FU(e,t){if(1&e&&(Is(0,"ion-slides",22,23),Ss(2,TU,4,3,"ion-item",24),Ss(3,LU,3,1,"ion-slide",25),Ts()),2&e){var n=qs(2);al("hideSwiper",0===n.signaturesList.length),Os("options",n.slideOpts),Yo(2),Os("ngIf",0===n.signaturesList.length),Yo(1),Os("ngForOf",n.signaturesList)}}function NU(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",17),js("click",function(){return En(n),qs(2).addNewDate()}),$u(1,"translate"),Ms(2,"ion-icon",41),Ts()}2&e&&Os("title",ec(1,1,"lang.addNewDate"))}function VU(e,t){if(1&e){var n=Fs();Bs(0),Ss(1,FU,4,5,"ion-slides",11),Is(2,"ion-fab",12),Is(3,"ion-fab-button",13),Ms(4,"ion-icon",14),Ts(),Is(5,"ion-fab-list",15),Ss(6,NU,3,3,"ion-fab-button",16),Is(7,"ion-fab-button",17),js("click",function(){return En(n),Es(14).click()}),$u(8,"translate"),Ms(9,"ion-icon",18),Ts(),Is(10,"ion-fab-button",17),js("click",function(){return En(n),qs().openSignatures()}),$u(11,"translate"),Ms(12,"ion-icon",19),Ts(),Ts(),Ts(),Is(13,"input",20,21),js("change",function(e){return En(n),qs().handleFileInput(e.target.files)}),Ts(),Rs()}if(2&e){var i=qs();Yo(1),Os("ngIf",!i.loading),Yo(5),Os("ngIf","document"===i.target),Yo(1),Os("title",ec(8,4,"lang.importNewSignature")),Yo(3),Os("title",ec(11,6,"lang.createNewSignature"))}}function zU(e,t){1&e&&(Is(0,"div",42),Ms(1,"ion-icon",43),Is(2,"div"),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),kl(" ",ec(4,1,"lang.certifiedDocumentMsg")," "))}var jU,HU=((jU=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.authService=r,this.modalController=o,this.translate=a,this.localStorage=s,this.alertController=l,this.bottomSheetRef=u,this.sanitization=c,this.renderer=d,this.target="document",this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}return Y(e,[{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}},{key:"ngOnInit",value:function(){this.initSignatures(),"document"===this.target?(this.getImgDimensions(this.content),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns()):this.loading=!1}},{key:"initSignatures",value:function(){var e=this;this.signaturesList=[];var t=[],n=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(function(i){6===n?(e.signaturesList.push(t),t=[i],n=0):(t.push(i),n++)}),t.length>0&&this.signaturesList.push(t)}},{key:"ionViewDidEnter",value:function(){this.loading=!1}},{key:"openSignatures",value:function(){return PU(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:EU,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:"reload"===e.sent.data&&this.initSignatures();case 10:case"end":return e.stop()}},e,this)}))}},{key:"mustPrePosSignature",value:function(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}},{key:"selectSignature",value:function(e){var t,n=this,i=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=i.naturalWidth,this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,t=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=t;var r=this.currentWorflow.signaturePositions.filter(function(e){return e.page===n.signaturesService.currentPage}),o=this.currentWorflow.signaturePositions.filter(function(e){return e.page!==n.signaturesService.currentPage});this.mustPrePosSignature(r,o)?(r.length>0&&(e.positionX=r[0].positionX,e.positionY=r[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),o.length>0&&o.forEach(function(t){e.positionX=t.positionX,e.positionY=t.positionY,n.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(e){n.notificationService.success(e)}),this.modalController.dismiss(0===r.length&&o.length>0?{redirectPage:o[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}},{key:"addNewDate",value:function(){var e=this,t=this.currentWorflow.datePositions.filter(function(t){return t.page===e.signaturesService.currentPage}),n=this.currentWorflow.datePositions.filter(function(t){return t.page!==e.signaturesService.currentPage});if(0===t.length&&0===n.length){var i={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};i.positionX=60,i.positionY=80,this.storeDate(i,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else t.length>0&&this.storeDate({width:t[0].width,height:t[0].height,positionX:t[0].positionX,positionY:t[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),n.forEach(function(t){e.storeDate({width:t.width,height:t.height,positionX:t.positionX,positionY:t.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(t){e.notificationService.success(t)}),this.modalController.dismiss(0===t.length&&n.length>0?{redirectPage:n[0].page}:"success")}},{key:"storeSignature",value:function(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"storeDate",value:function(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"removeSignature",value:function(e){return PU(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.wantDeleteSignature"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/users/"+i.authService.user.id+"/signatures/"+e.id).subscribe(function(){i.signaturesService.signaturesList=i.signaturesService.signaturesList.filter(function(t){return t.id!==e.id}),i.notificationService.success("lang.signatureDeleted"),i.initSignatures()},function(e){i.notificationService.error(e.error.errors)})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"toggleAllPage",value:function(){this.inAllPage=!this.inAllPage}},{key:"tapEvent",value:function(e,t,n){var i=this;this.count++,setTimeout(function(){1===i.count?i.count=0:i.count>1&&(i.count=0,i.selectSignature(e))},250)}},{key:"handleFileInput",value:function(e){var t=this,n=e.item(0);if(n.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var r=i.result.toString().replace("data:"+n.type+";base64,","");t.localStorage.save("signature",JSON.stringify(r));var o={id:0,encodedSignature:r,format:"png"};t.http.post("../rest/users/"+t.authService.user.id+"/signatures",o).subscribe(function(e){o.id=e.signatureId,t.signaturesService.signaturesList.unshift({id:o.id,encodedSignature:o.encodedSignature}),t.initSignatures(),t.notificationService.success("lang.signatureRegistered")})},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}},{key:"getImgDimensions",value:function(e){var t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,function(e){return e.charCodeAt(0)}),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}]),e}()).\u0275fac=function(e){return new(e||jU)(Ps(Tb),Ps($P),Ps(WP),Ps(tO),Ps(LE),Ps(zP),Ps(eO),Ps(ME),Ps(gF),Ps(pp),Ps(Jl))},jU.\u0275cmp=Ft({type:jU,selectors:[["app-signatures"]],viewQuery:function(e,t){var n;1&e&&bc(OU,1),2&e&&yc(n=kc())&&(t.slides=n.first)},inputs:{currentWorflow:"currentWorflow",content:"content",target:"target"},decls:5,vars:3,consts:[[3,"translucent",4,"ngIf"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[1,"secondary"],["pager","true",3,"options","hideSwiper",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click",4,"ngIf"],["color","light",3,"title","click"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["class","emptySignList","lines","none",4,"ngIf"],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],["lines","none",1,"emptySignList"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],["color","default",2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start",4,"ngIf"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["name","calendar-outline"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(Ss(0,IU,9,5,"ion-header",0),Is(1,"ion-content",1),js("wheel",function(e){return t.signaturesService.stampLock?null:t.scroll(e)}),Ss(2,VU,15,8,"ng-container",2),Ss(3,zU,5,3,"ng-template",null,3,Cc),Ts()),2&e){var n=Es(4);Os("ngIf","document"===t.target),Yo(2),Os("ngIf",!t.signaturesService.stampLock)("ngIfElse",n)}},directives:[jh,pS,kS,tE,$S,aS,oS,xS,vS,mS,yS,QS,Vh,ES,IS,KS,sS],pipes:[jP],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}.emptySignList[_ngcontent-%COMP%]{text-align:center;display:inherit;height:100%!important;font-size:30px;opacity:.5}.hideSwiper[_ngcontent-%COMP%]{--bullet-background-active:none}"]}),jU),UU=["mainContent"],WU=["canvas"],GU=["img"],qU=["nav"],YU=function(e,t){return{"border-color":e,"background-color":t}};function ZU(e,t){if(1&e&&(Bs(0,28),Ms(1,"input",29),Rs()),2&e){var n=t.$implicit,i=qs(2);Yo(1),Os("checked",0===i.idx)("value",n.id)("ngStyle",Ku(3,YU,n.id,n.id))}}function KU(e,t){if(1&e){var n=Fs();Is(0,"ion-content",null,8),Is(2,"div",9),Ss(3,ZU,2,6,"ng-container",10),Ms(4,"hr"),Is(5,"i",11),js("click",function(){return En(n),qs().undo()}),Ts(),Ts(),Is(6,"ion-fab",12),Is(7,"ion-fab-button",13),Ms(8,"ion-icon",14),Ts(),Is(9,"ion-fab-list",15),Is(10,"ion-fab-button",16),js("click",function(e){En(n);var t=qs();return e.stopPropagation(),t.editMode=!t.editMode}),$u(11,"translate"),$u(12,"translate"),Ms(13,"ion-icon",17),Ts(),Is(14,"ion-fab-button",18),js("click",function(e){En(n);var t=qs();return e.stopPropagation(),t.getImageDimensions(!t.originalSize)}),$u(15,"translate"),$u(16,"translate"),Ms(17,"ion-icon",17),Ts(),Ts(),Ts(),Is(18,"div",19),Is(19,"drag-scroll",20,21),Is(21,"div",22,23),Is(23,"ion-img",24,25),js("ionImgDidLoad",function(e){return En(n),qs().imageLoaded(e)}),Ts(),Ms(25,"canvas",26,27),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(3),Os("ngForOf",i.penColors),Yo(7),Os("color",i.editMode?"danger":"success")("title",i.editMode?ec(11,19,"lang.lockEdition"):ec(12,21,"lang.unlockEdition")),Yo(3),Os("name",i.editMode?"lock-closed-outline":"lock-open-outline"),Yo(1),Os("title",i.originalSize?ec(15,23,"lang.originalSize"):ec(16,25,"lang.screenSize")),Yo(3),Os("name",i.originalSize?"scan-outline":"crop-outline"),Yo(2),ol("max-width",i.areaWidth,"px"),Yo(2),ol("width",i.areaWidth,"px")("height",i.areaHeight,"px"),Yo(2),ol("width",i.areaWidth,"px")("height",i.areaHeight,"px"),Os("src",i.content),Yo(2),ol("display",i.editMode?"initial":"none")}}var QU,XU,JU,$U=((JU=function(){function e(t,n,i,r,o){Z(this,e),this.signaturesService=t,this.notificationService=n,this.authService=i,this.localStorage=r,this.modalController=o,this.triggerEvent=new ac,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}return Y(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.loading=!1},100)}},{key:"imageLoaded",value:function(e){this.getImageDimensions(!1)}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.originalSize=t;var n=new Image;n.onload=function(i){e.areaWidth=i.target.naturalWidth,e.areaHeight=i.target.naturalHeight,t||e.getAreaDimension(),e.editMode&&setTimeout(function(){var t,i,r,o=$("#myBounds").offset();t=1===Math.sign(o.top)||e.precentScrollTop<=Math.abs(o.top)?e.precentScrollTop-o.top:-1===Math.sign(o.top)&&e.precentScrollTop<=-Math.sign(o.top)?2*(e.precentScrollTop-o.top):100*(e.precentScrollTop-o.top);var a=e.precentScrollLeft-o.left;i=e.precentScrollLeft-document.documentElement.offsetLeft,r=e.precentScrollTop-document.documentElement.offsetTop,i=i/e.areaWidth*100,r=r/e.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(a,t),n.style.transform="translate(-"+i+"%,-"+r+"%) scale(2)",e.initPad()},200)},n.src=this.content}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"initPad",value:function(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}},{key:"validateAnnotation",value:function(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}},{key:"undo",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||JU)(Ps($P),Ps(WP),Ps(tO),Ps(eO),Ps(LE))},JU.\u0275cmp=Ft({type:JU,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){var n;1&e&&(bc(UU,1),bc(WU,1),bc(GU,1),bc(qU,1,ZI)),2&e&&(yc(n=kc())&&(t.mainContent=n.first),yc(n=kc())&&(t.canvas=n.first),yc(n=kc())&&(t.img=n.first),yc(n=kc())&&(t.ds=n.first))},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Ts(),Ts(),Ss(5,KU,27,27,"ion-content",2),Is(6,"ion-footer",3),Is(7,"div",4),Is(8,"ion-button",5),js("click",function(){return t.dismissModal()}),Is(9,"ion-label",6),bl(10),$u(11,"translate"),Ts(),Ts(),Is(12,"ion-button",7),js("click",function(){return t.validateAnnotation()}),Is(13,"ion-label",6),bl(14),$u(15,"translate"),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,5,"lang.annotateDocument")),Yo(2),Os("ngIf",!t.loading),Yo(5),wl(ec(11,7,"lang.cancel")),Yo(4),wl(ec(15,9,"lang.save")))},directives:[kS,tE,$S,jh,bS,oS,IS,pS,Vh,vS,mS,xS,yS,ZI,_S,$h],pipes:[jP],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),JU),eW=((XU=function(){function e(t,n,i){Z(this,e),this.http=t,this.signaturesService=n,this.router=i,this.currentIndex=0,this.offset=0,this.limit=10}return Y(e,[{key:"resfreshDocuments",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(function(n){e.signaturesService.documentsList=n.documents,e.signaturesService.documentsListCount=n.count,t&&e.router.navigate(void 0!==e.signaturesService.documentsList[e.currentIndex]?["/documents/"+e.signaturesService.documentsList[e.currentIndex].id]:e.signaturesService.documentsList.length>0?["/documents/"+e.signaturesService.documentsList[0].id]:["/home"])})}}]),e}()).\u0275fac=function(e){return new(e||XU)(rr(Tb),rr($P),rr(h_))},XU.\u0275prov=rt({token:XU,factory:XU.\u0275fac}),XU),tW=((QU=function(){function e(t,n,i,r){Z(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return Y(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||QU)(Ps($P),Ps(eW),Ps(tO),Ps(fF))},QU.\u0275cmp=Ft({type:QU,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"h1"),Ms(2,"i",1),Ts(),Is(3,"p"),bl(4),$u(5,"translate"),Ts(),Is(6,"p",2),bl(7),Ts(),Is(8,"p",3),bl(9),$u(10,"translate"),$u(11,"date"),$u(12,"translate"),$u(13,"date"),Ts(),Ts()),2&e&&(Yo(4),wl(ec(5,7,"lang.documentRefusedAs")),Yo(3),xl("",t.authService.user.firstname," ",t.authService.user.lastname,""),Yo(2),Al("",ec(10,9,"lang.onRange")," ",tc(11,11,t.date,"dd/MM/yyyy")," ",ec(12,14,"lang.atRange")," ",tc(13,16,t.date,"HH:mm"),""))},pipes:[jP,gf],styles:[""]}),QU),nW=["slides"];function iW(e,t){1&e&&(Is(0,"span",16),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl("(",ec(2,1,"lang.mainDocument"),")"))}function rW(e,t){1&e&&(Is(0,"span",16),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl("(",ec(2,1,"lang.attachment"),")"))}var oW=function(e){return{background:e}};function aW(e,t){if(1&e){var n=Fs();Is(0,"ion-slide"),Is(1,"div",12),Is(2,"div",13),js("click",function(){En(n);var e=t.index;return qs(2).loadDoc(e)}),Ts(),Is(3,"div",14),bl(4),Ss(5,iW,3,3,"span",15),Ss(6,rW,3,3,"span",15),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=qs(2);Yo(2),al("current",r==o.currentDocId),Os("ngStyle",Zu(6,oW,"url("+i.imgContent[1]+") no-repeat scroll center center / contain")),Yo(2),kl(" ",i.title,"\xa0"),Yo(1),Os("ngIf",0==r),Yo(1),Os("ngIf",r>0)}}function sW(e,t){if(1&e&&(Is(0,"ion-slides",9,10),Ss(2,aW,7,8,"ion-slide",11),Ts()),2&e){var n=qs();Os("options",n.slideOpts),Yo(2),Os("ngForOf",n.docList)}}var lW,uW,cW,dW=((uW=function(){function e(t,n,i,r){Z(this,e),this.http=t,this.signaturesService=n,this.sanitizer=i,this.menu=r,this.triggerEvent=new ac,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.docList.forEach(function(t,n){void 0===t.imgContent[1]&&n>0&&e.http.get("../rest/attachments/"+t.id+"/thumbnails/1").subscribe(function(e){t.imgContent[1]="data:image/png;base64,"+e.fileContent})})}},{key:"ngAfterViewInit",value:function(){this.loading=!1}},{key:"loadDoc",value:function(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}}]),e}()).\u0275fac=function(e){return new(e||uW)(Ps(Tb),Ps($P),Ps(pp),Ps(RE))},uW.\u0275cmp=Ft({type:uW,selectors:[["app-document-list"]],viewQuery:function(e,t){var n;1&e&&bc(nW,1),2&e&&yc(n=kc())&&(t.slides=n.first)},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),Is(6,"b",6),bl(7),Ts(),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Is(10,"ion-content",7),js("wheel",function(e){return t.scroll(e)}),Ss(11,sW,3,2,"ion-slides",8),Ts()),2&e&&(Os("translucent",!0),Yo(7),wl(t.docList.length),Yo(1),kl("\xa0",ec(9,4,"lang.attachedElements"),""),Yo(3),Os("ngIf",!t.loading))},directives:[kS,tE,aS,oS,xS,$S,pS,jh,QS,Vh,KS,$h],pipes:[jP],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),uW),hW=((lW=function(){function e(t,n){Z(this,e),this.translate=t,this.latinisePipe=n}return Y(e,[{key:"empty",value:function(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}},{key:"isDate",value:function(e){return e instanceof Date&&!isNaN(e.valueOf())}},{key:"formatFrenchDateToTechnicalDate",value:function(e){if(this.empty(e))return e;var t=e.split("-");return(t=t.concat(t[t.length-1].split(" "))).splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),"".concat(t[2],"-").concat(t[1],"-").concat(t[0]," ").concat(t[3])}},{key:"formatFrenchDateToObjectDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";if(this.empty(e))return e;var n=e.split(t);return(n=n.concat(n[n.length-1].split(" "))).splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date("".concat(n[2],"-").concat(n[1],"-").concat(n[0]," ").concat(n[3]))}},{key:"formatDateObjectToDateString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dd-mm-yyyy";if(null!==e){var i=[];n.split("-").forEach(function(t){if("dd"===t){var n=e.getDate();n=("00"+n).slice(-2),i.push(n)}else if("mm"===t){var r=e.getMonth()+1;r=("00"+r).slice(-2),i.push(r)}else if("yyyy"===t){var o=e.getFullYear();i.push(o)}});var r="";return t&&(r=" 23:59:59"),"".concat(i.join("-")).concat(r)}return e}},{key:"formatSerializedDateToDateString",value:function(e){return this.formatDateObjectToDateString(new Date(e))}},{key:"listSortingDataAccessor",value:function(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}},{key:"filterUnSensitive",value:function(e,t,n){var i=this,r=!1;return t=this.latinisePipe.transform(t),n.forEach(function(n){var o=e[n];"string"!=typeof e[n]&&(o=void 0===o?"":JSON.stringify(o)),r=r||i.latinisePipe.transform(o.toLowerCase()).includes(t)}),r}},{key:"formatBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if("number"==typeof e){if(0===e)return"0 Octet";var n=1024,i=t<0?0:t,r=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+r[o]}return e}}]),e}()).\u0275fac=function(e){return new(e||lW)(rr(zP),rr(kT))},lW.\u0275prov=rt({token:lW,factory:lW.\u0275fac,providedIn:"root"}),lW),fW=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},pW=((cW=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.translate=n,this.notificationService=i,this.signaturesService=r,this.functionsService=o,this.alertController=a}return Y(e,[{key:"sendDocument",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return new Promise(function(s){return fW(n,void 0,void 0,U().mark(function n(){var l,u=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l={},!(this.signaturesService.currentAction>0)){n.next=17;break}if(null!==a){n.next=8;break}return n.next=5,this.getElementsFromDoc();case 5:n.t0=n.sent,n.next=9;break;case 8:n.t0=a;case 9:l.signatures=n.t0,null!==i&&((l=Object.assign(Object.assign({},l),i)).step="hashCertificate"),null!==t&&(l.note=t),null!==r&&(l.signatureLength=r),this.functionsService.empty(o)||(l.tmpUniqueId=o),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,l).pipe(Mw(function(e){s(null===i||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),yw(function(e){return u.notificationService.handleErrors(e),s(403===e.status&&null),nb(!1)})).subscribe(),n.next=18;break;case 17:s(!1);case 18:case"end":return n.stop()}},n,this)}))})}},{key:"getElementsFromDoc",value:function(){return fW(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){return fW(t,void 0,void 0,U().mark(function t(){var n,i,r,o=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=[],i=U().mark(function e(t){var i,r,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.signaturesService.datesContent[t]){e.next=11;break}i=0;case 2:if(!(i<o.signaturesService.datesContent[t].length)){e.next=11;break}return r=o.signaturesService.datesContent[t][i],e.next=6,o.getSvgContent(i);case 6:a=e.sent,n.push({encodedImage:a.replace("data:image/svg+xml;base64,",""),width:r.width,height:r.height,positionX:r.positionX,positionY:r.positionY,type:"SVG",page:t});case 8:i++,e.next=2;break;case 11:o.signaturesService.signaturesContent[t]&&o.signaturesService.signaturesContent[t].forEach(function(e){n.push({encodedImage:e.encodedSignature,width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})}),o.signaturesService.notesContent[t]&&o.signaturesService.notesContent[t].forEach(function(e){n.push({encodedImage:e.fullPath.replace("data:image/png;base64,",""),width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})});case 12:case"end":return e.stop()}},e)}),r=1;case 3:if(!(r<=this.signaturesService.totalPage)){t.next=8;break}return t.delegateYield(i(r),"t0",5);case 5:r++,t.next=3;break;case 8:e(n);case 9:case"end":return t.stop()}},t,this)}))}));case 1:case"end":return e.stop()}},e)}))}},{key:"getSvgContent",value:function(e){return new Promise(function(t){var n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),r=new Blob([i],{type:"image/svg+xml"}),o=new FileReader;o.readAsDataURL(r),o.onloadend=function(){t(o.result)}})}},{key:"checkGroupMail",value:function(e,t){var n=this;return new Promise(function(i){return fW(n,void 0,void 0,U().mark(function n(){var r=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:this.functionsService.empty(e.mailingId)?i([this.signaturesService.mainDocumentId]):this.http.get("../rest/documents/".concat(this.signaturesService.mainDocumentId,"/linkedMailing")).pipe(Mw(function(e){return fW(r,void 0,void 0,U().mark(function n(){var r,o=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.documents.length>1)){n.next=8;break}return n.next=3,this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:function(){i(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:function(){i([o.signaturesService.mainDocumentId])}}]});case 3:return r=n.sent,n.next=6,r.present();case 6:n.next=9;break;case 8:i([this.signaturesService.mainDocumentId]);case 9:case"end":return n.stop()}},n,this)}))}),yw(function(e){return r.notificationService.handleErrors(e),i([]),nb(!1)})).subscribe();case 1:case"end":return n.stop()}},n,this)}))})}}]),e}()).\u0275fac=function(e){return new(e||cW)(rr(Tb),rr(zP),rr(WP),rr($P),rr(hW),rr(ME))},cW.\u0275prov=rt({token:cW,factory:cW.\u0275fac,providedIn:"root"}),cW);Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(e,t){return new Uint8Array(Array.prototype.slice.call(this,e,t))}});var gW=/iPhone/i,vW=/iPod/i,mW=/iPad/i,yW=/\biOS-universal(?:.+)Mac\b/i,bW=/\bAndroid(?:.+)Mobile\b/i,wW=/Android/i,kW=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,xW=/Silk/i,_W=/Windows Phone/i,AW=/\bWindows(?:.+)ARM\b/i,CW=/BlackBerry/i,SW=/BB10/i,EW=/Opera Mini/i,PW=/\b(CriOS|Chrome)(?:.+)Mobile/i,OW=/Mobile(?:.+)Firefox\b/i,DW=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream},IW=S("OmFT");function TW(e,t){var n=0;if(1===e.length)return e[0];for(var i=e.length-1;i>=0;i--)n+=e[e.length-1-i]*Math.pow(2,t*i);return n}function MW(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=n,r=e,o=0,a=Math.pow(2,t),s=1;s<8;s++){if(e<a){var l=void 0;if(i<0)l=new ArrayBuffer(s),o=s;else{if(i<s)return new ArrayBuffer(0);l=new ArrayBuffer(i),o=i}for(var u=new Uint8Array(l),c=s-1;c>=0;c--){var d=Math.pow(2,c*t);u[o-c-1]=Math.floor(r/d),r-=u[o-c-1]*d}return l}a*=Math.pow(2,t)}return new ArrayBuffer(0)}function BW(){for(var e=0,t=0,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var o=0,a=i;o<a.length;o++){var s=a[o];e+=s.length}for(var l=new ArrayBuffer(e),u=new Uint8Array(l),c=0,d=i;c<d.length;c++){var h=d[c];u.set(h,t),t+=h.length}return u}function RW(){var e=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){var t=0===e[0]&&0==(128&e[1]);(255===e[0]&&128&e[1]||t)&&this.warnings.push("Needlessly long format")}for(var n=new ArrayBuffer(this.valueHex.byteLength),i=new Uint8Array(n),r=0;r<this.valueHex.byteLength;r++)i[r]=0;i[0]=128&e[0];for(var o=TW(i,8),a=new ArrayBuffer(this.valueHex.byteLength),s=new Uint8Array(a),l=0;l<this.valueHex.byteLength;l++)s[l]=e[l];return s[0]&=127,TW(s,8)-o}function LW(e,t){var n=e.toString(10);if(t<n.length)return"";for(var i=t-n.length,r=new Array(i),o=0;o<i;o++)r[o]="0";return r.join("").concat(n)}function FW(){if("undefined"==typeof BigInt)throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function NW(e){for(var t=0,n=0,i=0;i<e.length;i++)t+=e[i].byteLength;for(var r=new Uint8Array(t),o=0;o<e.length;o++){var a=e[o];r.set(new Uint8Array(a),n),n+=a.byteLength}return r.buffer}function VW(e,t,n,i){return t instanceof Uint8Array?t.byteLength?n<0?(e.error="Wrong parameter: inputOffset less than zero",!1):i<0?(e.error="Wrong parameter: inputLength less than zero",!1):!(t.byteLength-n-i<0&&(e.error="End of input reached before message was fully decoded (inconsistent offset and length values)",1)):(e.error="Wrong parameter: inputBuffer has zero length",!1):(e.error="Wrong parameter: inputBuffer must be 'Uint8Array'",!1)}S("mNvP"),Math.log(2);var zW=function(){function e(){Z(this,e),this.items=[]}return Y(e,[{key:"write",value:function(e){this.items.push(e)}},{key:"final",value:function(){return NW(this.items)}}]),e}(),jW=[new Uint8Array([1])],HW=new ArrayBuffer(0),UW=new Uint8Array(0);function WW(e){var t;return(t=function(e){E(n,e);var t=O(n);function n(){var e,i;Z(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];e=t.call.apply(t,[this].concat(o));var s=o[0]||{};return e.isHexOnly=null!==(i=s.isHexOnly)&&void 0!==i&&i,e.valueHexView=s.valueHex?IW.BufferSourceConverter.toUint8Array(s.valueHex):UW,e}return Y(n,[{key:"valueHex",get:function(){return this.valueHexView.slice().buffer},set:function(e){this.valueHexView=new Uint8Array(e)}},{key:"fromBER",value:function(e,t,n){var i=e instanceof ArrayBuffer?new Uint8Array(e):e;if(!VW(this,i,t,n))return-1;var r=t+n;return this.valueHexView=i.subarray(t,r),this.valueHexView.length?(this.blockLength=n,r):(this.warnings.push("Zero buffer length"),t)}},{key:"toBER",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.isHexOnly?e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer:(this.error="Flag 'isHexOnly' is not set, abort",HW)}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isHexOnly:this.isHexOnly,valueHex:IW.Convert.ToHex(this.valueHexView)})}}]),n}(e)).NAME="hexBlock",t}var GW=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.blockLength,i=void 0===n?0:n,r=t.error,o=void 0===r?"":r,a=t.warnings,s=void 0===a?[]:a,l=t.valueBeforeDecode,u=void 0===l?UW:l;Z(this,e),this.blockLength=i,this.error=o,this.warnings=s,this.valueBeforeDecodeView=IW.BufferSourceConverter.toUint8Array(u)}return Y(e,[{key:"valueBeforeDecode",get:function(){return this.valueBeforeDecodeView.slice().buffer},set:function(e){this.valueBeforeDecodeView=new Uint8Array(e)}},{key:"toJSON",value:function(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:IW.Convert.ToHex(this.valueBeforeDecodeView)}}}],[{key:"blockName",value:function(){return this.NAME}}]),e}();GW.NAME="baseBlock";var qW=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBER",value:function(e,t,n){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}},{key:"toBER",value:function(e,t){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}]),n}(GW);qW.NAME="valueBlock";var YW=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.idBlock,u=void 0===l?{}:l;return Z(this,n),e=t.call(this),u?(e.isHexOnly=null!==(i=u.isHexOnly)&&void 0!==i&&i,e.valueHexView=u.valueHex?IW.BufferSourceConverter.toUint8Array(u.valueHex):UW,e.tagClass=null!==(r=u.tagClass)&&void 0!==r?r:-1,e.tagNumber=null!==(o=u.tagNumber)&&void 0!==o?o:-1,e.isConstructed=null!==(a=u.isConstructed)&&void 0!==a&&a):(e.tagClass=-1,e.tagNumber=-1,e.isConstructed=!1),e}return Y(n,[{key:"toBER",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;switch(this.tagClass){case 1:t|=0;break;case 2:t|=64;break;case 3:t|=128;break;case 4:t|=192;break;default:return this.error="Unknown tag class",HW}if(this.isConstructed&&(t|=32),this.tagNumber<31&&!this.isHexOnly){var n=new Uint8Array(1);if(!e){var i=this.tagNumber;t|=i&=31,n[0]=t}return n.buffer}if(!this.isHexOnly){var r=MW(this.tagNumber,7),o=new Uint8Array(r),a=r.byteLength,s=new Uint8Array(a+1);if(s[0]=31|t,!e){for(var l=0;l<a-1;l++)s[l+1]=128|o[l];s[a]=o[a-1]}return s.buffer}var u=new Uint8Array(this.valueHexView.byteLength+1);if(u[0]=31|t,!e){for(var c=this.valueHexView,d=0;d<c.length-1;d++)u[d+1]=128|c[d];u[this.valueHexView.byteLength]=c[c.length-1]}return u.buffer}},{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;switch(192&r[0]){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:return this.error="Unknown tag class",-1}this.isConstructed=32==(32&r[0]),this.isHexOnly=!1;var o=31&r[0];if(31!==o)this.tagNumber=o,this.blockLength=1;else{for(var a=1,s=this.valueHexView=new Uint8Array(255),l=255;128&r[a];){if(s[a-1]=127&r[a],++a>=r.length)return this.error="End of input reached before message was fully decoded",-1;if(a===l){l+=255;for(var u=new Uint8Array(l),c=0;c<s.length;c++)u[c]=s[c];s=this.valueHexView=new Uint8Array(l)}}this.blockLength=a+1,s[a-1]=127&r[a];for(var d=new Uint8Array(a),h=0;h<a;h++)d[h]=s[h];(s=this.valueHexView=new Uint8Array(a)).set(d),this.blockLength<=9?this.tagNumber=TW(s,7):(this.isHexOnly=!0,this.warnings.push("Tag too long, represented as hex-coded"))}if(1===this.tagClass&&this.isConstructed)switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:return this.error="Constructed encoding used for primitive type",-1}return t+this.blockLength}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed})}}]),n}(WW(GW));YW.NAME="identificationBlock";var ZW=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=a.lenBlock,l=void 0===s?{}:s;return Z(this,n),(e=t.call(this)).isIndefiniteForm=null!==(i=l.isIndefiniteForm)&&void 0!==i&&i,e.longFormUsed=null!==(r=l.longFormUsed)&&void 0!==r&&r,e.length=null!==(o=l.length)&&void 0!==o?o:0,e}return Y(n,[{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;if(255===r[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===r[0],this.isIndefiniteForm)return this.blockLength=1,t+this.blockLength;if(this.longFormUsed=!!(128&r[0]),!1===this.longFormUsed)return this.length=r[0],this.blockLength=1,t+this.blockLength;var o=127&r[0];if(o>8)return this.error="Too big integer",-1;if(o+1>r.length)return this.error="End of input reached before message was fully decoded",-1;var a=t+1,s=i.subarray(a,a+o);return 0===s[o-1]&&this.warnings.push("Needlessly long encoded length"),this.length=TW(s,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=o+1,t+this.blockLength}},{key:"toBER",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return e=new ArrayBuffer(1),!1===n&&((t=new Uint8Array(e))[0]=128),e;if(this.longFormUsed){var i=MW(this.length,8);if(i.byteLength>127)return this.error="Too big length",HW;if(e=new ArrayBuffer(i.byteLength+1),n)return e;var r=new Uint8Array(i);(t=new Uint8Array(e))[0]=128|i.byteLength;for(var o=0;o<i.byteLength;o++)t[o+1]=r[o];return e}return e=new ArrayBuffer(1),!1===n&&((t=new Uint8Array(e))[0]=this.length),e}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length})}}]),n}(GW);ZW.NAME="lengthBlock";var KW={},QW=function(t){E(i,t);var n=O(i);function i(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.name,a=void 0===o?"":o,s=r.optional,l=void 0!==s&&s,u=r.primitiveSchema,c=w(r,e),d=arguments.length>1?arguments[1]:void 0;return Z(this,i),(t=n.call(this,c)).name=a,t.optional=l,u&&(t.primitiveSchema=u),t.idBlock=new YW(c),t.lenBlock=new ZW(c),t.valueBlock=d?new d(c):new qW(c),t}return Y(i,[{key:"fromBER",value:function(e,t,n){var i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}},{key:"toBER",value:function(e,t){var n=t||new zW;t||XW(this);var i=this.idBlock.toBER(e);if(n.write(i),this.lenBlock.isIndefiniteForm)n.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(e,n),n.write(new ArrayBuffer(2));else{var r=this.valueBlock.toBER(e);this.lenBlock.length=r.byteLength;var o=this.lenBlock.toBER(e);n.write(o),n.write(r)}return t?HW:n.final()}},{key:"toJSON",value:function(){var e=x(x({},C(M(i.prototype),"toJSON",this).call(this)),{},{idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional});return this.primitiveSchema&&(e.primitiveSchema=this.primitiveSchema.toJSON()),e}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ascii";return"ascii"===e?this.onAsciiEncoding():IW.Convert.ToHex(this.toBER())}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(IW.Convert.ToHex(this.valueBlock.valueBeforeDecodeView))}},{key:"isEqual",value:function(e){return this===e||e instanceof this.constructor&&function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new Uint8Array(e),i=new Uint8Array(t),r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}(this.toBER(),e.toBER())}}]),i}(GW);function XW(e){if(e instanceof KW.Constructed){var t,n=R(e.valueBlock.value);try{for(n.s();!(t=n.n()).done;){XW(t.value)&&(e.lenBlock.isIndefiniteForm=!0)}}catch(i){n.e(i)}finally{n.f()}}return!!e.lenBlock.isIndefiniteForm}QW.NAME="BaseBlock";var JW=function(e){E(i,e);var n=O(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.value,a=void 0===o?"":o,s=w(r,t),l=arguments.length>1?arguments[1]:void 0;return Z(this,i),e=n.call(this,s,l),a&&e.fromString(a),e}return Y(i,[{key:"getValue",value:function(){return this.valueBlock.value}},{key:"setValue",value:function(e){this.valueBlock.value=e}},{key:"fromBER",value:function(e,t,n){var i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : '").concat(this.valueBlock.value,"'")}}]),i}(QW);JW.NAME="BaseStringBlock";var $W,eG,tG,nG=function(e){E(n,e);var t=O(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.isHexOnly,a=void 0===o||o,s=w(r,i);return Z(this,n),(e=t.call(this,s)).isHexOnly=a,e}return Y(n)}(WW(qW));nG.NAME="PrimitiveValueBlock";var iG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,nG)).idBlock.isConstructed=!1,e}return Y(n)}(QW);function rG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=t,r=new QW({},qW),o=new GW;if(!VW(o,e,t,n))return r.error=o.error,{offset:-1,result:r};if(!e.subarray(t,t+n).length)return r.error="Zero buffer length",{offset:-1,result:r};var a=r.idBlock.fromBER(e,t,n);if(r.idBlock.warnings.length&&r.warnings.concat(r.idBlock.warnings),-1===a)return r.error=r.idBlock.error,{offset:-1,result:r};if(a=r.lenBlock.fromBER(e,t=a,n-=r.idBlock.blockLength),r.lenBlock.warnings.length&&r.warnings.concat(r.lenBlock.warnings),-1===a)return r.error=r.lenBlock.error,{offset:-1,result:r};if(t=a,n-=r.lenBlock.blockLength,!r.idBlock.isConstructed&&r.lenBlock.isIndefiniteForm)return r.error="Indefinite length form used for primitive encoding form",{offset:-1,result:r};var s=QW;switch(r.idBlock.tagClass){case 1:if(r.idBlock.tagNumber>=37&&!1===r.idBlock.isHexOnly)return r.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:r};switch(r.idBlock.tagNumber){case 0:if(r.idBlock.isConstructed&&r.lenBlock.length>0)return r.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:r};s=KW.EndOfContent;break;case 1:s=KW.Boolean;break;case 2:s=KW.Integer;break;case 3:s=KW.BitString;break;case 4:s=KW.OctetString;break;case 5:s=KW.Null;break;case 6:s=KW.ObjectIdentifier;break;case 10:s=KW.Enumerated;break;case 12:s=KW.Utf8String;break;case 13:s=KW.RelativeObjectIdentifier;break;case 14:s=KW.TIME;break;case 15:return r.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:r};case 16:s=KW.Sequence;break;case 17:s=KW.Set;break;case 18:s=KW.NumericString;break;case 19:s=KW.PrintableString;break;case 20:s=KW.TeletexString;break;case 21:s=KW.VideotexString;break;case 22:s=KW.IA5String;break;case 23:s=KW.UTCTime;break;case 24:s=KW.GeneralizedTime;break;case 25:s=KW.GraphicString;break;case 26:s=KW.VisibleString;break;case 27:s=KW.GeneralString;break;case 28:s=KW.UniversalString;break;case 29:s=KW.CharacterString;break;case 30:s=KW.BmpString;break;case 31:s=KW.DATE;break;case 32:s=KW.TimeOfDay;break;case 33:s=KW.DateTime;break;case 34:s=KW.Duration;break;default:var l=r.idBlock.isConstructed?new KW.Constructed:new KW.Primitive;l.idBlock=r.idBlock,l.lenBlock=r.lenBlock,l.warnings=r.warnings,r=l}break;case 2:case 3:case 4:default:s=r.idBlock.isConstructed?KW.Constructed:KW.Primitive}return a=(r=function(e,t){if(e instanceof t)return e;var n=new t;return n.idBlock=e.idBlock,n.lenBlock=e.lenBlock,n.warnings=e.warnings,n.valueBeforeDecodeView=e.valueBeforeDecodeView,n}(r,s)).fromBER(e,t,r.lenBlock.isIndefiniteForm?n:r.lenBlock.length),r.valueBeforeDecodeView=e.subarray(i,i+r.blockLength),{offset:a,result:r}}function oG(e){if(!e.byteLength){var t=new QW({},qW);return t.error="Input buffer has zero length",{offset:-1,result:t}}return rG(IW.BufferSourceConverter.toUint8Array(e).slice(),0,e.byteLength)}KW.Primitive=iG,iG.NAME="PRIMITIVE";var aG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.value,a=void 0===o?[]:o,s=i.isIndefiniteForm,l=void 0!==s&&s,u=w(i,r);return Z(this,n),(e=t.call(this,u)).value=a,e.isIndefiniteForm=l,e}return Y(n,[{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;if(this.valueBeforeDecodeView=i.subarray(t,t+n),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),t;for(var r=t;(this.isIndefiniteForm?1:n)>0;){var o=rG(i,r,n);if(-1===o.offset)return this.error=o.result.error,this.warnings.concat(o.result.warnings),-1;if(r=o.offset,this.blockLength+=o.result.blockLength,n-=o.result.blockLength,this.value.push(o.result),this.isIndefiniteForm&&"EndOfContent"===o.result.constructor.NAME)break}return this.isIndefiniteForm&&("EndOfContent"===this.value[this.value.length-1].constructor.NAME?this.value.pop():this.warnings.push("No EndOfContent block encoded")),r}},{key:"toBER",value:function(e,t){for(var n=t||new zW,i=0;i<this.value.length;i++)this.value[i].toBER(e,n);return t?HW:n.final()}},{key:"toJSON",value:function(){var e,t=x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isIndefiniteForm:this.isIndefiniteForm,value:[]}),i=R(this.value);try{for(i.s();!(e=i.n()).done;){var r=e.value;t.value.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}return t}}]),n}(qW);aG.NAME="ConstructedValueBlock";var sG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,aG)).idBlock.isConstructed=!0,e}return Y(n,[{key:"fromBER",value:function(e,t,n){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;var i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}},{key:"onAsciiEncoding",value:function(){var e,t=[],n=R(this.valueBlock.value);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toString("ascii").split("\n").map(function(e){return"  "+e}).join("\n"))}}catch(o){n.e(o)}finally{n.f()}var r=3===this.idBlock.tagClass?"[".concat(this.idBlock.tagNumber,"]"):this.constructor.NAME;return t.length?"".concat(r," :\n").concat(t.join("\n")):r+" :"}}]),n}(QW);KW.Constructed=sG,sG.NAME="CONSTRUCTED";var lG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBER",value:function(e,t,n){return t}},{key:"toBER",value:function(e){return HW}}]),n}(qW);lG.override="EndOfContentValueBlock";var uG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,lG)).idBlock.tagClass=1,e.idBlock.tagNumber=0,e}return Y(n)}(QW);KW.EndOfContent=uG,uG.NAME="EndOfContent";var cG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,qW)).idBlock.tagClass=1,e.idBlock.tagNumber=5,e}return Y(n,[{key:"fromBER",value:function(e,t,n){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=n,t+n>e.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+n}},{key:"toBER",value:function(e,t){var n=new ArrayBuffer(2);if(!e){var i=new Uint8Array(n);i[0]=5,i[1]=0}return t&&t.write(n),n}},{key:"onAsciiEncoding",value:function(){return""+this.constructor.NAME}}]),n}(QW);KW.Null=cG,cG.NAME="NULL";var dG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,a=w(i,o);return Z(this,n),(e=t.call(this,a)).valueHexView=a.valueHex?IW.BufferSourceConverter.toUint8Array(a.valueHex):new Uint8Array(1),r&&(e.value=r),e}return Y(n,[{key:"value",get:function(){var e,t=R(this.valueHexView);try{for(t.s();!(e=t.n()).done;){if(e.value>0)return!0}}catch(n){t.e(n)}finally{t.f()}return!1},set:function(e){this.valueHexView[0]=e?255:0}},{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);return VW(this,i,t,n)?(this.valueHexView=i.subarray(t,t+n),n>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,RW.call(this),this.blockLength=n,t+n):-1}},{key:"toBER",value:function(){return this.valueHexView.slice()}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.value})}}]),n}(WW(qW));dG.NAME="BooleanValueBlock";var hG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,dG)).idBlock.tagClass=1,e.idBlock.tagNumber=1,e}return Y(n,[{key:"getValue",value:function(){return this.valueBlock.value}},{key:"setValue",value:function(e){this.valueBlock.value=e}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.getValue)}}]),n}(QW);KW.Boolean=hG,hG.NAME="BOOLEAN";var fG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.isConstructed,o=void 0!==r&&r,s=w(i,a);return Z(this,n),(e=t.call(this,s)).isConstructed=o,e}return Y(n,[{key:"fromBER",value:function(e,t,i){var r=0;if(this.isConstructed){if(this.isHexOnly=!1,-1===(r=aG.prototype.fromBER.call(this,e,t,i)))return r;for(var o=0;o<this.value.length;o++){var a=this.value[o].constructor.NAME;if("EndOfContent"===a){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only",-1}if("OCTET STRING"!==a)return this.error="OCTET STRING may consists of OCTET STRINGs only",-1}}else this.isHexOnly=!0,r=C(M(n.prototype),"fromBER",this).call(this,e,t,i),this.blockLength=i;return r}},{key:"toBER",value:function(e,t){return this.isConstructed?aG.prototype.toBER.call(this,e,t):e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isConstructed:this.isConstructed})}}]),n}(WW(aG));fG.NAME="OctetStringValueBlock";var pG=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.idBlock,l=void 0===a?{}:a,u=o.lenBlock,c=void 0===u?{}:u,d=w(o,s);return Z(this,n),null!==(i=d.isConstructed)&&void 0!==i||(d.isConstructed=!!(null===(r=d.value)||void 0===r?void 0:r.length)),(e=t.call(this,x({idBlock:x({isConstructed:d.isConstructed},l),lenBlock:x(x({},c),{},{isIndefiniteForm:!!d.isIndefiniteForm})},d),fG)).idBlock.tagClass=1,e.idBlock.tagNumber=4,e}return Y(n,[{key:"fromBER",value:function(e,t,i){if(this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,0===i)return 0===this.idBlock.error.length&&(this.blockLength+=this.idBlock.blockLength),0===this.lenBlock.error.length&&(this.blockLength+=this.lenBlock.blockLength),t;if(!this.valueBlock.isConstructed){var r=(e instanceof ArrayBuffer?new Uint8Array(e):e).subarray(t,t+i);try{if(r.byteLength){var o=rG(r,0,r.byteLength);-1!==o.offset&&o.offset===i&&(this.valueBlock.value=[o.result])}}catch(a){}}return C(M(n.prototype),"fromBER",this).call(this,e,t,i)}},{key:"onAsciiEncoding",value:function(){return this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length?sG.prototype.onAsciiEncoding.call(this):"".concat(this.constructor.NAME," : ").concat(IW.Convert.ToHex(this.valueBlock.valueHexView))}},{key:"getValue",value:function(){if(!this.idBlock.isConstructed)return this.valueBlock.valueHexView.slice().buffer;var e,t=[],i=R(this.valueBlock.value);try{for(i.s();!(e=i.n()).done;){var r=e.value;r instanceof n&&t.push(r.valueBlock.valueHexView)}}catch(o){i.e(o)}finally{i.f()}return IW.BufferSourceConverter.concat(t)}}]),n}(QW);KW.OctetString=pG,pG.NAME="OCTET STRING";var gG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.unusedBits,o=void 0===r?0:r,a=i.isConstructed,s=void 0!==a&&a,u=w(i,l);return Z(this,n),(e=t.call(this,u)).unusedBits=o,e.isConstructed=s,e.blockLength=e.valueHexView.byteLength,e}return Y(n,[{key:"fromBER",value:function(e,t,n){if(!n)return t;var i=-1;if(this.isConstructed){if(-1===(i=aG.prototype.fromBER.call(this,e,t,n)))return i;var r,o=R(this.value);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.constructor.NAME;if("EndOfContent"===s){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if("BIT STRING"!==s)return this.error="BIT STRING may consists of BIT STRINGs only",-1;var l=a.valueBlock;if(this.unusedBits>0&&l.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=l.unusedBits}}catch(f){o.e(f)}finally{o.f()}return i}var u=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,u,t,n))return-1;var c=u.subarray(t,t+n);if(this.unusedBits=c[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){var d=c.subarray(1);try{if(d.byteLength){var h=rG(d,0,d.byteLength);-1!==h.offset&&h.offset===n-1&&(this.value=[h.result])}}catch(p){}}return this.valueHexView=c.subarray(1),this.blockLength=c.length,t+n}},{key:"toBER",value:function(e,t){if(this.isConstructed)return aG.prototype.toBER.call(this,e,t);if(e)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return HW;var n=new Uint8Array(this.valueHexView.length+1);return n[0]=this.unusedBits,n.set(this.valueHexView,1),n.buffer}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{unusedBits:this.unusedBits,isConstructed:this.isConstructed})}}]),n}(WW(aG));gG.NAME="BitStringValueBlock";var vG=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.idBlock,s=void 0===a?{}:a,l=o.lenBlock,c=void 0===l?{}:l,d=w(o,u);return Z(this,n),null!==(i=d.isConstructed)&&void 0!==i||(d.isConstructed=!!(null===(r=d.value)||void 0===r?void 0:r.length)),(e=t.call(this,x({idBlock:x({isConstructed:d.isConstructed},s),lenBlock:x(x({},c),{},{isIndefiniteForm:!!d.isIndefiniteForm})},d),gG)).idBlock.tagClass=1,e.idBlock.tagNumber=3,e}return Y(n,[{key:"fromBER",value:function(e,t,i){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,C(M(n.prototype),"fromBER",this).call(this,e,t,i)}},{key:"onAsciiEncoding",value:function(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return sG.prototype.onAsciiEncoding.call(this);var e,t=[],n=R(this.valueBlock.valueHexView);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toString(2).padStart(8,"0"))}}catch(o){n.e(o)}finally{n.f()}var r=t.join("");return"".concat(this.constructor.NAME," : ").concat(r.substring(0,r.length-this.valueBlock.unusedBits))}}]),n}(QW);function mG(e,t){for(var n=new Uint8Array([0]),i=new Uint8Array(e),r=new Uint8Array(t),o=i.slice(0),a=o.length-1,s=r.slice(0),l=s.length-1,u=0,c=0,d=l<a?a:l;d>=0;d--,c++){switch(!0){case c<s.length:u=o[a-c]+s[l-c]+n[0];break;default:u=o[a-c]+n[0]}switch(n[0]=u/10,!0){case c>=o.length:o=BW(new Uint8Array([u%10]),o);break;default:o[a-c]=u%10}}return n[0]>0&&(o=BW(n,o)),o}function yG(e){if(e>=jW.length)for(var t=jW.length;t<=e;t++){for(var n=new Uint8Array([0]),i=jW[t-1].slice(0),r=i.length-1;r>=0;r--){var o=new Uint8Array([(i[r]<<1)+n[0]]);n[0]=o[0]/10,i[r]=o[0]%10}n[0]>0&&(i=BW(n,i)),jW.push(i)}return jW[e]}function bG(e,t){for(var n,i=0,r=new Uint8Array(e),o=new Uint8Array(t),a=r.slice(0),s=a.length-1,l=o.slice(0),u=l.length-1,c=0,d=u;d>=0;d--,c++)switch(n=a[s-c]-l[u-c]-i,!0){case n<0:i=1,a[s-c]=n+10;break;default:i=0,a[s-c]=n}if(i>0)for(var h=s-u+1;h>=0;h--,c++){if(!((n=a[s-c]-i)<0)){i=0,a[s-c]=n;break}i=1,a[s-c]=n+10}return a.slice()}KW.BitString=vG,vG.NAME="BIT STRING";var wG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=w(i,c);return Z(this,n),(e=t.call(this,o))._valueDec=0,o.valueHex&&e.setValueHex(),void 0!==r&&(e.valueDec=r),e}return Y(n,[{key:"setValueHex",value:function(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=RW.call(this)))}},{key:"valueDec",get:function(){return this._valueDec},set:function(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function(e){for(var t=e<0?-1*e:e,n=128,i=1;i<8;i++){if(t<=n){if(e<0){var r=MW(n-t,8,i);return new Uint8Array(r)[0]|=128,r}var o=MW(t,8,i),a=new Uint8Array(o);if(128&a[0]){var s=o.slice(0),l=new Uint8Array(s);o=new ArrayBuffer(o.byteLength+1),a=new Uint8Array(o);for(var u=0;u<s.byteLength;u++)a[u+1]=l[u];a[0]=0}return o}n*=Math.pow(2,8)}return new ArrayBuffer(0)}(e))}},{key:"fromDER",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=this.fromBER(e,t,n);if(-1===r)return r;var o=this.valueHexView;return 0===o[0]&&0!=(128&o[1])?this.valueHexView=o.subarray(1):0!==i&&o.length<i&&(i-o.length>1&&(i=o.length+1),this.valueHexView=o.subarray(i-o.length)),r}},{key:"toDER",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.valueHexView;switch(!0){case 0!=(128&t[0]):var n=new Uint8Array(this.valueHexView.length+1);n[0]=0,n.set(t,1),this.valueHexView=n;break;case 0===t[0]&&0==(128&t[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}},{key:"fromBER",value:function(e,t,i){var r=C(M(n.prototype),"fromBER",this).call(this,e,t,i);return-1===r||this.setValueHex(),r}},{key:"toBER",value:function(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{valueDec:this.valueDec})}},{key:"toString",value:function(){for(var e,t=8*this.valueHexView.length-1,n=new Uint8Array(8*this.valueHexView.length/3),i=0,r=this.valueHexView,o="",a=!1,s=r.byteLength-1;s>=0;s--){e=r[s];for(var l=0;l<8;l++){if(1==(1&e))switch(i){case t:n=bG(yG(i),n),o="-";break;default:n=mG(n,yG(i))}i++,e>>=1}}for(var u=0;u<n.length;u++)n[u]&&(a=!0),a&&(o+="0123456789".charAt(n[u]));return!1===a&&(o+="0123456789".charAt(0)),o}}]),n}(WW(qW));$W=wG,wG.NAME="IntegerValueBlock",Object.defineProperty($W.prototype,"valueHex",{set:function(e){this.valueHexView=new Uint8Array(e),this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}});var kG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,wG)).idBlock.tagClass=1,e.idBlock.tagNumber=2,e}return Y(n,[{key:"toBigInt",value:function(){return FW(),BigInt(this.valueBlock.toString())}},{key:"convertToDER",value:function(){var e=new n({valueHex:this.valueBlock.valueHexView});return e.valueBlock.toDER(),e}},{key:"convertFromDER",value:function(){return new n({valueHex:0===this.valueBlock.valueHexView[0]?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString())}}],[{key:"fromBigInt",value:function(e){FW();var t=BigInt(e),i=new zW,r=t.toString(16).replace(/^-/,""),o=new Uint8Array(IW.Convert.FromHex(r));if(t<0){var a=new Uint8Array(o.length+(128&o[0]?1:0));a[0]|=128;var s=BigInt("0x"+IW.Convert.ToHex(a)),l=IW.BufferSourceConverter.toUint8Array(IW.Convert.FromHex((s+t).toString(16)));l[0]|=128,i.write(l)}else 128&o[0]&&i.write(new Uint8Array([0])),i.write(o);return new n({valueHex:i.final()})}}]),n}(QW);KW.Integer=kG,kG.NAME="INTEGER";var xG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=10,e}return Y(n)}(kG);KW.Enumerated=xG,xG.NAME="ENUMERATED";var _G=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.valueDec,o=void 0===r?-1:r,a=i.isFirstSid,s=void 0!==a&&a,l=w(i,d);return Z(this,n),(e=t.call(this,l)).valueDec=o,e.isFirstSid=s,e}return Y(n,[{key:"fromBER",value:function(e,t,n){if(!n)return t;var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(var o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);for(var a=new Uint8Array(this.blockLength),s=0;s<this.blockLength;s++)a[s]=this.valueHexView[s];return this.valueHexView=a,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=TW(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}},{key:"valueBigInt",set:function(e){FW();for(var t=BigInt(e).toString(2);t.length%7;)t="0"+t;for(var n=new Uint8Array(t.length/7),i=0;i<n.length;i++)n[i]=parseInt(t.slice(7*i,7*i+7),2)+(i+1<n.length?128:0);this.fromBER(n.buffer,0,n.length)}},{key:"toBER",value:function(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);for(var t=this.valueHexView,n=new Uint8Array(this.blockLength),i=0;i<this.blockLength-1;i++)n[i]=128|t[i];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}var r=MW(this.valueDec,7);if(0===r.byteLength)return this.error="Error during encoding SID value",HW;var o=new Uint8Array(r.byteLength);if(!e){for(var a=new Uint8Array(r),s=r.byteLength-1,l=0;l<s;l++)o[l]=128|a[l];o[s]=a[s]}return o}},{key:"toString",value:function(){var e="";if(this.isHexOnly)e=IW.Convert.ToHex(this.valueHexView);else if(this.isFirstSid){var t=this.valueDec;this.valueDec<=39?e="0.":this.valueDec<=79?(e="1.",t-=40):(e="2.",t-=80),e+=t.toString()}else e=this.valueDec.toString();return e}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{valueDec:this.valueDec,isFirstSid:this.isFirstSid})}}]),n}(WW(qW));_G.NAME="sidBlock";var AG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?"":r,a=w(i,h);return Z(this,n),(e=t.call(this,a)).value=[],o&&e.fromString(o),e}return Y(n,[{key:"fromBER",value:function(e,t,n){for(var i=t;n>0;){var r=new _G;if(-1===(i=r.fromBER(e,i,n)))return this.blockLength=0,this.error=r.error,i;0===this.value.length&&(r.isFirstSid=!0),this.blockLength+=r.blockLength,n-=r.blockLength,this.value.push(r)}return i}},{key:"toBER",value:function(e){for(var t=[],n=0;n<this.value.length;n++){var i=this.value[n].toBER(e);if(0===i.byteLength)return this.error=this.value[n].error,HW;t.push(i)}return NW(t)}},{key:"fromString",value:function(e){this.value=[];var t=0,n=0,i="",r=!1;do{if(i=-1===(n=e.indexOf(".",t))?e.substring(t):e.substring(t,n),t=n+1,r){var o=this.value[0],a=0;switch(o.valueDec){case 0:break;case 1:a=40;break;case 2:a=80;break;default:return void(this.value=[])}var s=parseInt(i,10);if(isNaN(s))return;o.valueDec=s+a,r=!1}else{var l=new _G;if(i>Number.MAX_SAFE_INTEGER){FW();var u=BigInt(i);l.valueBigInt=u}else if(l.valueDec=parseInt(i,10),isNaN(l.valueDec))return;this.value.length||(l.isFirstSid=!0,r=!0),this.value.push(l)}}while(-1!==n)}},{key:"toString",value:function(){for(var e="",t=!1,n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;var i=this.value[n].toString();0!==n&&(e+="."),t?(i="{".concat(i,"}"),this.value[n].isFirstSid?e="2.{".concat(i," - 80}"):e+=i):e+=i}return e}},{key:"toJSON",value:function(){for(var e=x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.toString(),sidArray:[]}),t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}]),n}(qW);AG.NAME="ObjectIdentifierValueBlock";var CG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,AG)).idBlock.tagClass=1,e.idBlock.tagNumber=6,e}return Y(n,[{key:"getValue",value:function(){return this.valueBlock.toString()}},{key:"setValue",value:function(e){this.valueBlock.fromString(e)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.getValue()})}}]),n}(QW);KW.ObjectIdentifier=CG,CG.NAME="OBJECT IDENTIFIER";var SG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.valueDec,o=void 0===r?0:r,a=w(i,f);return Z(this,n),(e=t.call(this,a)).valueDec=o,e}return Y(n,[{key:"fromBER",value:function(e,t,n){if(0===n)return t;var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(var o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);for(var a=new Uint8Array(this.blockLength),s=0;s<this.blockLength;s++)a[s]=this.valueHexView[s];return this.valueHexView=a,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=TW(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}},{key:"toBER",value:function(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);for(var t=this.valueHexView,n=new Uint8Array(this.blockLength),i=0;i<this.blockLength-1;i++)n[i]=128|t[i];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}var r=MW(this.valueDec,7);if(0===r.byteLength)return this.error="Error during encoding SID value",HW;var o=new Uint8Array(r.byteLength);if(!e){for(var a=new Uint8Array(r),s=r.byteLength-1,l=0;l<s;l++)o[l]=128|a[l];o[s]=a[s]}return o.buffer}},{key:"toString",value:function(){return this.isHexOnly?IW.Convert.ToHex(this.valueHexView):this.valueDec.toString()}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{valueDec:this.valueDec})}}]),n}(WW(GW));SG.NAME="relativeSidBlock";var EG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?"":r,a=w(i,p);return Z(this,n),(e=t.call(this,a)).value=[],o&&e.fromString(o),e}return Y(n,[{key:"fromBER",value:function(e,t,n){for(var i=t;n>0;){var r=new SG;if(-1===(i=r.fromBER(e,i,n)))return this.blockLength=0,this.error=r.error,i;this.blockLength+=r.blockLength,n-=r.blockLength,this.value.push(r)}return i}},{key:"toBER",value:function(e,t){for(var n=[],i=0;i<this.value.length;i++){var r=this.value[i].toBER(e);if(0===r.byteLength)return this.error=this.value[i].error,HW;n.push(r)}return NW(n)}},{key:"fromString",value:function(e){this.value=[];var t=0,n=0,i="";do{i=-1===(n=e.indexOf(".",t))?e.substring(t):e.substring(t,n),t=n+1;var r=new SG;if(r.valueDec=parseInt(i,10),isNaN(r.valueDec))return!0;this.value.push(r)}while(-1!==n);return!0}},{key:"toString",value:function(){for(var e="",t=!1,n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;var i=this.value[n].toString();0!==n&&(e+="."),t?e+=i="{".concat(i,"}"):e+=i}return e}},{key:"toJSON",value:function(){for(var e=x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.toString(),sidArray:[]}),t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}]),n}(qW);EG.NAME="RelativeObjectIdentifierValueBlock";var PG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,EG)).idBlock.tagClass=1,e.idBlock.tagNumber=13,e}return Y(n,[{key:"getValue",value:function(){return this.valueBlock.toString()}},{key:"setValue",value:function(e){this.valueBlock.fromString(e)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.getValue()})}}]),n}(QW);KW.RelativeObjectIdentifier=PG,PG.NAME="RelativeObjectIdentifier";var OG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=16,e}return Y(n)}(sG);KW.Sequence=OG,OG.NAME="SEQUENCE";var DG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=17,e}return Y(n)}(sG);KW.Set=DG,DG.NAME="SET";var IG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b({},(y(i),i));return Z(this,n),(e=t.call(this,r)).isHexOnly=!0,e.value="",e}return Y(n,[{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.value})}}]),n}(WW(qW));IG.NAME="StringValueBlock";var TG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(IG);TG.NAME="SimpleStringValueBlock";var MG=function(e){E(n,e);var t=O(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=b({},(y(e),e));return Z(this,n),t.call(this,i,TG)}return Y(n,[{key:"fromBuffer",value:function(e){this.valueBlock.value=String.fromCharCode.apply(null,IW.BufferSourceConverter.toUint8Array(e))}},{key:"fromString",value:function(e){for(var t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);this.valueBlock.value=e}}]),n}(JW);MG.NAME="SIMPLE STRING";var BG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBuffer",value:function(e){this.valueBlock.valueHexView=IW.BufferSourceConverter.toUint8Array(e);try{this.valueBlock.value=IW.Convert.ToUtf8String(e)}catch(t){this.warnings.push('Error during "decodeURIComponent": '.concat(t,", using raw string")),this.valueBlock.value=IW.Convert.ToBinary(e)}}},{key:"fromString",value:function(e){this.valueBlock.valueHexView=new Uint8Array(IW.Convert.FromUtf8String(e)),this.valueBlock.value=e}}]),n}(MG);BG.NAME="Utf8StringValueBlock";var RG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=12,e}return Y(n)}(BG);KW.Utf8String=RG,RG.NAME="UTF8String";var LG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBuffer",value:function(e){this.valueBlock.value=IW.Convert.ToUtf16String(e),this.valueBlock.valueHexView=IW.BufferSourceConverter.toUint8Array(e)}},{key:"fromString",value:function(e){this.valueBlock.value=e,this.valueBlock.valueHexView=new Uint8Array(IW.Convert.FromUtf16String(e))}}]),n}(MG);LG.NAME="BmpStringValueBlock";var FG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b({},(y(i),i));return Z(this,n),(e=t.call(this,r)).idBlock.tagClass=1,e.idBlock.tagNumber=30,e}return Y(n)}(LG);KW.BmpString=FG,FG.NAME="BMPString";var NG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBuffer",value:function(e){for(var t=ArrayBuffer.isView(e)?e.slice().buffer:e.slice(0),n=new Uint8Array(t),i=0;i<n.length;i+=4)n[i]=n[i+3],n[i+1]=n[i+2],n[i+2]=0,n[i+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(t))}},{key:"fromString",value:function(e){for(var t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(4*t),i=0;i<t;i++){var r=MW(e.charCodeAt(i),8),o=new Uint8Array(r);if(!(o.length>4))for(var a=4-o.length,s=o.length-1;s>=0;s--)n[4*i+s+a]=o[s]}this.valueBlock.value=e}}]),n}(MG);NG.NAME="UniversalStringValueBlock";var VG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b({},(y(i),i));return Z(this,n),(e=t.call(this,r)).idBlock.tagClass=1,e.idBlock.tagNumber=28,e}return Y(n)}(NG);KW.UniversalString=VG,VG.NAME="UniversalString";var zG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=18,e}return Y(n)}(MG);KW.NumericString=zG,zG.NAME="NumericString";var jG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=19,e}return Y(n)}(MG);KW.PrintableString=jG,jG.NAME="PrintableString";var HG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=20,e}return Y(n)}(MG);KW.TeletexString=HG,HG.NAME="TeletexString";var UG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=21,e}return Y(n)}(MG);KW.VideotexString=UG,UG.NAME="VideotexString";var WG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=22,e}return Y(n)}(MG);KW.IA5String=WG,WG.NAME="IA5String";var GG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=25,e}return Y(n)}(MG);KW.GraphicString=GG,GG.NAME="GraphicString";var qG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=26,e}return Y(n)}(MG);KW.VisibleString=qG,qG.NAME="VisibleString";var YG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=27,e}return Y(n)}(MG);KW.GeneralString=YG,YG.NAME="GeneralString";var ZG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=29,e}return Y(n)}(MG);KW.CharacterString=ZG,ZG.NAME="CharacterString";var KG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=i.valueDate,a=w(i,g);if(Z(this,n),(e=t.call(this,a)).year=0,e.month=0,e.day=0,e.hour=0,e.minute=0,e.second=0,r){e.fromString(r),e.valueBlock.valueHexView=new Uint8Array(r.length);for(var s=0;s<r.length;s++)e.valueBlock.valueHexView[s]=r.charCodeAt(s)}return o&&(e.fromDate(o),e.valueBlock.valueHexView=new Uint8Array(e.toBuffer())),e.idBlock.tagClass=1,e.idBlock.tagNumber=23,D(e)}return Y(n,[{key:"fromBuffer",value:function(e){this.fromString(String.fromCharCode.apply(null,IW.BufferSourceConverter.toUint8Array(e)))}},{key:"toBuffer",value:function(){for(var e=this.toString(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return t}},{key:"fromDate",value:function(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()}},{key:"toDate",value:function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))}},{key:"fromString",value:function(e){var t=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi.exec(e);if(null!==t){var n=parseInt(t[1],10);this.year=n>=50?1900+n:2e3+n,this.month=parseInt(t[2],10),this.day=parseInt(t[3],10),this.hour=parseInt(t[4],10),this.minute=parseInt(t[5],10),this.second=parseInt(t[6],10)}else this.error="Wrong input string for conversion"}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iso";if("iso"===e){var t=new Array(7);return t[0]=LW(this.year<2e3?this.year-1900:this.year-2e3,2),t[1]=LW(this.month,2),t[2]=LW(this.day,2),t[3]=LW(this.hour,2),t[4]=LW(this.minute,2),t[5]=LW(this.second,2),t[6]="Z",t.join("")}return C(M(n.prototype),"toString",this).call(this,e)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.toDate().toISOString())}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second})}}]),n}(qG);KW.UTCTime=KG,KG.NAME="UTCTime";var QG=function(e){E(n,e);var t=O(n);function n(){var e,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),null!==(i=(e=t.call(this,r)).millisecond)&&void 0!==i||(e.millisecond=0),e.idBlock.tagClass=1,e.idBlock.tagNumber=24,e}return Y(n,[{key:"fromDate",value:function(e){C(M(n.prototype),"fromDate",this).call(this,e),this.millisecond=e.getUTCMilliseconds()}},{key:"toDate",value:function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}},{key:"fromString",value:function(e){var t,n=!1,i="",r="",o=0,a=0,s=0;if("Z"===e[e.length-1])i=e.substring(0,e.length-1),n=!0;else{var l=new Number(e[e.length-1]);if(isNaN(l.valueOf()))throw new Error("Wrong input string for conversion");i=e}if(n){if(-1!==i.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==i.indexOf("-"))throw new Error("Wrong input string for conversion")}else{var u=1,c=i.indexOf("+"),d="";if(-1===c&&(c=i.indexOf("-"),u=-1),-1!==c){if(d=i.substring(c+1),i=i.substring(0,c),2!==d.length&&4!==d.length)throw new Error("Wrong input string for conversion");var h=parseInt(d.substring(0,2),10);if(isNaN(h.valueOf()))throw new Error("Wrong input string for conversion");if(a=u*h,4===d.length){if(h=parseInt(d.substring(2,4),10),isNaN(h.valueOf()))throw new Error("Wrong input string for conversion");s=u*h}}}var f=i.indexOf(".");if(-1===f&&(f=i.indexOf(",")),-1!==f){var p=new Number("0"+i.substring(f));if(isNaN(p.valueOf()))throw new Error("Wrong input string for conversion");o=p.valueOf(),r=i.substring(0,f)}else r=i;switch(!0){case 8===r.length:if(t=/(\d{4})(\d{2})(\d{2})/gi,-1!==f)throw new Error("Wrong input string for conversion");break;case 10===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==f){var g=60*o;this.minute=Math.floor(g),g=60*(g-this.minute),this.second=Math.floor(g),g=1e3*(g-this.second),this.millisecond=Math.floor(g)}break;case 12===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==f){var v=60*o;this.second=Math.floor(v),v=1e3*(v-this.second),this.millisecond=Math.floor(v)}break;case 14===r.length:t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==f&&(this.millisecond=Math.floor(1e3*o));break;default:throw new Error("Wrong input string for conversion")}var m=t.exec(r);if(null===m)throw new Error("Wrong input string for conversion");for(var y=1;y<m.length;y++)switch(y){case 1:this.year=parseInt(m[y],10);break;case 2:this.month=parseInt(m[y],10);break;case 3:this.day=parseInt(m[y],10);break;case 4:this.hour=parseInt(m[y],10)+a;break;case 5:this.minute=parseInt(m[y],10)+s;break;case 6:this.second=parseInt(m[y],10);break;default:throw new Error("Wrong input string for conversion")}if(!1===n){var b=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=b.getUTCFullYear(),this.month=b.getUTCMonth(),this.day=b.getUTCDay(),this.hour=b.getUTCHours(),this.minute=b.getUTCMinutes(),this.second=b.getUTCSeconds(),this.millisecond=b.getUTCMilliseconds()}}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iso";if("iso"===e){var t=[];return t.push(LW(this.year,4)),t.push(LW(this.month,2)),t.push(LW(this.day,2)),t.push(LW(this.hour,2)),t.push(LW(this.minute,2)),t.push(LW(this.second,2)),0!==this.millisecond&&(t.push("."),t.push(LW(this.millisecond,3))),t.push("Z"),t.join("")}return C(M(n.prototype),"toString",this).call(this,e)}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{millisecond:this.millisecond})}}]),n}(KG);KW.GeneralizedTime=QG,QG.NAME="GeneralizedTime";var XG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=31,e}return Y(n)}(RG);KW.DATE=XG,XG.NAME="DATE";var JG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=32,e}return Y(n)}(RG);KW.TimeOfDay=JG,JG.NAME="TimeOfDay";var $G=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=33,e}return Y(n)}(RG);KW.DateTime=$G,$G.NAME="DateTime";var eq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=34,e}return Y(n)}(RG);KW.Duration=eq,eq.NAME="Duration";var tq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=14,e}return Y(n)}(RG);KW.TIME=tq,tq.NAME="TIME";var nq=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,i=void 0===n?"":n,r=t.optional,o=void 0!==r&&r;Z(this,e),this.name=i,this.optional=o}),iq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?[]:r,a=w(i,v);return Z(this,n),(e=t.call(this,a)).value=o,e}return Y(n)}(nq),rq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?new nq:r,a=i.local,s=void 0!==a&&a,l=w(i,m);return Z(this,n),(e=t.call(this,l)).value=o,e.local=s,e}return Y(n)}(nq),oq=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.data,i=void 0===n?UW:n;Z(this,e),this.dataView=IW.BufferSourceConverter.toUint8Array(i)}return Y(e,[{key:"data",get:function(){return this.dataView.slice().buffer},set:function(e){this.dataView=IW.BufferSourceConverter.toUint8Array(e)}},{key:"fromBER",value:function(e,t,n){var i=t+n;return this.dataView=IW.BufferSourceConverter.toUint8Array(e).subarray(t,i),i}},{key:"toBER",value:function(e){return this.dataView.slice().buffer}}]),e}();function aq(e,t,n){if(n instanceof iq){for(var i=0;i<n.value.length;i++)if(aq(e,t,n.value[i]).verified)return{verified:!0,result:e};var r={verified:!1,result:{error:"Wrong values for Choice type"}};return n.hasOwnProperty("name")&&(r.name=n.name),r}if(n instanceof nq)return n.hasOwnProperty("name")&&(e[n.name]=t),{verified:!0,result:e};if(e instanceof Object==0)return{verified:!1,result:{error:"Wrong root object"}};if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 data"}};if(n instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("idBlock"in n==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("fromBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("toBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};var o=n.idBlock.toBER(!1);if(0===o.byteLength)return{verified:!1,result:{error:"Error encoding idBlock for ASN.1 schema"}};if(-1===n.idBlock.fromBER(o,0,o.byteLength))return{verified:!1,result:{error:"Error decoding idBlock for ASN.1 schema"}};if(!1===n.idBlock.hasOwnProperty("tagClass"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagClass!==t.idBlock.tagClass)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("tagNumber"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagNumber!==t.idBlock.tagNumber)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("isConstructed"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isConstructed!==t.idBlock.isConstructed)return{verified:!1,result:e};if(!("isHexOnly"in n.idBlock))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isHexOnly!==t.idBlock.isHexOnly)return{verified:!1,result:e};if(n.idBlock.isHexOnly){if("valueHexView"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};var a=n.idBlock.valueHexView,s=t.idBlock.valueHexView;if(a.length!==s.length)return{verified:!1,result:e};for(var l=0;l<a.length;l++)if(a[l]!==s[1])return{verified:!1,result:e}}if(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(e[n.name]=t)),n instanceof KW.Constructed){var u=0,c={verified:!1,result:{error:"Unknown error"}},d=n.valueBlock.value.length;if(d>0&&n.valueBlock.value[0]instanceof rq&&(d=t.valueBlock.value.length),0===d)return{verified:!0,result:e};if(0===t.valueBlock.value.length&&0!==n.valueBlock.value.length){for(var h=!0,f=0;f<n.valueBlock.value.length;f++)h=h&&(n.valueBlock.value[f].optional||!1);return h?{verified:!0,result:e}:(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),e.error="Inconsistent object length",{verified:!1,result:e})}for(var p=0;p<d;p++)if(p-u>=t.valueBlock.value.length){if(!1===n.valueBlock.value[p].optional){var g={verified:!1,result:e};return e.error="Inconsistent length between ASN.1 data and schema",n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],g.name=n.name)),g}}else if(n.valueBlock.value[0]instanceof rq){if(!1===(c=aq(e,t.valueBlock.value[p],n.valueBlock.value[0].value)).verified){if(!n.valueBlock.value[0].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),c;u++}if("name"in n.valueBlock.value[0]&&n.valueBlock.value[0].name.length>0){var v={};void 0===(v="local"in n.valueBlock.value[0]&&n.valueBlock.value[0].local?t:e)[n.valueBlock.value[0].name]&&(v[n.valueBlock.value[0].name]=[]),v[n.valueBlock.value[0].name].push(t.valueBlock.value[p])}}else if(!1===(c=aq(e,t.valueBlock.value[p-u],n.valueBlock.value[p])).verified){if(!n.valueBlock.value[p].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),c;u++}if(!1===c.verified){var m={verified:!1,result:e};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],m.name=n.name)),m}return{verified:!0,result:e}}if(n.primitiveSchema&&"valueHexView"in t.valueBlock){var y=rG(t.valueBlock.valueHexView);if(-1===y.offset){var b={verified:!1,result:y.result};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],b.name=n.name)),b}return aq(e,y.result,n.primitiveSchema)}return{verified:!0,result:e}}function sq(e,t){if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};var n=rG(IW.BufferSourceConverter.toUint8Array(e));return-1===n.offset?{verified:!1,result:n.result}:aq(n.result,n.result,t)}!function(e){e[e.Sequence=0]="Sequence",e[e.Set=1]="Set",e[e.Choice=2]="Choice"}(eG||(eG={})),function(e){e[e.Any=1]="Any",e[e.Boolean=2]="Boolean",e[e.OctetString=3]="OctetString",e[e.BitString=4]="BitString",e[e.Integer=5]="Integer",e[e.Enumerated=6]="Enumerated",e[e.ObjectIdentifier=7]="ObjectIdentifier",e[e.Utf8String=8]="Utf8String",e[e.BmpString=9]="BmpString",e[e.UniversalString=10]="UniversalString",e[e.NumericString=11]="NumericString",e[e.PrintableString=12]="PrintableString",e[e.TeletexString=13]="TeletexString",e[e.VideotexString=14]="VideotexString",e[e.IA5String=15]="IA5String",e[e.GraphicString=16]="GraphicString",e[e.VisibleString=17]="VisibleString",e[e.GeneralString=18]="GeneralString",e[e.CharacterString=19]="CharacterString",e[e.UTCTime=20]="UTCTime",e[e.GeneralizedTime=21]="GeneralizedTime",e[e.DATE=22]="DATE",e[e.TimeOfDay=23]="TimeOfDay",e[e.DateTime=24]="DateTime",e[e.Duration=25]="Duration",e[e.TIME=26]="TIME",e[e.Null=27]="Null"}(tG||(tG={}));var lq=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Z(this,e),this.unusedBits=0,this.value=new ArrayBuffer(0),t)if("number"==typeof t)this.fromNumber(t);else{if(!IW.BufferSourceConverter.isBufferSource(t))throw TypeError("Unsupported type of 'params' argument for BitString");this.unusedBits=n,this.value=IW.BufferSourceConverter.toArrayBuffer(t)}}return Y(e,[{key:"fromASN",value:function(e){if(!(e instanceof vG))throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");return this.unusedBits=e.valueBlock.unusedBits,this.value=e.valueBlock.valueHex,this}},{key:"toASN",value:function(){return new vG({unusedBits:this.unusedBits,valueHex:this.value})}},{key:"toSchema",value:function(e){return new vG({name:e})}},{key:"toNumber",value:function(){var e,t="",n=R(new Uint8Array(this.value));try{for(n.s();!(e=n.n()).done;){t+=e.value.toString(2).padStart(8,"0")}}catch(i){n.e(i)}finally{n.f()}return t=t.split("").reverse().join(""),this.unusedBits&&(t=t.slice(this.unusedBits).padStart(this.unusedBits,"0")),parseInt(t,2)}},{key:"fromNumber",value:function(e){var t=e.toString(2),n=t.length+7>>3;this.unusedBits=(n<<3)-t.length;var i=new Uint8Array(n);t=t.padStart(n<<3,"0").split("").reverse().join("");for(var r=0;r<n;)i[r]=parseInt(t.slice(r<<3,8+(r<<3)),2),r++;this.value=i.buffer}}]),e}(),uq=function(){function e(t){Z(this,e),this.buffer="number"==typeof t?new ArrayBuffer(t):IW.BufferSourceConverter.isBufferSource(t)?IW.BufferSourceConverter.toArrayBuffer(t):Array.isArray(t)?new Uint8Array(t):new ArrayBuffer(0)}return Y(e,[{key:"byteLength",get:function(){return this.buffer.byteLength}},{key:"byteOffset",get:function(){return 0}},{key:"fromASN",value:function(e){if(!(e instanceof pG))throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");return this.buffer=e.valueBlock.valueHex,this}},{key:"toASN",value:function(){return new pG({valueHex:this.buffer})}},{key:"toSchema",value:function(e){return new pG({name:e})}}]),e}(),cq={fromASN:function(e){return e instanceof cG?null:e.valueBeforeDecodeView},toASN:function(e){if(null===e)return new cG;var t=oG(e);if(t.result.error)throw new Error(t.result.error);return t.result}},dq={fromASN:function(e){return e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec},toASN:function(e){return new kG({value:+e})}},hq={fromASN:function(e){return e.valueBlock.valueDec},toASN:function(e){return new xG({value:e})}},fq={fromASN:function(e){return e.valueBlock.valueHexView},toASN:function(e){return new kG({valueHex:e})}},pq={fromASN:function(e){return e.valueBlock.valueHexView},toASN:function(e){return new vG({valueHex:e})}},gq={fromASN:function(e){return e.valueBlock.toString()},toASN:function(e){return new CG({value:e})}},vq={fromASN:function(e){return e.valueBlock.value},toASN:function(e){return new hG({value:e})}},mq={fromASN:function(e){return e.valueBlock.valueHexView},toASN:function(e){return new pG({valueHex:e})}},yq={fromASN:function(e){return new uq(e.getValue())},toASN:function(e){return e.toASN()}};function bq(e){return{fromASN:function(e){return e.valueBlock.value},toASN:function(t){return new e({value:t})}}}var wq=bq(RG),kq=bq(FG),xq=bq(VG),_q=bq(zG),Aq=bq(jG),Cq=bq(HG),Sq=bq(UG),Eq=bq(WG),Pq=bq(GG),Oq=bq(qG),Dq=bq(YG),Iq=bq(ZG),Tq={fromASN:function(e){return e.toDate()},toASN:function(e){return new KG({valueDate:e})}},Mq={fromASN:function(e){return e.toDate()},toASN:function(e){return new QG({valueDate:e})}},Bq={fromASN:function(){return null},toASN:function(){return new cG}};function Rq(e){switch(e){case tG.Any:return cq;case tG.BitString:return pq;case tG.BmpString:return kq;case tG.Boolean:return vq;case tG.CharacterString:return Iq;case tG.Enumerated:return hq;case tG.GeneralString:return Dq;case tG.GeneralizedTime:return Mq;case tG.GraphicString:return Pq;case tG.IA5String:return Eq;case tG.Integer:return dq;case tG.Null:return Bq;case tG.NumericString:return _q;case tG.ObjectIdentifier:return gq;case tG.OctetString:return mq;case tG.PrintableString:return Aq;case tG.TeletexString:return Cq;case tG.UTCTime:return Tq;case tG.UniversalString:return xq;case tG.Utf8String:return wq;case tG.VideotexString:return Sq;case tG.VisibleString:return Oq;default:return null}}function Lq(e){return"function"==typeof e&&e.prototype?!(!e.prototype.toASN||!e.prototype.fromASN)||Lq(e.prototype):!!(e&&"object"==typeof e&&"toASN"in e&&"fromASN"in e)}function Fq(e){var t;if(e){var n=Object.getPrototypeOf(e);return(null===(t=null==n?void 0:n.prototype)||void 0===t?void 0:t.constructor)===Array||Fq(n)}return!1}function Nq(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;for(var n=new Uint8Array(e),i=new Uint8Array(t),r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}var Vq=new(function(){function e(){Z(this,e),this.items=new WeakMap}return Y(e,[{key:"has",value:function(e){return this.items.has(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.items.get(e);if(!n)throw new Error("Cannot get schema for '".concat(e.prototype.constructor.name,"' target"));if(t&&!n.schema)throw new Error("Schema '".concat(e.prototype.constructor.name,"' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'."));return n}},{key:"cache",value:function(e){var t=this.get(e);t.schema||(t.schema=this.create(e,!0))}},{key:"createDefault",value:function(e){var t={type:eG.Sequence,items:{}},n=this.findParentSchema(e);return n&&(Object.assign(t,n),t.items=Object.assign({},t.items,n.items)),t}},{key:"create",value:function(e,t){var n=this.items.get(e)||this.createDefault(e),i=[];for(var r in n.items){var o=n.items[r],a=t?r:"",s=void 0;if("number"==typeof o.type){var l=tG[o.type],u=P[l];if(!u)throw new Error("Cannot get ASN1 class by name '".concat(l,"'"));s=new u({name:a})}else Lq(o.type)?s=(new o.type).toSchema(a):o.optional?this.get(o.type).type===eG.Choice?s=new nq({name:a}):(s=this.create(o.type,!1)).name=a:s=new nq({name:a});var c=!!o.optional||void 0!==o.defaultValue;if(o.repeated&&(s.name="",s=new("set"===o.repeated?DG:OG)({name:"",value:[new rq({name:a,value:s})]})),null!=o.context)if(o.implicit)if("number"==typeof o.type||Lq(o.type))i.push(new(o.repeated?sG:iG)({name:a,optional:c,idBlock:{tagClass:3,tagNumber:o.context}}));else{this.cache(o.type);var d=!!o.repeated,h=d?s:this.get(o.type,!0).schema;h="valueBlock"in h?h.valueBlock.value:h.value,i.push(new sG({name:d?"":a,optional:c,idBlock:{tagClass:3,tagNumber:o.context},value:h}))}else i.push(new sG({optional:c,idBlock:{tagClass:3,tagNumber:o.context},value:[s]}));else s.optional=c,i.push(s)}switch(n.type){case eG.Sequence:return new OG({value:i,name:""});case eG.Set:return new DG({value:i,name:""});case eG.Choice:return new iq({value:i,name:""});default:throw new Error("Unsupported ASN1 type in use")}}},{key:"set",value:function(e,t){return this.items.set(e,t),this}},{key:"findParentSchema",value:function(e){var t=Object.getPrototypeOf(e);return t?this.items.get(t)||this.findParentSchema(t):null}}]),e}()),zq=function(e){return function(t){var n;Vq.has(t)?n=Vq.get(t):(n=Vq.createDefault(t),Vq.set(t,n)),Object.assign(n,e)}},jq=function(e){return function(t,n){var i;Vq.has(t.constructor)?i=Vq.get(t.constructor):(i=Vq.createDefault(t.constructor),Vq.set(t.constructor,i));var r=Object.assign({},e);if("number"==typeof r.type&&!r.converter){var o=Rq(e.type);if(!o)throw new Error("Cannot get default converter for property '".concat(n,"' of ").concat(t.constructor.name));r.converter=o}i.items[n]=r}},Hq=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments)).schemas=[],e}return Y(n)}(_(Error)),Uq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"parse",value:function(e,t){var n=oG(e);if(n.result.error)throw new Error(n.result.error);return this.fromASN(n.result,t)}},{key:"fromASN",value:function(e,t){var n,i=this;try{if(Lq(t))return(new t).fromASN(e);var r=Vq.get(t);Vq.cache(t);var o=r.schema;if(e.constructor===sG&&r.type!==eG.Choice)for(var a in o=new sG({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:r.schema.valueBlock.value}),r.items)delete e[a];var s=aq({},e,o);if(!s.verified)throw new Hq("Data does not match to ".concat(t.name," ASN1 schema. ").concat(s.result.error));var l=new t;if(Fq(t)){if(!("value"in e.valueBlock)||!Array.isArray(e.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");var u=r.itemType;if("number"==typeof u){var c=Rq(u);if(!c)throw new Error("Cannot get default converter for array item of ".concat(t.name," ASN1 schema"));return t.from(e.valueBlock.value,function(e){return c.fromASN(e)})}return t.from(e.valueBlock.value,function(e){return i.fromASN(e,u)})}var d=function(e){var t=s.result[e];if(!t)return"continue";var o=r.items[e],a=o.type;if("number"==typeof a||Lq(a)){var u=null!==(n=o.converter)&&void 0!==n?n:Lq(a)?new a:null;if(!u)throw new Error("Converter is empty");if(o.repeated)if(o.implicit){var c=new("sequence"===o.repeated?OG:DG);c.valueBlock=t.valueBlock;var d=oG(c.toBER(!1));if(-1===d.offset)throw new Error("Cannot parse the child item. "+d.result.error);if(!("value"in d.result.valueBlock)||!Array.isArray(d.result.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");l[e]=Array.from(d.result.valueBlock.value,function(e){return u.fromASN(e)})}else l[e]=Array.from(t,function(e){return u.fromASN(e)});else{var h=t;if(o.implicit){var f;if(Lq(a))f=(new a).toSchema("");else{var p=tG[a],g=P[p];if(!g)throw new Error("Cannot get '".concat(p,"' class from asn1js module"));f=new g}f.valueBlock=h.valueBlock,h=oG(f.toBER(!1)).result}l[e]=u.fromASN(h)}}else if(o.repeated){if(!Array.isArray(t))throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");l[e]=Array.from(t,function(e){return i.fromASN(e,a)})}else l[e]=i.fromASN(t,a)};for(var h in r.items)d(h);return l}catch(f){throw f instanceof Hq&&f.schemas.push(t.name),f}}}]),e}(),Wq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"serialize",value:function(e){return e instanceof QW?e.toBER(!1):this.toASN(e).toBER(!1)}},{key:"toASN",value:function(t){var n=this;if(t&&"object"==typeof t&&Lq(t))return t.toASN();if(!t||"object"!=typeof t)throw new TypeError("Parameter 1 should be type of Object.");var i=t.constructor,r=Vq.get(i);Vq.cache(i);var o,a=[];if(r.itemType){if(!Array.isArray(t))throw new TypeError("Parameter 1 should be type of Array.");if("number"==typeof r.itemType){var s=Rq(r.itemType);if(!s)throw new Error("Cannot get default converter for array item of ".concat(i.name," ASN1 schema"));a=t.map(function(e){return s.toASN(e)})}else a=t.map(function(e){return n.toAsnItem({type:r.itemType},"[]",i,e)})}else for(var l in r.items){var u=r.items[l],c=t[l];if(!(void 0===c||u.defaultValue===c||"object"==typeof u.defaultValue&&"object"==typeof c&&Nq(this.serialize(u.defaultValue),this.serialize(c)))){var d=e.toAsnItem(u,l,i,c);if("number"==typeof u.context)if(u.implicit)if(u.repeated||"number"!=typeof u.type&&!Lq(u.type))a.push(new sG({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:d.valueBlock.value}));else{var h={};h.valueHex=d instanceof cG?d.valueBeforeDecodeView:d.valueBlock.toBER(),a.push(new iG(x({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context}},h)))}else a.push(new sG({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:[d]}));else u.repeated?a=a.concat(d):a.push(d)}}switch(r.type){case eG.Sequence:o=new OG({value:a});break;case eG.Set:o=new DG({value:a});break;case eG.Choice:if(!a[0])throw new Error("Schema '".concat(i.name,"' has wrong data. Choice cannot be empty."));o=a[0]}return o}},{key:"toAsnItem",value:function(e,t,n,i){var r,o=this;if("number"==typeof e.type){var a=e.converter;if(!a)throw new Error("Property '".concat(t,"' doesn't have converter for type ").concat(tG[e.type]," in schema '").concat(n.name,"'"));if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");var s=Array.from(i,function(e){return a.toASN(e)});r=new("sequence"===e.repeated?OG:DG)({value:s})}else r=a.toASN(i)}else if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");var l=Array.from(i,function(e){return o.toASN(e)});r=new("sequence"===e.repeated?OG:DG)({value:l})}else r=this.toASN(i);return r}}]),e}(),Gq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Z(this,n),"number"==typeof i)e=t.call(this,i);else{e=t.call(this);var r,o=R(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;e.push(a)}}catch(s){o.e(s)}finally{o.f()}}return D(e)}return Y(n)}(_(Array)),qq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"serialize",value:function(e){return Wq.serialize(e)}},{key:"parse",value:function(e,t){return Uq.parse(e,t)}},{key:"toString",value:function(t){var n=oG(IW.BufferSourceConverter.isBufferSource(t)?IW.BufferSourceConverter.toArrayBuffer(t):e.serialize(t));if(-1===n.offset)throw new Error("Cannot decode ASN.1 data. "+n.result.error);return n.result.toString()}}]),e}();function Yq(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}var Zq,Kq,Qq,Xq=S("3oEA"),Jq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"decodeIP",value:function(e){if(64===e.length&&0===parseInt(e,16))return"::/0";if(16!==e.length)return e;var t=parseInt(e.slice(8),16).toString(2).split("").reduce(function(e,t){return e+ +t},0),n=e.slice(0,8).replace(/(.{2})/g,function(e){return parseInt(e,16)+"."});return n=n.slice(0,-1),"".concat(n,"/").concat(t)}},{key:"toString",value:function(e){if(4===e.byteLength||16===e.byteLength){var t=new Uint8Array(e);return Xq.fromByteArray(Array.from(t)).toString()}return this.decodeIP(IW.Convert.ToHex(e))}},{key:"fromString",value:function(e){var t=Xq.parse(e);return new Uint8Array(t.toByteArray()).buffer}}]),e}(),$q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)}return Y(e,[{key:"toString",value:function(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}}]),e}();Yq([jq({type:tG.TeletexString})],$q.prototype,"teletexString",void 0),Yq([jq({type:tG.PrintableString})],$q.prototype,"printableString",void 0),Yq([jq({type:tG.UniversalString})],$q.prototype,"universalString",void 0),Yq([jq({type:tG.Utf8String})],$q.prototype,"utf8String",void 0),Yq([jq({type:tG.BmpString})],$q.prototype,"bmpString",void 0);var eY=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),e=t.call(this,i),Object.assign(I(e),i),e}return Y(n,[{key:"toString",value:function(){return this.ia5String||(this.anyValue?IW.Convert.ToHex(this.anyValue):C(M(n.prototype),"toString",this).call(this))}}]),n}($q=Yq([zq({type:eG.Choice})],$q));Yq([jq({type:tG.IA5String})],eY.prototype,"ia5String",void 0),Yq([jq({type:tG.Any})],eY.prototype,"anyValue",void 0),eY=Yq([zq({type:eG.Choice})],eY);var tY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.type="",this.value=new eY,Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],tY.prototype,"type",void 0),Yq([jq({type:eY})],tY.prototype,"value",void 0);var nY=Zq=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),Zq.prototype),i}return Y(n)}(Gq);nY=Zq=Yq([zq({type:eG.Set,itemType:tY})],nY);var iY=Kq=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),Kq.prototype),i}return Y(n)}(Gq);iY=Kq=Yq([zq({type:eG.Sequence,itemType:nY})],iY);var rY=Qq=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),Qq.prototype),i}return Y(n)}(iY);rY=Qq=Yq([zq({type:eG.Sequence})],rY);var oY={fromASN:function(e){return Jq.toString(mq.fromASN(e))},toASN:function(e){return mq.toASN(Jq.fromString(e))}},aY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.typeId="",this.value=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],aY.prototype,"typeId",void 0),Yq([jq({type:tG.Any,context:0})],aY.prototype,"value",void 0);var sY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.partyName=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:$q,optional:!0,context:0,implicit:!0})],sY.prototype,"nameAssigner",void 0),Yq([jq({type:$q,context:1,implicit:!0})],sY.prototype,"partyName",void 0);var lY,uY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:aY,context:0,implicit:!0})],uY.prototype,"otherName",void 0),Yq([jq({type:tG.IA5String,context:1,implicit:!0})],uY.prototype,"rfc822Name",void 0),Yq([jq({type:tG.IA5String,context:2,implicit:!0})],uY.prototype,"dNSName",void 0),Yq([jq({type:tG.Any,context:3,implicit:!0})],uY.prototype,"x400Address",void 0),Yq([jq({type:rY,context:4,implicit:!1})],uY.prototype,"directoryName",void 0),Yq([jq({type:sY,context:5})],uY.prototype,"ediPartyName",void 0),Yq([jq({type:tG.IA5String,context:6,implicit:!0})],uY.prototype,"uniformResourceIdentifier",void 0),Yq([jq({type:tG.OctetString,context:7,implicit:!0,converter:oY})],uY.prototype,"iPAddress",void 0),Yq([jq({type:tG.ObjectIdentifier,context:8,implicit:!0})],uY.prototype,"registeredID",void 0),uY=Yq([zq({type:eG.Choice})],uY);var cY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.accessMethod="",this.accessLocation=new uY,Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],cY.prototype,"accessMethod",void 0),Yq([jq({type:uY})],cY.prototype,"accessLocation",void 0);var dY=lY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),lY.prototype),i}return Y(n)}(Gq);dY=lY=Yq([zq({type:eG.Sequence,itemType:cY})],dY);var hY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(uq),fY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),t&&Object.assign(this,t)});Yq([jq({type:hY,context:0,optional:!0,implicit:!0})],fY.prototype,"keyIdentifier",void 0),Yq([jq({type:uY,context:1,optional:!0,implicit:!0,repeated:"sequence"})],fY.prototype,"authorityCertIssuer",void 0),Yq([jq({type:tG.Integer,context:2,optional:!0,implicit:!0,converter:fq})],fY.prototype,"authorityCertSerialNumber",void 0);var pY,gY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.cA=!1,Object.assign(this,t)});Yq([jq({type:tG.Boolean,defaultValue:!1})],gY.prototype,"cA",void 0),Yq([jq({type:tG.Integer,optional:!0})],gY.prototype,"pathLenConstraint",void 0);var vY,mY=pY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),pY.prototype),i}return Y(n)}(Gq);mY=pY=Yq([zq({type:eG.Sequence,itemType:uY})],mY);var yY,bY=vY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),vY.prototype),i}return Y(n)}(mY);bY=vY=Yq([zq({type:eG.Sequence})],bY);var wY=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)}return Y(e,[{key:"toString",value:function(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}}]),e}();Yq([jq({type:tG.IA5String})],wY.prototype,"ia5String",void 0),Yq([jq({type:tG.VisibleString})],wY.prototype,"visibleString",void 0),Yq([jq({type:tG.BmpString})],wY.prototype,"bmpString",void 0),Yq([jq({type:tG.Utf8String})],wY.prototype,"utf8String",void 0),wY=Yq([zq({type:eG.Choice})],wY);var kY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.organization=new wY,this.noticeNumbers=[],Object.assign(this,t)});Yq([jq({type:wY})],kY.prototype,"organization",void 0),Yq([jq({type:tG.Integer,repeated:"sequence"})],kY.prototype,"noticeNumbers",void 0);var xY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:kY,optional:!0})],xY.prototype,"noticeRef",void 0),Yq([jq({type:wY,optional:!0})],xY.prototype,"explicitText",void 0);var _Y=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.IA5String})],_Y.prototype,"cPSuri",void 0),Yq([jq({type:xY})],_Y.prototype,"userNotice",void 0),_Y=Yq([zq({type:eG.Choice})],_Y);var AY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.policyQualifierId="",this.qualifier=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],AY.prototype,"policyQualifierId",void 0),Yq([jq({type:tG.Any})],AY.prototype,"qualifier",void 0);var CY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.policyIdentifier="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],CY.prototype,"policyIdentifier",void 0),Yq([jq({type:AY,repeated:"sequence",optional:!0})],CY.prototype,"policyQualifiers",void 0);var SY=yY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),yY.prototype),i}return Y(n)}(Gq);SY=yY=Yq([zq({type:eG.Sequence,itemType:CY})],SY);var EY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Z(this,e),this.value=t});Yq([jq({type:tG.Integer})],EY.prototype,"value",void 0);var PY,OY,DY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(EY=Yq([zq({type:eG.Choice})],EY));DY=Yq([zq({type:eG.Choice})],DY),function(e){e[e.unused=1]="unused",e[e.keyCompromise=2]="keyCompromise",e[e.cACompromise=4]="cACompromise",e[e.affiliationChanged=8]="affiliationChanged",e[e.superseded=16]="superseded",e[e.cessationOfOperation=32]="cessationOfOperation",e[e.certificateHold=64]="certificateHold",e[e.privilegeWithdrawn=128]="privilegeWithdrawn",e[e.aACompromise=256]="aACompromise"}(OY||(OY={}));var IY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"toJSON",value:function(){var e=[],t=this.toNumber();return t&OY.aACompromise&&e.push("aACompromise"),t&OY.affiliationChanged&&e.push("affiliationChanged"),t&OY.cACompromise&&e.push("cACompromise"),t&OY.certificateHold&&e.push("certificateHold"),t&OY.cessationOfOperation&&e.push("cessationOfOperation"),t&OY.keyCompromise&&e.push("keyCompromise"),t&OY.privilegeWithdrawn&&e.push("privilegeWithdrawn"),t&OY.superseded&&e.push("superseded"),t&OY.unused&&e.push("unused"),e}},{key:"toString",value:function(){return"[".concat(this.toJSON().join(", "),"]")}}]),n}(lq),TY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uY,context:0,repeated:"sequence",implicit:!0})],TY.prototype,"fullName",void 0),Yq([jq({type:nY,context:1,implicit:!0})],TY.prototype,"nameRelativeToCRLIssuer",void 0),TY=Yq([zq({type:eG.Choice})],TY);var MY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:TY,context:0,optional:!0})],MY.prototype,"distributionPoint",void 0),Yq([jq({type:IY,context:1,optional:!0,implicit:!0})],MY.prototype,"reasons",void 0),Yq([jq({type:uY,context:2,optional:!0,repeated:"sequence",implicit:!0})],MY.prototype,"cRLIssuer",void 0);var BY,RY=PY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),PY.prototype),i}return Y(n)}(Gq);RY=PY=Yq([zq({type:eG.Sequence,itemType:MY})],RY);var LY=BY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),BY.prototype),i}return Y(n)}(RY);LY=BY=Yq([zq({type:eG.Sequence,itemType:MY})],LY);var FY,NY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.onlyContainsUserCerts=e.ONLY,this.onlyContainsCACerts=e.ONLY,this.indirectCRL=e.ONLY,this.onlyContainsAttributeCerts=e.ONLY,Object.assign(this,t)});NY.ONLY=!1,Yq([jq({type:TY,context:0,optional:!0})],NY.prototype,"distributionPoint",void 0),Yq([jq({type:tG.Boolean,context:1,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"onlyContainsUserCerts",void 0),Yq([jq({type:tG.Boolean,context:2,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"onlyContainsCACerts",void 0),Yq([jq({type:IY,context:3,optional:!0,implicit:!0})],NY.prototype,"onlySomeReasons",void 0),Yq([jq({type:tG.Boolean,context:4,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"indirectCRL",void 0),Yq([jq({type:tG.Boolean,context:5,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"onlyContainsAttributeCerts",void 0),function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(FY||(FY={}));var VY,zY=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:FY.unspecified;Z(this,e),this.reason=FY.unspecified,this.reason=t}return Y(e,[{key:"toJSON",value:function(){return FY[this.reason]}},{key:"toString",value:function(){return this.toJSON()}}]),e}();Yq([jq({type:tG.Enumerated})],zY.prototype,"reason",void 0),zY=Yq([zq({type:eG.Choice})],zY);var jY=VY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),VY.prototype),i}return Y(n)}(Gq);jY=VY=Yq([zq({type:eG.Sequence,itemType:tG.ObjectIdentifier})],jY);var HY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ArrayBuffer(0);Z(this,e),this.value=t});Yq([jq({type:tG.Integer,converter:fq})],HY.prototype,"value",void 0),HY=Yq([zq({type:eG.Choice})],HY);var UY,WY=Y(function e(t){Z(this,e),this.value=new Date,t&&(this.value=t)});Yq([jq({type:tG.GeneralizedTime})],WY.prototype,"value",void 0),WY=Yq([zq({type:eG.Choice})],WY);var GY,qY,YY=UY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),UY.prototype),i}return Y(n)}(mY);YY=UY=Yq([zq({type:eG.Sequence})],YY),function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(GY||(GY={}));var ZY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"toJSON",value:function(){var e=this.toNumber(),t=[];return e&GY.cRLSign&&t.push("crlSign"),e&GY.dataEncipherment&&t.push("dataEncipherment"),e&GY.decipherOnly&&t.push("decipherOnly"),e&GY.digitalSignature&&t.push("digitalSignature"),e&GY.encipherOnly&&t.push("encipherOnly"),e&GY.keyAgreement&&t.push("keyAgreement"),e&GY.keyCertSign&&t.push("keyCertSign"),e&GY.keyEncipherment&&t.push("keyEncipherment"),e&GY.nonRepudiation&&t.push("nonRepudiation"),t}},{key:"toString",value:function(){return"[".concat(this.toJSON().join(", "),"]")}}]),n}(lq),KY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.base=new uY,this.minimum=0,Object.assign(this,t)});Yq([jq({type:uY})],KY.prototype,"base",void 0),Yq([jq({type:tG.Integer,context:0,defaultValue:0,implicit:!0})],KY.prototype,"minimum",void 0),Yq([jq({type:tG.Integer,context:1,optional:!0,implicit:!0})],KY.prototype,"maximum",void 0);var QY=qY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),qY.prototype),i}return Y(n)}(Gq);QY=qY=Yq([zq({type:eG.Sequence,itemType:KY})],QY);var XY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:QY,context:0,optional:!0,implicit:!0})],XY.prototype,"permittedSubtrees",void 0),Yq([jq({type:QY,context:1,optional:!0,implicit:!0})],XY.prototype,"excludedSubtrees",void 0);var JY,$Y=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.Integer,context:0,implicit:!0,optional:!0,converter:fq})],$Y.prototype,"requireExplicitPolicy",void 0),Yq([jq({type:tG.Integer,context:1,implicit:!0,optional:!0,converter:fq})],$Y.prototype,"inhibitPolicyMapping",void 0);var eZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.issuerDomainPolicy="",this.subjectDomainPolicy="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],eZ.prototype,"issuerDomainPolicy",void 0),Yq([jq({type:tG.ObjectIdentifier})],eZ.prototype,"subjectDomainPolicy",void 0);var tZ,nZ=JY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),JY.prototype),i}return Y(n)}(Gq);nZ=JY=Yq([zq({type:eG.Sequence,itemType:eZ})],nZ);var iZ=tZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),tZ.prototype),i}return Y(n)}(mY);iZ=tZ=Yq([zq({type:eG.Sequence})],iZ);var rZ,oZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.type="",this.values=[],Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],oZ.prototype,"type",void 0),Yq([jq({type:tG.Any,repeated:"set"})],oZ.prototype,"values",void 0);var aZ=rZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),rZ.prototype),i}return Y(n)}(Gq);aZ=rZ=Yq([zq({type:eG.Sequence,itemType:oZ})],aZ);var sZ,lZ,uZ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(hY),cZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.GeneralizedTime,context:0,implicit:!0,optional:!0})],cZ.prototype,"notBefore",void 0),Yq([jq({type:tG.GeneralizedTime,context:1,implicit:!0,optional:!0})],cZ.prototype,"notAfter",void 0),function(e){e[e.keyUpdateAllowed=1]="keyUpdateAllowed",e[e.newExtensions=2]="newExtensions",e[e.pKIXCertificate=4]="pKIXCertificate"}(sZ||(sZ={}));var dZ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"toJSON",value:function(){var e=[],t=this.toNumber();return t&sZ.pKIXCertificate&&e.push("pKIXCertificate"),t&sZ.newExtensions&&e.push("newExtensions"),t&sZ.keyUpdateAllowed&&e.push("keyUpdateAllowed"),e}},{key:"toString",value:function(){return"[".concat(this.toJSON().join(", "),"]")}}]),n}(lq),hZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.entrustVers="",this.entrustInfoFlags=new dZ,Object.assign(this,t)});Yq([jq({type:tG.GeneralString})],hZ.prototype,"entrustVers",void 0),Yq([jq({type:dZ})],hZ.prototype,"entrustInfoFlags",void 0);var fZ=lZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),lZ.prototype),i}return Y(n)}(Gq);fZ=lZ=Yq([zq({type:eG.Sequence,itemType:cY})],fZ);var pZ=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.algorithm="",Object.assign(this,t)}return Y(e,[{key:"isEqual",value:function(t){return t instanceof e&&t.algorithm==this.algorithm&&(t.parameters&&this.parameters&&IW.isEqual(t.parameters,this.parameters)||t.parameters===this.parameters)}}]),e}();Yq([jq({type:tG.ObjectIdentifier})],pZ.prototype,"algorithm",void 0),Yq([jq({type:tG.Any,optional:!0})],pZ.prototype,"parameters",void 0);var gZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.algorithm=new pZ,this.subjectPublicKey=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:pZ})],gZ.prototype,"algorithm",void 0),Yq([jq({type:tG.BitString})],gZ.prototype,"subjectPublicKey",void 0);var vZ=function(){function e(t){if(Z(this,e),t)if("string"==typeof t||"number"==typeof t||t instanceof Date){var n=new Date(t);n.getUTCFullYear()>2049?this.generalTime=n:this.utcTime=n}else Object.assign(this,t)}return Y(e,[{key:"getTime",value:function(){var e=this.utcTime||this.generalTime;if(!e)throw new Error("Cannot get time from CHOICE object");return e}}]),e}();Yq([jq({type:tG.UTCTime})],vZ.prototype,"utcTime",void 0),Yq([jq({type:tG.GeneralizedTime})],vZ.prototype,"generalTime",void 0),vZ=Yq([zq({type:eG.Choice})],vZ);var mZ,yZ=Y(function e(t){Z(this,e),this.notBefore=new vZ(new Date),this.notAfter=new vZ(new Date),t&&(this.notBefore=new vZ(t.notBefore),this.notAfter=new vZ(t.notAfter))});Yq([jq({type:vZ})],yZ.prototype,"notBefore",void 0),Yq([jq({type:vZ})],yZ.prototype,"notAfter",void 0);var bZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.extnID="",this.critical=e.CRITICAL,this.extnValue=new uq,Object.assign(this,t)});bZ.CRITICAL=!1,Yq([jq({type:tG.ObjectIdentifier})],bZ.prototype,"extnID",void 0),Yq([jq({type:tG.Boolean,defaultValue:bZ.CRITICAL})],bZ.prototype,"critical",void 0),Yq([jq({type:uq})],bZ.prototype,"extnValue",void 0);var wZ,kZ,xZ=mZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),mZ.prototype),i}return Y(n)}(Gq);xZ=mZ=Yq([zq({type:eG.Sequence,itemType:bZ})],xZ),function(e){e[e.v1=0]="v1",e[e.v2=1]="v2",e[e.v3=2]="v3"}(wZ||(wZ={}));var _Z=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=wZ.v1,this.serialNumber=new ArrayBuffer(0),this.signature=new pZ,this.issuer=new rY,this.validity=new yZ,this.subject=new rY,this.subjectPublicKeyInfo=new gZ,Object.assign(this,t)});Yq([jq({type:tG.Integer,context:0,defaultValue:wZ.v1})],_Z.prototype,"version",void 0),Yq([jq({type:tG.Integer,converter:fq})],_Z.prototype,"serialNumber",void 0),Yq([jq({type:pZ})],_Z.prototype,"signature",void 0),Yq([jq({type:rY})],_Z.prototype,"issuer",void 0),Yq([jq({type:yZ})],_Z.prototype,"validity",void 0),Yq([jq({type:rY})],_Z.prototype,"subject",void 0),Yq([jq({type:gZ})],_Z.prototype,"subjectPublicKeyInfo",void 0),Yq([jq({type:tG.BitString,context:1,implicit:!0,optional:!0})],_Z.prototype,"issuerUniqueID",void 0),Yq([jq({type:tG.BitString,context:2,implicit:!0,optional:!0})],_Z.prototype,"subjectUniqueID",void 0),Yq([jq({type:xZ,context:3,optional:!0})],_Z.prototype,"extensions",void 0);var AZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.tbsCertificate=new _Z,this.signatureAlgorithm=new pZ,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:_Z})],AZ.prototype,"tbsCertificate",void 0),Yq([jq({type:pZ})],AZ.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],AZ.prototype,"signatureValue",void 0);var CZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.userCertificate=new ArrayBuffer(0),this.revocationDate=new vZ,Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],CZ.prototype,"userCertificate",void 0),Yq([jq({type:vZ})],CZ.prototype,"revocationDate",void 0),Yq([jq({type:bZ,optional:!0,repeated:"sequence"})],CZ.prototype,"crlEntryExtensions",void 0);var SZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.signature=new pZ,this.issuer=new rY,this.thisUpdate=new vZ,Object.assign(this,t)});Yq([jq({type:tG.Integer,optional:!0})],SZ.prototype,"version",void 0),Yq([jq({type:pZ})],SZ.prototype,"signature",void 0),Yq([jq({type:rY})],SZ.prototype,"issuer",void 0),Yq([jq({type:vZ})],SZ.prototype,"thisUpdate",void 0),Yq([jq({type:vZ,optional:!0})],SZ.prototype,"nextUpdate",void 0),Yq([jq({type:CZ,repeated:"sequence",optional:!0})],SZ.prototype,"revokedCertificates",void 0),Yq([jq({type:bZ,optional:!0,context:0,repeated:"sequence"})],SZ.prototype,"crlExtensions",void 0);var EZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.tbsCertList=new SZ,this.signatureAlgorithm=new pZ,this.signature=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:SZ})],EZ.prototype,"tbsCertList",void 0),Yq([jq({type:pZ})],EZ.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],EZ.prototype,"signature",void 0);var PZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.attrType="",this.attrValues=[],Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],PZ.prototype,"attrType",void 0),Yq([jq({type:tG.Any,repeated:"set"})],PZ.prototype,"attrValues",void 0);var OZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.acIssuer=new uY,this.acSerial=0,this.attrs=[],Object.assign(this,t)});Yq([jq({type:uY})],OZ.prototype,"acIssuer",void 0),Yq([jq({type:tG.Integer})],OZ.prototype,"acSerial",void 0),Yq([jq({type:oZ,repeated:"sequence"})],OZ.prototype,"attrs",void 0);var DZ=kZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),kZ.prototype),i}return Y(n)}(Gq);DZ=kZ=Yq([zq({type:eG.Sequence,itemType:tG.ObjectIdentifier})],DZ);var IZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.permitUnSpecified=!0,Object.assign(this,t)});Yq([jq({type:tG.Integer,optional:!0})],IZ.prototype,"pathLenConstraint",void 0),Yq([jq({type:DZ,implicit:!0,context:0,optional:!0})],IZ.prototype,"permittedAttrs",void 0),Yq([jq({type:DZ,implicit:!0,context:1,optional:!0})],IZ.prototype,"excludedAttrs",void 0),Yq([jq({type:tG.Boolean,defaultValue:!0})],IZ.prototype,"permitUnSpecified",void 0);var TZ,MZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.issuer=new mY,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:mY})],MZ.prototype,"issuer",void 0),Yq([jq({type:tG.Integer,converter:fq})],MZ.prototype,"serial",void 0),Yq([jq({type:tG.BitString,optional:!0})],MZ.prototype,"issuerUID",void 0),function(e){e[e.publicKey=0]="publicKey",e[e.publicKeyCert=1]="publicKeyCert",e[e.otherObjectTypes=2]="otherObjectTypes"}(TZ||(TZ={}));var BZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.digestedObjectType=TZ.publicKey,this.digestAlgorithm=new pZ,this.objectDigest=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Enumerated})],BZ.prototype,"digestedObjectType",void 0),Yq([jq({type:tG.ObjectIdentifier,optional:!0})],BZ.prototype,"otherObjectTypeID",void 0),Yq([jq({type:pZ})],BZ.prototype,"digestAlgorithm",void 0),Yq([jq({type:tG.BitString})],BZ.prototype,"objectDigest",void 0);var RZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:mY,optional:!0})],RZ.prototype,"issuerName",void 0),Yq([jq({type:MZ,context:0,implicit:!0,optional:!0})],RZ.prototype,"baseCertificateID",void 0),Yq([jq({type:BZ,context:1,implicit:!0,optional:!0})],RZ.prototype,"objectDigestInfo",void 0);var LZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uY,repeated:"sequence"})],LZ.prototype,"v1Form",void 0),Yq([jq({type:RZ,context:0,implicit:!0})],LZ.prototype,"v2Form",void 0),LZ=Yq([zq({type:eG.Choice})],LZ);var FZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,t)});Yq([jq({type:tG.GeneralizedTime})],FZ.prototype,"notBeforeTime",void 0),Yq([jq({type:tG.GeneralizedTime})],FZ.prototype,"notAfterTime",void 0);var NZ,VZ,zZ,jZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:MZ,implicit:!0,context:0,optional:!0})],jZ.prototype,"baseCertificateID",void 0),Yq([jq({type:mY,implicit:!0,context:1,optional:!0})],jZ.prototype,"entityName",void 0),Yq([jq({type:BZ,implicit:!0,context:2,optional:!0})],jZ.prototype,"objectDigestInfo",void 0),function(e){e[e.v2=1]="v2"}(NZ||(NZ={}));var HZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=NZ.v2,this.holder=new jZ,this.issuer=new LZ,this.signature=new pZ,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new FZ,this.attributes=[],Object.assign(this,t)});Yq([jq({type:tG.Integer})],HZ.prototype,"version",void 0),Yq([jq({type:jZ})],HZ.prototype,"holder",void 0),Yq([jq({type:LZ})],HZ.prototype,"issuer",void 0),Yq([jq({type:pZ})],HZ.prototype,"signature",void 0),Yq([jq({type:tG.Integer,converter:fq})],HZ.prototype,"serialNumber",void 0),Yq([jq({type:FZ})],HZ.prototype,"attrCertValidityPeriod",void 0),Yq([jq({type:oZ,repeated:"sequence"})],HZ.prototype,"attributes",void 0),Yq([jq({type:tG.BitString,optional:!0})],HZ.prototype,"issuerUniqueID",void 0),Yq([jq({type:xZ,optional:!0})],HZ.prototype,"extensions",void 0);var UZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.acinfo=new HZ,this.signatureAlgorithm=new pZ,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:HZ})],UZ.prototype,"acinfo",void 0),Yq([jq({type:pZ})],UZ.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],UZ.prototype,"signatureValue",void 0),function(e){e[e.unmarked=1]="unmarked",e[e.unclassified=2]="unclassified",e[e.restricted=4]="restricted",e[e.confidential=8]="confidential",e[e.secret=16]="secret",e[e.topSecret=32]="topSecret"}(VZ||(VZ={}));var WZ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(lq),GZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.type="",this.value=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier,implicit:!0,context:0})],GZ.prototype,"type",void 0),Yq([jq({type:tG.Any,implicit:!0,context:1})],GZ.prototype,"value",void 0);var qZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.policyId="",this.classList=new WZ(VZ.unclassified),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],qZ.prototype,"policyId",void 0),Yq([jq({type:WZ,defaultValue:new WZ(VZ.unclassified)})],qZ.prototype,"classList",void 0),Yq([jq({type:GZ,repeated:"set"})],qZ.prototype,"securityCategories",void 0);var YZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uq})],YZ.prototype,"cotets",void 0),Yq([jq({type:tG.ObjectIdentifier})],YZ.prototype,"oid",void 0),Yq([jq({type:tG.Utf8String})],YZ.prototype,"string",void 0);var ZZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.values=[],Object.assign(this,t)});Yq([jq({type:mY,implicit:!0,context:0,optional:!0})],ZZ.prototype,"policyAuthority",void 0),Yq([jq({type:YZ,repeated:"sequence"})],ZZ.prototype,"values",void 0);var KZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.targetCertificate=new MZ,Object.assign(this,t)});Yq([jq({type:MZ})],KZ.prototype,"targetCertificate",void 0),Yq([jq({type:uY,optional:!0})],KZ.prototype,"targetName",void 0),Yq([jq({type:BZ,optional:!0})],KZ.prototype,"certDigestInfo",void 0);var QZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uY,context:0,implicit:!0})],QZ.prototype,"targetName",void 0),Yq([jq({type:uY,context:1,implicit:!0})],QZ.prototype,"targetGroup",void 0),Yq([jq({type:KZ,context:2,implicit:!0})],QZ.prototype,"targetCert",void 0),QZ=Yq([zq({type:eG.Choice})],QZ);var XZ,JZ=zZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),zZ.prototype),i}return Y(n)}(Gq);JZ=zZ=Yq([zq({type:eG.Sequence,itemType:QZ})],JZ);var $Z=XZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),XZ.prototype),i}return Y(n)}(Gq);$Z=XZ=Yq([zq({type:eG.Sequence,itemType:JZ})],$Z);var eK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:mY,implicit:!0,context:0,optional:!0})],eK.prototype,"roleAuthority",void 0),Yq([jq({type:uY,implicit:!0,context:1})],eK.prototype,"roleName",void 0);var tK,nK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.service=new uY,this.ident=new uY,Object.assign(this,t)});Yq([jq({type:uY})],nK.prototype,"service",void 0),Yq([jq({type:uY})],nK.prototype,"ident",void 0),Yq([jq({type:uq,optional:!0})],nK.prototype,"authInfo",void 0);var iK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],iK.prototype,"otherCertFormat",void 0),Yq([jq({type:tG.Any})],iK.prototype,"otherCert",void 0);var rK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:AZ})],rK.prototype,"certificate",void 0),Yq([jq({type:UZ,context:2,implicit:!0})],rK.prototype,"v2AttrCert",void 0),Yq([jq({type:iK,context:3,implicit:!0})],rK.prototype,"other",void 0),rK=Yq([zq({type:eG.Choice})],rK);var oK=tK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),tK.prototype),i}return Y(n)}(Gq);oK=tK=Yq([zq({type:eG.Set,itemType:rK})],oK);var aK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],aK.prototype,"contentType",void 0),Yq([jq({type:tG.Any,context:0})],aK.prototype,"content",void 0);var sK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uq})],sK.prototype,"single",void 0),Yq([jq({type:tG.Any})],sK.prototype,"any",void 0),sK=Yq([zq({type:eG.Choice})],sK);var lK,uK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.eContentType="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],uK.prototype,"eContentType",void 0),Yq([jq({type:sK,context:0,optional:!0})],uK.prototype,"eContent",void 0),function(e){e[e.v0=0]="v0",e[e.v1=1]="v1",e[e.v2=2]="v2",e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v5=5]="v5"}(lK||(lK={}));var cK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);cK=Yq([zq({type:eG.Sequence})],cK);var dK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);dK=Yq([zq({type:eG.Sequence})],dK);var hK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);hK=Yq([zq({type:eG.Sequence})],hK);var fK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);fK=Yq([zq({type:eG.Sequence})],fK);var pK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);pK=Yq([zq({type:eG.Sequence})],pK);var gK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);gK=Yq([zq({type:eG.Sequence})],gK);var vK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uq,context:0,implicit:!0,optional:!0})],vK.prototype,"value",void 0),Yq([jq({type:uq,converter:yq,context:0,implicit:!0,optional:!0,repeated:"sequence"})],vK.prototype,"constructedValue",void 0),vK=Yq([zq({type:eG.Choice})],vK);var mK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.contentType="",this.contentEncryptionAlgorithm=new fK,Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],mK.prototype,"contentType",void 0),Yq([jq({type:fK})],mK.prototype,"contentEncryptionAlgorithm",void 0),Yq([jq({type:vK,optional:!0})],mK.prototype,"encryptedContent",void 0);var yK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.issuer=new rY,this.serialNumber=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:rY})],yK.prototype,"issuer",void 0),Yq([jq({type:tG.Integer,converter:fq})],yK.prototype,"serialNumber",void 0);var bK,wK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.keyAttrId="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],wK.prototype,"keyAttrId",void 0),Yq([jq({type:tG.Any,optional:!0})],wK.prototype,"keyAttr",void 0);var kK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.subjectKeyIdentifier=new uZ,Object.assign(this,t)});Yq([jq({type:uZ})],kK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:tG.GeneralizedTime,optional:!0})],kK.prototype,"date",void 0),Yq([jq({type:wK,optional:!0})],kK.prototype,"other",void 0);var xK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:kK,context:0,implicit:!0,optional:!0})],xK.prototype,"rKeyId",void 0),Yq([jq({type:yK,optional:!0})],xK.prototype,"issuerAndSerialNumber",void 0),xK=Yq([zq({type:eG.Choice})],xK);var _K=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.rid=new xK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:xK})],_K.prototype,"rid",void 0),Yq([jq({type:uq})],_K.prototype,"encryptedKey",void 0);var AK=bK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),bK.prototype),i}return Y(n)}(Gq);AK=bK=Yq([zq({type:eG.Sequence,itemType:_K})],AK);var CK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.algorithm=new pZ,this.publicKey=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:pZ})],CK.prototype,"algorithm",void 0),Yq([jq({type:tG.BitString})],CK.prototype,"publicKey",void 0);var SK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uZ,context:0,implicit:!0,optional:!0})],SK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:CK,context:1,implicit:!0,optional:!0})],SK.prototype,"originatorKey",void 0),Yq([jq({type:yK,optional:!0})],SK.prototype,"issuerAndSerialNumber",void 0),SK=Yq([zq({type:eG.Choice})],SK);var EK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v3,this.originator=new SK,this.keyEncryptionAlgorithm=new hK,this.recipientEncryptedKeys=new AK,Object.assign(this,t)});Yq([jq({type:tG.Integer})],EK.prototype,"version",void 0),Yq([jq({type:SK,context:0})],EK.prototype,"originator",void 0),Yq([jq({type:uq,context:1,optional:!0})],EK.prototype,"ukm",void 0),Yq([jq({type:hK})],EK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:AK})],EK.prototype,"recipientEncryptedKeys",void 0);var PK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uZ,context:0,implicit:!0})],PK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:yK})],PK.prototype,"issuerAndSerialNumber",void 0),PK=Yq([zq({type:eG.Choice})],PK);var OK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.rid=new PK,this.keyEncryptionAlgorithm=new hK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],OK.prototype,"version",void 0),Yq([jq({type:PK})],OK.prototype,"rid",void 0),Yq([jq({type:hK})],OK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:uq})],OK.prototype,"encryptedKey",void 0);var DK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.keyIdentifier=new uq,Object.assign(this,t)});Yq([jq({type:uq})],DK.prototype,"keyIdentifier",void 0),Yq([jq({type:tG.GeneralizedTime,optional:!0})],DK.prototype,"date",void 0),Yq([jq({type:wK,optional:!0})],DK.prototype,"other",void 0);var IK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v4,this.kekid=new DK,this.keyEncryptionAlgorithm=new hK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],IK.prototype,"version",void 0),Yq([jq({type:DK})],IK.prototype,"kekid",void 0),Yq([jq({type:hK})],IK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:uq})],IK.prototype,"encryptedKey",void 0);var TK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.keyEncryptionAlgorithm=new hK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],TK.prototype,"version",void 0),Yq([jq({type:gK,context:0,optional:!0})],TK.prototype,"keyDerivationAlgorithm",void 0),Yq([jq({type:hK})],TK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:uq})],TK.prototype,"encryptedKey",void 0);var MK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],MK.prototype,"oriType",void 0),Yq([jq({type:tG.Any})],MK.prototype,"oriValue",void 0);var BK,RK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:OK,optional:!0})],RK.prototype,"ktri",void 0),Yq([jq({type:EK,context:1,implicit:!0,optional:!0})],RK.prototype,"kari",void 0),Yq([jq({type:IK,context:2,implicit:!0,optional:!0})],RK.prototype,"kekri",void 0),Yq([jq({type:TK,context:3,implicit:!0,optional:!0})],RK.prototype,"pwri",void 0),Yq([jq({type:MK,context:4,implicit:!0,optional:!0})],RK.prototype,"ori",void 0),RK=Yq([zq({type:eG.Choice})],RK);var LK,FK=BK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),BK.prototype),i}return Y(n)}(Gq);FK=BK=Yq([zq({type:eG.Set,itemType:RK})],FK);var NK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],NK.prototype,"otherRevInfoFormat",void 0),Yq([jq({type:tG.Any})],NK.prototype,"otherRevInfo",void 0);var VK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.other=new NK,Object.assign(this,t)});Yq([jq({type:NK,context:1,implicit:!0})],VK.prototype,"other",void 0),VK=Yq([zq({type:eG.Choice})],VK);var zK=LK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),LK.prototype),i}return Y(n)}(Gq);zK=LK=Yq([zq({type:eG.Set,itemType:VK})],zK);var jK,HK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:oK,context:0,implicit:!0,optional:!0})],HK.prototype,"certs",void 0),Yq([jq({type:zK,context:1,implicit:!0,optional:!0})],HK.prototype,"crls",void 0);var UK=jK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),jK.prototype),i}return Y(n)}(Gq);UK=jK=Yq([zq({type:eG.Set,itemType:PZ})],UK);var WK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.recipientInfos=new FK,this.encryptedContentInfo=new mK,Object.assign(this,t)});Yq([jq({type:tG.Integer})],WK.prototype,"version",void 0),Yq([jq({type:HK,context:0,implicit:!0,optional:!0})],WK.prototype,"originatorInfo",void 0),Yq([jq({type:FK})],WK.prototype,"recipientInfos",void 0),Yq([jq({type:mK})],WK.prototype,"encryptedContentInfo",void 0),Yq([jq({type:UK,context:1,implicit:!0,optional:!0})],WK.prototype,"unprotectedAttrs",void 0);var GK,qK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uZ,context:0,implicit:!0})],qK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:yK})],qK.prototype,"issuerAndSerialNumber",void 0),qK=Yq([zq({type:eG.Choice})],qK);var YK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.sid=new qK,this.digestAlgorithm=new cK,this.signatureAlgorithm=new dK,this.signature=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],YK.prototype,"version",void 0),Yq([jq({type:qK})],YK.prototype,"sid",void 0),Yq([jq({type:cK})],YK.prototype,"digestAlgorithm",void 0),Yq([jq({type:PZ,repeated:"set",context:0,implicit:!0,optional:!0})],YK.prototype,"signedAttrs",void 0),Yq([jq({type:dK})],YK.prototype,"signatureAlgorithm",void 0),Yq([jq({type:uq})],YK.prototype,"signature",void 0),Yq([jq({type:PZ,repeated:"set",context:1,implicit:!0,optional:!0})],YK.prototype,"unsignedAttrs",void 0);var ZK,KK=GK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),GK.prototype),i}return Y(n)}(Gq);KK=GK=Yq([zq({type:eG.Set,itemType:YK})],KK);var QK=ZK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),ZK.prototype),i}return Y(n)}(Gq);QK=ZK=Yq([zq({type:eG.Set,itemType:cK})],QK);var XK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.digestAlgorithms=new QK,this.encapContentInfo=new uK,this.signerInfos=new KK,Object.assign(this,t)});function JK(e){return new pZ({algorithm:e})}Yq([jq({type:tG.Integer})],XK.prototype,"version",void 0),Yq([jq({type:QK})],XK.prototype,"digestAlgorithms",void 0),Yq([jq({type:uK})],XK.prototype,"encapContentInfo",void 0),Yq([jq({type:oK,context:0,implicit:!0,optional:!0})],XK.prototype,"certificates",void 0),Yq([jq({type:VK,context:1,implicit:!0,optional:!0})],XK.prototype,"crls",void 0),Yq([jq({type:KK})],XK.prototype,"signerInfos",void 0);var $K=JK("1.2.840.10045.4.1"),eQ=(JK("1.2.840.10045.4.3.1"),JK("1.2.840.10045.4.3.2")),tQ=JK("1.2.840.10045.4.3.3"),nQ=JK("1.2.840.10045.4.3.4"),iQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],iQ.prototype,"namedCurve",void 0),iQ=Yq([zq({type:eG.Choice})],iQ);var rQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=1,this.privateKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],rQ.prototype,"version",void 0),Yq([jq({type:uq})],rQ.prototype,"privateKey",void 0),Yq([jq({type:iQ,context:0,optional:!0})],rQ.prototype,"parameters",void 0),Yq([jq({type:tG.BitString,context:1,optional:!0})],rQ.prototype,"publicKey",void 0);var oQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.r=new ArrayBuffer(0),this.s=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],oQ.prototype,"r",void 0),Yq([jq({type:tG.Integer,converter:fq})],oQ.prototype,"s",void 0);var aQ="1.2.840.113549.1.1.8";function sQ(e){return new pZ({algorithm:e,parameters:null})}sQ("1.2.840.113549.2.2"),sQ("1.2.840.113549.2.5");var lQ=sQ("1.3.14.3.2.26"),uQ=(sQ("2.16.840.1.101.3.4.2.4"),sQ("2.16.840.1.101.3.4.2.1"),sQ("2.16.840.1.101.3.4.2.2"),sQ("2.16.840.1.101.3.4.2.3"),sQ("2.16.840.1.101.3.4.2.5"),sQ("2.16.840.1.101.3.4.2.6"),new pZ({algorithm:aQ,parameters:qq.serialize(lQ)})),cQ=new pZ({algorithm:"1.2.840.113549.1.1.9",parameters:qq.serialize(mq.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});sQ("1.2.840.113549.1.1.1"),sQ("1.2.840.113549.1.1.2"),sQ("1.2.840.113549.1.1.4"),sQ("1.2.840.113549.1.1.5"),sQ("1.2.840.113549.1.1.15"),sQ("1.2.840.113549.1.1.16"),sQ("1.2.840.113549.1.1.12"),sQ("1.2.840.113549.1.1.13"),sQ("1.2.840.113549.1.1.15"),sQ("1.2.840.113549.1.1.16");var dQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.hashAlgorithm=new pZ(lQ),this.maskGenAlgorithm=new pZ({algorithm:aQ,parameters:qq.serialize(lQ)}),this.pSourceAlgorithm=new pZ(cQ),Object.assign(this,t)});Yq([jq({type:pZ,context:0,defaultValue:lQ})],dQ.prototype,"hashAlgorithm",void 0),Yq([jq({type:pZ,context:1,defaultValue:uQ})],dQ.prototype,"maskGenAlgorithm",void 0),Yq([jq({type:pZ,context:2,defaultValue:cQ})],dQ.prototype,"pSourceAlgorithm",void 0),new pZ({algorithm:"1.2.840.113549.1.1.7",parameters:qq.serialize(new dQ)});var hQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.hashAlgorithm=new pZ(lQ),this.maskGenAlgorithm=new pZ({algorithm:aQ,parameters:qq.serialize(lQ)}),this.saltLength=20,this.trailerField=1,Object.assign(this,t)});Yq([jq({type:pZ,context:0,defaultValue:lQ})],hQ.prototype,"hashAlgorithm",void 0),Yq([jq({type:pZ,context:1,defaultValue:uQ})],hQ.prototype,"maskGenAlgorithm",void 0),Yq([jq({type:tG.Integer,context:2,defaultValue:20})],hQ.prototype,"saltLength",void 0),Yq([jq({type:tG.Integer,context:3,defaultValue:1})],hQ.prototype,"trailerField",void 0),new pZ({algorithm:"1.2.840.113549.1.1.10",parameters:qq.serialize(new hQ)});var fQ,pQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.digestAlgorithm=new pZ,this.digest=new uq,Object.assign(this,t)});Yq([jq({type:pZ})],pQ.prototype,"digestAlgorithm",void 0),Yq([jq({type:uq})],pQ.prototype,"digest",void 0);var gQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.prime=new ArrayBuffer(0),this.exponent=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],gQ.prototype,"prime",void 0),Yq([jq({type:tG.Integer,converter:fq})],gQ.prototype,"exponent",void 0),Yq([jq({type:tG.Integer,converter:fq})],gQ.prototype,"coefficient",void 0);var vQ=fQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),fQ.prototype),i}return Y(n)}(Gq);vQ=fQ=Yq([zq({type:eG.Sequence,itemType:gQ})],vQ);var mQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=0,this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),this.privateExponent=new ArrayBuffer(0),this.prime1=new ArrayBuffer(0),this.prime2=new ArrayBuffer(0),this.exponent1=new ArrayBuffer(0),this.exponent2=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer})],mQ.prototype,"version",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"modulus",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"publicExponent",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"privateExponent",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"prime1",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"prime2",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"exponent1",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"exponent2",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"coefficient",void 0),Yq([jq({type:vQ,optional:!0})],mQ.prototype,"otherPrimeInfos",void 0);var yQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],yQ.prototype,"modulus",void 0),Yq([jq({type:tG.Integer,converter:fq})],yQ.prototype,"publicExponent",void 0);var bQ,wQ=((bQ={})[bQ.Transient=0]="Transient",bQ[bQ.Singleton=1]="Singleton",bQ[bQ.ResolutionScoped=2]="ResolutionScoped",bQ[bQ.ContainerScoped=3]="ContainerScoped",bQ);function kQ(e){return!!e.useClass}function xQ(e){return!!e.useFactory}var _Q=function(){function e(t){Z(this,e),this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return Y(e,[{key:"createProxy",value:function(e){var t,n=this,i=!1;return new Proxy({},this.createHandler(function(){return i||(t=e(n.wrap()),i=!0),t}))}},{key:"createHandler",value:function(e){var t={};return this.reflectMethods.forEach(function(n){t[n]=function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return i[0]=e(),Reflect[n].apply(void 0,i)}}),t}}]),e}();function AQ(e){return"string"==typeof e||"symbol"==typeof e}function CQ(e){return"object"==typeof e&&"token"in e&&"transform"in e}function SQ(e){return!!e.useToken}function EQ(e){return null!=e.useValue}var PQ,OQ=function(){function e(){Z(this,e),this._registryMap=new Map}return Y(e,[{key:"entries",value:function(){return this._registryMap.entries()}},{key:"getAll",value:function(e){return this.ensure(e),this._registryMap.get(e)}},{key:"get",value:function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null}},{key:"set",value:function(e,t){this.ensure(e),this._registryMap.get(e).push(t)}},{key:"setAll",value:function(e,t){this._registryMap.set(e,t)}},{key:"has",value:function(e){return this.ensure(e),this._registryMap.get(e).length>0}},{key:"clear",value:function(){this._registryMap.clear()}},{key:"ensure",value:function(e){this._registryMap.has(e)||this._registryMap.set(e,[])}}]),e}(),DQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(OQ),IQ=Y(function e(){Z(this,e),this.scopedResolutions=new Map}),TQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(OQ),MQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(OQ),BQ=Y(function e(){Z(this,e),this.preResolution=new TQ,this.postResolution=new MQ}),RQ=new Map,LQ=new(function(){function e(t){Z(this,e),this.parent=t,this._registry=new DQ,this.interceptors=new BQ,this.disposed=!1,this.disposables=new Set}return Y(e,[{key:"register",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{lifecycle:wQ.Transient};if(this.ensureNotDisposed(),n=function(e){return kQ(e)||EQ(e)||SQ(e)||xQ(e)}(t)?t:{useClass:t},SQ(n))for(var r=[e],o=n;null!=o;){var a=o.useToken;if(r.includes(a))throw new Error("Token registration cycle detected! "+[].concat(r,[a]).join(" -> "));r.push(a);var s=this._registry.get(a);o=s&&SQ(s.provider)?s.provider:null}if((i.lifecycle===wQ.Singleton||i.lifecycle==wQ.ContainerScoped||i.lifecycle==wQ.ResolutionScoped)&&(EQ(n)||xQ(n)))throw new Error('Cannot use lifecycle "'.concat(wQ[i.lifecycle],'" with ValueProviders or FactoryProviders'));return this._registry.set(e,{provider:n,options:i}),this}},{key:"registerType",value:function(e,t){return this.ensureNotDisposed(),AQ(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}},{key:"registerInstance",value:function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}},{key:"registerSingleton",value:function(e,t){if(this.ensureNotDisposed(),AQ(e)){if(AQ(t))return this.register(e,{useToken:t},{lifecycle:wQ.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:wQ.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var n=e;return t&&!AQ(t)&&(n=t),this.register(e,{useClass:n},{lifecycle:wQ.Singleton})}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new IQ;this.ensureNotDisposed();var n=this.getRegistration(e);if(!n&&AQ(e))throw new Error('Attempted to resolve unregistered dependency token: "'.concat(e.toString(),'"'));if(this.executePreResolutionInterceptor(e,"Single"),n){var i=this.resolveRegistration(n,t);return this.executePostResolutionInterceptor(e,i,"Single"),i}if(function(e){return"function"==typeof e||e instanceof _Q}(e)){var r=this.construct(e,t);return this.executePostResolutionInterceptor(e,r,"Single"),r}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}},{key:"executePreResolutionInterceptor",value:function(e,t){if(this.interceptors.preResolution.has(e)){var n,i=[],r=R(this.interceptors.preResolution.getAll(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;"Once"!=o.options.frequency&&i.push(o),o.callback(e,t)}}catch(a){r.e(a)}finally{r.f()}this.interceptors.preResolution.setAll(e,i)}}},{key:"executePostResolutionInterceptor",value:function(e,t,n){if(this.interceptors.postResolution.has(e)){var i,r=[],o=R(this.interceptors.postResolution.getAll(e));try{for(o.s();!(i=o.n()).done;){var a=i.value;"Once"!=a.options.frequency&&r.push(a),a.callback(e,t,n)}}catch(s){o.e(s)}finally{o.f()}this.interceptors.postResolution.setAll(e,r)}}},{key:"resolveRegistration",value:function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===wQ.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var n,i=e.options.lifecycle===wQ.Singleton||e.options.lifecycle===wQ.ContainerScoped;return n=EQ(e.provider)?e.provider.useValue:SQ(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):kQ(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):xQ(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===wQ.ResolutionScoped&&t.scopedResolutions.set(e,n),n}},{key:"resolveAll",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new IQ;this.ensureNotDisposed();var i=this.getAllRegistrations(e);if(!i&&AQ(e))throw new Error('Attempted to resolve unregistered dependency token: "'.concat(e.toString(),'"'));if(this.executePreResolutionInterceptor(e,"All"),i){var r=i.map(function(e){return t.resolveRegistration(e,n)});return this.executePostResolutionInterceptor(e,r,"All"),r}var o=[this.construct(e,n)];return this.executePostResolutionInterceptor(e,o,"All"),o}},{key:"isRegistered",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}},{key:"reset",value:function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}},{key:"clearInstances",value:function(){this.ensureNotDisposed();var e,t=R(this._registry.entries());try{for(t.s();!(e=t.n()).done;){var n=L(e.value,2),i=n[0],r=n[1];this._registry.setAll(i,r.filter(function(e){return!EQ(e.provider)}).map(function(e){return e.instance=void 0,e}))}}catch(o){t.e(o)}finally{t.f()}}},{key:"createChildContainer",value:function(){this.ensureNotDisposed();var t,n=new e(this),i=R(this._registry.entries());try{for(i.s();!(t=i.n()).done;){var r=L(t.value,2),o=r[0],a=r[1];a.some(function(e){return e.options.lifecycle===wQ.ContainerScoped})&&n._registry.setAll(o,a.map(function(e){return e.options.lifecycle===wQ.ContainerScoped?{provider:e.provider,options:e.options}:e}))}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"beforeResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.preResolution.set(e,{callback:t,options:n})}},{key:"afterResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.postResolution.set(e,{callback:t,options:n})}},{key:"dispose",value:function(){return U_(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.disposed=!0,t=[],this.disposables.forEach(function(e){var n=e.dispose();n&&t.push(n)}),e.next=5,Promise.all(t);case 5:case"end":return e.stop()}},e,this)}))}},{key:"getRegistration",value:function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}},{key:"getAllRegistrations",value:function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}},{key:"construct",value:function(e,t){var n=this;if(e instanceof _Q)return e.createProxy(function(e){return n.resolve(e,t)});var i,r=function(){var i=RQ.get(e);if(!i||0===i.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'.concat(e.name,'"'))}var r=i.map(n.resolveParams(t,e));return A(e,V(r))}();return"function"!=typeof(i=r).dispose||i.dispose.length>0||this.disposables.add(r),r}},{key:"resolveParams",value:function(e,t){var n=this;return function(i,r){try{var o,a,s;return"object"==typeof(l=i)&&"token"in l&&"multiple"in l?CQ(i)?i.multiple?(o=n.resolve(i.transform)).transform.apply(o,[n.resolveAll(i.token)].concat(V(i.transformArgs))):(a=n.resolve(i.transform)).transform.apply(a,[n.resolve(i.token,e)].concat(V(i.transformArgs))):i.multiple?n.resolveAll(i.token):n.resolve(i.token,e):CQ(i)?(s=n.resolve(i.transform,e)).transform.apply(s,[n.resolve(i.token,e)].concat(V(i.transformArgs))):n.resolve(i,e)}catch(u){throw new Error(function(e,t,n){var i=L(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"    ";return[e].concat(V(t.message.split("\n").map(function(e){return n+e}))).join("\n")}("Cannot inject the dependency ".concat(function(e,t){return null===e?"at position #"+t:'"'.concat(e.split(",")[t].trim(),'" at position #').concat(t)}(void 0===i?null:i,t),' of "').concat(e.name,'" constructor. Reason:'),n)}(t,r,u))}var l}}},{key:"ensureNotDisposed",value:function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}}]),e}()),FQ=function(){return function(e){RQ.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],n=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(n).forEach(function(e){t[+e]=n[e]}),t}(e))}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");var NQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.attrId="",this.attrValues=[],Object.assign(t)});Yq([jq({type:tG.ObjectIdentifier})],NQ.prototype,"attrId",void 0),Yq([jq({type:tG.Any,repeated:"set"})],NQ.prototype,"attrValues",void 0);var VQ,zQ=PQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),PQ.prototype),i}return Y(n)}(Gq);zQ=PQ=Yq([zq({type:eG.Sequence,itemType:NQ})],zQ);var jQ=VQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),VQ.prototype),i}return Y(n)}(Gq);jQ=VQ=Yq([zq({type:eG.Sequence,itemType:aK})],jQ);var HQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],HQ.prototype,"certId",void 0),Yq([jq({type:tG.Any,context:0})],HQ.prototype,"certValue",void 0);var UQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],UQ.prototype,"crlId",void 0),Yq([jq({type:tG.Any,context:0})],UQ.prototype,"crltValue",void 0);var WQ,GQ,qQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(uq),YQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.encryptionAlgorithm=new pZ,this.encryptedData=new qQ,Object.assign(this,t)});Yq([jq({type:pZ})],YQ.prototype,"encryptionAlgorithm",void 0),Yq([jq({type:qQ})],YQ.prototype,"encryptedData",void 0),function(e){e[e.v1=0]="v1"}(GQ||(GQ={}));var ZQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(uq),KQ=WQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),WQ.prototype),i}return Y(n)}(Gq);KQ=WQ=Yq([zq({type:eG.Sequence,itemType:oZ})],KQ);var QQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=GQ.v1,this.privateKeyAlgorithm=new pZ,this.privateKey=new ZQ,Object.assign(this,t)});Yq([jq({type:tG.Integer})],QQ.prototype,"version",void 0),Yq([jq({type:pZ})],QQ.prototype,"privateKeyAlgorithm",void 0),Yq([jq({type:ZQ})],QQ.prototype,"privateKey",void 0),Yq([jq({type:KQ,implicit:!0,context:0,optional:!0})],QQ.prototype,"attributes",void 0);var XQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(QQ);XQ=Yq([zq({type:eG.Sequence})],XQ);var JQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(YQ);JQ=Yq([zq({type:eG.Sequence})],JQ);var $Q=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],$Q.prototype,"secretTypeId",void 0),Yq([jq({type:tG.Any,context:0})],$Q.prototype,"secretValue",void 0);var eX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.mac=new pQ,this.macSalt=new uq,this.iterations=1,Object.assign(this,t)});Yq([jq({type:pQ})],eX.prototype,"mac",void 0),Yq([jq({type:uq})],eX.prototype,"macSalt",void 0),Yq([jq({type:tG.Integer,defaultValue:1})],eX.prototype,"iterations",void 0);var tX,nX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=3,this.authSafe=new aK,this.macData=new eX,Object.assign(this,t)});Yq([jq({type:tG.Integer})],nX.prototype,"version",void 0),Yq([jq({type:aK})],nX.prototype,"authSafe",void 0),Yq([jq({type:eX,optional:!0})],nX.prototype,"macData",void 0);var iX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],iX.prototype,"bagId",void 0),Yq([jq({type:tG.Any,context:0})],iX.prototype,"bagValue",void 0),Yq([jq({type:NQ,repeated:"set",optional:!0})],iX.prototype,"bagAttributes",void 0);var rX,oX,aX,sX=tX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),tX.prototype),i}return Y(n)}(Gq);sX=tX=Yq([zq({type:eG.Sequence,itemType:iX})],sX);var lX=function(e){E(n,e);var t=O(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),t.call(this,e)}return Y(n,[{key:"toString",value:function(){return{}.toString(),this.ia5String||C(M(n.prototype),"toString",this).call(this)}}]),n}($q);Yq([jq({type:tG.IA5String})],lX.prototype,"ia5String",void 0),lX=Yq([zq({type:eG.Choice})],lX);var uX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(aK);uX=Yq([zq({type:eG.Sequence})],uX);var cX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(nX);cX=Yq([zq({type:eG.Sequence})],cX);var dX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(YQ);dX=Yq([zq({type:eG.Sequence})],dX);var hX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.IA5String})],hX.prototype,"value",void 0),hX=Yq([zq({type:eG.Choice})],hX);var fX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(lX);fX=Yq([zq({type:eG.Choice})],fX);var pX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);pX=Yq([zq({type:eG.Choice})],pX);var gX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;Z(this,e),this.value=t});Yq([jq({type:tG.GeneralizedTime})],gX.prototype,"value",void 0),gX=Yq([zq({type:eG.Choice})],gX);var vX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);vX=Yq([zq({type:eG.Choice})],vX);var mX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"M";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.PrintableString})],mX.prototype,"value",void 0),mX=Yq([zq({type:eG.Choice})],mX);var yX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.PrintableString})],yX.prototype,"value",void 0);var bX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(yX=Yq([zq({type:eG.Choice})],yX));bX=Yq([zq({type:eG.Choice})],bX);var wX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);wX=Yq([zq({type:eG.Choice})],wX);var kX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.ObjectIdentifier})],kX.prototype,"value",void 0),kX=Yq([zq({type:eG.Choice})],kX);var xX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(vZ);xX=Yq([zq({type:eG.Choice})],xX);var _X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value.toString()}}]),e}();Yq([jq({type:tG.Integer})],_X.prototype,"value",void 0),_X=Yq([zq({type:eG.Choice})],_X);var AX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(YK);AX=Yq([zq({type:eG.Sequence})],AX);var CX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);CX=Yq([zq({type:eG.Choice})],CX);var SX=rX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),rX.prototype),i}return Y(n)}(xZ);SX=rX=Yq([zq({type:eG.Sequence})],SX);var EX=oX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),oX.prototype),i}return Y(n)}(Gq);EX=oX=Yq([zq({type:eG.Set,itemType:PZ})],EX);var PX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.BmpString})],PX.prototype,"value",void 0),PX=Yq([zq({type:eG.Choice})],PX);var OX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);OX=Yq([zq({type:eG.Sequence})],OX);var DX,IX=aX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),aX.prototype),i}return Y(n)}(Gq);IX=aX=Yq([zq({type:eG.Sequence,itemType:OX})],IX);var TX=DX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),DX.prototype),i}return Y(n)}(Gq);TX=DX=Yq([zq({type:eG.Sequence,itemType:oZ})],TX);var MX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=0,this.subject=new rY,this.subjectPKInfo=new gZ,this.attributes=new TX,Object.assign(this,t)});Yq([jq({type:tG.Integer})],MX.prototype,"version",void 0),Yq([jq({type:rY})],MX.prototype,"subject",void 0),Yq([jq({type:gZ})],MX.prototype,"subjectPKInfo",void 0),Yq([jq({type:TX,implicit:!0,context:0})],MX.prototype,"attributes",void 0);var BX,RX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.certificationRequestInfo=new MX,this.signatureAlgorithm=new pZ,this.signature=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:MX})],RX.prototype,"certificationRequestInfo",void 0),Yq([jq({type:pZ})],RX.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],RX.prototype,"signature",void 0),LQ.registerSingleton("crypto.algorithmProvider",function(){function e(){Z(this,e)}return Y(e,[{key:"getAlgorithms",value:function(){return LQ.resolveAll("crypto.algorithm")}},{key:"toAsnAlgorithm",value:function(e){var t,n=R(this.getAlgorithms());try{for(n.s();!(t=n.n()).done;){var i=t.value.toAsnAlgorithm(e);if(i)return i}}catch(o){n.e(o)}finally{n.f()}if(/[0-9.]+/.test(e.name)){var r=new pZ({algorithm:e.name});return"parameters"in e&&(r.parameters=e.parameters),r}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}},{key:"toWebAlgorithm",value:function(e){var t,n=R(this.getAlgorithms());try{for(n.s();!(t=n.n()).done;){var i=t.value.toWebAlgorithm(e);if(i)return i}}catch(r){n.e(r)}finally{n.f()}return{name:e.algorithm,parameters:e.parameters}}}]),e}());var LX="ECDSA",FX=BX=function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnAlgorithm",value:function(e){switch(e.name.toLowerCase()){case LX.toLowerCase():if("hash"in e)switch(("string"==typeof e.hash?e.hash:e.hash.name).toLowerCase()){case"sha-1":return $K;case"sha-256":return eQ;case"sha-384":return tQ;case"sha-512":return nQ}else if("namedCurve"in e){var t="";switch(e.namedCurve){case"P-256":t="1.2.840.10045.3.1.7";break;case"K-256":t=BX.SECP256K1;break;case"P-384":t="1.3.132.0.34";break;case"P-521":t="1.3.132.0.35";break;case"brainpoolP160r1":t="1.3.36.3.3.2.8.1.1.1";break;case"brainpoolP160t1":t="1.3.36.3.3.2.8.1.1.2";break;case"brainpoolP192r1":t="1.3.36.3.3.2.8.1.1.3";break;case"brainpoolP192t1":t="1.3.36.3.3.2.8.1.1.4";break;case"brainpoolP224r1":t="1.3.36.3.3.2.8.1.1.5";break;case"brainpoolP224t1":t="1.3.36.3.3.2.8.1.1.6";break;case"brainpoolP256r1":t="1.3.36.3.3.2.8.1.1.7";break;case"brainpoolP256t1":t="1.3.36.3.3.2.8.1.1.8";break;case"brainpoolP320r1":t="1.3.36.3.3.2.8.1.1.9";break;case"brainpoolP320t1":t="1.3.36.3.3.2.8.1.1.10";break;case"brainpoolP384r1":t="1.3.36.3.3.2.8.1.1.11";break;case"brainpoolP384t1":t="1.3.36.3.3.2.8.1.1.12";break;case"brainpoolP512r1":t="1.3.36.3.3.2.8.1.1.13";break;case"brainpoolP512t1":t="1.3.36.3.3.2.8.1.1.14"}if(t)return new pZ({algorithm:"1.2.840.10045.2.1",parameters:qq.serialize(new iQ({namedCurve:t}))})}}return null}},{key:"toWebAlgorithm",value:function(e){switch(e.algorithm){case"1.2.840.10045.4.1":return{name:LX,hash:{name:"SHA-1"}};case"1.2.840.10045.4.3.2":return{name:LX,hash:{name:"SHA-256"}};case"1.2.840.10045.4.3.3":return{name:LX,hash:{name:"SHA-384"}};case"1.2.840.10045.4.3.4":return{name:LX,hash:{name:"SHA-512"}};case"1.2.840.10045.2.1":if(!e.parameters)throw new TypeError("Cannot get required parameters from EC algorithm");switch(qq.parse(e.parameters,iQ).namedCurve){case"1.2.840.10045.3.1.7":return{name:LX,namedCurve:"P-256"};case BX.SECP256K1:return{name:LX,namedCurve:"K-256"};case"1.3.132.0.34":return{name:LX,namedCurve:"P-384"};case"1.3.132.0.35":return{name:LX,namedCurve:"P-521"};case"1.3.36.3.3.2.8.1.1.1":return{name:LX,namedCurve:"brainpoolP160r1"};case"1.3.36.3.3.2.8.1.1.2":return{name:LX,namedCurve:"brainpoolP160t1"};case"1.3.36.3.3.2.8.1.1.3":return{name:LX,namedCurve:"brainpoolP192r1"};case"1.3.36.3.3.2.8.1.1.4":return{name:LX,namedCurve:"brainpoolP192t1"};case"1.3.36.3.3.2.8.1.1.5":return{name:LX,namedCurve:"brainpoolP224r1"};case"1.3.36.3.3.2.8.1.1.6":return{name:LX,namedCurve:"brainpoolP224t1"};case"1.3.36.3.3.2.8.1.1.7":return{name:LX,namedCurve:"brainpoolP256r1"};case"1.3.36.3.3.2.8.1.1.8":return{name:LX,namedCurve:"brainpoolP256t1"};case"1.3.36.3.3.2.8.1.1.9":return{name:LX,namedCurve:"brainpoolP320r1"};case"1.3.36.3.3.2.8.1.1.10":return{name:LX,namedCurve:"brainpoolP320t1"};case"1.3.36.3.3.2.8.1.1.11":return{name:LX,namedCurve:"brainpoolP384r1"};case"1.3.36.3.3.2.8.1.1.12":return{name:LX,namedCurve:"brainpoolP384t1"};case"1.3.36.3.3.2.8.1.1.13":return{name:LX,namedCurve:"brainpoolP512r1"};case"1.3.36.3.3.2.8.1.1.14":return{name:LX,namedCurve:"brainpoolP512t1"}}}return null}}]),e}();FX.SECP256K1="1.3.132.0.10",FX=BX=Yq([FQ()],FX),LQ.registerSingleton("crypto.algorithm",FX);var NX=Symbol("name"),VX=Symbol("value"),zX=Y(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var r in Z(this,e),this[NX]=t,this[VX]=i,n)this[r]=n[r]});zX.NAME=NX,zX.VALUE=VX;var jX=function(){function e(){Z(this,e)}return Y(e,null,[{key:"toString",value:function(e){return this.items[e]||e}}]),e}();jX.items={"1.3.14.3.2.26":"sha1","2.16.840.1.101.3.4.2.4":"sha224","2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512","1.2.840.113549.1.1.1":"rsaEncryption","1.2.840.113549.1.1.5":"sha1WithRSAEncryption","1.2.840.113549.1.1.14":"sha224WithRSAEncryption","1.2.840.113549.1.1.11":"sha256WithRSAEncryption","1.2.840.113549.1.1.12":"sha384WithRSAEncryption","1.2.840.113549.1.1.13":"sha512WithRSAEncryption","1.2.840.10045.2.1":"ecPublicKey","1.2.840.10045.4.1":"ecdsaWithSHA1","1.2.840.10045.4.3.1":"ecdsaWithSHA224","1.2.840.10045.4.3.2":"ecdsaWithSHA256","1.2.840.10045.4.3.3":"ecdsaWithSHA384","1.2.840.10045.4.3.4":"ecdsaWithSHA512","1.3.6.1.5.5.7.3.1":"TLS WWW server authentication","1.3.6.1.5.5.7.3.2":"TLS WWW client authentication","1.3.6.1.5.5.7.3.3":"Code Signing","1.3.6.1.5.5.7.3.4":"E-mail Protection","1.3.6.1.5.5.7.3.8":"Time Stamping","1.3.6.1.5.5.7.3.9":"OCSP Signing","1.2.840.113549.1.7.2":"Signed Data"};var HX=function(){function e(){Z(this,e)}return Y(e,null,[{key:"serialize",value:function(e){return this.serializeObj(e).join("\n")}},{key:"pad",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"".padStart(2*e," ")}},{key:"serializeObj",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=this.pad(t++),r="",o=e[zX.VALUE];for(var a in o&&(r=" "+o),n.push("".concat(i).concat(e[zX.NAME],":").concat(r)),i=this.pad(t),e)if("symbol"!=typeof a){var s=e[a],l=a?a+": ":"";if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)n.push("".concat(i).concat(l).concat(s));else if(s instanceof Date)n.push("".concat(i).concat(l).concat(s.toUTCString()));else if(Array.isArray(s)){var u,c=R(s);try{for(c.s();!(u=c.n()).done;){var d=u.value;d[zX.NAME]=a,n.push.apply(n,V(this.serializeObj(d,t)))}}catch(f){c.e(f)}finally{c.f()}}else if(s instanceof zX)s[zX.NAME]=a,n.push.apply(n,V(this.serializeObj(s,t)));else if(IW.BufferSourceConverter.isBufferSource(s))a?(n.push("".concat(i).concat(l)),n.push.apply(n,V(this.serializeBufferSource(s,t+1)))):n.push.apply(n,V(this.serializeBufferSource(s,t)));else{if(!("toTextObject"in s))throw new TypeError("Cannot serialize data in text format. Unsupported type.");var h=s.toTextObject();h[zX.NAME]=a,n.push.apply(n,V(this.serializeObj(h,t)))}}return n}},{key:"serializeBufferSource",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.pad(t),i=IW.BufferSourceConverter.toUint8Array(e),r=[],o=0;o<i.length;){for(var a=[],s=0;s<16&&o<i.length;s++){8===s&&a.push("");var l=i[o++].toString(16).padStart(2,"0");a.push(l)}r.push("".concat(n).concat(a.join(" ")))}return r}},{key:"serializeAlgorithm",value:function(e){return this.algorithmSerializer.toTextObject(e)}}]),e}();HX.oidSerializer=jX,HX.algorithmSerializer=function(){function e(){Z(this,e)}return Y(e,null,[{key:"toTextObject",value:function(e){var t=new zX("Algorithm Identifier",{},jX.toString(e.algorithm));if(e.parameters)switch(e.algorithm){case"1.2.840.10045.2.1":var n=(new FX).toWebAlgorithm(e);n&&"namedCurve"in n?t["Named Curve"]=n.namedCurve:t.Parameters=e.parameters;break;default:t.Parameters=e.parameters}return t}}]),e}();var UX=function(){function e(){if(Z(this,e),1===arguments.length){var t=arguments.length<=0?void 0:arguments[0];this.rawData=qq.serialize(t),this.onInit(t)}else{var n=qq.parse(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]);this.rawData=IW.BufferSourceConverter.toArrayBuffer(arguments.length<=0?void 0:arguments[0]),this.onInit(n)}}return Y(e,[{key:"equal",value:function(t){return t instanceof e&&Object(IW.isEqual)(t.rawData,this.rawData)}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text";switch(e){case"asn":return qq.toString(this.rawData);case"text":return HX.serialize(this.toTextObject());case"hex":return IW.Convert.ToHex(this.rawData);case"base64":return IW.Convert.ToBase64(this.rawData);case"base64url":return IW.Convert.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}},{key:"getTextName",value:function(){return this.constructor.NAME}},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty();return e[""]=this.rawData,e}},{key:"toTextObjectEmpty",value:function(e){return new zX(this.getTextName(),{},e)}}]),e}();UX.NAME="ASN";var WX,GX=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),e=IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])?IW.BufferSourceConverter.toArrayBuffer(arguments.length<=0?void 0:arguments[0]):qq.serialize(new bZ({extnID:arguments.length<=0?void 0:arguments[0],critical:arguments.length<=1?void 0:arguments[1],extnValue:new uq(IW.BufferSourceConverter.toArrayBuffer(arguments.length<=2?void 0:arguments[2]))})),t.call(this,e,bZ)}return Y(n,[{key:"onInit",value:function(e){this.type=e.extnID,this.critical=e.critical,this.value=e.extnValue.buffer}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e[""]=this.value,e}},{key:"toTextObjectWithoutValue",value:function(){var e=this.toTextObjectEmpty(this.critical?"critical":void 0);return e[zX.NAME]===n.NAME&&(e[zX.NAME]=jX.toString(this.type)),e}}]),n}(UX),qX=function(e){function t(){Z(this,t),this.items=new Map,this[WX]="CryptoProvider","undefined"!=typeof self&&"undefined"!=typeof crypto&&this.set(t.DEFAULT,crypto)}return Y(t,[{key:"clear",value:function(){this.items.clear()}},{key:"delete",value:function(e){return this.items.delete(e)}},{key:"forEach",value:function(e,t){return this.items.forEach(e,t)}},{key:"has",value:function(e){return this.items.has(e)}},{key:"size",get:function(){return this.items.size}},{key:"entries",value:function(){return this.items.entries()}},{key:"keys",value:function(){return this.items.keys()}},{key:"values",value:function(){return this.items.values()}},{key:Symbol.iterator,value:function(){return this.items[Symbol.iterator]()}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT,n=this.items.get(e.toLowerCase());if(!n)throw new Error("Cannot get Crypto by name '".concat(e,"'"));return n}},{key:"set",value:function(e,n){if("string"==typeof e){if(!n)throw new TypeError("Argument 'value' is required");this.items.set(e.toLowerCase(),n)}else this.items.set(t.DEFAULT,e);return this}}],[{key:"isCryptoKeyPair",value:function(e){return e&&e.privateKey&&e.publicKey}},{key:"isCryptoKey",value:function(e){return e&&e.usages&&e.type&&e.algorithm&&void 0!==e.extractable}}]),t}();WX=Symbol.toStringTag,qX.DEFAULT="default";var YX=new qX,ZX=/^[0-2](?:\.[1-9][0-9]*)+$/,KX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in Z(this,e),this.items={},t)this.register(n,t[n])}return Y(e,[{key:"get",value:function(e){return this.items[e]||null}},{key:"findId",value:function(e){return t=e,new RegExp(ZX).test(t)?e:this.get(e);var t}},{key:"register",value:function(e,t){this.items[e]=t,this.items[t]=e}}]),e}(),QX=new KX;function XX(e,t){return"\\"+IW.Convert.ToHex(IW.Convert.FromUtf8String(t)).toUpperCase()}QX.register("CN","2.5.4.3"),QX.register("L","2.5.4.7"),QX.register("ST","2.5.4.8"),QX.register("O","2.5.4.10"),QX.register("OU","2.5.4.11"),QX.register("C","2.5.4.6"),QX.register("DC","0.9.2342.19200300.100.1.25"),QX.register("E","1.2.840.113549.1.9.1"),QX.register("G","2.5.4.42"),QX.register("I","2.5.4.43"),QX.register("SN","2.5.4.4"),QX.register("T","2.5.4.12");var JX=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var i in Z(this,e),this.extraNames=new KX,this.asn=new rY,n)Object.prototype.hasOwnProperty.call(n,i)&&this.extraNames.register(i,n[i]);this.asn="string"==typeof t?this.fromString(t):t instanceof rY?t:IW.BufferSourceConverter.isBufferSource(t)?qq.parse(t,rY):this.fromJSON(t)}var t;return Y(e,[{key:"getField",value:function(e){var t,n=this.extraNames.findId(e)||QX.findId(e),i=[],r=R(this.asn);try{for(r.s();!(t=r.n()).done;){var o,a=R(t.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.type===n&&i.push(s.value.toString())}}catch(l){a.e(l)}finally{a.f()}}}catch(l){r.e(l)}finally{r.f()}return i}},{key:"getName",value:function(e){return this.extraNames.get(e)||QX.get(e)}},{key:"toString",value:function(){var e=this;return this.asn.map(function(t){return t.map(function(t){return"".concat(e.getName(t.type)||t.type,"=").concat(t.value.anyValue?"#"+IW.Convert.ToHex(t.value.anyValue):t.value.toString().replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,XX))}).join("+")}).join(", ")}},{key:"toJSON",value:function(){var e,t,n=[],i=R(this.asn);try{for(i.s();!(t=i.n()).done;){var r,o=t.value,a={},s=R(o);try{for(s.s();!(r=s.n()).done;){var l=r.value,u=this.getName(l.type)||l.type;null!==(e=a[u])&&void 0!==e||(a[u]=[]),a[u].push(l.value.anyValue?"#"+IW.Convert.ToHex(l.value.anyValue):l.value.toString())}}catch(c){s.e(c)}finally{s.f()}n.push(a)}}catch(c){i.e(c)}finally{i.f()}return n}},{key:"fromString",value:function(t){for(var n=new rY,i=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g,r=null,o=",";r=i.exec(t+",");){var a=L(r,3),s=a[1],l=a[2],u=l[l.length-1];","!==u&&"+"!==u||(l=l.slice(0,l.length-1),r[3]=u);var c=r[3];if(/[\d.]+/.test(s)||(s=this.getName(s)||""),!s)throw new Error("Cannot get OID for name type '".concat(s,"'"));var d=new tY({type:s});if("#"===l.charAt(0))d.value.anyValue=IW.Convert.FromHex(l.slice(1));else{var h=/"(.*?[^\\])?"/.exec(l);h&&(l=h[1]),l=l.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1"),s===this.getName("E")||s===this.getName("DC")?d.value.ia5String=l:e.isASCII(l)?d.value.printableString=l:d.value.utf8String=l}"+"===o?n[n.length-1].push(d):n.push(new nY([d])),o=c}return n}},{key:"fromJSON",value:function(e){var t,n=new rY,i=R(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=new nY;for(var a in r){var s=a;if(/[\d.]+/.test(a)||(s=this.getName(a)||""),!s)throw new Error("Cannot get OID for name type '".concat(a,"'"));var l,u=R(r[a]);try{for(u.s();!(l=u.n()).done;){var c=l.value,d=new tY({type:s});if("object"==typeof c)for(var h in c)switch(h){case"ia5String":d.value.ia5String=c[h];break;case"utf8String":d.value.utf8String=c[h];break;case"universalString":d.value.universalString=c[h];break;case"bmpString":d.value.bmpString=c[h];break;case"printableString":d.value.printableString=c[h]}else"#"===c[0]?d.value.anyValue=IW.Convert.FromHex(c.slice(1)):s===this.getName("E")||s===this.getName("DC")?d.value.ia5String=c:d.value.printableString=c;o.push(d)}}catch(f){u.e(f)}finally{u.f()}}n.push(o)}}catch(f){i.e(f)}finally{i.f()}return n}},{key:"toArrayBuffer",value:function(){return qq.serialize(this.asn)}},{key:"getThumbprint",value:(t=G(U().mark(function e(){var t,n,i,r=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="SHA-1",r.length>=1&&!(null===(t=r.length<=0?void 0:r[0])||void 0===t?void 0:t.subtle)?(i=(r.length<=0?void 0:r[0])||i,n=(r.length<=1?void 0:r[1])||YX.get()):n=(r.length<=0?void 0:r[0])||YX.get(),e.next=4,n.subtle.digest(i,this.toArrayBuffer());case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}],[{key:"isASCII",value:function(e){for(var t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}}]),e}(),$X="Cannot initialize GeneralName from ASN.1 data. Unsupported string format in use.",eJ=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,tJ="1.3.6.1.4.1.311.20.2.3",nJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),2===arguments.length)switch(arguments.length<=0?void 0:arguments[0]){case"dn":var i=new JX(arguments.length<=1?void 0:arguments[1]).toArrayBuffer(),r=qq.parse(i,rY);e=new uY({directoryName:r});break;case"dns":e=new uY({dNSName:arguments.length<=1?void 0:arguments[1]});break;case"email":e=new uY({rfc822Name:arguments.length<=1?void 0:arguments[1]});break;case"guid":var o=new RegExp(eJ,"i").exec(arguments.length<=1?void 0:arguments[1]);if(!o)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");var a=o.slice(1).map(function(e,t){return t<3?IW.Convert.ToHex(new Uint8Array(IW.Convert.FromHex(e)).reverse()):e}).join("");e=new uY({otherName:new aY({typeId:"1.3.6.1.4.1.311.25.1",value:qq.serialize(new uq(IW.Convert.FromHex(a)))})});break;case"ip":e=new uY({iPAddress:arguments.length<=1?void 0:arguments[1]});break;case"id":e=new uY({registeredID:arguments.length<=1?void 0:arguments[1]});break;case"upn":e=new uY({otherName:new aY({typeId:tJ,value:qq.serialize(wq.toASN(arguments.length<=1?void 0:arguments[1]))})});break;case"url":e=new uY({uniformResourceIdentifier:arguments.length<=1?void 0:arguments[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else e=IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])?qq.parse(arguments.length<=0?void 0:arguments[0],uY):arguments.length<=0?void 0:arguments[0];return t.call(this,e)}return Y(n,[{key:"onInit",value:function(e){if(null!=e.dNSName)this.type="dns",this.value=e.dNSName;else if(null!=e.rfc822Name)this.type="email",this.value=e.rfc822Name;else if(null!=e.iPAddress)this.type="ip",this.value=e.iPAddress;else if(null!=e.uniformResourceIdentifier)this.type="url",this.value=e.uniformResourceIdentifier;else if(null!=e.registeredID)this.type="id",this.value=e.registeredID;else if(null!=e.directoryName)this.type="dn",this.value=new JX(e.directoryName).toString();else{if(null==e.otherName)throw new Error($X);if("1.3.6.1.4.1.311.25.1"===e.otherName.typeId){this.type="guid";var t=qq.parse(e.otherName.value,uq),n=new RegExp(eJ,"i").exec(IW.Convert.ToHex(t));if(!n)throw new Error("Cannot initialize GeneralName from ASN.1 data. Value doesn't match to GUID regular expression.");this.value=n.slice(1).map(function(e,t){return t<3?IW.Convert.ToHex(new Uint8Array(IW.Convert.FromHex(e)).reverse()):e}).join("-")}else{if(e.otherName.typeId!==tJ)throw new Error($X);this.type="upn",this.value=qq.parse(e.otherName.value,$q).toString()}}}},{key:"toJSON",value:function(){return{type:this.type,value:this.value}}},{key:"toTextObject",value:function(){var e;switch(this.type){case"dn":case"dns":case"guid":case"ip":case"id":case"upn":case"url":e=this.type.toUpperCase();break;case"email":e="Email";break;default:throw new Error("Unsupported GeneralName type")}var t=this.value;return"id"===this.type&&(t=jX.toString(t)),new zX(e,void 0,t)}}]),n}(UX),iJ=function(e){E(n,e);var t=O(n);function n(e){var i;if(Z(this,n),e instanceof mY)i=e;else if(Array.isArray(e)){var r,o=[],a=R(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s instanceof uY)o.push(s);else{var l=qq.parse(new nJ(s.type,s.value).rawData,uY);o.push(l)}}}catch(u){a.e(u)}finally{a.f()}i=new mY(o)}else{if(!IW.BufferSourceConverter.isBufferSource(e))throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");i=qq.parse(e,mY)}return t.call(this,i)}return Y(n,[{key:"onInit",value:function(e){var t,n=[],i=R(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=null;try{o=new nJ(r)}catch(a){continue}n.push(o)}}catch(s){i.e(s)}finally{i.f()}this.items=n}},{key:"toJSON",value:function(){return this.items.map(function(e){return e.toJSON()})}},{key:"toTextObject",value:function(){var e,t=C(M(n.prototype),"toTextObjectEmpty",this).call(this),i=R(this.items);try{for(i.s();!(e=i.n()).done;){var r=e.value.toTextObject(),o=t[r[zX.NAME]];Array.isArray(o)||(o=[],t[r[zX.NAME]]=o),o.push(r)}}catch(a){i.e(a)}finally{i.f()}return t}}]),n}(UX);iJ.NAME="GeneralNames";var rJ="-{5}BEGIN ([^\\n]+(?=-{5}))-{5}\\n(?:((?:[^:\\n]+: (?:[^\\n]+\\n(?: +[^\\n]+\\n)*))+))?\\n?((?:[a-zA-Z0-9=+/]+\\n)+)-{5}END \\1-{5}",oJ=function(){function e(){Z(this,e)}return Y(e,null,[{key:"isPem",value:function(e){return"string"==typeof e&&new RegExp(rJ,"g").test(e)}},{key:"decodeWithHeaders",value:function(e){e=e.replace(/\r/g,"");for(var t=new RegExp(rJ,"g"),n=[],i=null;i=t.exec(e);){var r=i[3].replace(new RegExp("[\\n]+","g"),""),o={type:i[1],headers:[],rawData:IW.Convert.FromBase64(r)},a=i[2];if(a){var s,l=null,u=R(a.split(new RegExp("\\n","g")));try{for(u.s();!(s=u.n()).done;){var c=L(s.value.split(/:(.*)/),2),d=c[0],h=c[1];if(void 0===h){if(!l)throw new Error("Cannot parse PEM string. Incorrect header value");l.value+=d.trim()}else l&&o.headers.push(l),l={key:d,value:h.trim()}}}catch(f){u.e(f)}finally{u.f()}l&&o.headers.push(l)}n.push(o)}return n}},{key:"decode",value:function(e){return this.decodeWithHeaders(e).map(function(e){return e.rawData})}},{key:"decodeFirst",value:function(e){var t=this.decode(e);if(!t.length)throw new RangeError("PEM string doesn't contain any objects");return t[0]}},{key:"encode",value:function(e,t){var n=this;if(Array.isArray(e)){var i=new Array;return e.forEach(t?function(e){if(!IW.BufferSourceConverter.isBufferSource(e))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");i.push(n.encodeStruct({type:t,rawData:IW.BufferSourceConverter.toArrayBuffer(e)}))}:function(e){if(!("type"in e))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");i.push(n.encodeStruct(e))}),i.join("\n")}if(!t)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:t,rawData:IW.BufferSourceConverter.toArrayBuffer(e)})}},{key:"encodeStruct",value:function(e){var t,n=e.type.toLocaleUpperCase(),i=[];if(i.push("-----BEGIN ".concat(n,"-----")),null===(t=e.headers)||void 0===t?void 0:t.length){var r,o=R(e.headers);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.push("".concat(a.key,": ").concat(a.value))}}catch(d){o.e(d)}finally{o.f()}i.push("")}for(var s,l=IW.Convert.ToBase64(e.rawData),u=0,c=Array();u<l.length&&(l.length-u<64?s=l.substring(u):(s=l.substring(u,u+64),u+=64),0!==s.length)&&(c.push(s),!(s.length<64)););return i.push.apply(i,c),i.push("-----END ".concat(n,"-----")),i.join("\n")}}]),e}();oJ.CertificateTag="CERTIFICATE",oJ.CrlTag="CRL",oJ.CertificateRequestTag="CERTIFICATE REQUEST",oJ.PublicKeyTag="PUBLIC KEY",oJ.PrivateKeyTag="PRIVATE KEY";var aJ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),D(n.isAsnEncoded(arguments.length<=0?void 0:arguments[0])?t.call(this,n.toArrayBuffer(arguments.length<=0?void 0:arguments[0]),arguments.length<=1?void 0:arguments[1]):t.call(this,arguments.length<=0?void 0:arguments[0]))}return Y(n,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pem";switch(e){case"pem":return oJ.encode(this.rawData,this.tag);default:return C(M(n.prototype),"toString",this).call(this,e)}}}],[{key:"isAsnEncoded",value:function(e){return IW.BufferSourceConverter.isBufferSource(e)||"string"==typeof e}},{key:"toArrayBuffer",value:function(e){if("string"==typeof e){if(oJ.isPem(e))return oJ.decode(e)[0];if(IW.Convert.isHex(e))return IW.Convert.FromHex(e);if(IW.Convert.isBase64(e))return IW.Convert.FromBase64(e);if(IW.Convert.isBase64Url(e))return IW.Convert.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}var t=IW.Convert.ToBinary(e);return oJ.isPem(t)?oJ.decode(t)[0]:IW.Convert.isHex(t)?IW.Convert.FromHex(t):IW.Convert.isBase64(t)?IW.Convert.FromBase64(t):IW.Convert.isBase64Url(t)?IW.Convert.FromBase64Url(t):IW.BufferSourceConverter.toArrayBuffer(e)}}]),n}(UX),sJ=function(e){E(o,e);var t,n,i,r=O(o);function o(e){var t;return Z(this,o),(t=aJ.isAsnEncoded(e)?r.call(this,e,gZ):r.call(this,e)).tag=oJ.PublicKeyTag,D(t)}return Y(o,[{key:"export",value:(i=G(U().mark(function e(){var t,n,i,r=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=["verify"],i=x({hash:"SHA-256"},this.algorithm),e.abrupt("return",(r.length>1?(i=(r.length<=0?void 0:r[0])||i,n=(r.length<=1?void 0:r[1])||n,t=(r.length<=2?void 0:r[2])||YX.get()):t=(r.length<=0?void 0:r[0])||YX.get(),t.subtle.importKey("spki",this.rawData,i,!0,n)));case 2:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"onInit",value:function(e){var t=LQ.resolve("crypto.algorithmProvider"),n=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case"1.2.840.113549.1.1.1":var i=qq.parse(e.subjectPublicKey,yQ),r=IW.BufferSourceConverter.toUint8Array(i.modulus);n.publicExponent=IW.BufferSourceConverter.toUint8Array(i.publicExponent),n.modulusLength=(r[0]?r:r.slice(1)).byteLength<<3}}},{key:"getThumbprint",value:(n=G(U().mark(function e(){var t,n,i,r=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="SHA-1",r.length>=1&&!(null===(t=r.length<=0?void 0:r[0])||void 0===t?void 0:t.subtle)?(i=(r.length<=0?void 0:r[0])||i,n=(r.length<=1?void 0:r[1])||YX.get()):n=(r.length<=0?void 0:r[0])||YX.get(),e.next=4,n.subtle.digest(i,this.rawData);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getKeyIdentifier",value:(t=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t||(t=YX.get()),n=qq.parse(this.rawData,gZ),e.next=4,t.subtle.digest("SHA-1",n.subjectPublicKey);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty(),t=qq.parse(this.rawData,gZ);switch(e.Algorithm=HX.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case"1.2.840.10045.2.1":e["EC Point"]=t.subjectPublicKey;break;case"1.2.840.113549.1.1.1":default:e["Raw Data"]=t.subjectPublicKey}return e}}]),o}(aJ),lJ=function(){function e(){Z(this,e)}return Y(e,null,[{key:"register",value:function(e,t){this.items.set(e,t)}},{key:"create",value:function(e){var t=new GX(e),n=this.items.get(t.type);return n?new n(e):t}}]),e}();lJ.items=new Map;var uJ=function(e){E(o,e);var t,n,i,r=O(o);function o(e){var t;return Z(this,o),(t=aJ.isAsnEncoded(e)?r.call(this,e,AZ):r.call(this,e)).tag=oJ.CertificateTag,D(t)}return Y(o,[{key:"onInit",value:function(e){var t=e.tbsCertificate;this.tbs=qq.serialize(t),this.serialNumber=IW.Convert.ToHex(t.serialNumber),this.subjectName=new JX(t.subject),this.subject=new JX(t.subject).toString(),this.issuerName=new JX(t.issuer),this.issuer=this.issuerName.toString();var n=LQ.resolve("crypto.algorithmProvider");this.signatureAlgorithm=n.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signatureValue;var i=t.validity.notBefore.utcTime||t.validity.notBefore.generalTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;var r=t.validity.notAfter.utcTime||t.validity.notAfter.generalTime;if(!r)throw new Error("Cannot get 'notAfter' value");this.notAfter=r,this.extensions=[],t.extensions&&(this.extensions=t.extensions.map(function(e){return lJ.create(qq.serialize(e))})),this.publicKey=new sJ(t.subjectPublicKeyInfo)}},{key:"getExtension",value:function(e){var t,n=R(this.extensions);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("string"==typeof e){if(i.type===e)return i}else if(i instanceof e)return i}}catch(r){n.e(r)}finally{n.f()}return null}},{key:"getExtensions",value:function(e){return this.extensions.filter(function(t){return"string"==typeof e?t.type===e:t instanceof e})}},{key:"verify",value:(i=G(U().mark(function e(){var t,n,i,r,o,a,s,l,u,c,d,h,f,p=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{},n=p.length>1&&void 0!==p[1]?p[1]:YX.get(),o=t.publicKey,e.prev=3,!o){e.next=30;break}if(!("publicKey"in o)){e.next=12;break}return i=x(x({},o.publicKey.algorithm),this.signatureAlgorithm),e.next=9,o.publicKey.export(i,["verify"]);case 9:r=e.sent,e.next=28;break;case 12:if(!(o instanceof sJ)){e.next=19;break}return i=x(x({},o.algorithm),this.signatureAlgorithm),e.next=16,o.export(i,["verify"]);case 16:r=e.sent,e.next=28;break;case 19:if(!IW.BufferSourceConverter.isBufferSource(o)){e.next=27;break}return a=new sJ(o),i=x(x({},a.algorithm),this.signatureAlgorithm),e.next=24,a.export(i,["verify"]);case 24:r=e.sent,e.next=28;break;case 27:i=x(x({},o.algorithm),this.signatureAlgorithm),r=o;case 28:e.next=34;break;case 30:return i=x(x({},this.publicKey.algorithm),this.signatureAlgorithm),e.next=33,this.publicKey.export(i,["verify"],n);case 33:r=e.sent;case 34:e.next=39;break;case 36:return e.prev=36,e.t0=e.catch(3),e.abrupt("return",!1);case 39:s=LQ.resolveAll("crypto.signatureFormatter").reverse(),l=null,u=R(s),e.prev=42,u.s();case 44:if((c=u.n()).done){e.next=50;break}if(d=c.value,!(l=d.toWebSignature(i,this.signature))){e.next=48;break}return e.abrupt("break",50);case 48:e.next=44;break;case 50:e.next=55;break;case 52:e.prev=52,e.t1=e.catch(42),u.e(e.t1);case 55:return e.prev=55,u.f(),e.finish(55);case 58:if(l){e.next=60;break}throw Error("Cannot convert ASN.1 signature value to WebCrypto format");case 60:return e.next=62,n.subtle.verify(this.signatureAlgorithm,r,l,this.tbs);case 62:if(h=e.sent,!t.signatureOnly){e.next=65;break}return e.abrupt("return",h);case 65:return f=(t.date||new Date).getTime(),e.abrupt("return",h&&this.notBefore.getTime()<f&&f<this.notAfter.getTime());case 67:case"end":return e.stop()}},e,this,[[3,36],[42,52,55,58]])})),function(){return i.apply(this,arguments)})},{key:"getThumbprint",value:(n=G(U().mark(function e(){var t,n,i,r,o,a=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="SHA-1",i=a.length,r=new Array(i),o=0;o<i;o++)r[o]=a[o];return r[0]&&(r[0].subtle?t=r[0]:(n=r[0]||n,t=r[1])),null!=t||(t=YX.get()),e.next=6,t.subtle.digest(n,this.rawData);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"isSelfSigned",value:(t=G(U().mark(function e(){var t,n=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:YX.get(),e.t0=this.subject===this.issuer,!e.t0){e.next=6;break}return e.next=5,this.verify({signatureOnly:!0},t);case 5:e.t0=e.sent;case 6:return e.abrupt("return",e.t0);case 7:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty(),t=qq.parse(this.rawData,AZ),n=t.tbsCertificate,i=new zX("",{Version:"".concat(wZ[n.version]," (").concat(n.version,")"),"Serial Number":n.serialNumber,"Signature Algorithm":HX.serializeAlgorithm(n.signature),Issuer:this.issuer,Validity:new zX("",{"Not Before":n.validity.notBefore.getTime(),"Not After":n.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(n.issuerUniqueID&&(i["Issuer Unique ID"]=n.issuerUniqueID),n.subjectUniqueID&&(i["Subject Unique ID"]=n.subjectUniqueID),this.extensions.length){var r,o=new zX(""),a=R(this.extensions);try{for(a.s();!(r=a.n()).done;){var s=r.value.toTextObject();o[s[zX.NAME]]=s}}catch(l){a.e(l)}finally{a.f()}i.Extensions=o}return e.Data=i,e.Signature=new zX("",{Algorithm:HX.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}]),o}(aJ);uJ.NAME="Certificate";var cJ=function(e){E(i,e);var t,n=O(i);function i(){var e;if(Z(this,i),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0]))e=n.call(this,arguments.length<=0?void 0:arguments[0]);else if("string"==typeof(arguments.length<=0?void 0:arguments[0])){var t=new fY({keyIdentifier:new hY(IW.Convert.FromHex(arguments.length<=0?void 0:arguments[0]))});e=n.call(this,"2.5.29.35",arguments.length<=1?void 0:arguments[1],qq.serialize(t))}else{var r=arguments.length<=0?void 0:arguments[0],o=r.name instanceof iJ?qq.parse(r.name.rawData,mY):r.name,a=new fY({authorityCertIssuer:o,authorityCertSerialNumber:IW.Convert.FromHex(r.serialNumber)});e=n.call(this,"2.5.29.35",arguments.length<=1?void 0:arguments[1],qq.serialize(a))}return D(e)}return Y(i,[{key:"onInit",value:function(e){C(M(i.prototype),"onInit",this).call(this,e);var t=qq.parse(e.extnValue,fY);t.keyIdentifier&&(this.keyId=IW.Convert.ToHex(t.keyIdentifier)),t.authorityCertIssuer&&t.authorityCertSerialNumber&&(this.certId={name:t.authorityCertIssuer,serialNumber:IW.Convert.ToHex(t.authorityCertSerialNumber)})}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=qq.parse(this.value,fY);return t.authorityCertIssuer&&(e["Authority Issuer"]=new iJ(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}],[{key:"create",value:(t=G(U().mark(function e(t){var n,r,o,a,s,l,u=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>1&&void 0!==u[1]&&u[1],r=u.length>2&&void 0!==u[2]?u[2]:YX.get(),!(t instanceof uJ||qX.isCryptoKey(t))){e.next=19;break}if(!(t instanceof uJ)){e.next=9;break}return e.next=6,t.publicKey.export(r);case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0=t;case 10:return o=e.t0,e.next=13,r.subtle.exportKey("spki",o);case 13:return a=e.sent,s=new sJ(a),e.next=17,s.getKeyIdentifier(r);case 17:return l=e.sent,e.abrupt("return",new i(IW.Convert.ToHex(l),n));case 19:return e.abrupt("return",new i(t,n));case 20:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),i}(GX);cJ.NAME="Authority Key Identifier";var dJ,hJ,fJ,pJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var i=qq.parse(e.value,gY);e.ca=i.cA,e.pathLength=i.pathLenConstraint}else{var r=new gY({cA:arguments.length<=0?void 0:arguments[0],pathLenConstraint:arguments.length<=1?void 0:arguments[1]});(e=t.call(this,"2.5.29.19",arguments.length<=2?void 0:arguments[2],qq.serialize(r))).ca=arguments.length<=0?void 0:arguments[0],e.pathLength=arguments.length<=1?void 0:arguments[1]}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),void 0!==this.pathLength&&(e["Path Length"]=this.pathLength),e}}]),n}(GX);pJ.NAME="Basic Constraints",(hJ=dJ||(dJ={})).serverAuth="1.3.6.1.5.5.7.3.1",hJ.clientAuth="1.3.6.1.5.5.7.3.2",hJ.codeSigning="1.3.6.1.5.5.7.3.3",hJ.emailProtection="1.3.6.1.5.5.7.3.4",hJ.timeStamping="1.3.6.1.5.5.7.3.8",hJ.ocspSigning="1.3.6.1.5.5.7.3.9";var gJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var i=qq.parse(e.value,jY);e.usages=i.map(function(e){return e})}else{var r=new jY(arguments.length<=0?void 0:arguments[0]);(e=t.call(this,"2.5.29.37",arguments.length<=1?void 0:arguments[1],qq.serialize(r))).usages=arguments.length<=0?void 0:arguments[0]}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(function(e){return jX.toString(e)}).join(", "),e}}]),n}(GX);gJ.NAME="Extended Key Usages",function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(fJ||(fJ={}));var vJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var i=qq.parse(e.value,ZY);e.usages=i.toNumber()}else{var r=new ZY(arguments.length<=0?void 0:arguments[0]);(e=t.call(this,"2.5.29.15",arguments.length<=1?void 0:arguments[1],qq.serialize(r))).usages=arguments.length<=0?void 0:arguments[0]}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=qq.parse(this.value,ZY);return e[""]=t.toJSON().join(", "),e}}]),n}(GX);vJ.NAME="Key Usages";var mJ=function(e){E(i,e);var t,n=O(i);function i(){var e;if(Z(this,i),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=n.call(this,arguments.length<=0?void 0:arguments[0]);var t=qq.parse(e.value,uZ);e.keyId=IW.Convert.ToHex(t)}else{var r="string"==typeof(arguments.length<=0?void 0:arguments[0])?IW.Convert.FromHex(arguments.length<=0?void 0:arguments[0]):arguments.length<=0?void 0:arguments[0],o=new uZ(r);(e=n.call(this,"2.5.29.14",arguments.length<=1?void 0:arguments[1],qq.serialize(o))).keyId=IW.Convert.ToHex(r)}return D(e)}return Y(i,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=qq.parse(this.value,uZ);return e[""]=t,e}}],[{key:"create",value:(t=G(U().mark(function e(t){var n,r,o,a,s,l=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>1&&void 0!==l[1]&&l[1],r=l.length>2&&void 0!==l[2]?l[2]:YX.get(),!(t instanceof sJ)){e.next=6;break}e.t0=t.rawData,e.next=19;break;case 6:if(!("publicKey"in t)){e.next=10;break}e.t1=t.publicKey.rawData,e.next=18;break;case 10:if(!IW.BufferSourceConverter.isBufferSource(t)){e.next=14;break}e.t2=t,e.next=17;break;case 14:return e.next=16,r.subtle.exportKey("spki",t);case 16:e.t2=e.sent;case 17:e.t1=e.t2;case 18:e.t0=e.t1;case 19:return o=e.t0,a=new sJ(o),e.next=23,a.getKeyIdentifier(r);case 23:return s=e.sent,e.abrupt("return",new i(IW.Convert.ToHex(s),n));case 25:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),i}(GX);mJ.NAME="Subject Key Identifier";var yJ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),D(IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])?t.call(this,arguments.length<=0?void 0:arguments[0]):t.call(this,"2.5.29.17",arguments.length<=1?void 0:arguments[1],new iJ((arguments.length<=0?void 0:arguments[0])||[]).rawData))}return Y(n,[{key:"onInit",value:function(e){C(M(n.prototype),"onInit",this).call(this,e);var t=qq.parse(e.extnValue,iZ);this.names=new iJ(t)}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(var n in t)e[n]=t[n];return e}}]),n}(GX);yJ.NAME="Subject Alternative Name";var bJ=function(e){E(n,e);var t=O(n);function n(){var e,i;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var r=qq.parse(e.value,SY);e.policies=r.map(function(e){return e.policyIdentifier})}else{var o=arguments.length<=0?void 0:arguments[0],a=null!==(i=arguments.length<=1?void 0:arguments[1])&&void 0!==i&&i,s=new SY(o.map(function(e){return new CY({policyIdentifier:e})}));(e=t.call(this,"2.5.29.32",a,qq.serialize(s))).policies=o}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(function(e){return new zX("",{},jX.toString(e))}),e}}]),n}(GX);bJ.NAME="Certificate Policies",lJ.register("2.5.29.32",bJ);var wJ=function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];if(IW.BufferSourceConverter.isBufferSource(r[0]))e=IW.BufferSourceConverter.toArrayBuffer(r[0]);else{var a=r[0],s=Array.isArray(r[1])?r[1].map(function(e){return IW.BufferSourceConverter.toArrayBuffer(e)}):[];e=qq.serialize(new oZ({type:a,values:s}))}return t.call(this,e,oZ)}return Y(n,[{key:"onInit",value:function(e){this.type=e.type,this.values=e.values}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e.Value=this.values.map(function(e){return new zX("",{"":e})}),e}},{key:"toTextObjectWithoutValue",value:function(){var e=this.toTextObjectEmpty();return e[zX.NAME]===n.NAME&&(e[zX.NAME]=jX.toString(this.type)),e}}]),n}(UX);wJ.NAME="Attribute";var kJ=function(e){E(n,e);var t=O(n);function n(){var e,i;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0]))e=t.call(this,arguments.length<=0?void 0:arguments[0]);else{var r=new CX({printableString:arguments.length<=0?void 0:arguments[0]});e=t.call(this,"1.2.840.113549.1.9.7",[qq.serialize(r)])}return null!==(i=e.password)&&void 0!==i||(e.password=""),D(e)}return Y(n,[{key:"onInit",value:function(e){if(C(M(n.prototype),"onInit",this).call(this,e),this.values[0]){var t=qq.parse(this.values[0],CX);this.password=t.toString()}}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e[zX.VALUE]=this.password,e}}]),n}(wJ);kJ.NAME="Challenge Password";var xJ=function(e){E(n,e);var t=O(n);function n(){var e,i;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0]))e=t.call(this,arguments.length<=0?void 0:arguments[0]);else{var r,o=arguments.length<=0?void 0:arguments[0],a=new xZ,s=R(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;a.push(qq.parse(l.rawData,bZ))}}catch(u){s.e(u)}finally{s.f()}e=t.call(this,"1.2.840.113549.1.9.14",[qq.serialize(a)])}return null!==(i=e.items)&&void 0!==i||(e.items=[]),D(e)}return Y(n,[{key:"onInit",value:function(e){if(C(M(n.prototype),"onInit",this).call(this,e),this.values[0]){var t=qq.parse(this.values[0],xZ);this.items=t.map(function(e){return lJ.create(qq.serialize(e))})}}},{key:"toTextObject",value:function(){var e,t=this.toTextObjectWithoutValue(),n=R(this.items.map(function(e){return e.toTextObject()}));try{for(n.s();!(e=n.n()).done;){var i=e.value;t[i[zX.NAME]]=i}}catch(r){n.e(r)}finally{n.f()}return t}}]),n}(wJ);xJ.NAME="Extensions";var _J=function(){function e(){Z(this,e)}return Y(e,null,[{key:"register",value:function(e,t){this.items.set(e,t)}},{key:"create",value:function(e){var t=new wJ(e),n=this.items.get(t.type);return n?new n(e):t}}]),e}();_J.items=new Map;var AJ=function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnAlgorithm",value:function(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if(!e.hash)return new pZ({algorithm:"1.2.840.113549.1.1.1",parameters:null});switch(e.hash.name.toLowerCase()){case"sha-1":return new pZ({algorithm:"1.2.840.113549.1.1.5",parameters:null});case"sha-256":return new pZ({algorithm:"1.2.840.113549.1.1.11",parameters:null});case"sha-384":return new pZ({algorithm:"1.2.840.113549.1.1.12",parameters:null});case"sha-512":return new pZ({algorithm:"1.2.840.113549.1.1.13",parameters:null})}}return null}},{key:"toWebAlgorithm",value:function(e){switch(e.algorithm){case"1.2.840.113549.1.1.1":return{name:"RSASSA-PKCS1-v1_5"};case"1.2.840.113549.1.1.5":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case"1.2.840.113549.1.1.11":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"1.2.840.113549.1.1.12":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case"1.2.840.113549.1.1.13":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}}return null}}]),e}();AJ=Yq([FQ()],AJ),LQ.registerSingleton("crypto.algorithm",AJ);var CJ=function(){function e(){Z(this,e)}return Y(e,[{key:"addPadding",value:function(e,t){var n=IW.BufferSourceConverter.toUint8Array(t),i=new Uint8Array(e);return i.set(n,e-n.length),i}},{key:"removePadding",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=IW.BufferSourceConverter.toUint8Array(e),i=0;i<n.length;i++)if(n[i]){n=n.slice(i);break}if(t&&n[0]>127){var r=new Uint8Array(n.length+1);return r.set(n,1),r.buffer}return n.buffer}},{key:"toAsnSignature",value:function(t,n){if("ECDSA"===t.name){var i=e.namedCurveSize.get(t.namedCurve)||e.defaultNamedCurveSize,r=new oQ,o=IW.BufferSourceConverter.toUint8Array(n);return r.r=this.removePadding(o.slice(0,i),!0),r.s=this.removePadding(o.slice(i,i+i),!0),qq.serialize(r)}return null}},{key:"toWebSignature",value:function(t,n){if("ECDSA"===t.name){var i=qq.parse(n,oQ),r=e.namedCurveSize.get(t.namedCurve)||e.defaultNamedCurveSize,o=this.addPadding(r,this.removePadding(i.r)),a=this.addPadding(r,this.removePadding(i.s));return Object(IW.combine)(o,a)}return null}}]),e}();CJ.namedCurveSize=new Map,CJ.defaultNamedCurveSize=32;var SJ=function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnAlgorithm",value:function(e){var t=null;switch(e.name.toLowerCase()){case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t="1.3.101.112";break;case"ed448":t="1.3.101.113"}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t="1.3.101.110";break;case"x448":t="1.3.101.111"}}return t?new pZ({algorithm:t}):null}},{key:"toWebAlgorithm",value:function(e){switch(e.algorithm){case"1.3.101.112":return{name:"EdDSA",namedCurve:"Ed25519"};case"1.3.101.113":return{name:"EdDSA",namedCurve:"Ed448"};case"1.3.101.110":return{name:"ECDH-ES",namedCurve:"X25519"};case"1.3.101.111":return{name:"ECDH-ES",namedCurve:"X448"}}return null}}]),e}();SJ=Yq([FQ()],SJ),LQ.registerSingleton("crypto.algorithm",SJ);var EJ,PJ=function(e){E(i,e);var t,n=O(i);function i(e){var t;return Z(this,i),(t=aJ.isAsnEncoded(e)?n.call(this,e,RX):n.call(this,e)).tag=oJ.CertificateRequestTag,D(t)}return Y(i,[{key:"onInit",value:function(e){this.tbs=qq.serialize(e.certificationRequestInfo),this.publicKey=new sJ(e.certificationRequestInfo.subjectPKInfo);var t=LQ.resolve("crypto.algorithmProvider");this.signatureAlgorithm=t.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signature,this.attributes=e.certificationRequestInfo.attributes.map(function(e){return _J.create(qq.serialize(e))});var n=this.getAttribute("1.2.840.113549.1.9.14");this.extensions=[],n instanceof xJ&&(this.extensions=n.items),this.subjectName=new JX(e.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}},{key:"getAttribute",value:function(e){var t,n=R(this.attributes);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.type===e)return i}}catch(r){n.e(r)}finally{n.f()}return null}},{key:"getAttributes",value:function(e){return this.attributes.filter(function(t){return t.type===e})}},{key:"getExtension",value:function(e){var t,n=R(this.extensions);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.type===e)return i}}catch(r){n.e(r)}finally{n.f()}return null}},{key:"getExtensions",value:function(e){return this.extensions.filter(function(t){return t.type===e})}},{key:"verify",value:(t=G(U().mark(function e(){var t,n,i,r,o,a,s,l,u=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:YX.get(),n=x(x({},this.publicKey.algorithm),this.signatureAlgorithm),e.next=4,this.publicKey.export(n,["verify"],t);case 4:i=e.sent,r=LQ.resolveAll("crypto.signatureFormatter").reverse(),o=null,a=R(r),e.prev=8,a.s();case 10:if((s=a.n()).done){e.next=16;break}if(l=s.value,!(o=l.toWebSignature(n,this.signature))){e.next=14;break}return e.abrupt("break",16);case 14:e.next=10;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(8),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:if(o){e.next=26;break}throw Error("Cannot convert WebCrypto signature value to ASN.1 format");case 26:return e.next=28,t.subtle.verify(this.signatureAlgorithm,i,o,this.tbs);case 28:return e.abrupt("return",e.sent);case 29:case"end":return e.stop()}},e,this,[[8,18,21,24]])})),function(){return t.apply(this,arguments)})},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty(),t=qq.parse(this.rawData,RX),n=t.certificationRequestInfo,i=new zX("",{Version:"".concat(wZ[n.version]," (").concat(n.version,")"),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){var r,o=new zX(""),a=R(this.attributes);try{for(a.s();!(r=a.n()).done;){var s=r.value.toTextObject();o[s[zX.NAME]]=s}}catch(l){a.e(l)}finally{a.f()}i.Attributes=o}return e.Data=i,e.Signature=new zX("",{Algorithm:HX.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}]),i}(aJ);PJ.NAME="PKCS#10 Certificate Request",function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(EJ||(EJ={})),lJ.register("2.5.29.19",pJ),lJ.register("2.5.29.37",gJ),lJ.register("2.5.29.15",vJ),lJ.register("2.5.29.14",mJ),lJ.register("2.5.29.35",cJ),lJ.register("2.5.29.17",yJ),_J.register("1.2.840.113549.1.9.7",kJ),_J.register("1.2.840.113549.1.9.14",xJ),LQ.registerSingleton("crypto.signatureFormatter",function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnSignature",value:function(e,t){return IW.BufferSourceConverter.toArrayBuffer(t)}},{key:"toWebSignature",value:function(e,t){return IW.BufferSourceConverter.toArrayBuffer(t)}}]),e}()),LQ.registerSingleton("crypto.signatureFormatter",CJ),CJ.namedCurveSize.set("P-256",32),CJ.namedCurveSize.set("K-256",32),CJ.namedCurveSize.set("P-384",48),CJ.namedCurveSize.set("P-521",66);var OJ,DJ,IJ,TJ=((OJ=function(){function e(){Z(this,e)}var t,n;return Y(e,null,[{key:"pkcs10",value:(n=G(U().mark(function t(n,i,r){var o,a;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.subtle.generateKey(i,!1,e.keyUsages);case 2:return o=t.sent,t.next=5,function(){function e(){Z(this,e)}var t;return Y(e,null,[{key:"create",value:(t=G(U().mark(function e(t){var n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,k,_,A=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.length>1&&void 0!==A[1]?A[1]:YX.get(),t.keys.privateKey){e.next=3;break}throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");case 3:if(t.keys.publicKey){e.next=5;break}throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");case 5:return e.next=7,n.subtle.exportKey("spki",t.keys.publicKey);case 7:if(i=e.sent,r=new RX({certificationRequestInfo:new MX({subjectPKInfo:qq.parse(i,gZ)})}),t.name&&(o=t.name instanceof JX?t.name:new JX(t.name),r.certificationRequestInfo.subject=qq.parse(o.toArrayBuffer(),rY)),t.attributes){a=R(t.attributes);try{for(a.s();!(s=a.n()).done;)l=s.value,r.certificationRequestInfo.attributes.push(qq.parse(l.rawData,oZ))}catch(C){a.e(C)}finally{a.f()}}if(t.extensions&&t.extensions.length){u=new oZ({type:"1.2.840.113549.1.9.14"}),c=new xZ,d=R(t.extensions);try{for(d.s();!(h=d.n()).done;)f=h.value,c.push(qq.parse(f.rawData,bZ))}catch(C){d.e(C)}finally{d.f()}u.values.push(qq.serialize(c)),r.certificationRequestInfo.attributes.push(u)}return p=x(x({},t.signingAlgorithm),t.keys.privateKey.algorithm),g=LQ.resolve("crypto.algorithmProvider"),r.signatureAlgorithm=g.toAsnAlgorithm(p),v=qq.serialize(r.certificationRequestInfo),e.next=17,n.subtle.sign(p,t.keys.privateKey,v);case 17:m=e.sent,y=LQ.resolveAll("crypto.signatureFormatter").reverse(),b=null,w=R(y),e.prev=21,w.s();case 23:if((k=w.n()).done){e.next=29;break}if(_=k.value,!(b=_.toAsnSignature(p,m))){e.next=27;break}return e.abrupt("break",29);case 27:e.next=23;break;case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(21),w.e(e.t0);case 34:return e.prev=34,w.f(),e.finish(34);case 37:if(b){e.next=39;break}throw Error("Cannot convert WebCrypto signature value to ASN.1 format");case 39:return e.abrupt("return",(r.signature=b,new PJ(qq.serialize(r))));case 40:case"end":return e.stop()}},e,null,[[21,31,34,37]])})),function(e){return t.apply(this,arguments)})}]),e}().create({name:r,keys:o,signingAlgorithm:i,extensions:[],attributes:[]},n);case 5:return a=t.sent,t.abrupt("return",{der:a.rawData,pem:a.toString("pem"),privateKey:o.privateKey,publicKey:o.publicKey});case 7:case"end":return t.stop()}},t)})),function(e,t,i){return n.apply(this,arguments)})},{key:"x509",value:(t=G(U().mark(function t(n,i,r){var o,a,s;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.subtle.generateKey(i,!1,e.keyUsages);case 2:return o=t.sent,a=new Date,t.next=6,function(){function e(){Z(this,e)}var t,n;return Y(e,null,[{key:"createSelfSigned",value:(n=G(U().mark(function e(t){var n,i=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]?i[1]:YX.get(),t.keys.privateKey){e.next=3;break}throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");case 3:if(t.keys.publicKey){e.next=5;break}throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");case 5:return e.abrupt("return",this.create({serialNumber:t.serialNumber,subject:t.name,issuer:t.name,notBefore:t.notBefore,notAfter:t.notAfter,publicKey:t.keys.publicKey,signingKey:t.keys.privateKey,signingAlgorithm:t.signingAlgorithm,extensions:t.extensions},n));case 6:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"create",value:(t=G(U().mark(function e(t){var n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=m.length>1&&void 0!==m[1]?m[1]:YX.get(),!(t.publicKey instanceof sJ)){e.next=5;break}e.t0=t.publicKey.rawData,e.next=18;break;case 5:if(!("publicKey"in t.publicKey)){e.next=9;break}e.t1=t.publicKey.publicKey.rawData,e.next=17;break;case 9:if(!IW.BufferSourceConverter.isBufferSource(t.publicKey)){e.next=13;break}e.t2=t.publicKey,e.next=16;break;case 13:return e.next=15,n.subtle.exportKey("spki",t.publicKey);case 15:e.t2=e.sent;case 16:e.t1=e.t2;case 17:e.t0=e.t1;case 18:if(r=e.t0,o=new AZ({tbsCertificate:new _Z({version:wZ.v3,serialNumber:IW.Convert.FromHex(t.serialNumber),validity:new yZ({notBefore:t.notBefore,notAfter:t.notAfter}),extensions:new xZ((null===(i=t.extensions)||void 0===i?void 0:i.map(function(e){return qq.parse(e.rawData,bZ)}))||[]),subjectPublicKeyInfo:qq.parse(r,gZ)})}),t.subject&&(a=t.subject instanceof JX?t.subject:new JX(t.subject),o.tbsCertificate.subject=qq.parse(a.toArrayBuffer(),rY)),t.issuer&&(s=t.issuer instanceof JX?t.issuer:new JX(t.issuer),o.tbsCertificate.issuer=qq.parse(s.toArrayBuffer(),rY)),l="signingKey"in t?x(x({},t.signingAlgorithm),t.signingKey.algorithm):t.publicKey.algorithm,u=LQ.resolve("crypto.algorithmProvider"),o.tbsCertificate.signature=o.signatureAlgorithm=u.toAsnAlgorithm(l),c=qq.serialize(o.tbsCertificate),!("signingKey"in t)){e.next=31;break}return e.next=28,n.subtle.sign(l,t.signingKey,c);case 28:e.t3=e.sent,e.next=32;break;case 31:e.t3=t.signature;case 32:d=e.t3,h=LQ.resolveAll("crypto.signatureFormatter").reverse(),f=null,p=R(h),e.prev=36,p.s();case 38:if((g=p.n()).done){e.next=44;break}if(v=g.value,!(f=v.toAsnSignature(l,d))){e.next=42;break}return e.abrupt("break",44);case 42:e.next=38;break;case 44:e.next=49;break;case 46:e.prev=46,e.t4=e.catch(36),p.e(e.t4);case 49:return e.prev=49,p.f(),e.finish(49);case 52:if(f){e.next=54;break}throw Error("Cannot convert ASN.1 signature value to WebCrypto format");case 54:return e.abrupt("return",(o.signatureValue=f,new uJ(qq.serialize(o))));case 55:case"end":return e.stop()}},e,null,[[36,46,49,52]])})),function(e){return t.apply(this,arguments)})}]),e}().createSelfSigned({serialNumber:"01",name:r,notBefore:new Date(a.getFullYear(),a.getMonth(),a.getDate()),notAfter:new Date(a.getFullYear()+1,a.getMonth(),a.getDate()),signingAlgorithm:i,keys:o,extensions:[new pJ(!1,0,!0),new vJ(fJ.digitalSignature,!0),new gJ(["1.3.6.1.5.5.7.3.2","1.3.6.1.5.5.7.3.4"],!0)]},n);case 6:return s=t.sent,t.abrupt("return",{der:s.rawData,pem:s.toString("pem"),privateKey:o.privateKey,publicKey:o.publicKey});case 8:case"end":return t.stop()}},t)})),function(e,n,i){return t.apply(this,arguments)})}]),e}()).keyUsages=["sign","verify"],OJ);!function(e){e[e.picture=0]="picture",e[e.handwrittenSignature=1]="handwrittenSignature"}(IJ||(IJ={}));var MJ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.Integer})],MJ.prototype,"predefinedBiometricType",void 0),Yq([jq({type:tG.ObjectIdentifier})],MJ.prototype,"biometricDataOid",void 0),MJ=Yq([zq({type:eG.Choice})],MJ);var BJ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.typeOfBiometricData=new MJ,this.hashAlgorithm=new pZ,this.biometricDataHash=new uq,Object.assign(this,t)});Yq([jq({type:MJ})],BJ.prototype,"typeOfBiometricData",void 0),Yq([jq({type:pZ})],BJ.prototype,"hashAlgorithm",void 0),Yq([jq({type:uq})],BJ.prototype,"biometricDataHash",void 0),Yq([jq({type:tG.IA5String,optional:!0})],BJ.prototype,"sourceDataUri",void 0);var RJ,LJ,FJ=DJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),DJ.prototype),i}return Y(n)}(Gq);FJ=DJ=Yq([zq({type:eG.Sequence,itemType:BJ})],FJ);var NJ=Y(function e(){Z(this,e),this.statementId="",this.statementInfo=new ArrayBuffer(0)});Yq([jq({type:tG.ObjectIdentifier})],NJ.prototype,"statementId",void 0),Yq([jq({type:tG.Any,optional:!0})],NJ.prototype,"statementInfo",void 0);var VJ=RJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),RJ.prototype),i}return Y(n)}(Gq);VJ=RJ=Yq([zq({type:eG.Sequence,itemType:uY})],VJ);var zJ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier,optional:!0})],zJ.prototype,"semanticsIdentifier",void 0),Yq([jq({type:VJ,optional:!0})],zJ.prototype,"nameRegistrationAuthorities",void 0);var jJ=LJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),LJ.prototype),i}return Y(n)}(Gq);jJ=LJ=Yq([zq({type:eG.Sequence,itemType:NJ})],jJ);var HJ,UJ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);UJ=Yq([zq({type:eG.Choice})],UJ),function(e){e.M="M",e.F="F",e.m="m",e.f="f"}(HJ||(HJ={}));var WJ,GJ,qJ,YJ=Y(function e(){Z(this,e),1===arguments.length?(this.asn=arguments.length<=0?void 0:arguments[0],this.rawData=qq.serialize(this.asn)):(this.asn=qq.parse(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]),this.rawData=IW.BufferSourceConverter.toArrayBuffer(arguments.length<=0?void 0:arguments[0]))}),ZJ=function(e){E(n,e);var t=O(n);function n(e){var i;Z(this,n);var r=(i=t.call(this,e,bZ)).getAsnExtnValue();switch(i.asn.extnID){case"2.5.29.15":i.value=Uq.parse(r,ZY);break;case"2.5.29.32":i.value=Uq.parse(r,SY);break;case"1.3.6.1.5.5.7.1.3":i.value=Uq.parse(r,jJ);break;case"2.5.29.19":i.value=Uq.parse(r,gY);break;default:i.value=r}return i}return Y(n,[{key:"getAsnExtnValue",value:function(){return this.asn.extnValue.buffer}}]),n}(YJ),KJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e,AZ)).extensions=[],i.parseExtensions(),i}return Y(n,[{key:"parseExtensions",value:function(){var e=this.asn.tbsCertificate;e.extensions&&(this.extensions=e.extensions.map(function(e){return new ZJ(qq.serialize(e))}))}},{key:"getExtensionByOid",value:function(e){if(this.extensions.length)for(var t=0;t<this.extensions.length;t+=1){var n=this.extensions[t];if(n&&n.asn.extnID===e)return n}}},{key:"hasKeyUsage",value:function(e){if(!e||!e.length)return!1;var t=this.getExtensionByOid("2.5.29.15");if(!t)return!1;var n=t.value.toJSON();if(!n.length)return!1;for(var i=0;i<e.length;i+=1){var r=e[i];if("string"==typeof r&&n.includes(r))return!0;if(Array.isArray(r)&&r.every(function(e){return n.includes(e)}))return!0}return!1}},{key:"isQualified",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.getExtensionByOid("2.5.29.32");if(!t)return!1;var n=this.getExtensionByOid("1.3.6.1.5.5.7.1.3");if(!n)return!1;var i=t.value.map(function(e){return e.policyIdentifier}),r=n.value.map(function(e){return e.statementId}),o=r.includes("0.4.0.1862.1.1"),a=i.includes("0.4.0.1456.1.1")||i.includes("0.4.0.194112.1.3")||i.includes("0.4.0.194112.1.2")||r.includes("0.4.0.1862.1.4"),s=i.includes("0.4.0.194112.1.1")||r.includes("0.4.0.1862.1.6.2");return e.length&&e.forEach(function(e){r.includes(e)&&(a=!0)}),!!(o&&a||s)}},{key:"isCA",value:function(){var e=this.getExtensionByOid("2.5.29.19");return!!e&&e.value.cA}}]),n}(YJ),QJ=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},XJ=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},JJ=function(){function e(t){Z(this,e),this.FORTIFY_URL="127.0.0.1:31337",this.CONNECTION_CHECK_TIME=1e4,this.options={onDebug:function(){},onClose:function(){},onProvidersAdded:function(){},onProvidersRemoved:function(){},filters:{}},WJ.set(this,void 0),GJ.set(this,function(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,i=n.split("[FBAN");void 0!==i[1]&&(n=i[0]),void 0!==(i=n.split("Twitter"))[1]&&(n=i[0]);var r=function(e){return function(t){return t.test(e)}}(n),o={apple:{phone:r(gW)&&!r(_W),ipod:r(vW),tablet:!r(gW)&&(r(mW)||DW(t))&&!r(_W),universal:r(yW),device:(r(gW)||r(vW)||r(mW)||r(yW)||DW(t))&&!r(_W)},amazon:{phone:r(kW),tablet:!r(kW)&&r(xW),device:r(kW)||r(xW)},android:{phone:!r(_W)&&r(kW)||!r(_W)&&r(bW),tablet:!r(_W)&&!r(kW)&&!r(bW)&&(r(xW)||r(wW)),device:!r(_W)&&(r(kW)||r(xW)||r(bW)||r(wW))||r(/\bokhttp\b/i)},windows:{phone:r(_W),tablet:r(AW),device:r(_W)||r(AW)},other:{blackberry:r(CW),blackberry10:r(SW),opera:r(EW),firefox:r(OW),chrome:r(PW),device:r(CW)||r(SW)||r(EW)||r(OW)||r(PW)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}(window.navigator)),qJ.set(this,void 0),Object.assign(this.options,t),this.debug({type:"initialize",data:this.options})}var t,n,i,r,o,a,s,l,u,c,d,h,f,p,g;return Y(e,[{key:"debug",value:function(e){var t=this.options.onDebug;t&&t(Object.assign({time:new Date},e))}},{key:"isConnectionSupported",value:function(){return!QJ(this,GJ,"f").phone}},{key:"isConnectionDetected",value:(g=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://".concat(this.FORTIFY_URL,"/.well-known/webcrypto-socket"));case 3:return e.abrupt("return",e.sent.ok);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",!1);case 9:case"end":return e.stop()}},e,this,[[0,6]])})),function(){return g.apply(this,arguments)})},{key:"isConnectionDetectedAuto",value:(p=G(U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var n=function(){var i=G(U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t.isConnectionDetected();case 2:if(!i.sent){i.next=6;break}e(),i.next=7;break;case 6:XJ(t,qJ,window.setTimeout(n,t.CONNECTION_CHECK_TIME),"f");case 7:case"end":return i.stop()}},i)}));return function(){return i.apply(this,arguments)}}();n()}));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"start",value:(f=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isConnectionSupported()){e.next=2;break}throw this.debug({type:"connection_not_supported"}),new Error("connection_not_supported");case 2:return e.next=4,this.isConnectionDetected();case 4:if(e.sent){e.next=6;break}throw this.debug({type:"connection_not_detected"}),new Error("connection_not_detected");case 6:return e.next=8,this.connect();case 8:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"finish",value:function(){this.server&&(this.server.client.close(),this.server=null),QJ(this,qJ,"f")&&(clearTimeout(QJ(this,qJ,"f")),XJ(this,qJ,null,"f"))}},{key:"challenge",value:(h=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.server.isLoggedIn();case 2:if(e.sent){e.next=4;break}return e.abrupt("return",this.server.challenge());case 4:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)})},{key:"login",value:(d=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.server.login();case 3:e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(0),this.debug({type:"connection_key_not_approved"}),new Error("connection_key_not_approved");case 8:case"end":return e.stop()}},e,this,[[0,5]])})),function(){return d.apply(this,arguments)})},{key:"connect",value:(c=G(U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=window.protobuf,e.t0){e.next=4;break}return e.next=4,S.e(10).then(S.t.bind(null,"X5sl",7));case 4:if(e.t1=window.WebcryptoSocket,e.t1){e.next=8;break}return e.next=8,S.e(61).then(S.bind(null,"lqkf"));case 8:case"end":return e.stop()}},e)}))();case 2:if(QJ(this,WJ,"f")){e.next=16;break}return e.prev=3,e.t0=XJ,e.t1=this,e.t2=WJ,e.next=9,WebcryptoSocket.BrowserStorage.create();case 9:e.t3=e.sent,(0,e.t0)(e.t1,e.t2,e.t3,"f"),e.next=16;break;case 13:e.prev=13,e.t4=e.catch(3),XJ(this,WJ,new WebcryptoSocket.MemoryStorage,"f");case 16:return e.abrupt("return",new Promise(function(e,n){t.server&&e(),t.server=new WebcryptoSocket.SocketProvider({storage:QJ(t,WJ,"f")}).connect(t.FORTIFY_URL).on("error",function(e){n(e)}).on("listening",G(U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e();case 1:case"end":return t.stop()}},t)}))).on("token",function(){var e=G(U().mark(function e(n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.added.length&&(t.debug({type:"token_added",data:n.added}),i=n.added.filter(function(e){return t.providerFilter(e)}),t.options.onProvidersAdded(i)),n.removed.length&&(t.debug({type:"token_removed",data:n.removed}),t.options.onProvidersRemoved(n.removed));case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).on("disconnect",function(){console.log("disconnect")}).on("close",function(){t.debug({type:"connection_close"}),t.options.onClose()})}));case 17:case"end":return e.stop()}},e,this,[[3,13]])})),function(){return c.apply(this,arguments)})},{key:"providerFilter",value:function(e){var t=this.options.filters;if(t.onlySmartcards&&!e.isRemovable)return!1;if(t.providerNameMatch){if("string"==typeof t.providerNameMatch&&!new RegExp(t.providerNameMatch,"i").test(e.name))return!1;if(t.providerNameMatch instanceof RegExp&&!t.providerNameMatch.test(e.name))return!1}if(t.providerATRMatch){if("string"==typeof t.providerATRMatch&&!new RegExp(t.providerATRMatch,"i").test(e.atr))return!1;if(t.providerATRMatch instanceof RegExp&&!t.providerATRMatch.test(e.atr))return!1}return!0}},{key:"getProviders",value:(u=G(U().mark(function e(){var t,n,i=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.server.info();case 2:return t=e.sent,this.debug({type:"providers",data:{providers:t.providers.map(function(e){return{id:e.id,isRemovable:e.isRemovable,name:e.name,readOnly:e.readOnly,version:e.version,algorithms:e.algorithms}})}}),n=t.providers.filter(function(e){return i.providerFilter(e)}),e.abrupt("return",(this.debug({type:"providers_after_filters",data:{providers:n.map(function(e){return e.id})}}),n));case 6:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})},{key:"getProviderById",value:(l=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.server.getCrypto(t);case 2:if(i=e.sent,e.t0=n,!e.t0){e.next=11;break}return e.next=7,i.isLoggedIn();case 7:if(e.t1=e.sent,e.t1){e.next=11;break}return e.next=11,i.login();case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}},e,this)})),function(e,t){return l.apply(this,arguments)})},{key:"getCertificatesByProviders",value:(s=G(U().mark(function e(t){var n,i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[],i=R(t),e.prev=2,i.s();case 4:if((r=i.n()).done){e.next=12;break}return o=r.value,e.next=8,this.getCertificatesByProviderId(o.id);case 8:a=e.sent,n.push.apply(n,V(a));case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:return e.abrupt("return",n);case 21:case"end":return e.stop()}},e,this,[[2,14,17,20]])})),function(e){return s.apply(this,arguments)})},{key:"certificatePreFilter",value:function(e){var t,n=this.options.filters;if("x509"!==e.split("-")[0])return!1;if(n.certificateIdMatch&&("string"==typeof n.certificateIdMatch?t=new RegExp(n.certificateIdMatch,"i"):n.certificateIdMatch instanceof RegExp&&(t=n.certificateIdMatch),t&&!t.test(e)))return!1;return!0}},{key:"certificateFilter",value:(a=G(U().mark(function e(t){var n,i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=this.options.filters).expired||!(t.notAfter.getTime()<Date.now())){e.next=3;break}return e.abrupt("return",!1);case 3:if(!n.subjectDNMatch){e.next=6;break}if("string"==typeof n.subjectDNMatch?i=new RegExp(n.subjectDNMatch,"i"):n.subjectDNMatch instanceof RegExp&&(i=n.subjectDNMatch),!i||i.test(t.subjectName)){e.next=6;break}return e.abrupt("return",!1);case 6:if(!n.issuerDNMatch){e.next=9;break}if("string"==typeof n.issuerDNMatch?r=new RegExp(n.issuerDNMatch,"i"):n.issuerDNMatch instanceof RegExp&&(r=n.issuerDNMatch),!r||r.test(t.issuerName)){e.next=9;break}return e.abrupt("return",!1);case 9:if(!(o=n.keyUsage&&n.keyUsage.length)&&!n.onlyQualified&&n.ca){e.next=18;break}if(a=new KJ(t.raw),!n.onlyQualified||a.isQualified(n.qualifiedCertificateStatements)){e.next=14;break}return e.abrupt("return",!1);case 14:if(!o||a.hasKeyUsage(n.keyUsage)){e.next=16;break}return e.abrupt("return",!1);case 16:if(n.ca){e.next=18;break}return e.abrupt("return",!a.isCA());case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"getCertificateByIndex",value:(o=G(U().mark(function t(n,i,r){var o,a;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.certStorage.getItem(n);case 3:return o=t.sent,t.next=6,i.certStorage.exportCert("raw",o);case 6:a=t.sent,t.next=12;break;case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",void console.warn("Can't read certificate: "+n));case 12:return o.raw=a,t.next=15,this.certificateFilter(o);case 15:if(!t.sent){t.next=17;break}return t.abrupt("return",(o.index=n,o.subject=e.getDNValue(o.subjectName),o.issuer=e.getDNValue(o.issuerName),o.privateKeyId=r,o));case 17:case"end":return t.stop()}},t,this,[[0,9]])})),function(e,t,n){return o.apply(this,arguments)})},{key:"getCertificatesByProviderId",value:(r=G(U().mark(function t(n){var i,r,o,a,s,l,u,c,d,h;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.options.filters,t.prev=1,t.next=4,this.getProviderById(n,i.onlyWithPrivateKey);case 4:r=t.sent,t.next=10;break;case 7:return t.prev=7,t.t0=t.catch(1),t.abrupt("return",[]);case 10:return o=[],t.next=13,r.keyStorage.keys();case 13:return a=t.sent,t.next=16,r.certStorage.keys();case 16:s=t.sent,this.debug({type:"provider_certificates",data:{providerId:n,keyIndexes:a,certIndexes:s}}),l=R(s),t.prev=19,l.s();case 21:if((u=l.n()).done){t.next=29;break}if(c=u.value,this.certificatePreFilter(c)){t.next=25;break}return t.abrupt("continue",27);case 25:d=e.getCertificatePrivateKeyByIndex(c,a),i.onlyWithPrivateKey&&!d||o.push(this.getCertificateByIndex(c,r,d));case 27:t.next=21;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(19),l.e(t.t1);case 34:return t.prev=34,l.f(),t.finish(34);case 37:return t.next=39,Promise.all(o);case 39:return h=t.sent,t.abrupt("return",(this.debug({type:"provider_certificates_after_filters",data:{certificates:h.map(function(e){return e?{index:e.index,providerID:e.providerID,issuerName:e.issuerName,subjectName:e.subjectName,serialNumber:e.serialNumber,notAfter:e.notAfter,notBefore:e.notBefore,privateKeyId:e.privateKeyId,raw:IW.Convert.ToBase64(e.raw)}:null})}}),h.filter(function(e){return!!e})));case 41:case"end":return t.stop()}},t,this,[[1,7],[19,31,34,37]])})),function(e){return r.apply(this,arguments)})},{key:"getCertificateBodyById",value:(i=G(U().mark(function e(t,n){var i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.options.filters,e.next=3,this.getProviderById(t,i.onlyWithPrivateKey);case 3:return r=e.sent,e.next=6,r.certStorage.getItem(n);case 6:return o=e.sent,e.next=9,r.certStorage.exportCert("raw",o);case 9:return a=e.sent,e.abrupt("return",IW.Convert.ToBase64(a));case 11:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"defineKeysAlgorithm",value:function(e,t){if(e.startsWith("EC-"))return{hash:t,name:"ECDSA",namedCurve:e.replace("EC-P","P-")};if(e.startsWith("RSA"))return{hash:t,name:"RSASSA-PKCS1-V1_5",publicExponent:new Uint8Array([1,0,1]),modulusLength:Number(e.replace("RSA-",""))};throw new Error("Unsupported signature algorithm name: "+e)}},{key:"createX509",value:(n=G(U().mark(function e(t,n){var i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.debug({type:"create_x509",data:Object.assign({providerId:t},n)}),e.next=3,this.getProviderById(t,!0);case 3:return(i=e.sent).exportKey=i.subtle.exportKey.bind(i.subtle),i.sign=i.subtle.sign.bind(i.subtle),i.digest=i.subtle.digest.bind(i.subtle),r=this.defineKeysAlgorithm(n.signatureAlgorithm,n.hashAlgorithm),e.next=8,TJ.x509(i,r,n.subjectName);case 8:return o=e.sent,e.next=11,i.certStorage.importCert("raw",o.der,r,TJ.keyUsages);case 11:return a=e.sent,e.next=14,i.keyStorage.setItem(o.privateKey);case 14:return e.next=16,i.keyStorage.setItem(o.publicKey);case 16:return e.next=18,i.certStorage.setItem(a);case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"createPKCS10",value:(t=G(U().mark(function e(t,n){var i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.debug({type:"create_pkcs10",data:Object.assign({providerId:t},n)}),e.next=3,this.getProviderById(t,!0);case 3:return(i=e.sent).exportKey=i.subtle.exportKey.bind(i.subtle),i.sign=i.subtle.sign.bind(i.subtle),i.digest=i.subtle.digest.bind(i.subtle),r=this.defineKeysAlgorithm(n.signatureAlgorithm,n.hashAlgorithm),e.next=8,TJ.pkcs10(i,r,n.subjectName);case 8:return o=e.sent,e.next=11,i.certStorage.importCert("raw",o.der,r,TJ.keyUsages);case 11:return a=e.sent,e.next=14,i.keyStorage.setItem(o.privateKey);case 14:return e.next=16,i.keyStorage.setItem(o.publicKey);case 16:return e.next=18,i.certStorage.setItem(a);case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})}],[{key:"getCertificatePrivateKeyByIndex",value:function(e,t){for(var n=e.split("-"),i=0;i<t.length;i+=1){var r=t[i],o=r.split("-");if("private"===o[0]&&o[2]===n[2])return r}}},{key:"getDNValue",value:function(e){var t={};return e.split(/, /g).forEach(function(e){var n=L(e.split("="),2),i=n[0],r=n[1];t[i]=r}),t}}]),e}();WJ=new WeakMap,GJ=new WeakMap,qJ=new WeakMap;var $J=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function e$(e,t){if(1&e){var n=Fs();Is(0,"peculiar-fortify-certificates",1),js("selectionSuccess",function(e){return En(n),qs().certificateChosen(e)})("selectionCancel",function(){return En(n),qs().cancelSign()}),Ts()}2&e&&Os("filters",qs().filters)}var t$,n$,i$,r$=((t$=function(){function e(t,n,i,r,o,a,s,l,u){Z(this,e),this.modalController=t,this.http=n,this.translate=i,this.notificationService=r,this.loadingController=o,this.signaturesService=a,this.actionsService=s,this.functionsService=l,this.authService=u,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.api=null}return Y(e,[{key:"ngOnInit",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.authService.signatureRoles.filter(function(e){return e.id===n.signatureMode})[0],this.functionsService.empty(t.issuer)||(this.filters.issuerDNMatch=new RegExp(t.issuer,"i")),this.functionsService.empty(t.subject)||(this.filters.subjectDNMatch=new RegExp(t.subject,"i")),this.functionsService.empty(t.keyUsage)||this.filters.keyUsage.push(t.keyUsage),e.next=6,this.processInitFortify();case 6:case"end":return e.stop()}},e,this)}))}},{key:"ngOnDestroy",value:function(){return $J(this,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.functionsService.empty(this.api)||(this.api.finish(),this.api=null);case 1:case"end":return e.stop()}},e,this)}))}},{key:"initFortify",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.api=new JJ(null),e.next=3,this.waitFortifyStart();case 3:return e.next=5,this.api.challenge();case 5:if(e.t0=e.sent,!e.t0){e.next=9;break}return e.next=9,this.api.login();case 9:if(e.t1=this.signaturesService.mustRefreshCerts,!e.t1){e.next=13;break}return e.next=13,this.updateProvider(null);case 13:this.api.server.cardReader.on("insert",function(e){return t.updateProvider(e)}).on("remove",function(e){return t.updateProvider(e)});case 14:case"end":return e.stop()}},e,this)}))}},{key:"processInitFortify",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.signaturesService.mustRefreshCerts){e.next=4;break}this.loadingController.create({message:this.translate.instant("lang.waiting"),spinner:"dots"}).then(function(e){return $J(t,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.present(),t.next=3,this.initFortify();case 3:e.dismiss();case 4:case"end":return t.stop()}},t,this)}))}),e.next=6;break;case 4:return e.next=6,this.initFortify();case 6:case"end":return e.stop()}},e,this)}))}},{key:"waitFortifyStart",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!1;case 1:if(t){e.next=9;break}return e.next=4,this.fortifyStart();case 4:return t=e.sent,e.next=7,new Promise(function(e){return setTimeout(e,1e3)});case 7:e.next=1;break;case 9:case"end":return e.stop()}},e,this)}))}},{key:"fortifyStart",value:function(){var e=this;return new Promise(function(t){return $J(e,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.api.start();case 3:t(!0),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),t(!1);case 9:case"end":return e.stop()}},e,this,[[0,6]])}))})}},{key:"certificateChosen",value:function(e){return $J(this,void 0,void 0,U().mark(function t(){var n=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return $J(n,void 0,void 0,U().mark(function n(){var i,r,o=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.present(),n.prev=1,this.checkWebsocketSession(),n.next=5,this.api.server.getCrypto(e.detail.providerId);case 5:return this.provider=n.sent,this.checkWebsocketSession(),n.next=9,this.provider.certStorage.getItem(e.detail.certificateId);case 9:return this.cert=n.sent,this.checkWebsocketSession(),n.next=13,this.provider.certStorage.exportCert("pem",this.cert);case 13:return this.certPem=n.sent,this.checkWebsocketSession(),n.next=17,this.provider.keyStorage.getItem(e.detail.privateKeyId);case 17:this.privateKey=n.sent,n.next=23;break;case 20:return n.prev=20,n.t0=n.catch(1),n.abrupt("return",(this.notificationService.error(n.t0),t.dismiss(),void this.modalController.dismiss(!1)));case 23:this.certificate={certificate:this.certPem},i=!1,r=0;case 26:if(!(r<this.idsToProcess.length)){n.next=36;break}return n.next=29,this.actionsService.getElementsFromDoc();case 29:return this.signatures=n.sent,n.next=32,this.sendAndSign(this.idsToProcess[r]);case 32:i=n.sent;case 33:r++,n.next=26;break;case 36:t.dismiss(),setTimeout(function(){o.signaturesService.mustRefreshCerts=!0},500),this.modalController.dismiss(i);case 37:case"end":return n.stop()}},n,this,[[1,20]])}))});case 1:case"end":return t.stop()}},t,this)}))}},{key:"checkWebsocketSession",value:function(){return $J(this,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.api.server.state===WebSocket.OPEN){e.next=7;break}return e.next=3,this.api.server.connect();case 3:return e.next=5,new Promise(function(e){return setTimeout(e,150)});case 5:e.next=0;break;case 7:case"end":return e.stop()}},e,this)}))}},{key:"updateProvider",value:function(e){return $J(this,void 0,void 0,U().mark(function t(){var n,i,r,o,a;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.api.server.info();case 2:n=t.sent,i=R(n.providers),t.prev=4,i.s();case 6:if((r=i.n()).done){t.next=15;break}return o=r.value,t.next=10,this.api.server.getCrypto(o.id);case 10:return a=t.sent,t.next=13,a.reset();case 13:t.next=6;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(4),i.e(t.t0);case 20:return t.prev=20,i.f(),t.finish(20);case 23:!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("insert"))?(this.notificationService.message("lang.inputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("remove"))?(this.notificationService.message("lang.outputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):this.signaturesService.mustRefreshCerts&&null===e&&(this.modalController.dismiss("refresh_certs"),this.signaturesService.mustRefreshCerts=!1);case 24:case"end":return t.stop()}},t,this,[[4,17,20,23]])}))}},{key:"sendAndSign",value:function(e){return $J(this,void 0,void 0,U().mark(function t(){var n,i,r;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,i={};case 1:if(n){t.next=21;break}r=!1;case 3:if(!1!==r){t.next=19;break}return t.next=6,this.fusionStampAndGenerateSignature(e,i.tmpUniqueId);case 6:if(null!==(i=t.sent)){t.next=9;break}return t.abrupt("return",!1);case 9:if(!1!==i){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,this.signDocument(e,i.hashDocument,i.signatureContentLength,i.signatureFieldName,i.tmpUniqueId);case 13:if(!0===(r=t.sent)){t.next=16;break}return t.abrupt("return",!1);case 16:this.signatures.shift(),n=0===this.signatures.length;case 17:t.next=3;break;case 19:t.next=1;break;case 21:return t.abrupt("return",n);case 22:case"end":return t.stop()}},t,this)}))}},{key:"fusionStampAndGenerateSignature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return $J(this,void 0,void 0,U().mark(function n(){var i;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i={},n.next=3,this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}},n,this)}))}},{key:"signDocument",value:function(e,t,n,i,r){var o=this;return new Promise(function(a){return $J(o,void 0,void 0,U().mark(function o(){var s,l,u,c,d,h,f=this;return U().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s={name:this.privateKey.algorithm.name,hash:"SHA-256"},l=this.fromHex(t),o.prev=1,this.checkWebsocketSession(),o.next=5,this.provider.subtle.sign(s,this.privateKey,l);case 5:u=o.sent,o.next=11;break;case 8:return o.prev=8,o.t0=o.catch(1),o.abrupt("return",(this.notificationService.error(o.t0),a(!1),nb(!1)));case 11:c={note:this.note},d={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(u),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:r},h=Object.assign(Object.assign({},c),d),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,h).pipe(Mw(function(){a(!0)}),yw(function(e){return void 0!==e.error.newSignatureLength?(f.signatureLength=e.error.newSignatureLength,a(!1)):(f.notificationService.handleErrors(e),a("error")),nb(!1)})).subscribe();case 13:case"end":return o.stop()}},o,this,[[1,8]])}))})}},{key:"cancelSign",value:function(){this.signaturesService.mustRefreshCerts=!0,this.modalController.dismiss(!1)}},{key:"toHex",value:function(e){for(var t=new Uint8Array(e),n=[],i=t.length,r=0;r<i;r++){var o=t[r].toString(16);n.push(1===o.length?"0"+o:o)}return n.join("")}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}]),e}()).\u0275fac=function(e){return new(e||t$)(Ps(LE),Ps(Tb),Ps(zP),Ps(WP),Ps(BE),Ps($P),Ps(pW),Ps(hW),Ps(tO))},t$.\u0275cmp=Ft({type:t$,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["style","height: 100%;width: 100%;","language","fr","hide-footer","",3,"filters","selectionSuccess","selectionCancel",4,"ngIf"],["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","selectionSuccess","selectionCancel"]],template:function(e,t){1&e&&(Is(0,"ion-content"),Ss(1,e$,1,1,"peculiar-fortify-certificates",0),Ts()),2&e&&(Yo(1),Os("ngIf",!t.signaturesService.mustRefreshCerts))},directives:[pS,jh],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@keyframes bounce{0%,20%,53%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{animation-duration:2s;animation-name:bounce;transform-origin:center bottom;animation-iteration-count:infinite}"]}),t$),o$=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},a$=((i$=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.http=t,this.modalController=n,this.actionsService=i,this.loadingController=r,this.translate=o,this.authService=a,this.notificationService=s}return Y(e,[{key:"checkAuthenticationAndLaunchAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return o$(this,void 0,void 0,U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!(["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1)){i.next=13;break}if(0===this.authService.coreUrl.indexOf("https://")){i.next=7;break}return i.next=4,this.notificationService.error("lang.securedUrlNeeded");case 4:i.t1=null,i.next=10;break;case 7:return i.next=9,this.openRgsAuth(t,e.signatureMode,n);case 9:i.t1=i.sent;case 10:i.t0=i.t1,i.next=16;break;case 13:return i.next=15,this.launchDefaultMode(t,n);case 15:i.t0=i.sent;case 16:return i.abrupt("return",i.t0);case 17:case"end":return i.stop()}},i,this)}))}},{key:"launchDefaultMode",value:function(e,t){return o$(this,void 0,void 0,U().mark(function n(){var i=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(function(n){return o$(i,void 0,void 0,U().mark(function i(){var r,o,a;return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});case 2:(r=i.sent).present(),o=!0,a=0;case 6:if(!(a<t.length)){i.next=13;break}return i.next=9,this.actionsService.sendDocument(t[a],e);case 9:o=i.sent;case 10:a++,i.next=6;break;case 13:r.dismiss(),n(o);case 14:case"end":return i.stop()}},i,this)}))}));case 1:case"end":return n.stop()}},n)}))}},{key:"openRgsAuth",value:function(e,t,n){return o$(this,void 0,void 0,U().mark(function i(){var r=this;return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(i){return o$(r,void 0,void 0,U().mark(function r(){var o,a,s;return U().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.modalController.create({component:r$,componentProps:{note:e,signatureMode:t,idsToProcess:n}});case 2:return o=r.sent,r.next=5,o.present();case 5:return r.next=7,o.onWillDismiss();case 7:a=r.sent,s=a.data,i(s);case 10:case"end":return r.stop()}},r,this)}))}));case 1:case"end":return i.stop()}},i)}))}}]),e}()).\u0275fac=function(e){return new(e||i$)(rr(Tb),rr(LE),rr(pW),rr(BE),rr(zP),rr(tO),rr(WP))},i$.\u0275prov=rt({token:i$,factory:i$.\u0275fac,providedIn:"root"}),i$),s$=((n$=function(){function e(t,n,i,r){Z(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return Y(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||n$)(Ps($P),Ps(eW),Ps(tO),Ps(fF))},n$.\u0275cmp=Ft({type:n$,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"h1"),Ms(2,"i",1),Ts(),Is(3,"p"),bl(4),$u(5,"translate"),Ts(),Is(6,"p",2),bl(7),Ts(),Is(8,"p",3),bl(9),$u(10,"translate"),$u(11,"date"),$u(12,"translate"),$u(13,"date"),Ts(),Ts()),2&e&&(Yo(4),wl(ec(5,7,"lang.documentValidateAs")),Yo(3),xl("",t.authService.user.firstname," ",t.authService.user.lastname,""),Yo(2),Al("",ec(10,9,"lang.onRange")," ",tc(11,11,t.date,"dd/MM/yyyy")," ",ec(12,14,"lang.atRange")," ",tc(13,16,t.date,"HH:mm"),""))},pipes:[jP,gf],styles:[""]}),n$);function l$(e,t){if(1&e&&(Bs(0),Is(1,"div",1),Ms(2,"img",2),Ts(),Rs()),2&e){var n=t.$implicit,i=qs();Yo(1),ol("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),Yo(1),ol("width",100,"%"),Os("src",i.sanitization.bypassSecurityTrustUrl(n.fullPath),Kr)}}var u$,c$=((u$=function(){function e(t,n,i){Z(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||u$)(Ps(zP),Ps(pp),Ps($P))},u$.\u0275cmp=Ft({type:u$,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&Ss(0,l$,3,7,"ng-container",0),2&e&&Os("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[Vh],encapsulation:2}),u$),d$=["menuTrigger"],h$=["test"],f$=function(e,t){return{x:e,y:t}};function p$(e,t){if(1&e){var n=Fs();Is(0,"div",1,2),js("rzResizing",function(e){En(n);var i=t.index;return qs().onResizing(e,i)})("rzStart",function(){return En(n),qs().signaturesService.resizing=!0})("movingOffset",function(){return En(n),qs().signaturesService.dragging=!0})("endOffset",function(e){En(n);var i=t.index;return qs().moveSign(e,i)})("rzStop",function(e){En(n);var i=t.index,r=qs();return r.onResizeStop(e,i),r.signaturesService.resizing=!1}),Is(2,"ion-item",3),Is(3,"ion-select",4),js("click",function(e){return e.stopPropagation()})("ionChange",function(e){En(n);var i=t.index;return qs().select(e,i)}),Is(4,"ion-select-option",5),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-select-option",6),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Ms(10,"img",7),Ts()}if(2&e){var i=t.$implicit,r=qs();ol("width",i.width,"%")("height",r.fix),Os("position",Ku(20,f$,i.positionX*r.signaturesService.workingAreaWidth/100,i.positionY*r.signaturesService.workingAreaHeight/100))("ngDraggable",!r.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",r.bounds)("inBounds",!0),Yo(5),kl("",ec(6,16,"lang.delete")," "),Yo(2),Os("disabled",i.inAllPage),Yo(1),kl(" ",ec(9,18,"lang.replicate"),""),Yo(2),ol("width",100,"%"),Os("src",r.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Kr)}}var g$,v$=((g$=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i,this.notificationService=r,this.localStorage=o,this.dialog=a,this.popoverController=s,this.modalController=l,this.fix="auto",this.today=new Date}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e,t){this[e.detail.value](t)}},{key:"moveSign",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizing",value:function(e,t){this.test.nativeElement.style.height="auto"}},{key:"onResizeStop",value:function(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"cloneSign",value:function(e){var t=this;this.dialog.open(Zj,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(function(n){if("yes"===n){t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].inAllPage=!0,t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(var i=1;i<=t.signaturesService.totalPage;i++)t.signaturesService.signaturesContent[i]||(t.signaturesService.signaturesContent[i]=[]),i!==t.signaturesService.currentPage&&t.signaturesService.signaturesContent[i].push(JSON.parse(JSON.stringify(t.signaturesService.signaturesContent[t.signaturesService.currentPage][e])));t.localStorage.save(t.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:t.signaturesService.signaturesContent,note:t.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}},{key:"deleteSignature",value:function(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){var t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(var n=1;n<=this.signaturesService.totalPage;n++){this.signaturesService.signaturesContent[n]||(this.signaturesService.signaturesContent[n]=[]);for(var i=0;i<=this.signaturesService.signaturesContent[n].length;i++)this.signaturesService.signaturesContent[n][i]&&t===this.signaturesService.signaturesContent[n][i].token&&this.signaturesService.signaturesContent[n].splice(i,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}]),e}()).\u0275fac=function(e){return new(e||g$)(Ps(zP),Ps(pp),Ps($P),Ps(WP),Ps(eO),Ps(KF),Ps(FE),Ps(LE))},g$.\u0275cmp=Ft({type:g$,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){var n;1&e&&(bc(d$,1),bc(h$,1)),2&e&&(yc(n=kc())&&(t.menuSign=n.first),yc(n=kc())&&(t.test=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&Ss(0,p$,11,23,"div",0),2&e&&Os("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[Vh,tT,JI,ES,YS,CA,ZS],pipes:[jP],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),g$);function m$(e,t){if(1&e&&(Is(0,"ion-select-option",19),bl(1),$u(2,"date"),$u(3,"translate"),Ts()),2&e){var n=t.$implicit,i=qs();Os("value",n),Yo(1),kl(" ",ic(2,2,i.today,n,void 0,ec(3,7,"lang.langISO"))," ")}}function y$(e,t){if(1&e&&(Is(0,"ion-select-option",19),bl(1),Ts()),2&e){var n=t.$implicit;sl(qs().getFontLabel(n)),Os("value",n),Yo(1),kl(" ",n," ")}}var b$,w$=function(){return{cssClass:"selectFormat"}},k$=((b$=function(){function e(t){Z(this,e),this.modalController=t,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}return Y(e,[{key:"ngOnInit",value:function(){this.date=JSON.parse(JSON.stringify(this.currentDate))}},{key:"dismissModal",value:function(){this.modalController.dismiss()}},{key:"getFontLabel",value:function(e){return e.replace(" ","_")}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.date)}},{key:"select",value:function(e){this.date.size=this.size[e]}}]),e}()).\u0275fac=function(e){return new(e||b$)(Ps(LE))},b$.\u0275cmp=Ft({type:b$,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.dismissModal()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-content"),Is(9,"ion-toolbar"),Is(10,"ion-title",5),bl(11),$u(12,"date"),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-item"),Is(15,"ion-label",6),bl(16),$u(17,"translate"),Ts(),Is(18,"ion-select",7),js("ngModelChange",function(e){return t.date.format=e}),Ss(19,m$,4,9,"ion-select-option",8),Ts(),Ts(),Is(20,"ion-item",9),js("click",function(){return En(n),Es(22).click()}),Is(21,"input",10,11),js("ngModelChange",function(e){return t.date.color=e}),Ts(),Is(23,"ion-label",6),bl(24),$u(25,"translate"),Ts(),Ms(26,"ion-icon",12),Ts(),Is(27,"ion-item"),Is(28,"ion-label",6),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-select",13),js("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),$u(32,"translate"),Ss(33,y$,2,4,"ion-select-option",14),Ts(),Ts(),Ts(),Is(34,"ion-footer",15),Is(35,"ion-toolbar"),Is(36,"ion-buttons",16),Is(37,"ion-button",17),js("click",function(){return t.onSubmit()}),Is(38,"ion-label"),bl(39),$u(40,"translate"),Ts(),Ts(),Is(41,"ion-button",18),js("click",function(){return t.dismissModal()}),Is(42,"ion-label"),bl(43),$u(44,"translate"),Ts(),Ts(),Ts(),Ts(),Ts()}2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,21,"lang.options")),Yo(7),sl(t.getFontLabel(t.date.font)),ol("color",t.date.color),Yo(1),wl(ic(12,23,t.today,t.date.format,void 0,ec(13,28,"lang.langISO"))),Yo(5),wl(ec(17,30,"lang.format")),Yo(2),Os("ngModel",t.date.format),Yo(1),Os("ngForOf",t.dateformats),Yo(2),Os("ngModel",t.date.color),Yo(3),wl(ec(25,32,"lang.color")),Yo(2),ol("color",t.date.color),Yo(3),wl(ec(30,34,"lang.font")),Yo(2),Os("ngModel",t.date.font)("interfaceOptions",Yu(42,w$))("cancelText",ec(32,36,"lang.cancel")),Yo(2),Os("ngForOf",t.datefonts),Yo(6),wl(ec(40,38,"lang.save")),Yo(4),wl(ec(44,40,"lang.cancel")))},directives:[kS,tE,$S,aS,oS,xS,pS,ES,IS,YS,CA,Lm,my,Vh,rm,bS,ZS],pipes:[jP,gf],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),b$),x$=["menuTrigger"],_$=["test2"],A$=function(e,t){return{x:e,y:t}};function C$(e,t){if(1&e){var n=Fs();Is(0,"div",1,2),js("rzResizing",function(e){En(n);var i=t.index;return qs().onResizingDate(e,i)})("rzStart",function(){return En(n),qs().signaturesService.resizing=!0})("movingOffset",function(){return En(n),qs().signaturesService.dragging=!0})("endOffset",function(e){En(n);var i=t.index;return qs().moveDate(e,i)})("rzStop",function(e){En(n);var i=t.index,r=qs();return r.onResizeDateStop(e,i),r.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),Is(2,"ion-buttons",3),Is(3,"ion-button",4),Ms(4,"ion-icon",5),Ts(),Ts(),Is(5,"mat-menu",null,6),Is(7,"button",7),js("click",function(){En(n);var e=t.index;return qs().openDateSettings(e)}),bl(8),$u(9,"translate"),Ts(),Is(10,"button",7),js("click",function(){En(n);var e=t.index;return qs().deleteDate(e)}),bl(11),$u(12,"translate"),Ts(),Ts(),ei(),Is(13,"svg",8),Is(14,"text",9),bl(15),$u(16,"date"),$u(17,"translate"),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=Es(6),a=qs();ol("width",i.width,"%")("height",i.height,"%")("height",a.fix),Os("id","dateDiv_"+r)("position",Ku(34,A$,i.positionX*a.signaturesService.workingAreaWidth/100,i.positionY*a.signaturesService.workingAreaHeight/100))("ngDraggable",!a.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",a.bounds)("inBounds",!0),Yo(3),Os("matMenuTriggerFor",o),Yo(5),wl(ec(9,23,"lang.options")),Yo(3),wl(ec(12,25,"lang.delete")),Yo(2),Os("id","testSVG_"+r),Yo(1),ol("font-family",i.font)("fill",i.color),_s("font-size",i.size),Yo(1),wl(ic(16,27,a.today,i.format,void 0,ec(17,32,"lang.langISO")))}}var S$,E$=((S$=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.translate=t,this.signaturesService=n,this.notificationService=i,this.localStorage=r,this.dialog=o,this.popoverController=a,this.modalController=s,this.fix="auto",this.today=new Date}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"moveDate",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizingDate",value:function(e,t){this.test2.nativeElement.style.height="auto"}},{key:"onResizeDateStop",value:function(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"deleteDate",value:function(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"openDateSettings",value:function(e){return t=this,i=U().mark(function t(){var n,i,r;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.modalController.create({component:k$,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});case 2:return n=t.sent,t.next=5,n.present();case 5:return t.next=7,n.onWillDismiss();case 7:i=t.sent,void 0!==(r=i.data)&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=r);case 10:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||S$)(Ps(zP),Ps($P),Ps(WP),Ps(eO),Ps(KF),Ps(FE),Ps(LE))},S$.\u0275cmp=Ft({type:S$,selectors:[["app-document-date-list"]],viewQuery:function(e,t){var n;1&e&&(bc(x$,1),bc(_$,1)),2&e&&(yc(n=kc())&&(t.menuSign=n.first),yc(n=kc())&&(t.test2=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&Ss(0,C$,18,37,"div",0),2&e&&Os("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[Vh,tT,JI,aS,oS,Oz,xS,Cz,kz],pipes:[jP,gf],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),S$),P$=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function O$(e,t){if(1&e){var n=Fs();Is(0,"ion-item",6),js("click",function(){En(n);var e=t.$implicit;return qs().loadVisaWorkflow(e)}),Is(1,"ion-label"),bl(2),Ts(),Is(3,"ion-buttons",7),Is(4,"ion-button",8),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.removeModel(i)}),Ms(5,"ion-icon",9),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),wl(i.title)}}var D$,I$=((D$=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.translate=n,this.popoverController=i,this.alertController=r,this.notificationService=o,this.authService=a,this.currentWorkflow=[],this.visaWorkflowModels=[]}return Y(e,[{key:"ngOnInit",value:function(){this.getVisaUserModels()}},{key:"createModel",value:function(){return P$(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){return""!==e.title?(n.saveModel(e.title),!0):(n.notificationService.error(n.translate.instant("lang.label")+" "+n.translate.instant("lang.mandatory")),!1)}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveModel",value:function(e){var t=this,n={title:e,items:this.currentWorkflow.map(function(e){return{userId:e.userId,mode:t.authService.getWorkflowMode(e.role),signatureMode:t.authService.getSignatureMode(e.role)}})};this.http.post("../rest/workflowTemplates",n).pipe(Mw(function(n){t.notificationService.success("lang.modelCreated"),t.visaWorkflowModels.push({id:n.id,title:e})}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"removeModel",value:function(e){return P$(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/workflowTemplates/"+e.id).pipe(Mw(function(){i.visaWorkflowModels=i.visaWorkflowModels.filter(function(t){return t.id!==e.id}),i.notificationService.success("Mod\xe8le ".concat(e.title," supprim\xe9"))}),yw(function(e){return i.notificationService.handleErrors(e),nb(!1)})).subscribe()}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"getVisaUserModels",value:function(){var e=this;this.http.get("../rest/workflowTemplates").pipe(Mw(function(t){e.visaWorkflowModels=t.workflowTemplates}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"loadVisaWorkflow",value:function(e){var t=this;this.http.get("../rest/workflowTemplates/"+e.id).pipe(Mw(function(e){var n=e.workflowTemplate.items.map(function(e){return{userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}});t.popoverController.dismiss(n)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||D$)(Ps(Tb),Ps(zP),Ps(FE),Ps(ME),Ps(WP),Ps(tO))},D$.\u0275cmp=Ft({type:D$,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Is(0,"ion-list",0),Is(1,"ion-list-header"),Is(2,"ion-label",1),bl(3),$u(4,"translate"),Ts(),Ts(),Ss(5,O$,6,1,"ion-item",2),Is(6,"ion-item",3),js("click",function(){return t.createModel()}),Ms(7,"ion-icon",4),Is(8,"ion-label",5),bl(9),$u(10,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,4,"lang.circuitModels")),Yo(2),Os("ngForOf",t.visaWorkflowModels),Yo(1),Os("disabled",0===t.currentWorkflow.length),Yo(3),wl(ec(10,6,"lang.newTemplate")))},directives:[TS,MS,IS,Vh,ES,xS,aS,oS],pipes:[jP],styles:[""]}),D$);function T$(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-checkbox",19),js("ionChange",function(e){En(n),qs(2);var t=Es(3);return qs().addUser(e.detail.value,t)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Is(4,"ion-note",13),bl(5),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("value",i),Yo(2),xl("",i.firstname," ",i.lastname,""),Yo(2),wl(i.email)}}function M$(e,t){if(1&e&&(Is(0,"ion-list",17),Ss(1,T$,6,4,"ion-item",18),Ts()),2&e){var n=qs(2);Yo(1),Os("ngForOf",n.visaUsersList)}}function B$(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-item",10),Is(2,"ion-searchbar",11,12),js("ngModelChange",function(e){return En(n),qs().visaUsersSearchVal=e})("ionChange",function(e){return En(n),qs().getVisaUsers(e)})("ionFocus",function(){return En(n),qs().visaUsersSearchVal=""}),$u(4,"translate"),Ts(),Is(5,"ion-buttons",13),Is(6,"ion-button",14),js("click",function(e){return En(n),qs().openVisaWorkflowModels(e)}),$u(7,"translate"),Ms(8,"ion-icon",15),Ts(),Ts(),Ts(),Ss(9,M$,2,1,"ion-list",16),Rs()}if(2&e){var i=qs();Yo(2),Os("ngModel",i.visaUsersSearchVal)("placeholder",ec(4,4,"lang.searchUser")),Yo(4),Os("title",ec(7,6,"lang.circuitModels")),Yo(3),Os("ngIf",i.visaUsersList.length>0)}}function R$(e,t){1&e&&(Is(0,"ion-list"),Is(1,"ion-item",10),Is(2,"ion-label",20),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.noUserInWorkflow")))}function L$(e,t){1&e&&(Is(0,"p",31),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.substituteMsg"),""))}function F$(e,t){if(1&e&&(Is(0,"h2",32),bl(1),Ts()),2&e){var n=qs().$implicit;Os("title",n.userDisplay),Yo(1),wl(n.userDisplay)}}function N$(e,t){1&e&&(Is(0,"h2",33),bl(1),$u(2,"translate"),Ts()),2&e&&(Os("title",qs().$implicit.userDisplay),Yo(1),kl(" ",ec(2,2,"lang.userDeleted"),""))}function V$(e,t){if(1&e&&(Is(0,"ion-select-option",37),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit,i=qs(2),r=i.index,o=i.$implicit,a=qs();Os("value",n)("disabled",!a.isValidRole(r,n,o.role)),Yo(1),kl(" ",ec(2,3,"lang."+n+"User")," ")}}function z$(e,t){if(1&e){var n=Fs();Is(0,"p",34),Is(1,"ion-select",35),js("ngModelChange",function(e){return En(n),qs().$implicit.role=e}),$u(2,"translate"),Ss(3,V$,3,5,"ion-select-option",36),Ts(),Ts()}if(2&e){var i,r=qs().$implicit,o=qs();Yo(1),ol("color",null==(i=o.getRole(r.role))?null:i.color),Os("ngModel",r.role)("title",ec(2,7,"lang."+r.role+"User"))("interfaceOptions",o.customPopoverOptions)("disabled",!o.editMode),Yo(2),Os("ngForOf",r.modes)}}function j$(e,t){if(1&e&&(Is(0,"ion-note",41),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2).$implicit;Yo(1),xl(" ",ec(2,2,"lang."+n.mode+"ProcessInfo")," ",n.processDate," ")}}function H$(e,t){if(1&e&&(Is(0,"ion-note",42),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2).$implicit;Yo(1),xl(" ",ec(2,2,"lang.refProcessInfo")," ",n.processDate," ")}}function U$(e,t){if(1&e&&(Is(0,"ion-note",43),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2).$implicit;Yo(1),xl(" ",ec(2,2,"lang.stopProcessInfo")," ",n.processDate," ")}}function W$(e,t){if(1&e&&(Is(0,"p",32),Ss(1,j$,3,4,"ion-note",38),Ss(2,H$,3,4,"ion-note",39),Ss(3,U$,3,4,"ion-note",40),Ts()),2&e){var n=qs().$implicit;Os("title",n.processDate),Yo(1),Os("ngIf","VAL"===n.status),Yo(1),Os("ngIf","REF"===n.status),Yo(1),Os("ngIf","STOP"===n.status)}}function G$(e,t){1&e&&Ms(0,"ion-icon",44)}function q$(e,t){if(1&e){var n=Fs();Is(0,"ion-button",45),js("click",function(e){En(n);var t=qs().index,i=qs();return e.stopPropagation(),i.removeUser(t)}),Ms(1,"ion-icon",46),Ts()}}function Y$(e,t){if(1&e&&(Is(0,"ion-item",21),Is(1,"ion-reorder",2),Ms(2,"ion-icon",22),$u(3,"translate"),Ts(),Is(4,"ion-avatar",23),js("click",function(e){return e.stopPropagation()}),Ms(5,"img",24),Ts(),Is(6,"ion-label"),Ss(7,L$,3,3,"p",25),Ss(8,F$,2,2,"h2",26),Ss(9,N$,3,4,"h2",27),Ss(10,z$,4,9,"p",28),Ss(11,W$,4,4,"p",26),Ts(),Ss(12,G$,1,0,"ion-icon",29),Is(13,"ion-buttons",13),Ss(14,q$,2,0,"ion-button",30),Ts(),Ts()),2&e){var n=t.$implicit,i=qs();al("current",n.current),Yo(2),Os("title",ec(3,11,"lang.reorder")),Yo(3),Os("src",n.userPicture,Kr),Yo(2),Os("ngIf",i.userDelegated&&n.current),Yo(1),Os("ngIf",""!==n.userDisplay),Yo(1),Os("ngIf",""===n.userDisplay),Yo(1),Os("ngIf",null===n.processDate),Yo(1),Os("ngIf",null!==n.processDate),Yo(1),Os("ngIf",!i.editMode&&n.current),Yo(2),Os("ngIf",i.editMode)}}var Z$,K$=((Z$=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.signaturesService=n,this.authService=i,this.notificationService=r,this.popoverController=o,this.editMode=!1,this.visaWorkflow=[],this.userDelegated=!1,this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[],this.tmpArray=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.visaWorkflow.forEach(function(t,n){e.getAvatarUser(n)})}},{key:"doReorder",value:function(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}},{key:"canMoveUser",value:function(e){var t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(function(e){return void 0!==e}),this.isValidWorkflow(t)}},{key:"isValidWorkflow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visaWorkflow,t=!0;return e.forEach(function(n,i){-1===["visa","stamp"].indexOf(n.role)&&e.filter(function(e,t){return t>i&&"stamp"===e.role}).length>0&&(t=!1)}),t}},{key:"array_move",value:function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"getVisaUsers",value:function(e){var t=this;this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Mw(function(e){t.visaUsersList=e}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"addUser",value:function(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:"".concat(e.firstname," ").concat(e.lastname),role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}},{key:"removeUser",value:function(e){this.visaWorkflow.splice(e,1)}},{key:"getAvatarUser",value:function(e){var t=this;void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(Mw(function(n){t.visaWorkflow[e].userPicture=n.picture}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"resetVisaUsersList",value:function(){this.visaUsersList=[]}},{key:"openVisaWorkflowModels",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.popoverController.create({component:I$,componentProps:{currentWorkflow:this.visaWorkflow},event:e});case 2:return n=t.sent,t.next=5,n.present();case 5:n.onDidDismiss().then(function(e){"backdrop"!==e.role&&(i.visaWorkflow=i.visaWorkflow.concat(e.data),i.visaWorkflow.forEach(function(e,t){i.getAvatarUser(t)}))});case 6:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"getCurrentWorkflow",value:function(){return this.visaWorkflow}},{key:"getRole",value:function(e){return this.authService.signatureRoles.filter(function(t){return t.id===e})[0]}},{key:"loadWorkflow",value:function(e){this.visaWorkflow=e;for(var t=this.visaWorkflow.length,n=0;n<t;n++)this.getAvatarUser(n)}},{key:"isValidRole",value:function(e,t,n){return!(this.visaWorkflow.filter(function(t,n){return n>e&&["stamp"].indexOf(t.role)>-1}).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter(function(t,n){return n<e&&-1===["visa","stamp"].indexOf(t.role)}).length>0&&"stamp"===t)}},{key:"setPositionsWorkfow",value:function(e,t,n){var i=this;this.clearPositionsFromResource(e[t]),n.length>0&&(Object.keys(n).forEach(function(r){var o=Object.assign(Object.assign({},n[r]),{mainDocument:e[t].mainDocument});i.visaWorkflow[n[r].sequence].signaturePositions.push(o);var a=i.tmpArray.find(function(i){return i.key===n[r].sequence&&i.page===n[r].page&&i.docIndex===e.indexOf(e[t])});void 0!==a?i.tmpArray[i.tmpArray.indexOf(a)].signaturePositions=n[r].position:i.tmpArray.push({key:n[r].sequence,page:n[r].page,docIndex:e.indexOf(e[t]),signaturePositions:n[r].position})}),this.tmpArray.forEach(function(e){var t=i.visaWorkflow[e.key].signaturePositions.find(function(t){return t.page===e.page&&t.sequence===e.key&&t.docIndex===e.docIndex});void 0!==t?i.updatePositionsWorkfow(t,e):i.visaWorkflow[e.key].signaturePositions.push({docIndex:e.docIndex,page:e.page,mainDocument:!0,sequence:e.key,position:e.signaturePositions})}))}},{key:"updatePositionsWorkfow",value:function(e,t){this.visaWorkflow.forEach(function(n){n.signaturePositions[n.signaturePositions.indexOf(e)].position=t.signaturePositions})}},{key:"clearPositionsFromResource",value:function(e){this.visaWorkflow.forEach(function(t){t.signaturePositions=t.signaturePositions.filter(function(t){return t.mainDocument!==e.mainDocument})})}}]),e}()).\u0275fac=function(e){return new(e||Z$)(Ps(Tb),Ps($P),Ps(tO),Ps(WP),Ps(FE))},Z$.\u0275cmp=Ft({type:Z$,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){var n;1&e&&bc(HS,1),2&e&&yc(n=kc())&&(t.reorderGroup=n.first)},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow",userDelegated:"userDelegated"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"ion-content",6),js("click",function(){return t.resetVisaUsersList()}),Ss(9,B$,10,8,"ng-container",7),Ss(10,R$,5,3,"ion-list",7),Is(11,"ion-reorder-group",8),js("ionItemReorder",function(e){return t.doReorder(e)}),Ss(12,Y$,15,13,"ion-item",9),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,6,"lang.circuit")),Yo(3),Os("ngIf",t.editMode),Yo(1),Os("ngIf",0===t.visaWorkflow.length),Yo(1),Os("disabled",!t.editMode),Yo(1),Os("ngForOf",t.visaWorkflow))},directives:[kS,tE,aS,oS,xS,$S,pS,jh,HS,Vh,ES,WS,SA,Lm,my,TS,dS,xA,IS,FS,jS,nS,YS,CA,ZS],pipes:[jP],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),Z$);function Q$(e,t){if(1&e){var n=Fs();Is(0,"ion-item",9),js("click",function(){En(n);var e=t.$implicit;return qs().goTo(e.id)}),Is(1,"div"),Is(2,"ion-label",10),bl(3),Ts(),Is(4,"ion-label",11),bl(5),$u(6,"shorten"),Ts(),Ts(),Ms(7,"ion-icon",12),Ts()}if(2&e){var i=t.$implicit;Yo(3),wl(i.reference),Yo(2),wl(nc(6,2,i.title,50,"..."))}}var X$,J$=((X$=function(){function e(t){Z(this,e),this.router=t}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}}]),e}()).\u0275fac=function(e){return new(e||X$)(Ps(h_))},X$.\u0275cmp=Ft({type:X$,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),Is(6,"b",6),bl(7),Ts(),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Is(10,"ion-content"),Is(11,"div",7),Is(12,"ion-list"),Ss(13,Q$,8,6,"ion-item",8),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(7),wl(null==t.associatedDocuments?null:t.associatedDocuments.length),Yo(1),kl("\xa0",ec(9,4,"lang.associatedDocuments"),""),Yo(5),Os("ngForOf",t.associatedDocuments))},directives:[kS,tE,aS,oS,xS,$S,pS,TS,Vh,ES,IS],pipes:[jP,bT],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),X$);function $$(e,t){1&e&&(Is(0,"ion-card"),Is(1,"ion-item",13),Ms(2,"ion-icon",14),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(4),wl(ec(5,1,"lang.docIsInMailGroup")))}function e0(e,t){if(1&e&&(Is(0,"ion-item",8),Is(1,"ion-label",9),bl(2),$u(3,"translate"),Ts(),Ms(4,"ion-input",10),Ts()),2&e){var n=qs();Os("title",n.mainDocument.description),Yo(2),wl(ec(3,3,"lang.description")),Yo(2),Os("value",n.mainDocument.description)}}function t0(e,t){if(1&e&&(Is(0,"ion-item",8),Is(1,"ion-label",9),bl(2),$u(3,"translate"),Ts(),Ms(4,"ion-input",10),Ts()),2&e){var n=qs();Os("title",n.mainDocument.deadline),Yo(2),wl(ec(3,3,"lang.processingDeadline")),Yo(2),Os("value",n.mainDocument.deadline)}}function n0(e,t){if(1&e&&(Is(0,"ion-item"),Is(1,"ion-label",9),bl(2),$u(3,"translate"),Ts(),Ms(4,"ion-input",10),Ts()),2&e){var n=t.$implicit;Yo(2),wl(ec(3,2,n.label)),Yo(2),Os("value",n.value)}}var i0,r0=((i0=function(){function e(t,n){Z(this,e),this.signaturesService=t,this.functionsService=n,this.loading=!1}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||i0)(Ps($P),Ps(hW))},i0.\u0275cmp=Ft({type:i0,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"ion-content"),Ss(9,$$,6,3,"ion-card",6),Is(10,"ion-list",7),Is(11,"ion-item",8),Is(12,"ion-label",9),bl(13),$u(14,"translate"),Ts(),Ms(15,"ion-input",10),Ts(),Ss(16,e0,5,5,"ion-item",11),Ss(17,t0,5,5,"ion-item",11),Is(18,"ion-item",8),Is(19,"ion-label",9),bl(20),$u(21,"translate"),Ts(),Ms(22,"ion-input",10),Ts(),Is(23,"ion-item",8),Is(24,"ion-label",9),bl(25),$u(26,"translate"),Ts(),Ms(27,"ion-input",10),Ts(),Ss(28,n0,5,4,"ion-item",12),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,15,"lang.informations")),Yo(3),Os("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),Yo(2),Os("title",t.mainDocument.sender),Yo(2),wl(ec(14,17,"lang.emittedBy")),Yo(2),Os("value",t.mainDocument.sender),Yo(1),Os("ngIf",null!=t.mainDocument.description),Yo(1),Os("ngIf",null!=t.mainDocument.deadline),Yo(1),Os("title",t.mainDocument.reference),Yo(2),wl(ec(21,19,"lang.reference")),Yo(2),Os("value",t.mainDocument.reference),Yo(1),Os("title",t.mainDocument.title),Yo(2),wl(ec(26,21,"lang.subject")),Yo(2),Os("value",t.mainDocument.title),Yo(1),Os("ngForOf",t.mainDocument.metadata))},directives:[kS,tE,aS,oS,xS,$S,pS,jh,TS,ES,IS,SS,SA,Vh,sS],pipes:[jP],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),i0),o0=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},a0=["mainContent"],s0=["img"],l0=["snav"],u0=["dragElem"],c0=["appDocumentNotePad"],d0=["appDocumentList"],h0=["rightContent"],f0=["pagesList"];function p0(e,t){if(1&e){var n=Fs();Is(0,"ion-segment-button",20),js("click",function(){return En(n),qs(2).openAssociatedDocuments()}),Is(1,"ion-label",11),bl(2),$u(3,"ucfirst"),$u(4,"translate"),Ts(),Ms(5,"ion-icon",21),Is(6,"ion-badge",15),bl(7),Ts(),Ts()}if(2&e){var i=qs(2);Yo(2),wl(ec(3,2,ec(4,4,"lang.associatedDocuments"))),Yo(5),kl(" ",i.mainDocument.linkedDocuments.length," ")}}function g0(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",22),Is(1,"ion-button",23),js("click",function(e){return En(n),qs(2).openAction(e)}),Ms(2,"ion-icon",24),Ts(),Ts()}if(2&e){var i=qs(2);Yo(1),Os("disabled","CONVERTING"===i.mainDocument.status)}}function v0(e,t){if(1&e){var n=Fs();Is(0,"ion-header",6),Is(1,"ion-toolbar",7),Is(2,"ion-buttons",8),Ms(3,"ion-menu-button"),Ts(),Is(4,"ion-segment",9),js("ionChange",function(e){return En(n),qs().signaturesService.currentToobal=e.detail.value}),Is(5,"ion-segment-button",10),js("click",function(){return En(n),qs().openMainDocumentDetail()}),Is(6,"ion-label",11),bl(7),$u(8,"translate"),Ts(),Ms(9,"ion-icon",12),Ts(),Is(10,"ion-segment-button",13),js("click",function(){return En(n),qs().openDocumentList()}),Is(11,"ion-label",11),bl(12),$u(13,"ucfirst"),$u(14,"translate"),Ts(),Ms(15,"ion-icon",14),Is(16,"ion-badge",15),bl(17),Ts(),Ts(),Ss(18,p0,8,6,"ion-segment-button",16),Is(19,"ion-segment-button",17),js("click",function(){return En(n),qs().openVisaWorkflow()}),Is(20,"ion-label",11),bl(21),$u(22,"translate"),Ts(),Ms(23,"ion-icon",18),Is(24,"ion-badge",15),bl(25),Ts(),Ts(),Ts(),Ss(26,g0,3,1,"ion-buttons",19),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(4),Os("value",i.signaturesService.currentToobal),Yo(3),wl(ec(8,9,"lang.informations")),Yo(5),wl(ec(13,11,ec(14,13,"lang.attachedElements"))),Yo(5),kl(" ",i.mainDocument.attachments.length+1," "),Yo(1),Os("ngIf",void 0!==i.mainDocument.linkedDocuments&&i.mainDocument.linkedDocuments.length>0),Yo(3),wl(ec(22,15,"lang.circuit")),Yo(4),kl(" ",i.mainDocument.workflow.length," "),Yo(1),Os("ngIf",!i.detailMode)}}function m0(e,t){1&e&&(Is(0,"ion-toolbar",25),Is(1,"ion-label",26),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.substitutionInfo")))}function y0(e,t){1&e&&(Is(0,"ion-toolbar",27),Is(1,"div",28),Is(2,"ion-label",29),bl(3),$u(4,"translate"),Ts(),Ms(5,"ion-spinner",30),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.convertingDocument")))}function b0(e,t){1&e&&(Is(0,"ion-toolbar",27),Is(1,"ion-label",31),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.errorConvertingDocument")))}function w0(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",44),js("movingOffset",function(){return En(n),qs(3).signaturesService.dragging=!0})("endOffset",function(){return En(n),qs(3).signaturesService.dragging=!1})("click",function(){return En(n),qs(3).expandedNote=!0}),$u(1,"translate"),Ms(2,"ion-icon",45),Ts()}if(2&e){qs(2);var i=Es(7),r=qs();Os("bounds",i)("inBounds",!0)("title",ec(1,4,"lang.expandNote"))("disabled",r.signaturesService.dragging)}}function k0(e,t){if(1&e&&(Bs(0),Is(1,"div",52),bl(2),Ts(),Is(3,"div",53),bl(4),Ts(),Rs()),2&e){var n=qs(4);Yo(2),xl(" ",n.mainDocument.notes.creator," (",n.mainDocument.notes.creationDate,") : "),Yo(2),kl(" ",n.mainDocument.notes.value," ")}}function x0(e,t){if(1&e&&(Is(0,"div"),Is(1,"div",52),bl(2),Ts(),Is(3,"div",53),bl(4),Ts(),Ts()),2&e){var n=qs().$implicit;Yo(2),xl(" ",n.userDisplay," (",n.processDate,") : "),Yo(2),kl(" ",n.note," ")}}function _0(e,t){if(1&e&&(Bs(0),Ss(1,x0,5,3,"div",3),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf",n.note)}}function A0(e,t){if(1&e){var n=Fs();Is(0,"div",46),js("movingOffset",function(){return En(n),qs(3).signaturesService.dragging=!0})("endOffset",function(){return En(n),qs(3).signaturesService.dragging=!1}),Is(1,"div",47),Ms(2,"i",48),Is(3,"span",49),bl(4),$u(5,"translate"),Ts(),Is(6,"i",50),js("click",function(){return En(n),qs(3).expandedNote=!1}),$u(7,"translate"),Ts(),Ts(),Ss(8,k0,5,3,"ng-container",3),Ss(9,_0,2,1,"ng-container",51),Ts()}if(2&e){qs(2);var i=Es(7),r=qs();Os("bounds",i)("inBounds",!0),Yo(4),wl(ec(5,6,"lang.note")),Yo(2),Os("title",ec(7,8,"lang.collapseNote")),Yo(2),Os("ngIf",null!=r.mainDocument.notes),Yo(1),Os("ngForOf",r.mainDocument.workflow)}}function C0(e,t){if(1&e&&(Bs(0),Ss(1,w0,3,6,"ion-fab-button",42),Ss(2,A0,10,10,"div",43),Rs()),2&e){var n=qs(2);Yo(1),Os("ngIf",!n.expandedNote),Yo(1),Os("ngIf",n.expandedNote)}}function S0(e,t){1&e&&Ms(0,"app-document-note-list")}function E0(e,t){1&e&&Ms(0,"app-document-sign-list",54),2&e&&(qs(),Os("bounds",Es(7)))}function P0(e,t){1&e&&Ms(0,"app-document-date-list",54),2&e&&(qs(),Os("bounds",Es(7)))}function O0(e,t){if(1&e){var n=Fs();Is(0,"ion-img",55,56),js("ionImgDidLoad",function(e){return En(n),qs(2).imageLoaded(e)}),Ts()}if(2&e){var i=qs(2);ol("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),Os("src",i.docList[i.currentDoc].imgContent[i.pageNum])}}function D0(e,t){if(1&e&&(Is(0,"ion-select-option",63),bl(1),Ts()),2&e){var n=t.index,i=qs(3);Os("value",n+1)("disabled",n+1===i.pageNum),Yo(1),wl(n+1)}}var I0=function(e){return{cssClass:e}};function T0(e,t){if(1&e){var n=Fs();Is(0,"section",57),Is(1,"div",58),bl(2),Ts(),Is(3,"div",59),js("click",function(e){return En(n),qs(2).openSelect(e)}),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-select",60,61),js("ngModelChange",function(e){return En(n),qs(2).pageNum=e})("ionChange",function(e){return En(n),qs(2).goTo(e.target.value)}),Ss(8,D0,2,3,"ion-select-option",62),Ts(),Ts()}if(2&e){var i=qs(2);Yo(2),kl(" ",i.docList[i.currentDoc].title," "),Yo(2),_l("",ec(5,7,"lang.page")," ",i.pageNum," / ",i.totalPages,""),Yo(2),Os("ngModel",i.pageNum)("interfaceOptions",Zu(9,I0,i.totalPages>10?"popover-class":"custom-popover-class")),Yo(2),Os("ngForOf",i.pagesArray(i.totalPages))}}function M0(e,t){1&e&&(Is(0,"ion-item",64),Ms(1,"ion-icon",65),Is(2,"ion-label"),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.certifiedDocument")))}function B0(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",68),js("click",function(){return En(n),qs(3).prevPage()}),Ms(1,"ion-icon",69),Ts()}}function R0(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",70),js("click",function(){return En(n),qs(3).nextPage()}),Ms(1,"ion-icon",71),Ts()}}function L0(e,t){if(1&e&&(Bs(0),Ss(1,B0,2,0,"ion-fab-button",66),Ss(2,R0,2,0,"ion-fab-button",67),Rs()),2&e){var n=qs(2);Yo(1),Os("ngIf",n.pageNum>1&&!n.loadingImage),Yo(1),Os("ngIf",n.pageNum<n.totalPages&&!n.loadingImage)}}function F0(e,t){if(1&e){var n=Fs();Is(0,"ion-content",null,32),Ss(2,C0,3,2,"ng-container",3),Is(3,"div",33),Is(4,"drag-scroll",34,35),js("click",function(e){En(n);var t=qs();return 0==t.currentDoc&&!t.detailMode&&t.openAction(e)}),Is(6,"div",36,37),Ss(8,S0,1,0,"app-document-note-list",3),Ss(9,E0,1,1,"app-document-sign-list",38),Ss(10,P0,1,1,"app-document-date-list",38),Ss(11,O0,2,5,"ion-img",39),Ts(),Ts(),Ts(),Ss(12,T0,9,11,"section",40),Ss(13,M0,5,3,"ion-item",41),Ss(14,L0,3,2,"ng-container",3),Ts()}if(2&e){var i=qs();Yo(2),Os("ngIf",null!=i.mainDocument.notes||i.hasWorkflowNotes),Yo(2),ol("max-width",i.signaturesService.workingAreaWidth,"px"),Os("drag-scroll-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&i.signaturesService.mobileMode)("drag-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&!i.signaturesService.mobileMode),Yo(2),ol("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),Yo(2),Os("ngIf",0==i.currentDoc&&!i.loadingImage),Yo(1),Os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.signaturesContent[i.pageNum]),Yo(1),Os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.datesContent[i.pageNum]),Yo(1),Os("ngIf",void 0!==i.docList[i.currentDoc]&&!i.functionsService.empty(i.docList[i.currentDoc].imgContent[i.pageNum])),Yo(1),Os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&i.docList[i.currentDoc]),Yo(1),Os("ngIf",i.mainDocument.isCertified),Yo(1),Os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&!i.loadingImage)}}function N0(e,t){if(1&e&&Ms(0,"ion-icon",76),2&e){var n=qs().$implicit;Os("slot","start")("name",n.logo)}}function V0(e,t){if(1&e){var n=Fs();Is(0,"ion-button",74),js("click",function(){En(n);var e=t.$implicit;return qs(2).launchEvent(e)}),Ss(1,N0,1,2,"ion-icon",75),Is(2,"ion-label",26),bl(3),$u(4,"translate"),Ts(),Ts()}if(2&e){var i=t.$implicit;Os("disabled",qs(2).isNotReady())("color",i.color),Yo(1),Os("ngIf",""!==i.logo),Yo(2),wl(ec(4,4,i.label))}}function z0(e,t){if(1&e&&(Is(0,"ion-footer",72),Ss(1,V0,5,6,"ion-button",73),Ts()),2&e){var n=qs();Yo(1),Os("ngForOf",n.actionsList)}}function j0(e,t){if(1&e&&Ms(0,"app-visa-workflow",81),2&e){var n=qs(2);Os("visaWorkflow",n.mainDocument.workflow)("userDelegated",n.userDelegated)}}function H0(e,t){if(1&e){var n=Fs();Is(0,"app-document-list",82,83),js("triggerEvent",function(e){return En(n),qs(2).loadDoc(e)}),Ts()}if(2&e){var i=qs(2);Os("currentDocId",i.currentDoc)("docList",i.docList)}}function U0(e,t){1&e&&Ms(0,"app-associated-documents",84,85),2&e&&Os("associatedDocuments",qs(2).mainDocument.linkedDocuments)}function W0(e,t){1&e&&Ms(0,"app-main-document-detail",86,87),2&e&&Os("mainDocument",qs(2).mainDocument)}function G0(e,t){if(1&e&&(Ss(0,j0,1,2,"app-visa-workflow",77),Ss(1,H0,2,2,"app-document-list",78),Ss(2,U0,2,1,"app-associated-documents",79),Ss(3,W0,2,1,"app-main-document-detail",80)),2&e){var n=qs();Os("ngIf","visaWorkflow"==n.signaturesService.currentToobal),Yo(1),Os("ngIf","documentList"==n.signaturesService.currentToobal),Yo(1),Os("ngIf","associatedDocuments"==n.signaturesService.currentToobal),Yo(1),Os("ngIf","mainDocumentDetail"==n.signaturesService.currentToobal)}}var q0,Y0=((q0=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,k,x,_){Z(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.sanitizer=r,this.dialog=o,this.authService=a,this.actionSheetController=s,this.loadingController=l,this.viewContainerRef=u,this.modalController=c,this.alertController=d,this.signatureMethodService=h,this.navCtrl=f,this.functionsService=p,this.actionsService=g,this.translate=v,this.router=m,this.route=y,this.bottomSheet=b,this.localStorage=w,this.menu=k,this.pdfViewerService=x,this.cookieService=_,this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.enterApp=!0,this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status:status,attachments:[],workflow:[]},this.loadingUI=!1,this.signaturesContent=[],this.docList=[],this.posX=0,this.posY=0,this.pageNum=1,this.currentDoc=0,this.detailMode=!1,this.expandedNote=!0,this.dragging=!1,this.resizing=!1,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.pdfname=null,this.fileContent="",this.userDelegated=!1,this.load=null,this.draggable=!1}return Y(e,[{key:"imageLoaded",value:function(e){this.getImageDimensions(!0),"CONVERTING"!==this.mainDocument.status&&this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=new Image;n.onload=function(n){e.signaturesService.workingAreaWidth=n.target.naturalWidth,e.signaturesService.workingAreaHeight=n.target.naturalHeight,t&&e.getAreaDimension()},n.src=this.docList[this.currentDoc].imgContent[this.pageNum]}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}},{key:"openAction",value:function(e){return o0(this,void 0,void 0,U().mark(function t(){var n,i,r=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.posX=e.clientX,this.posY=e.clientY,n=[],this.checkEmptyNote()||n.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:function(){r.undoTag()}}),this.signaturesService.stampLock||(n.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:function(){r.openSignatures()}}),n.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:function(){r.openNoteEditor()}})),this.checkEmptiness()||n.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:function(){r.removeTags()}}),t.next=5,this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:n});case 5:return i=t.sent,t.next=8,i.present();case 8:case"end":return t.stop()}},t,this)}))}},{key:"openSignatures",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t,n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:HU,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],content:this.fileContent}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,i=n.data,this.dragging=!1,void 0!==i&&("success"===i||void 0!==i.redirectPage&&this.goTo(i.redirectPage));case 10:case"end":return e.stop()}},e,this)}))}},{key:"openNoteEditor",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:$U,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:case"end":return e.stop()}},e,this)}))}},{key:"scrollToElem",value:function(){var e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}},{key:"ionViewWillEnter",value:function(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}},{key:"ngOnInit",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(function(e){void 0!==e.id&&t.loadingController.create({message:t.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(n){t.load=n,t.load.present(),t.http.get("../rest/documents/"+e.id).pipe(Mw(function(n){return o0(t,void 0,void 0,U().mark(function t(){var i,r,o,a=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkSubstitute(n.document.workflow.find(function(e){return e.current}));case 2:i=t.sent,this.mainDocument=n.document,this.mainDocument.workflow=this.mainDocument.workflow.map(function(e){return e.note&&(a.hasWorkflowNotes=!0),e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes})}),this.totalPages=this.mainDocument.pages,this.signaturesService.mainDocumentId=this.mainDocument.id,this.signaturesService.totalPage=this.mainDocument.pages,this.menu.enable(!0,"right-menu"),this.initDoc(),r=this.mainDocument.workflow.find(function(e){return!0===e.current}),this.mainDocument.isCertified=this.mainDocument.workflow.filter(function(e){return"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate}).length>0,this.userDelegated=i,o=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}],this.mainDocument.readOnly?(this.actionsList=o,this.detailMode=!0):(null==r?void 0:r.userId)!==this.authService.user.id?i||(this.actionsList=o,this.detailMode=!0):this.functionsService.empty(r)||(this.signaturesService.stampLock=this.mainDocument.isCertified&&("stamp"===r.signatureMode&&"sign"===r[0].mode||"visa"===r.mode),r.userId!==this.authService.user.id?this.http.get("../rest/users/"+r.userId+"/signatures").subscribe(function(e){a.signaturesService.signaturesListSubstituted=e.signatures}):this.signaturesService.signaturesListSubstituted=[],r.datePositions.length>0&&this.functionsService.empty(this.signaturesService.datesContent)&&r.datePositions.forEach(function(e){a.signaturesService.datesContent[e.page]||(a.signaturesService.datesContent[e.page]=[]),a.signaturesService.datesContent[e.page][0]={width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:e.font,size:e.size,color:e.color,format:e.format}})),this.docList.push({id:this.mainDocument.id,title:this.mainDocument.title,pages:this.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+this.mainDocument.id+"/thumbnails"}),this.mainDocument.attachments.forEach(function(e){a.docList.push({id:e.id,title:e.title,pages:e.pages,imgContent:[],imgUrl:"../rest/attachments/"+e.id+"/thumbnails"})}),this.menu.enable(!0,"right-menu"),this.renderImage(),this.loadingdocument=!1,this.load.dismiss(),"CONVERTING"===this.mainDocument.status&&(this.timerSubscription=qB(0,1e4).pipe(Mw(function(){a.http.get("../rest/documents/"+e.id).pipe(Mw(function(e){var t;a.totalPages=e.document.pages,"CONVERTING"!==e.document.status&&(a.mainDocument.status=e.document.status,null===(t=a.timerSubscription)||void 0===t||t.unsubscribe())})).subscribe()}),yw(function(e){return a.load.dismiss(),a.notificationService.handleErrors(e),nb(!1)})).subscribe());case 8:case"end":return t.stop()}},t,this)}))}),yw(function(e){return console.log("error",e),setTimeout(function(){t.load.dismiss()},200),t.notificationService.handleErrors(e),t.router.navigate(["/home"]),nb(!1)})).subscribe()})});case 1:case"end":return e.stop()}},e,this)}))}},{key:"ngOnDestroy",value:function(){var e;null===(e=this.timerSubscription)||void 0===e||e.unsubscribe()}},{key:"checkSubstitute",value:function(e){var t=this;return!this.functionsService.empty(e)&&new Promise(function(n){t.http.get("../rest/users/"+e.userId).pipe(Mw(function(e){n(e.user.substitute===t.authService.user.id)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"renderPdf",value:function(){var e=this;this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(function(t){e.pdfname="data:application/pdf;base64,"+t.encodedDocument,e.loadingpdf=!0})}},{key:"onPagesLoaded",value:function(e){return o0(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.totalPages=e.pagesCount,this.exportAsImage();case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});case 2:t=e.sent,this.docList[this.currentDoc].imgContent[this.pageNum]=t,this.loadingpdf=!1,this.load.dismiss();case 4:case"end":return e.stop()}},e,this)}))}},{key:"renderImage",value:function(){var e=this;void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Mw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent,e.fileContent=t.fileContent}),yw(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),nb(!1)})).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Mw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent}),yw(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),nb(!1)})).subscribe())}},{key:"initDoc",value:function(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";var e=this.localStorage.get(this.mainDocument.id.toString());if(e){var t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}},{key:"testDrag",value:function(e){var t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}},{key:"getPosition",value:function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}},{key:"zoomForNotes",value:function(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}},{key:"zoomForView",value:function(){var e=this;this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(function(){e.resetDragPos=!1},200),this.signaturesService.scale=1}},{key:"prevPage",value:function(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"nextPage",value:function(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"goTo",value:function(e){var t=this;this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(e){t.load=e,t.load.present(),t.loadingImage=!0,t.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"pagesArray",value:function(e){return Array(e)}},{key:"refuseDocument",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t,n,i=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.rejectDocumentWarning"),0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.refuseDocumentWithoutNote")),e.next=4,this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:function(e){return o0(i,void 0,void 0,U().mark(function t(){var n,i;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.actionsService.checkGroupMail(this.mainDocument,"reject");case 2:return n=t.sent,t.next=5,this.signatureMethodService.launchDefaultMode(e.paragraph,n);case 5:i=t.sent,this.functionsService.empty(i)||(this.bottomSheet.open(tW,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()));case 7:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"validateDocument",value:function(e){return o0(this,void 0,void 0,U().mark(function e(){var t,n,i=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.validateDocumentWarning"),0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(t=this.translate.instant("lang.certifiedDocumentMsg2")),e.next=4,this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:function(e){return o0(i,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.processToSign(e);case 2:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"processToSign",value:function(e){return o0(this,void 0,void 0,U().mark(function t(){var n,i,r;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],t.next=3,this.actionsService.checkGroupMail(this.mainDocument,"validate");case 3:return i=t.sent,t.next=6,this.signatureMethodService.checkAuthenticationAndLaunchAction(n,e.paragraph,i);case 6:r=t.sent,this.functionsService.empty(r)||("refresh_certs"===r?this.processToSign(e):(this.bottomSheet.open(s$,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString())));case 8:case"end":return t.stop()}},t,this)}))}},{key:"removeTags",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.signaturesService.currentAction=0,e.next=3,this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:function(){n.signaturesService.signaturesContent=[],n.signaturesService.notesContent=[],n.signaturesService.datesContent=[],n.localStorage.remove(n.mainDocument.id.toString()),n.notificationService.success("lang.noteAndSignatureDeleted")}}]});case 3:return t=e.sent,e.next=6,t.present();case 6:case"end":return e.stop()}},e,this)}))}},{key:"loadDoc",value:function(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}},{key:"launchEvent",value:function(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}},{key:"undoTag",value:function(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}},{key:"checkEmptyNote",value:function(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}},{key:"isEmptyNote",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}},{key:"checkEmptiness",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}},{key:"openVisaWorkflow",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}},{key:"openDocumentList",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}},{key:"openAssociatedDocuments",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}},{key:"openMainDocumentDetail",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"backToDetails",value:function(){this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"deleteSubstution",value:function(){var e=this;confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(function(){e.authService.updateUserInfoWithTokenRefresh(),e.notificationService.success("lang.substitutionDeleted")})}},{key:"back",value:function(){this.navCtrl.back()}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}},{key:"openSelect",value:function(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}},{key:"isNotReady",value:function(){return["CONVERTING","ERROR"].indexOf(this.mainDocument.status)>-1}}]),e}()).\u0275fac=function(e){return new(e||q0)(Ps(Tb),Ps($P),Ps(WP),Ps(pp),Ps(KF),Ps(tO),Ps(TE),Ps(BE),Ps(Mu),Ps(LE),Ps(ME),Ps(a$),Ps(DA),Ps(hW),Ps(pW),Ps(zP),Ps(h_),Ps(Uk),Ps(gF),Ps(eO),Ps(RE),Ps(UD),Ps(oT))},q0.\u0275cmp=Ft({type:q0,selectors:[["app-document"]],viewQuery:function(e,t){var n;1&e&&(bc(a0,1),bc(s0,1),bc(l0,3),bc(u0,1),bc(c0,1),bc(d0,1),bc(h0,3),bc(f0,1)),2&e&&(yc(n=kc())&&(t.mainContent=n.first),yc(n=kc())&&(t.img=n.first),yc(n=kc())&&(t.snav=n.first),yc(n=kc())&&(t.dragElem=n.first),yc(n=kc())&&(t.appDocumentNotePad=n.first),yc(n=kc())&&(t.appDocumentList=n.first),yc(n=kc())&&(t.rightContent=n.first),yc(n=kc())&&(t.pagesList=n.first))},decls:8,vars:6,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"disabled","click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],[1,"loading",2,"display","flex","height","100%"],[1,"loadingMsg"],["name","dots","color","light",2,"padding-top","6.5%"],[2,"font-size","14px","font-weight","bold"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow","userDelegated",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow","userDelegated"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(Ss(0,v0,27,17,"ion-header",0),Ss(1,m0,4,3,"ion-toolbar",1),Ss(2,y0,6,3,"ion-toolbar",2),Ss(3,b0,4,3,"ion-toolbar",2),Ss(4,F0,15,16,"ion-content",3),Ss(5,z0,2,1,"ion-footer",4),Ss(6,G0,4,4,"ng-template",null,5,Cc)),2&e&&(Os("ngIf",!t.loadingdocument),Yo(1),Os("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),Yo(1),Os("ngIf",0!==t.mainDocument.id&&"CONVERTING"===t.mainDocument.status),Yo(1),Os("ngIf",0!==t.mainDocument.id&&"ERROR"===t.mainDocument.status),Yo(1),Os("ngIf",!t.loadingdocument),Yo(1),Os("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[jh,kS,tE,aS,RS,GS,CA,qS,IS,xS,rS,oS,XS,pS,ZI,mS,JI,Vh,c$,v$,E$,_S,YS,Lm,my,ZS,ES,bS,K$,dW,J$,r0],pipes:[jP,wT],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}.loading[_ngcontent-%COMP%]{display:flex;position:absolute;justify-content:center;top:0;left:0;width:100%;height:100%;z-index:2;overflow:hidden}.loadingMsg[_ngcontent-%COMP%]{padding:2%;color:var(--ion-color-light);font-weight:700;margin-right:-5px}"]}),q0),Z0=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function K0(e,t){1&e&&(Is(0,"a",13),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.forgotPassword")))}function Q0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.ldapEnabled")))}function X0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.kerberosEnabled")))}function J0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.x509Enabled")))}function $0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl("",ec(2,1,"lang.casEnabled")," "))}function e1(e,t){if(1&e&&(Is(0,"a",15),$u(1,"translate"),bl(2),Ts()),2&e){var n=qs();Js("href","",ec(1,3,"lang.repoUrl"),"/commit/",n.commitHash,"",Kr),Yo(2),wl(n.commitHash.substring(0,8))}}var t1,n1,i1=((n1=function(){function e(t,n,i,r,o,a,s,l,u,c){Z(this,e),this.http=t,this.router=n,this.authService=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.formBuilder=s,this.loadingController=l,this.translate=u,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}return Y(e,[{key:"ngOnInit",value:function(){return Z0(this,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loginForm=this.formBuilder.group({login:[null,cm.required],password:[null,cm.required]}),this.environment=Cd,this.signaturesService.reset(),e.next=5,this.loadCommitInformation();case 5:case"end":return e.stop()}},e,this)}))}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){return Z0(e,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.showForm=!0,this.fixAutoFill(),e.next=4,this.initConnection();case 4:case"end":return e.stop()}},e,this)}))},500)}},{key:"fixAutoFill",value:function(){var e=this;setTimeout(function(){e.loginForm.get("login").setValue($("#login").val()),e.loginForm.get("password").setValue($("#password").val())},100)}},{key:"onSubmit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Z0(this,void 0,void 0,U().mark(function t(){var n,i,r=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});case 2:return n=t.sent,t.next=5,n.present();case 5:i="../rest/authenticate",null!==e&&(i+=e),this.authService.authFailed=!1,this.loginForm.invalid?(n.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post(i,{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(Mw(function(e){r.loading=!1,r.showForm=!1,r.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),r.authService.setUser({}),r.authService.getCachedUrl()?(r.router.navigateByUrl(r.authService.getCachedUrl()),r.authService.cleanCachedUrl()):r.router.navigate(["/home"]),n.dismiss()}),yw(function(e){return r.loading=!1,r.authService.authFailed=!0,401===e.status&&-1===["kerberos","x509","azure_saml"].indexOf(r.authService.authMode)?(r.notificationService.error("lang.wrongLoginPassword"),n.dismiss()):"azure_saml"===r.authService.authMode&&"Authentication Failed : not logged"===e.error.errors?(n.dismiss(),window.location.href=e.error.authUri):(n.dismiss(),r.notificationService.handleErrors(e)),nb(!1)})).subscribe();case 7:case"end":return t.stop()}},t,this)}))}},{key:"initConnection",value:function(){if(["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1)this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit();else if(["cas"].indexOf(this.authService.authMode)>-1)if(this.loginForm.disable(),this.loginForm.setValidators(null),null!=this.authService.casToken){var e=this.authService.casToken;this.authService.casToken=null,this.onSubmit("?"+e)}else window.location.href=this.authService.authUri}},{key:"loadCommitInformation",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/commitInformation").pipe(Mw(function(n){e.commitHash=n.hash,t(!0)}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()})}}]),e}()).\u0275fac=function(e){return new(e||n1)(Ps(Tb),Ps(h_),Ps(tO),Ps($P),Ps(WP),Ps(KF),Ps(tb),Ps(BE),Ps(zP),Ps(RE))},n1.\u0275cmp=Ft({type:n1,selectors:[["ng-component"]],decls:28,vars:19,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(Is(0,"ion-content",0),Ms(1,"mat-icon",1),Is(2,"ion-card",2),Is(3,"ion-card-content"),Is(4,"form",3),js("ngSubmit",function(){return t.onSubmit()}),Is(5,"ion-item"),Is(6,"ion-label",4),bl(7),$u(8,"translate"),Ts(),Is(9,"ion-input",5),js("keyup.enter",function(){return t.onSubmit()}),Ts(),Ts(),Is(10,"ion-item"),Is(11,"ion-label",4),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",6),js("keyup.enter",function(){return t.onSubmit()}),Ts(),Ts(),Is(15,"div",7),Ss(16,K0,3,3,"a",8),Ss(17,Q0,3,3,"a",9),Ss(18,X0,3,3,"a",9),Ss(19,J0,3,3,"a",9),Ss(20,$0,3,3,"a",9),Ts(),Is(21,"ion-button",10),bl(22),$u(23,"translate"),Ts(),Ts(),Ts(),Ts(),Is(24,"ion-note",11),bl(25),Ss(26,e1,3,5,"a",12),bl(27),Ts(),Ts()),2&e&&(Yo(4),Os("formGroup",t.loginForm),Yo(3),wl(ec(8,13,"lang.login")),Yo(5),wl(ec(13,15,"lang.password")),Yo(4),Os("ngIf","default"===t.authService.authMode),Yo(1),Os("ngIf","ldap"===t.authService.authMode),Yo(1),Os("ngIf","kerberos"===t.authService.authMode),Yo(1),Os("ngIf","x509"===t.authService.authMode),Yo(1),Os("ngIf","cas"===t.authService.authMode),Yo(1),Os("disabled",t.loginForm.invalid||t.loading),Yo(1),kl(" ",ec(23,17,"lang.connect")," "),Yo(3),kl(" Maarch Parapheur ",t.environment.VERSION," "),Yo(1),Os("ngIf",null!==t.commitHash),Yo(1),kl(" Powered by ",t.environment.AUTHOR," "))},directives:[pS,_N,sS,lS,yy,Fm,Ay,ES,IS,SS,SA,Lm,Sy,jh,oS,FS,p_,CE],pipes:[jP],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),n1),r1=((t1=function(){function e(t,n,i,r,o){Z(this,e),this.router=t,this.http=n,this.notificationService=o,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",i.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"generateLink",value:function(){var e=this;this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(Lw(function(){e.labelButton="lang.send",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.requestSentByEmail"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}}]),e}()).\u0275fac=function(e){return new(e||t1)(Ps(h_),Ps(Tb),Ps(uN),Ps(pp),Ps(WP))},t1.\u0275cmp=Ft({type:t1,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content",null,3),Is(9,"form",4,5),js("ngSubmit",function(){return t.generateLink()}),Is(11,"ion-grid"),Is(12,"ion-row"),Is(13,"ion-col",6),Is(14,"ion-card",7),Ms(15,"ion-card-content",8),$u(16,"translate"),Ts(),Is(17,"ion-item"),Is(18,"ion-label",9),bl(19),$u(20,"translate"),Ts(),Is(21,"ion-input",10),js("ngModelChange",function(e){return t.newLogin.login=e}),Ts(),Ts(),Ts(),Ts(),Ts(),Is(22,"ion-item",11),Is(23,"div",12),Is(24,"ion-button",13),Is(25,"ion-label",14),bl(26),$u(27,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,7,"lang.forgotPassword")),Yo(10),Os("innerHTML",ec(16,9,"lang.afterClickingSendLinkChangePassword"),Zr),Yo(4),kl("",ec(20,11,"lang.enterLogin")," *"),Yo(2),Os("ngModel",t.newLogin.login),Yo(3),Os("disabled",""==t.newLogin.login||t.loading),Yo(2),wl(ec(27,13,t.labelButton)))},directives:[kS,tE,aS,iS,AE,$S,pS,yy,Fm,py,wS,US,fS,sS,lS,ES,IS,SS,SA,Lm,my,oS],pipes:[jP],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),t1);function o1(e,t){if(1&e&&(Is(0,"ion-note",22),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs();Yo(1),kl(" ",ec(2,1,n.handlePassword.errorMsg),"")}}function a1(e,t){1&e&&(Is(0,"ion-note",23),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.samePassword"),""))}function s1(e,t){1&e&&(Is(0,"ion-note",22),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.passwordNotMatch"),""))}var l1,u1,c1=((u1=function(){function e(t,n,i,r,o,a,s,l){var u=this;Z(this,e),this.translate=t,this.router=n,this.route=i,this.http=r,this.notificationService=s,this.menu=l,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",o.addSvgIcon("maarchLogo",a.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(function(e){u.token=e.token})}return Y(e,[{key:"ngOnInit",value:function(){this.getPassRules()}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"updatePassword",value:function(){var e=this;this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(Lw(function(){e.labelButton="lang.update",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.passwordChanged"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"allowValidate",value:function(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}]),e}()).\u0275fac=function(e){return new(e||u1)(Ps(zP),Ps(h_),Ps(Uk),Ps(Tb),Ps(uN),Ps(pp),Ps(WP),Ps(RE))},u1.\u0275cmp=Ft({type:u1,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content",null,3),Is(9,"form",4,5),js("ngSubmit",function(){return t.updatePassword()}),Is(11,"ion-grid"),Is(12,"ion-row"),Is(13,"ion-col",6),Is(14,"ion-card",7),Ms(15,"ion-card-content",8),$u(16,"translate"),Ts(),Is(17,"ion-item"),Is(18,"ion-label",9),bl(19),$u(20,"translate"),Ts(),Is(21,"ion-input",10),js("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),$u(22,"translate"),Ts(),Is(23,"ion-button",11),js("click",function(){return t.hideNewPassword=!t.hideNewPassword}),Ms(24,"ion-icon",12),Ts(),Ss(25,o1,3,3,"ion-note",13),Ts(),Is(26,"ion-item"),Is(27,"ion-label",9),bl(28),$u(29,"translate"),Ts(),Is(30,"ion-input",14),js("ngModelChange",function(e){return t.password.passwordConfirmation=e}),$u(31,"translate"),Ts(),Is(32,"ion-button",11),js("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ms(33,"ion-icon",12),Ts(),Ts(),Is(34,"ion-item",15),Ss(35,a1,3,3,"ion-note",16),Ss(36,s1,3,3,"ion-note",13),Ts(),Ts(),Ts(),Ts(),Is(37,"ion-item",17),Is(38,"div",18),Is(39,"ion-button",19),Is(40,"ion-label",20),bl(41),$u(42,"translate"),Ts(),Ts(),Is(43,"ion-button",21),Is(44,"ion-label",20),bl(45),$u(46,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,19,"lang.newPassword")),Yo(10),Os("innerHTML",ec(16,21,"lang.logInOncePasswordChanged"),Zr),Yo(4),wl(ec(20,23,"lang.newPassword")),Yo(2),Qs("placeholder",ec(22,25,"lang.newPassword")),Os("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),Yo(3),Os("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",t.handlePassword.error),Yo(3),kl("",ec(29,27,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(31,29,"lang.passwordConfirmation")),Os("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),Yo(3),Os("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),Yo(2),Os("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),Yo(1),Os("ngIf",t.password.passwordConfirmation!==t.password.newPassword),Yo(3),Os("disabled",t.allowValidate()||t.loading),Yo(2),wl(ec(42,31,t.labelButton)),Yo(4),wl(ec(46,33,"lang.cancel")))},directives:[kS,tE,aS,iS,AE,$S,pS,yy,Fm,py,wS,US,fS,sS,lS,ES,IS,SS,SA,Lm,my,oS,xS,jh,CE,f_,FS],pipes:[jP],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),u1),d1=((l1=function(){function e(t,n,i,r){Z(this,e),this.http=t,this.translate=n,this.notify=i,this.signaturesService=r,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/passwordRules").subscribe(function(t){e.passwordRulesList=t.rules,t.rules.forEach(function(t){e.passwordRules[t.label].enabled=t.enabled,e.passwordRules[t.label].value=t.value,e.passwordRules[t.label].label=e.translate.instant("lang.password_"+t.label+"Required"),e.passwordRules[t.label].id=t.label,e.loading=!1}),e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules))},function(t){e.notify.error(t.error.errors)})}},{key:"cancelModification",value:function(){var e=this;this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value})}},{key:"checkModif",value:function(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}},{key:"disabledForm",value:function(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}},{key:"toggleRule",value:function(e){var t=this;this.passwordRulesList.forEach(function(n){"lockAttempts"!==e.id||"lockTime"!==n.label&&"lockAttempts"!==n.label?e.id===n.label&&(n.enabled=e.enabled):(n.enabled=e.enabled,t.passwordRules.lockTime.enabled=e.enabled)})}},{key:"onSubmit",value:function(){var e=this;this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(function(){e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules)),e.notify.success("lang.passwordRulesUpdated")},function(t){e.notify.error(t.error.errors)})}}]),e}()).\u0275fac=function(e){return new(e||l1)(Ps(Tb),Ps(zP),Ps(WP),Ps($P))},l1.\u0275cmp=Ft({type:l1,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(10,"ion-content"),Is(11,"ion-row"),Is(12,"ion-col"),Is(13,"ion-item"),Is(14,"ion-label",6),bl(15),Ts(),Is(16,"ion-toggle",7),js("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),Ts(),Ts(),Ts(),Is(17,"ion-col"),Is(18,"ion-item"),Is(19,"ion-label",6),bl(20),Ts(),Is(21,"ion-toggle",8),js("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),Ts(),Ts(),Ts(),Is(22,"ion-col"),Is(23,"ion-item"),Is(24,"ion-label",6),bl(25),Ts(),Is(26,"ion-toggle",9),js("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),Ts(),Ts(),Ts(),Ts(),Is(27,"ion-item"),Is(28,"ion-toggle",10),js("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),Ts(),Is(29,"ion-label",11),bl(30),Ts(),Is(31,"ion-input",12),js("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),Ts(),Is(32,"ion-note",13),bl(33),$u(34,"translate"),Ts(),Ts(),Is(35,"ion-row"),Is(36,"ion-col"),Is(37,"ion-item"),Is(38,"ion-toggle",14),js("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),Ts(),Is(39,"ion-label",11),bl(40),Ts(),Is(41,"ion-input",15),js("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),Ts(),Ts(),Ts(),Is(42,"ion-col"),Is(43,"ion-item"),Is(44,"ion-label",11),bl(45),Ts(),Is(46,"ion-input",16),js("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),Ts(),Is(47,"ion-note",13),bl(48),$u(49,"translate"),Ts(),Ts(),Ts(),Ts(),Is(50,"ion-item"),Is(51,"ion-toggle",17),js("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),Ts(),Is(52,"ion-label",11),bl(53),Ts(),Is(54,"ion-input",18),js("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),Ts(),Is(55,"ion-note",13),bl(56),$u(57,"translate"),Ts(),Ts(),Is(58,"ion-item"),Is(59,"ion-toggle",19),js("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),Ts(),Is(60,"ion-label",11),bl(61),Ts(),Is(62,"ion-input",20),js("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),Ts(),Ts(),Is(63,"ion-item",21),Is(64,"div",22),Is(65,"ion-button",23),Is(66,"ion-label",24),bl(67),$u(68,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(9);Os("translucent",!0),Yo(6),wl(ec(7,39,"lang.manage_password_rules")),Yo(9),wl(t.passwordRules.complexityUpper.label),Yo(1),Os("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),Yo(4),wl(t.passwordRules.complexityNumber.label),Yo(1),Os("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),Yo(4),wl(t.passwordRules.complexitySpecial.label),Yo(1),Os("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),Yo(2),Os("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),Yo(2),wl(t.passwordRules.minLength.label),Yo(1),Os("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),Yo(2),wl(ec(34,41,"lang.chars")),Yo(5),Os("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),Yo(2),wl(t.passwordRules.lockAttempts.label),Yo(1),Os("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),Yo(4),wl(t.passwordRules.lockTime.label),Yo(1),Os("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),Yo(2),wl(ec(49,43,"lang.minutes")),Yo(3),Os("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),Yo(2),wl(t.passwordRules.renewal.label),Yo(1),Os("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),Yo(2),wl(ec(57,45,"lang.days")),Yo(3),Os("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),Yo(2),wl(t.passwordRules.historyLastUse.label),Yo(1),Os("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),Yo(3),Os("disabled",!n.valid&&!t.disabledForm()||t.checkModif()),Yo(2),wl(ec(68,47,"lang.validate"))}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,US,fS,ES,IS,eE,xA,Lm,my,SS,SA,Xy,FS,oS],pipes:[jP],encapsulation:2}),l1);function h1(e,t){1&e&&(Is(0,"ion-note",17),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.requiredField")))}function f1(e,t){1&e&&(Is(0,"ion-item",26),Ms(1,"ion-icon",27),Is(2,"ion-label",28),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.passwordValid")))}function p1(e,t){1&e&&(Is(0,"ion-item",26),Ms(1,"ion-icon",27),Is(2,"ion-label",28),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.passwordMatch")))}function g1(e,t){1&e&&Ms(0,"ion-item",29),2&e&&Os("innerHTML",qs().otherRuleText,Zr)}var v1,m1=((v1=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.http=t,this.notify=n,this._formBuilder=i,this.translate=r,this.signaturesService=o,this.authService=a,this.router=s,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[],r=[];n.push(cm.required),t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&(n.push(cm.minLength(e.passwordRules.minLength.value)),i.push(t.value+" "+e.translate.instant("lang.password_"+t.label)))):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_"+t.label)+" <b>"+t.value+" "+e.translate.instant("lang.days")+"</b>. "+e.translate.instant("lang.password2_"+t.label)+".")):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_historyLastUseDesc")+" <b>"+t.value+"</b> "+e.translate.instant("lang.password_historyLastUseDesc2")+"."))}),e.ruleText=i.join(", "),e.otherRuleText=r.join("<br/>"),e.firstFormGroup.controls.newPasswordCtrl.setValidators(n)},function(t){e.notify.error(t.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",cm.compose([cm.required])],currentPasswordCtrl:["",cm.compose([cm.required])]},{validator:this.matchValidator})}},{key:"regexValidator",value:function(e,t){return function(n){return n.value?e.test(n.value)?null:t:null}}},{key:"matchValidator",value:function(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}},{key:"getErrorMessage",value:function(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}},{key:"onSubmit",value:function(){var e=this;this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(function(){e.notify.success(e.translate.instant("lang.passwordChanged")),void 0===e.authService.user.picture&&e.http.get("../rest/users/"+e.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture}),e.router.navigate(["/home"])},function(t){e.notify.handleErrors(t)})}},{key:"logout",value:function(){this.authService.logout()}}]),e}()).\u0275fac=function(e){return new(e||v1)(Ps(Tb),Ps(WP),Ps(tb),Ps(zP),Ps($P),Ps(tO),Ps(h_))},v1.\u0275cmp=Ft({type:v1,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Ms(2,"ion-buttons",2),Is(3,"ion-title"),bl(4),$u(5,"translate"),Ts(),Ts(),Ts(),Is(6,"ion-content",null,3),Is(8,"form",4),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-grid"),Is(10,"ion-row"),Is(11,"ion-col",5),Is(12,"ion-card",6),Is(13,"ion-card-content"),bl(14),$u(15,"translate"),Is(16,"b"),bl(17),Ts(),bl(18),$u(19,"translate"),Ts(),Ts(),Is(20,"ion-item"),Is(21,"ion-label",7),bl(22),$u(23,"translate"),Ts(),Ms(24,"ion-input",8),$u(25,"translate"),Is(26,"ion-button",9),js("click",function(){return t.hidePassword=!t.hidePassword}),Ms(27,"ion-icon",10),Ts(),Ss(28,h1,3,3,"ion-note",11),Ts(),Is(29,"ion-list-header",12),Is(30,"ion-label",13),bl(31),Ts(),Ts(),Is(32,"ion-item"),Is(33,"ion-label",7),bl(34),$u(35,"translate"),Ts(),Ms(36,"ion-input",14,15),$u(38,"translate"),Is(39,"ion-button",9),js("click",function(){return t.hidePassword=!t.hidePassword}),Ms(40,"ion-icon",10),Ts(),Ss(41,f1,5,3,"ion-item",16),Is(42,"ion-note",17),bl(43),Ts(),Ts(),Is(44,"ion-item"),Is(45,"ion-label",7),bl(46),$u(47,"translate"),Ts(),Ms(48,"ion-input",18,19),$u(50,"translate"),Is(51,"ion-button",9),js("click",function(){return t.hidePassword=!t.hidePassword}),Ms(52,"ion-icon",10),Ts(),Ss(53,p1,5,3,"ion-item",16),Is(54,"ion-note",17),bl(55),$u(56,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Is(57,"ion-item",20),Is(58,"div",21),Is(59,"ion-button",22),Is(60,"ion-label",23),bl(61),$u(62,"translate"),Ts(),Ts(),Is(63,"ion-button",24),js("click",function(){return t.logout()}),Is(64,"ion-label",23),bl(65),$u(66,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ss(67,g1,1,1,"ion-item",25),Ts()),2&e&&(Os("translucent",!0),Yo(4),wl(ec(5,29,"lang.passwordModification")),Yo(4),Os("formGroup",t.firstFormGroup),Yo(6),kl(" ",ec(15,31,"lang.hello")," "),Yo(3),xl(" ",t.user.firstname," ",t.user.lastname,""),Yo(1),kl(", ",ec(19,33,"lang.changePasswordInfo"),". "),Yo(4),wl(ec(23,35,"lang.typeCurrentPassword")),Yo(2),Qs("placeholder",ec(25,37,"lang.typeCurrentPassword")),Os("type",t.hidePassword?"password":"text"),Yo(3),Os("name",t.hidePassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),Yo(3),wl(t.ruleText),Yo(3),kl("",ec(35,39,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(38,41,"lang.passwordConfirmation")),Os("type",t.hidePassword?"password":"text"),Yo(4),Os("name",t.hidePassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",t.validPassword),Yo(2),wl(t.getErrorMessage()),Yo(3),kl("",ec(47,43,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(50,45,"lang.passwordConfirmation")),Os("type",t.hidePassword?"password":"text"),Yo(4),Os("name",t.hidePassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),Yo(2),wl(ec(56,47,"lang.passwordNotMatch")),Yo(4),Os("disabled",!t.firstFormGroup.valid),Yo(2),wl(ec(62,49,"lang.validate")),Yo(4),wl(ec(66,51,"lang.logout")),Yo(2),Os("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[kS,tE,aS,$S,pS,yy,Fm,Ay,wS,US,fS,sS,lS,ES,IS,SS,SA,Lm,Sy,Yy,oS,xS,jh,MS,FS],pipes:[jP],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),v1),y1=S("b0Xh"),b1=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},w1=["passwordContent"];function k1(e,t){if(1&e&&(Is(0,"ion-note",37),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(3);Yo(1),kl(" ",ec(2,1,n.handlePassword.errorMsg),"")}}function x1(e,t){if(1&e){var n=Fs();Is(0,"div"),Is(1,"ion-list-header",28),Is(2,"ion-label",1),bl(3),$u(4,"translate"),Ts(),Ts(),Is(5,"ion-item"),Is(6,"ion-label",31),bl(7),$u(8,"translate"),Ts(),Is(9,"ion-input",32),js("ngModelChange",function(e){return En(n),qs(2).password.currentPassword=e}),$u(10,"translate"),Ts(),Is(11,"ion-button",33),js("click",function(){En(n);var e=qs(2);return e.hideCurrentPassword=!e.hideCurrentPassword}),Ms(12,"ion-icon",34),Ts(),Ts(),Is(13,"ion-item"),Is(14,"ion-label",31),bl(15),$u(16,"translate"),Ts(),Is(17,"ion-input",35),js("ngModelChange",function(e){return En(n),qs(2).password.newPassword=e})("keyup",function(){En(n);var e=qs(2);return e.checkPasswordValidity(e.password.newPassword)}),$u(18,"translate"),Ts(),Is(19,"ion-button",33),js("click",function(){En(n);var e=qs(2);return e.hideNewPassword=!e.hideNewPassword}),Ms(20,"ion-icon",34),Ts(),Ss(21,k1,3,3,"ion-note",30),Ts(),Is(22,"ion-item"),Is(23,"ion-label",31),bl(24),$u(25,"translate"),Ts(),Is(26,"ion-input",36),js("ngModelChange",function(e){return En(n),qs(2).password.passwordConfirmation=e}),$u(27,"translate"),Ts(),Is(28,"ion-button",33),js("click",function(){En(n);var e=qs(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),Ms(29,"ion-icon",34),Ts(),Ts(),Ts()}if(2&e){var i=qs(2);Yo(3),wl(ec(4,17,"lang.changePassword")),Yo(4),wl(ec(8,19,"lang.currentPassword")),Yo(2),Qs("placeholder",ec(10,21,"lang.currentPassword")),Os("ngModel",i.password.currentPassword)("type",i.hideCurrentPassword?"password":"text"),Yo(3),Os("name",i.hideCurrentPassword?"eye-outline":"eye-off-outline"),Yo(3),wl(ec(16,23,"lang.newPassword")),Yo(2),Qs("placeholder",ec(18,25,"lang.newPassword")),Os("ngModel",i.password.newPassword)("type",i.hideNewPassword?"password":"text"),Yo(3),Os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",i.handlePassword.error),Yo(3),kl("",ec(25,27,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(27,29,"lang.passwordConfirmation")),Os("ngModel",i.password.passwordConfirmation)("type",i.hideNewPasswordConfirm?"password":"text"),Yo(3),Os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function _1(e,t){1&e&&(Is(0,"ion-note",38),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.samePassword"),""))}function A1(e,t){1&e&&(Is(0,"ion-note",37),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.passwordNotMatch"),""))}function C1(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-list",18),Is(2,"ion-item"),Is(3,"ion-avatar",19),js("click",function(){return En(n),Es(10).click()}),Ms(4,"img",20),Ts(),Is(5,"ion-label",21),bl(6),$u(7,"translate"),Ts(),Is(8,"ion-input",22),js("ngModelChange",function(e){return En(n),qs().profileInfo.login=e}),Ts(),Is(9,"input",23,24),js("change",function(e){return En(n),qs().handleFileInput(e.target.files)}),Ts(),Ts(),Is(11,"ion-item"),Is(12,"ion-label",21),bl(13),$u(14,"translate"),Ts(),Is(15,"ion-input",25),js("ngModelChange",function(e){return En(n),qs().profileInfo.email=e}),Ts(),Ts(),Is(16,"ion-item"),Is(17,"ion-label",21),bl(18),$u(19,"translate"),Ts(),Is(20,"ion-input",26),js("ngModelChange",function(e){return En(n),qs().profileInfo.firstname=e}),Ts(),Ts(),Is(21,"ion-item"),Is(22,"ion-label",21),bl(23),$u(24,"translate"),Ts(),Is(25,"ion-input",27),js("ngModelChange",function(e){return En(n),qs().profileInfo.lastname=e}),Ts(),Ts(),Ss(26,x1,30,31,"div",16),Is(27,"ion-item",28),Ss(28,_1,3,3,"ion-note",29),Ss(29,A1,3,3,"ion-note",30),Ts(),Ts(),Rs()}if(2&e){var i=qs();Yo(4),Os("src",i.avatarInfo.picture,Kr),Yo(2),wl(ec(7,19,"lang.login")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.login),Yo(5),wl(ec(14,21,"lang.email")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.email)("readonly","default"!==i.authService.authMode),Yo(3),wl(ec(19,23,"lang.firstname")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.firstname)("readonly","default"!==i.authService.authMode),Yo(3),wl(ec(24,25,"lang.lastname")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.lastname)("readonly","default"!==i.authService.authMode),Yo(1),Os("ngIf","default"===i.authService.authMode),Yo(2),Os("ngIf",i.password.passwordConfirmation===i.password.newPassword&&i.password.newPassword.length>0&&i.password.passwordConfirmation.length>0),Yo(1),Os("ngIf",i.password.passwordConfirmation!==i.password.newPassword)}}function S1(e,t){if(1&e&&(Is(0,"ion-select-option",65),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n),Yo(1),wl(ec(2,2,"lang."+n))}}function E1(e,t){1&e&&(Ms(0,"ion-note",66),$u(1,"translate")),2&e&&Os("innerHTML",ec(1,1,"lang.freeModeInfo"),Zr)}function P1(e,t){1&e&&(Ms(0,"ion-note",66),$u(1,"translate")),2&e&&Os("innerHTML",ec(1,1,"lang.standardModeInfo"),Zr)}function O1(e,t){if(1&e&&(Is(0,"ion-select-option",65),bl(1),Ts()),2&e){var n=t.index;Os("value",n+1),Yo(1),kl("",n+1," ")}}var D1=function(e){return{value:e}};function I1(e,t){if(1&e&&(Ms(0,"ion-note",67),$u(1,"translate")),2&e){var n=qs(2);Os("innerHTML",tc(1,1,"lang.scalingDocWith",Zu(4,D1,n.signatureScaling)),Zr)}}function T1(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-list",18),Is(2,"ion-item"),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-toggle",39),js("ionChange",function(){En(n);var e=qs();return e.preferenceInfo.notifications=!e.preferenceInfo.notifications}),Ts(),Ts(),Is(7,"ion-list"),Is(8,"ion-item"),Is(9,"ion-label",40),bl(10),$u(11,"translate"),Ts(),Is(12,"ion-select",41),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.lang=e}),Ss(13,S1,3,4,"ion-select-option",42),Ts(),Ts(),Ts(),Is(14,"ion-list"),Is(15,"ion-item"),Is(16,"ion-label",40),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-select",43),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.writingMode=e}),Is(20,"ion-select-option",44),bl(21),$u(22,"translate"),Ts(),Is(23,"ion-select-option",45),bl(24),$u(25,"translate"),Ms(26,"i",46),Ts(),Ts(),Ss(27,E1,2,3,"ion-note",47),Ss(28,P1,2,3,"ion-note",47),Ts(),Ts(),Is(29,"ion-list"),Is(30,"ion-item"),Is(31,"ion-label",40),bl(32),$u(33,"translate"),Ts(),Is(34,"ion-select",48),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.writingSize=e})("ionChange",function(){return En(n),qs().drawSample()}),Ss(35,O1,2,2,"ion-select-option",42),Ts(),Is(36,"ion-note",2),Ms(37,"canvas",49),Ts(),Ts(),Ts(),Is(38,"ion-list"),Is(39,"ion-item"),Is(40,"ion-label",40),bl(41),$u(42,"translate"),Ts(),Is(43,"ion-select",50),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.writingColor=e}),Is(44,"ion-select-option",51),bl(45),$u(46,"translate"),Ts(),Is(47,"ion-select-option",52),bl(48),$u(49,"translate"),Ts(),Is(50,"ion-select-option",53),bl(51),$u(52,"translate"),Ts(),Ts(),Is(53,"ion-note",2),Ms(54,"div",54),Ts(),Ts(),Ts(),Is(55,"ion-list"),Is(56,"ion-row"),Is(57,"iotn-item"),Is(58,"ion-label",55),bl(59),$u(60,"translate"),Ts(),Ts(),Ts(),Is(61,"ion-row"),Is(62,"ion-col",56),Is(63,"ion-item",57),Is(64,"ion-range",58),js("ngModelChange",function(e){return En(n),qs().signatureScaling=e}),Ms(65,"ion-icon",59),Ms(66,"ion-icon",60),Ts(),Ts(),Ss(67,I1,2,6,"ion-note",61),Ts(),Is(68,"ion-col",62),Is(69,"ion-item",63),Is(70,"ion-label"),bl(71),$u(72,"translate"),Ts(),Is(73,"ion-toggle",64),js("ionChange",function(){En(n);var e=qs();return e.originalSize=!e.originalSize}),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Rs()}if(2&e){var i=qs();Yo(4),wl(ec(5,27,"lang.receiveNotif")),Yo(2),Os("checked",i.preferenceInfo.notifications),Yo(4),wl(ec(11,29,"lang.language")),Yo(2),Os("ngModel",i.preferenceInfo.lang),Yo(1),Os("ngForOf",i.profileInfo.availableLanguages),Yo(4),kl("",ec(18,31,"lang.annotationMode")," "),Yo(2),Os("ngModel",i.preferenceInfo.writingMode),Yo(2),wl(ec(22,33,"lang.free")),Yo(3),kl("",ec(25,35,"lang.appleStylus")," "),Yo(3),Os("ngIf","stylus"===i.preferenceInfo.writingMode),Yo(1),Os("ngIf","direct"===i.preferenceInfo.writingMode),Yo(4),wl(ec(33,37,"lang.stylusWidh")),Yo(2),Os("ngModel",i.preferenceInfo.writingSize),Yo(1),Os("ngForOf",i.counter(10)),Yo(6),wl(ec(42,39,"lang.defaultColor")),Yo(2),Os("ngModel",i.preferenceInfo.writingColor),Yo(2),wl(ec(46,41,"lang.black")),Yo(3),wl(ec(49,43,"lang.blue")),Yo(3),wl(ec(52,45,"lang.red")),Yo(3),ol("background-color",i.preferenceInfo.writingColor),Yo(5),wl(ec(60,47,"lang.signatureScaling")),Yo(5),Os("disabled",i.originalSize)("ngModel",i.signatureScaling),Yo(3),Os("ngIf",!i.originalSize),Yo(4),wl(ec(72,49,"lang.originalSize")),Yo(2),Os("checked",i.originalSize)}}function M1(e,t){if(1&e){var n=Fs();Is(0,"ion-list"),Is(1,"ion-item"),Ms(2,"ion-input",68),Is(3,"ion-button",69),js("click",function(){return En(n),qs(2).deleteSubstitute()}),Ms(4,"ion-icon",70),Ts(),Ts(),Ts()}if(2&e){var i=qs(2);Yo(2),Os("value",i.authService.user.substituteUser)}}function B1(e,t){if(1&e){var n=Fs();Is(0,"ion-list"),Is(1,"ion-item"),Is(2,"ion-searchbar",71),js("ionChange",function(e){return En(n),qs(2).test(e)}),$u(3,"translate"),Ts(),Ts(),Ts()}2&e&&(Yo(2),Os("placeholder",ec(3,1,"lang.chooseSubstitute")))}function R1(e,t){if(1&e&&(Is(0,"ion-note",2),bl(1),Ts()),2&e){var n=qs().$implicit;Yo(1),wl(n.email)}}function L1(e,t){1&e&&(Is(0,"ion-note",76),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.delegatedUser")))}function F1(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-checkbox",73),js("ionChange",function(e){return En(n),qs(3).selectSubstitute(e.detail.value)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Ss(4,R1,2,1,"ion-note",74),Ss(5,L1,3,3,"ion-note",75),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("disabled",i.substitute)("value",i),Yo(2),xl("",i.firstname," ",i.lastname,""),Yo(1),Os("ngIf",!i.substitute),Yo(1),Os("ngIf",i.substitute)}}function N1(e,t){if(1&e&&(Is(0,"ion-list"),Ss(1,F1,6,6,"ion-item",72),Ts()),2&e){var n=qs(2);Yo(1),Os("ngForOf",n.userList)}}function V1(e,t){if(1&e){var n=Fs();Is(0,"button",80),js("click",function(){En(n);var e=t.index;return qs(3).toggleSignature(e)}),Ms(1,"img",81),Ts()}if(2&e){var i=t.$implicit,r=qs(3);al("selected",i.substituted),Yo(1),Os("src",r.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Kr)}}function z1(e,t){if(1&e&&(Bs(0),Is(1,"ion-item",28),Is(2,"ion-label",77),bl(3),$u(4,"translate"),Ts(),Ts(),Is(5,"div",78),Ss(6,V1,2,3,"button",79),Ts(),Rs()),2&e){var n=qs(2);Yo(3),kl(" ",ec(4,2,"lang.signSubstituted")," : "),Yo(3),Os("ngForOf",n.signaturesService.signaturesList)}}function j1(e,t){if(1&e&&(Bs(0),Ss(1,M1,5,1,"ion-list",16),Ss(2,B1,4,3,"ion-list",16),Ss(3,N1,2,1,"ion-list",16),Ss(4,z1,7,4,"ng-container",16),Rs()),2&e){var n=qs();Yo(1),Os("ngIf",null!==n.authService.user.substitute),Yo(1),Os("ngIf",null===n.authService.user.substitute),Yo(1),Os("ngIf",null===n.authService.user.substitute),Yo(1),Os("ngIf",null!=n.authService.user.substitute&&n.signaturesService.signaturesList.length>0)}}function H1(e,t){1&e&&(Bs(0),Ms(1,"app-signatures",82),Rs()),2&e&&(Yo(1),Os("target","profile"))}function U1(e,t){if(1&e){var n=Fs();Is(0,"ion-footer",83),Is(1,"ion-toolbar"),Is(2,"ion-buttons",84),Is(3,"ion-button",85),js("click",function(){return En(n),qs().submitProfile()}),Is(4,"ion-label"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs(),r=Es(32);Yo(3),Os("disabled",i.allowValidate()||!r.form.valid),Yo(2),wl(ec(6,2,"lang.save"))}}var W1,G1=function(){return["info","pref"]},q1=((W1=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){Z(this,e),this.http=t,this.sanitizer=n,this.notificationService=i,this.signaturesService=r,this.authService=o,this.filtersService=a,this.modalController=s,this.renderer=l,this.translate=u,this.alertController=c,this.cookieService=d,this.router=h,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}return Y(e,[{key:"ngOnInit",value:function(){this.initProfileInfo(),this.getPassRules()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"test",value:function(e){var t=this;""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Mw(function(e){t.userList=e.filter(function(e){return e.id!==t.profileInfo.id})}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"initProfileInfo",value:function(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}},{key:"initTab",value:function(e){var t=this;this.currentTool=e,"pref"===e&&setTimeout(function(){t.drawSample()},200)}},{key:"closeProfile",value:function(){var e=this;setTimeout(function(){e.initProfileInfo()},200),this.dismissModal()}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"allowValidate",value:function(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}},{key:"submitProfile",value:function(){return b1(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(Mw(function(){t.disableState=!1,t.msgButton="lang.validate",t.setLang(t.preferenceInfo.lang),t.cookieService.set("maarchParapheurLang",t.preferenceInfo.lang)}),ZH(function(){return"default"===t.authService.authMode?t.http.put("../rest/users/"+t.authService.user.id,t.profileInfo):new Promise(function(e){e(!0)})}),ZH(function(){if(t.authService.updateUserInfoWithTokenRefresh(),""===t.password.newPassword)return t.closeProfile(),t.notificationService.success("lang.profileUpdated"),nb(!1);if("default"===t.authService.authMode){var e=new ub({Authorization:"Bearer "+t.authService.getToken()});return t.http.put("../rest/users/"+t.authService.user.id+"/password",t.password,{observe:"response",headers:e})}return nb(!1)}),rb(function(e){return!!e}),Mw(function(e){t.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),t.password.newPassword="",t.password.passwordConfirmation="",t.password.currentPassword="",t.notificationService.success("lang.profileUpdated")}),yw(function(e){return 401===e.status?t.notificationService.error("lang.wrongPassword"):t.notificationService.handleErrors(e),nb(!1)})).subscribe();case 1:case"end":return e.stop()}},e,this)}))}},{key:"changePicture",value:function(){var e=this;this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(Mw(function(){e.authService.user.picture=e.avatarInfo.picture,e.notificationService.success("lang.profileUpdated")}),Lw(function(){e.msgButton="lang.validate",e.disableState=!1})).subscribe()}},{key:"selectSubstitute",value:function(e){var t=this;this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(function(){t.authService.updateUserInfoWithTokenRefresh(),t.filtersService.resfreshDocuments(),t.signaturesService.documentsList.length>0&&!1===t.signaturesService.documentsList[t.signaturesService.indexDocumentsList].owner&&t.router.navigate(["/documents"]),t.notificationService.success("lang.substituteEnabled")})}},{key:"deleteSubstitute",value:function(){return b1(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){var e=n.signaturesService.signaturesList.filter(function(e){return e.substituted});n.profileInfo.substitute=null,n.http.put("../rest/users/"+n.authService.user.id+"/substitute",{substitute:n.profileInfo.substitute}).pipe(Mw(function(t){n.authService.updateUserInfoWithTokenRefresh(),n.filtersService.resfreshDocuments(),e.length>0&&e.forEach(function(e){n.http.patch("../rest/users/"+n.authService.user.id+"/signatures/"+e.id+"/substituted",{substituted:!1}).pipe(Mw(function(){n.signaturesService.signaturesList.find(function(t){return t.id===e.id}).substituted=!1}),yw(function(e){return n.notificationService.handleErrors(e),nb(!1)})).subscribe()}),n.signaturesService.documentsList.length>0&&!1===n.signaturesService.documentsList[n.signaturesService.indexDocumentsList].owner&&n.router.navigate(["/documents"]),n.notificationService.success("lang.substitutionDeleted")}),yw(function(e){return n.notificationService.handleErrors(e),nb(!1)})).subscribe()}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"handleFileInput",value:function(e){var t=this;this.passwordContent&&this.passwordContent.close();var n=e.item(0);if(n.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var n=new Image;n.src=i.result.toString(),t.avatarInfo.picture=i.result,n.onload=function(){return t.fixImgOrientation(n)}},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}},{key:"fixImgOrientation",value:function(e){var t=this;y1.getData(e,function(){var n=0;switch(y1.getTag(e,"Orientation")){case 3:n=180;break;case 6:n=90;break;case 8:n=-90}t.avatarInfo.pictureOrientation=n,t.changePicture()})}},{key:"drawSample",value:function(){var e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}},{key:"initProfileTab",value:function(e){1===e.index&&this.drawSample()}},{key:"counter",value:function(e){return new Array(e)}},{key:"setLang",value:function(e){this.translate.use(e)}},{key:"toggleSignature",value:function(e){var t=this;this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(function(){t.signaturesService.signaturesList[e].substituted=!t.signaturesService.signaturesList[e].substituted,t.notificationService.success("lang.modificationSaved")})}}]),e}()).\u0275fac=function(e){return new(e||W1)(Ps(Tb),Ps(pp),Ps(WP),Ps($P),Ps(tO),Ps(eW),Ps(LE),Ps(Jl),Ps(zP),Ps(ME),Ps(oT),Ps(h_))},W1.\u0275cmp=Ft({type:W1,selectors:[["app-my-profile"]],viewQuery:function(e,t){var n;1&e&&bc(w1,1),2&e&&yc(n=kc())&&(t.passwordContent=n.first)},decls:39,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],["value","signatures"],["name","pencil-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[3,"target"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.dismissModal()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-header"),Is(9,"ion-toolbar"),Is(10,"ion-segment",5),js("ionChange",function(e){return t.initTab(e.detail.value)}),Is(11,"ion-segment-button",6),Is(12,"ion-label"),bl(13),$u(14,"translate"),Ts(),Ms(15,"ion-icon",7),Ts(),Is(16,"ion-segment-button",8),Is(17,"ion-label"),bl(18),$u(19,"translate"),Ts(),Ms(20,"ion-icon",9),Ts(),Is(21,"ion-segment-button",10),Is(22,"ion-label"),bl(23),$u(24,"translate"),Ts(),Ms(25,"ion-icon",11),Ts(),Is(26,"ion-segment-button",12),Is(27,"ion-label"),bl(28),$u(29,"translate"),Ts(),Ms(30,"ion-icon",13),Ts(),Ts(),Ts(),Ts(),Is(31,"form",14,15),js("ngSubmit",function(){return t.submitProfile()}),Is(33,"ion-content"),Ss(34,C1,30,27,"ng-container",16),Ss(35,T1,74,51,"ng-container",16),Ss(36,j1,5,4,"ng-container",16),Ss(37,H1,2,1,"ng-container",16),Ts(),Ts(),Ss(38,U1,7,4,"ion-footer",17)),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,12,"lang.myProfil")),Yo(7),Os("value",t.currentTool),Yo(3),wl(ec(14,14,"lang.informations")),Yo(5),wl(ec(19,16,"lang.preferences")),Yo(5),wl(ec(24,18,"lang.substitute")),Yo(5),wl(ec(29,20,"lang.signatures")),Yo(6),Os("ngIf","info"===t.currentTool),Yo(1),Os("ngIf","pref"===t.currentTool),Yo(1),Os("ngIf","deleg"===t.currentTool),Yo(1),Os("ngIf","signatures"===t.currentTool),Yo(1),Os("ngIf",Yu(22,G1).indexOf(t.currentTool)>-1))},directives:[kS,tE,$S,aS,oS,xS,GS,CA,qS,IS,yy,Fm,py,pS,jh,TS,ES,nS,SS,SA,Yy,Ky,Lm,my,Xy,MS,FS,eE,xA,YS,Vh,ZS,US,fS,zS,WS,dS,wF,HU,bS],pipes:[jP],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),W1);function Y1(e,t){if(1&e){var n=Fs();Is(0,"ion-button",3),js("click",function(){return En(n),qs().menu.open("left-menu")}),bl(1),$u(2,"translate"),Ts()}2&e&&(Yo(1),kl(" ",ec(2,1,"lang.accessMenu")," "))}var Z1,K1=((Z1=function(){function e(t,n,i,r){Z(this,e),this.signaturesService=t,this.translate=n,this.menu=i,this.modalController=r,this.loading=!1}return Y(e,[{key:"ngOnInit",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}]),e}()).\u0275fac=function(e){return new(e||Z1)(Ps($P),Ps(zP),Ps(RE),Ps(LE))},Z1.\u0275cmp=Ft({type:Z1,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Is(0,"ion-content",0),Ms(1,"mat-icon",1),Ss(2,Y1,3,3,"ion-button",2),Ts()),2&e&&(Yo(2),Os("ngIf",t.signaturesService.mobileMode))},directives:[pS,_N,jh,oS],pipes:[jP],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),Z1),Q1=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function X1(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",25),js("click",function(){En(n);var e=qs().$implicit,t=qs().index;return qs().goToSignUserPage(t,e.page)}),$u(1,"translate"),Is(2,"ion-label"),bl(3),Ts(),Ts()}if(2&e){var i=qs().$implicit,r=qs().index,o=qs();Os("title",ec(1,3,"lang.accessToPage")+" "+i.page)("color",r===o.currentUser&&i.page===o.currentPage?"primary":"medium"),Yo(3),wl(i.page)}}function J1(e,t){if(1&e&&(Bs(0),Ss(1,X1,4,5,"ion-chip",24),Rs()),2&e){var n=t.$implicit,i=qs().index;Yo(1),Os("ngIf",n.sequence==i)}}function $1(e,t){if(1&e&&(Is(0,"ion-segment-button",21),Is(1,"ion-label"),Is(2,"h2"),bl(3),Ts(),Is(4,"p",22),Ss(5,J1,2,1,"ng-container",7),Ts(),Ts(),Ms(6,"ion-icon",23),Ts()),2&e){var n=t.$implicit,i=t.index,r=qs();Os("value",i),Yo(3),wl(n.userDisplay),Yo(2),Os("ngForOf",r.signList),Yo(1),Os("name","sign"===n.mode?"pencil-outline":"checkmark-done-outline")}}var e2=function(e,t){return{x:e,y:t}};function t2(e,t){if(1&e){var n=Fs();Is(0,"div",27),js("movingOffset",function(){return En(n),qs(2).dragging=!0})("endOffset",function(e){En(n);var t=qs(2);return t.moveSign(e,t.i)})("click",function(){En(n);var e=qs().$implicit,t=qs();return t.currentUser!=e.sequence&&t.goToSignUserPage(e.sequence,t.currentPage)}),Is(1,"ion-buttons",28),Is(2,"ion-button",29),js("click",function(){En(n);var e=qs().index;return qs().deleteSign(e)}),$u(3,"translate"),Ms(4,"ion-icon",30),Ts(),Ts(),Is(5,"span",31),bl(6),Ts(),bl(7),$u(8,"uppercase"),$u(9,"translate"),Ts()}if(2&e){var i=qs().$implicit,r=qs(),o=Es(11);ol("width",25,"%"),al("signDisabled",r.currentUser!==i.sequence)("hide",!r.pagesLoaded),Os("position",Ku(20,e2,i.position.positionX*r.workingAreaWidth/100,i.position.positionY*r.workingAreaHeight/100))("ngDraggable",r.currentUser===i.sequence)("preventDefaultEvent",!1)("bounds",o)("inBounds",!0),Yo(2),Os("title",ec(3,14,"lang.delete")),Yo(4),wl(r.getUserName(i.sequence)),Yo(1),kl(" ",ec(8,16,ec(9,18,"lang.signature"))," ")}}function n2(e,t){if(1&e&&(Bs(0),Ss(1,t2,10,23,"div",26),Rs()),2&e){var n=t.$implicit,i=qs();Yo(1),Os("ngIf",n.page===i.currentPage)}}function i2(e,t){if(1&e){var n=Fs();Is(0,"ion-button",32),js("click",function(){return En(n),qs().initSign()}),bl(1),$u(2,"translate"),Ts()}2&e&&(Yo(1),kl(" ",ec(2,1,"lang.createSignaturePosition"),""))}function r2(e,t){if(1&e&&(Is(0,"ion-select-option",33),bl(1),Ts()),2&e){var n=t.index;Os("value",t.$implicit),Yo(1),wl(n+1)}}function o2(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",36),js("click",function(){En(n);var e=qs(2);return e.changePage(e.currentPage-1)}),Ms(1,"ion-icon",37),Ts()}}function a2(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",38),js("click",function(){En(n);var e=qs(2);return e.changePage(e.currentPage+1)}),Ms(1,"ion-icon",39),Ts()}}function s2(e,t){if(1&e&&(Bs(0),Ss(1,o2,2,0,"ion-fab-button",34),Ss(2,a2,2,0,"ion-fab-button",35),Rs()),2&e){var n=qs();Yo(1),Os("ngIf",n.currentPage>1),Yo(1),Os("ngIf",n.currentPage<n.pages.length)}}var l2,u2,c2=((u2=function(){function e(t,n,i,r,o,a){Z(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.pdfViewerService=r,this.modalController=o,this.loadingController=a,this.workflow=[],this.resource=[],this.pdfContent=null,this.docIndex=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){e.load=t,e.load.present()}),this.resource.signPos&&this.initSignPos()}},{key:"initSignPos",value:function(){var e=this;this.workflow.forEach(function(t,n){var i;(null===(i=t.signaturePositions)||void 0===i?void 0:i.length)>0&&(e.signList=e.signList.concat(t.signaturePositions.filter(function(t){return t.mainDocument===e.resource.mainDocument&&t.docIndex===e.docIndex}).map(function(t){return Object.assign(Object.assign({},t),{sequence:n,docIndex:e.docIndex})})))})}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.formatData())}},{key:"onPagesLoaded",value:function(e){return Q1(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.pages=Array.from({length:e.pagesCount}).map(function(e,t){return t+1}),this.changePage(1);case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return Q1(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});case 2:t=e.sent,this.getImageDimensions(t),this.imgContent=t,this.pagesLoaded=!0;case 4:case"end":return e.stop()}},e,this)}))}},{key:"getImageDimensions",value:function(e){var t=this,n=new Image;n.onload=function(e){t.workingAreaWidth=e.target.naturalWidth,t.workingAreaHeight=e.target.naturalHeight},n.src=e}},{key:"changePage",value:function(e){this.currentPage=e,this.exportAsImage()}},{key:"moveSign",value:function(e,t){var n=this,i=100*e.x/this.workingAreaWidth,r=100*e.y/this.workingAreaHeight;i=(i=i<0?0:i)>100?100:i,r=(r=r<0?0:r)>100?100:r,this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionX=i,this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionY=r,this.dragging=!1}},{key:"emptySign",value:function(){var e=this;return 0===this.signList.filter(function(t){return t.sequence===e.currentUser&&t.page===e.currentPage}).length}},{key:"initSign",value:function(){this.signList.push({sequence:this.currentUser,page:this.currentPage,docIndex:this.docIndex,position:{positionX:75,positionY:90}});var e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach(function(t,n){if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}},{key:"getUserSignPosPage",value:function(e){return this.signList.filter(function(t){return t.sequence===e})}},{key:"selectUser",value:function(e){this.currentUser=+e}},{key:"getUserName",value:function(e){return this.workflow[e].userDisplay}},{key:"goToSignUserPage",value:function(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}},{key:"deleteSign",value:function(e){this.signList.splice(e,1)}},{key:"formatData",value:function(){var e=this,t=[];return this.workflow.forEach(function(n,i){e.signList.filter(function(e){return e.sequence===i}).length>0&&(t=t.concat(e.signList.filter(function(e){return e.sequence===i})))}),t}},{key:"imageLoaded",value:function(e){this.load.dismiss()}}]),e}()).\u0275fac=function(e){return new(e||u2)(Ps(zP),Ps(Tb),Ps($P),Ps(UD),Ps(LE),Ps(BE))},u2.\u0275cmp=Ft({type:u2,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent",docIndex:"docIndex"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Ts(),Is(5,"ion-toolbar",1),Is(6,"ion-segment",2),js("ionChange",function(e){return t.selectUser(e.detail.value)}),Ss(7,$1,7,4,"ion-segment-button",3),Ts(),Ts(),Ts(),Is(8,"ion-content"),Is(9,"drag-scroll",4),Is(10,"div",5,6),Ss(12,n2,2,1,"ng-container",7),Is(13,"ion-img",8),js("ionImgDidLoad",function(e){return t.imageLoaded(e)}),Ts(),Ss(14,i2,3,3,"ion-button",9),Ts(),Ts(),Is(15,"ngx-extended-pdf-viewer",10),js("pdfLoaded",function(e){return t.onPagesLoaded(e)}),Ts(),Is(16,"section",11),Is(17,"div",12),bl(18),Ts(),Is(19,"div",13),js("click",function(){En(n);var e=Es(23);return t.pages.length>1&&e.open()}),bl(20),$u(21,"translate"),Ts(),Is(22,"ion-select",14,15),js("ionChange",function(e){return t.changePage(e.target.value)}),$u(24,"translate"),Ss(25,r2,2,2,"ion-select-option",16),Ts(),Ts(),Ss(26,s2,3,2,"ng-container",17),Ts(),Is(27,"ion-footer",18),Is(28,"div"),Is(29,"ion-button",19),js("click",function(){return t.onSubmit()}),Is(30,"ion-label"),bl(31),$u(32,"translate"),Ts(),Ts(),Is(33,"ion-button",20),js("click",function(){return t.modalController.dismiss()}),Is(34,"ion-label"),bl(35),$u(36,"translate"),Ts(),Ts(),Ts(),Ts()}2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,25,"lang.adminSignaturesPositions")),Yo(3),Os("value",t.currentUser),Yo(1),Os("ngForOf",t.workflow),Yo(2),Os("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),Yo(1),ol("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),Yo(2),Os("ngForOf",t.signList),Yo(1),Os("src",t.imgContent),Yo(1),Os("ngIf",t.emptySign()),Yo(1),Os("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),Yo(3),wl(t.resource.title),Yo(2),_l("",ec(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),Yo(2),Os("cancelText",ec(24,29,"lang.cancel")),Yo(3),Os("ngForOf",t.pages),Yo(1),Os("ngIf",t.pages.length>1),Yo(5),wl(ec(32,31,"lang.save")),Yo(4),wl(ec(36,33,"lang.cancel")))},directives:[kS,tE,$S,GS,CA,Vh,pS,ZI,_S,jh,HD,YS,bS,oS,IS,qS,xS,hS,JI,aS,ZS,mS],pipes:[jP,pf],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),u2),d2=((l2=function(){function e(){Z(this,e),this.fileDropped=new ac,this.disabled=!1,this.background="none",this.opacity="1"}return Y(e,[{key:"onDragOver",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}},{key:"onDragLeave",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}},{key:"ondrop",value:function(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";var t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}]),e}()).\u0275fac=function(e){return new(e||l2)},l2.\u0275dir=Ut({type:l2,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&js("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&ol("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),l2),h2=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},f2=["appVisaWorkflow"],p2=["rightContent"],g2=["docToUpload"];function v2(e,t){1&e&&Ms(0,"ion-icon",34)}function m2(e,t){1&e&&Ms(0,"ion-icon",35)}function y2(e,t){1&e&&Ms(0,"i",36)}function b2(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-buttons",2),Is(2,"ion-button",22),js("click",function(){var e=t.$implicit;return e.mainDocument=!e.mainDocument}),$u(3,"translate"),$u(4,"translate"),Ss(5,v2,1,0,"ion-icon",23),Ss(6,m2,1,0,"ion-icon",24),Ts(),Ts(),Is(7,"ion-item",25),Is(8,"ion-label",26),bl(9),$u(10,"translate"),Ts(),Is(11,"ion-input",27),js("ngModelChange",function(e){return t.$implicit.reference=e}),$u(12,"translate"),Ts(),Ts(),Is(13,"ion-item",25),Is(14,"ion-label",26),bl(15),$u(16,"translate"),Ts(),Is(17,"ion-input",28),js("ngModelChange",function(e){return t.$implicit.title=e}),$u(18,"translate"),Ts(),Ts(),Is(19,"ion-buttons",5),Is(20,"ion-button",29),js("click",function(){En(n);var e=t.index;return qs(2).signPos(e)}),$u(21,"translate"),Ss(22,y2,1,0,"i",30),Ms(23,"ion-icon",31),Ts(),Is(24,"ion-button",32),js("click",function(){En(n);var e=t.index;return qs(2).deleteFile(e)}),$u(25,"translate"),Ms(26,"ion-icon",33),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=qs(2);Yo(2),Os("title",i.mainDocument?ec(3,15,"lang.docToSign"):ec(4,17,"lang.attachDocToSign")),Yo(3),Os("ngIf",i.mainDocument),Yo(1),Os("ngIf",!i.mainDocument),Yo(3),wl(ec(10,19,"lang.reference")),Yo(2),Qs("placeholder",ec(12,21,"lang.fileReference")),Os("maxlength",53)("ngModel",i.reference)("disabled",!i.mainDocument),Yo(4),kl("",ec(16,23,"lang.subject")," *"),Yo(2),Qs("placeholder",ec(18,25,"lang.filename")),Os("ngModel",i.title),Yo(3),Os("disabled",!i.mainDocument)("title",ec(21,27,"lang.setSignaturesPosition")),Yo(2),Os("ngIf",void 0!==o.filesToUpload[r].signPos&&o.filesToUpload[r].signPos.length>0),Yo(2),Os("title",ec(25,29,"lang.delete"))}}function w2(e,t){if(1&e&&(Is(0,"ion-list"),Is(1,"ion-list-header"),Is(2,"ion-label",1),bl(3),$u(4,"translate"),Ts(),Ts(),Ss(5,b2,27,31,"ion-item",21),Ts()),2&e){var n=qs();Yo(3),wl(ec(4,2,"lang.documentsToUpload")),Yo(2),Os("ngForOf",n.filesToUpload)}}function k2(e,t){1&e&&Ms(0,"app-visa-workflow",37,38),2&e&&Os("editMode",!0)}var x2,_2=((x2=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){Z(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.datePipe=d,this.modalController=h,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}},{key:"getDocumentData",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/"+e).pipe(Mw(function(i){var r="",o=i.document.reference.split("/");(o=o.slice(3,o.length)).length>0&&(r=o.join("/")),t.filesToUpload.push({title:i.document.title,reference:r,mainDocument:!0,content:"",linkId:i.document.linkId,metadata:i.document.metadata}),t.getDocumentContent(e),t.appVisaWorkflow.loadWorkflow(i.document.workflow.map(function(e){return e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes})}));for(var a=0;a<i.document.attachments.length;a++)t.getAttachment(i.document.attachments[a].id);n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"getDocumentContent",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/".concat(e,"/content?type=original")).pipe(Mw(function(e){t.filesToUpload[0].content=e.encodedDocument,n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"getAttachment",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/attachments/"+e).pipe(Mw(function(e){t.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"onSubmit",value:function(){this.isValid()&&this.promptSaveDoc()}},{key:"promptSaveDoc",value:function(){return h2(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){n.loadingController.create({message:n.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return h2(n,void 0,void 0,U().mark(function n(){var i,r;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.present(),i=this.formatData(e.note),r=0;case 3:if(!(r<i.length)){n.next=9;break}return n.next=6,this.saveDocument(i,r);case 6:r++,n.next=3;break;case 9:t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]));case 10:case"end":return n.stop()}},n,this)}))})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveDocument",value:function(e,t){var n=this;return e.forEach(function(t){t.workflow.forEach(function(n){n.signaturePositions=n.signaturePositions.filter(function(n){return n.docIndex===e.indexOf(t)})})}),new Promise(function(i){n.http.post("../rest/documents",e[t]).pipe(Mw(function(){n.errors=[]}),Lw(function(){return i(!0)}),yw(function(i){return n.errors.push(e[t].title),n.notificationService.handleErrors(i),nb(!1)})).subscribe()})}},{key:"formatData",value:function(e){var t=this,n=new Date,i=null,r=null;""!==e&&(i={value:e,creator:"".concat(this.authService.user.firstname," ").concat(this.authService.user.lastname),creationDate:this.datePipe.transform(n,"dd-MM-y")});var o=[],a=this.filesToUpload.filter(function(e){return e.mainDocument}),s=this.filesToUpload.filter(function(e){return!e.mainDocument});return a.length>1&&(r=this.datePipe.transform(n,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),a.forEach(function(e){var a={};null!==t.fromDocument&&e.metadata.forEach(function(e){a[e.label]=e.value});var l="";""!==e.reference&&(l=t.datePipe.transform(n,"y/MM/dd")+"/"+e.reference),o.push({title:e.title,reference:l,encodedDocument:e.content,isZipped:!1,linkId:null!==t.fromDocument?e.linkId:r,sender:"".concat(t.authService.user.firstname," ").concat(t.authService.user.lastname),notes:i,attachments:s.map(function(e){return{title:e.title,encodedDocument:e.content}}),workflow:t.appVisaWorkflow.getCurrentWorkflow().map(function(n,i){return{userId:n.userId,mode:t.authService.getWorkflowMode(n.role),signatureMode:t.authService.getSignatureMode(n.role),signaturePositions:void 0!==n.signaturePositions?t.formatPositions(n.signaturePositions.filter(function(t){return t.mainDocument===e.mainDocument&&void 0!==e.signPos})).map(function(e){return{page:e.page,docIndex:e.docIndex,positionX:e.position.positionX,positionY:e.position.positionY}}):[]}}),metadata:a})}),o}},{key:"formatPositions",value:function(e){return delete e.mainDocument,e}},{key:"dndUploadFile",value:function(e){this.uploadTrigger({target:{files:[e[0]]}})}},{key:"uploadTrigger",value:function(e){var t=this;this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(n){return h2(t,void 0,void 0,U().mark(function t(){var i,r,o=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.present(),e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(i=function(t){var i=e.target.files[t].name,r={title:i.substr(0,i.lastIndexOf(".")),reference:i.substr(0,i.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},a=new FileReader;a.readAsArrayBuffer(e.target.files[t]),a.onload=function(e){r.mainDocument=0===o.filesToUpload.length,r.reference=0===o.filesToUpload.length?r.reference:"",r.content=o.getBase64Document(e.target.result),o.filesToUpload.push(r),1===o.filesToUpload.length&&setTimeout(function(){o.menu.open("right-menu")},500)},t===e.target.files.length-1&&n.dismiss()},r=0;r<e.target.files.length;r++)i(r);this.fileImport.nativeElement.value=""}else this.loading=!1,n.dismiss();case 1:case"end":return t.stop()}},t,this)}))})}},{key:"isExtensionAllowed",value:function(e){for(var t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}},{key:"getBase64Document",value:function(e){var t=new Uint8Array(e).reduce(function(e,t){return e+String.fromCharCode(t)},"");return btoa(t)}},{key:"deleteFile",value:function(e){this.filesToUpload.splice(e,1),0===this.filesToUpload.length&&this.appVisaWorkflow.getCurrentWorkflow().forEach(function(e){e.signaturePositions=[]})}},{key:"signPos",value:function(e){return h2(this,void 0,void 0,U().mark(function t(){var n,i,r,o=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.appVisaWorkflow.getCurrentWorkflow().length>0)){t.next=14;break}return this.appVisaWorkflow.getCurrentWorkflow().forEach(function(e,t){void 0===e.signaturePositions&&(o.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])}),t.next=4,this.modalController.create({component:c2,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content,docIndex:this.filesToUpload.indexOf(this.filesToUpload[e])}});case 4:return n=t.sent,t.next=7,n.present();case 7:return t.next=9,n.onWillDismiss();case 9:i=t.sent,void 0!==(r=i.data)&&(this.filesToUpload[e].signPos=r,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload,e,r)),t.next=15;break;case 14:this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions");case 15:case"end":return t.stop()}},t,this)}))}},{key:"isValid",value:function(){return this.filesToUpload.filter(function(e){return""===e.title}).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(function(e){return e.mainDocument}).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}]),e}()).\u0275fac=function(e){return new(e||x2)(Ps(Tb),Ps(zP),Ps(h_),Ps(RE),Ps($P),Ps(Mu),Ps(WP),Ps(tO),Ps(BE),Ps(ME),Ps(gf),Ps(LE))},x2.\u0275cmp=Ft({type:x2,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(bc(f2,1),bc(p2,3),bc(g2,1)),2&e&&(yc(n=kc())&&(t.appVisaWorkflow=n.first),yc(n=kc())&&(t.rightContent=n.first),yc(n=kc())&&(t.fileImport=n.first))},features:[Hl([gf])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ts(),Is(4,"ion-title",4),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-buttons",5),Is(8,"ion-menu-button",6),Ms(9,"ion-icon",7),Ts(),Ts(),Ts(),Ts(),Is(10,"ion-content"),Is(11,"div",8),Ss(12,w2,6,4,"ion-list",9),Is(13,"input",10,11),js("change",function(e){return t.uploadTrigger(e)}),Ts(),Is(15,"div",12),js("fileDropped",function(e){return t.dndUploadFile(e)}),Is(16,"ion-button",13),js("click",function(){return En(n),Es(14).click()}),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-item",14),Is(20,"ion-label",15),bl(21),$u(22,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Is(23,"ion-footer",16),Is(24,"div",17),Is(25,"ion-button",18),js("click",function(){return t.onSubmit()}),Is(26,"ion-label",19),bl(27),$u(28,"translate"),Ts(),Ts(),Ts(),Ts(),Ss(29,k2,2,1,"ng-template",null,20,Cc)}2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,6,"lang.newDocumentToVisa")),Yo(7),Os("ngIf",t.filesToUpload.length>0),Yo(5),kl(" ",ec(18,8,"lang.chooseDocuments")," "),Yo(4),kl(" ",ec(22,10,"lang.dndDocuments")," "),Yo(6),wl(ec(28,12,"lang.validate")))},directives:[kS,tE,aS,RS,$S,xS,pS,jh,d2,oS,ES,IS,bS,TS,MS,Vh,SS,SA,Ky,Lm,my,K$],pipes:[jP],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),x2),A2=["searchInput"];function C2(e,t){if(1&e){var n=Fs();Is(0,"ion-searchbar",6,7),js("ngModelChange",function(e){return En(n),qs().searchValue=e})("ionChange",function(e){return En(n),qs().getDatas(e)}),$u(2,"translate"),Ts()}2&e&&Os("ngModel",qs().searchValue)("placeholder",ec(2,2,"lang.search"))}function S2(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-checkbox",10),js("ionChange",function(e){return En(n),qs(2).selectItem(e.detail.value)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Is(4,"ion-note",11),bl(5),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("value",i),Yo(2),xl("",i.firstname," ",i.lastname,""),Yo(2),wl(i.email)}}function E2(e,t){if(1&e&&(Is(0,"ion-list",8),Ss(1,S2,6,4,"ion-item",9),Ts()),2&e){var n=qs();Yo(1),Os("ngForOf",n.itemList)}}function P2(e,t){1&e&&(Is(0,"ion-label",12),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.noItem")))}function O2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",13),js("click",function(){En(n);var e=t.index;return qs().removeItem(e)}),Is(1,"ion-label",14),bl(2),Ts(),Ms(3,"ion-icon",15),Ts()}if(2&e){var i=t.$implicit;Yo(2),xl("",i.firstname," ",i.lastname,"")}}function D2(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",11),Is(1,"ion-button",16),js("click",function(){return En(n),qs().toggleEdit()}),Is(2,"ion-label",17),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()}2&e&&(Yo(3),wl(ec(4,1,"lang.edit")))}var I2,T2=((I2=function(){function e(t,n){Z(this,e),this.http=t,this.notificationService=n,this.currentItems=[],this.selectedOpt=new ac,this.myControl=new uy,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"getDatas",value:function(e){var t=this;""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Mw(function(e){t.itemList=e}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"selectItem",value:function(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}},{key:"removeItem",value:function(e){this.currentItems.splice(e,1)}},{key:"toggleEdit",value:function(){var e=this;this.editMode=!this.editMode,this.editMode&&setTimeout(function(){e.searchInput.setFocus()},0)}}]),e}()).\u0275fac=function(e){return new(e||I2)(Ps(Tb),Ps(WP))},I2.\u0275cmp=Ft({type:I2,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){var n;1&e&&bc(A2,1),2&e&&yc(n=kc())&&(t.searchInput=n.first)},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(Ss(0,C2,3,4,"ion-searchbar",0),Ss(1,E2,2,1,"ion-list",1),Is(2,"ion-list"),Is(3,"ion-item",2),Ss(4,P2,3,3,"ion-label",3),Is(5,"p"),Ss(6,O2,4,2,"ion-chip",4),Ts(),Ss(7,D2,5,3,"ion-buttons",5),Ts(),Ts()),2&e&&(Os("ngIf",t.editMode),Yo(1),Os("ngIf",t.itemList.length>0),Yo(3),Os("ngIf",0===t.currentItems.length),Yo(2),Os("ngForOf",t.currentItems),Yo(1),Os("ngIf",!t.editMode))},directives:[jh,TS,ES,Vh,WS,SA,Lm,my,dS,xA,IS,FS,hS,xS,aS,oS],pipes:[jP],styles:[""]}),I2),M2=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},B2=["appVisaWorkflow"],R2=["rightContent"];function L2(e,t){1&e&&Ms(0,"ion-icon",26)}function F2(e,t){1&e&&Ms(0,"ion-icon",27)}function N2(e,t){1&e&&Ms(0,"ion-icon",28)}function V2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",21),js("click",function(){En(n);var e=qs().$implicit;return qs(2).removeFilter(e)}),$u(1,"translate"),Ss(2,L2,1,0,"ion-icon",22),Ss(3,F2,1,0,"ion-icon",23),Ss(4,N2,1,0,"ion-icon",24),Is(5,"ion-label"),bl(6),Ts(),Ms(7,"ion-icon",25),Ts()}if(2&e){var i=qs().$implicit;Os("title",ec(1,5,"lang."+i.id+"Search")),Yo(2),Os("ngIf","title"===i.id),Yo(1),Os("ngIf","reference"===i.id),Yo(1),Os("ngIf","documentId"===i.id),Yo(2),wl(i.val)}}function z2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",21),js("click",function(){En(n);var e=t.$implicit,i=qs(2).$implicit;return qs(2).removeFilter(i,e.id)}),$u(1,"translate"),Ms(2,"ion-icon",30),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Ms(6,"ion-icon",25),Ts()}if(2&e){var i=t.$implicit;Os("title",ec(1,2,"lang.workflowStatesSearch")),Yo(4),wl(ec(5,4,i.label))}}function j2(e,t){if(1&e&&(Is(0,"div"),Ss(1,z2,7,6,"ion-chip",29),Ts()),2&e){var n=qs().$implicit;Yo(1),Os("ngForOf",n.val)}}function H2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",21),js("click",function(){En(n);var e=t.$implicit,i=qs(2).$implicit;return qs(2).removeFilter(i,e)}),$u(1,"translate"),Ms(2,"ion-icon",31),Is(3,"ion-label"),bl(4),Ts(),Ms(5,"ion-icon",25),Ts()}if(2&e){var i=t.$implicit;Os("title",ec(1,3,"lang.workflowUsersSearch")),Yo(4),xl("",i.firstname," ",i.lastname,"")}}function U2(e,t){if(1&e&&(Is(0,"div"),Ss(1,H2,6,5,"ion-chip",29),Ts()),2&e){var n=qs().$implicit;Yo(1),Os("ngForOf",n.val)}}function W2(e,t){if(1&e&&(Is(0,"div"),Ss(1,V2,8,7,"ion-chip",20),Ss(2,j2,2,1,"div",10),Ss(3,U2,2,1,"div",10),Ts()),2&e){var n=t.$implicit;Yo(1),Os("ngIf",("title"===n.id||"reference"===n.id||"documentId"===n.id)&&""!==n.val),Yo(1),Os("ngIf","workflowStates"===n.id&&n.val.length>0),Yo(1),Os("ngIf","workflowUsers"===n.id&&n.val.length>0)}}function G2(e,t){if(1&e){var n=Fs();Is(0,"ion-toolbar",14),Is(1,"div",15),Is(2,"ion-button",16),js("click",function(){return En(n),qs().clearFilters()}),$u(3,"translate"),Ms(4,"ion-icon",17),Ts(),Is(5,"div",18),Ss(6,W2,4,3,"div",19),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(2),Os("title",ec(3,2,"lang.clearFilters")),Yo(4),Os("ngForOf",i.currentFilters)}}function q2(e,t){1&e&&(Is(0,"ion-list",32),Is(1,"ion-item",33),Is(2,"ion-label",34),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.noResult")))}function Y2(e,t){1&e&&Ms(0,"ion-icon",57)}function Z2(e,t){1&e&&Ms(0,"ion-icon",58)}function K2(e,t){1&e&&Ms(0,"ion-icon",59)}function Q2(e,t){if(1&e&&(Is(0,"ion-badge",60),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Yo(1),wl(ec(2,1,"lang."+n.mode+"User"))}}var X2=function(){return["END","STOP"]};function J2(e,t){if(1&e&&(Bs(0),Ss(1,Y2,1,0,"ion-icon",52),Is(2,"span",53),bl(3),$u(4,"translate"),Ss(5,Z2,1,0,"ion-icon",54),Ss(6,K2,1,0,"ion-icon",55),Ss(7,Q2,3,3,"ion-badge",56),Ts(),Rs()),2&e){var n=t.$implicit,i=t.index,r=qs(3);Yo(1),Os("ngIf",i>0),Yo(1),al("success",null!==n.processDate&&"STOP"!==n.status)("typist-interrupt","REF"===n.status)("interrupt",null===n.processDate&&"END"===n.status||"STOP"===n.status)("current",n.current)("no-visa",null===n.processDate&&null===n.status&&!n.current),Yo(1),kl("",r.functionsService.empty(n.userDisplay)?ec(4,15,"lang.userDeleted"):n.userDisplay,"\xa0 "),Yo(2),Os("ngIf",null!==n.processDate&&"REF"!==n.status&&"STOP"!==n.status),Yo(1),Os("ngIf",null!==n.processDate&&"REF"===n.status),Yo(1),Os("ngIf",null===n.processDate&&(null===n.status||Yu(17,X2).indexOf(n.status)>-1))}}function $2(e,t){1&e&&Ms(0,"ion-icon",61)}function e3(e,t){1&e&&Ms(0,"ion-icon",62)}function t3(e,t){1&e&&Ms(0,"ion-icon",63)}function n3(e,t){1&e&&Ms(0,"ion-icon",64)}function i3(e,t){if(1&e&&(Bs(0),Ms(1,"ion-icon",66),bl(2),Rs()),2&e){var n=t.$implicit;Yo(2),kl(" ",n," ")}}function r3(e,t){if(1&e&&(Is(0,"p",65),Ss(1,i3,3,1,"ng-container",19),Ts()),2&e){var n=qs().$implicit;Yo(1),Os("ngForOf",n.reason)}}function o3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",67),js("click",function(e){En(n);var t=qs().$implicit,i=Es(7),r=qs(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),Ms(1,"ion-icon",68),Ts()}}function a3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",67),js("click",function(e){En(n);var t=qs().$implicit,i=Es(7),r=qs(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),Ms(1,"ion-icon",69),Ts()}}function s3(e,t){if(1&e){var n=Fs();Is(0,"ion-item-option",50),js("click",function(){En(n);var e=qs().$implicit;return qs(2).openPromptProof(e)}),Ms(1,"ion-icon",70),bl(2),$u(3,"translate"),Ts()}2&e&&(Yo(2),kl(" ",ec(3,1,"lang.download")," "))}function l3(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label"),Is(2,"ion-toolbar",37),Is(3,"ion-title",38),Is(4,"p",39),Ss(5,J2,8,18,"ng-container",19),Ts(),Ts(),Ts(),Is(6,"ion-item-sliding",40,41),js("ionDrag",function(e){En(n);var i=t.$implicit;return qs(2).onSliding(e,i.id)}),Is(8,"ion-item",33),Ss(9,$2,1,0,"ion-icon",42),Ss(10,e3,1,0,"ion-icon",43),Ss(11,t3,1,0,"ion-icon",44),Ss(12,n3,1,0,"ion-icon",45),Is(13,"ion-label",46),js("click",function(){En(n);var e=t.$implicit;return qs(2).goTo(e.id)}),$u(14,"translate"),Is(15,"p"),bl(16),Ts(),Is(17,"h2"),bl(18),Ts(),Ss(19,r3,2,1,"p",47),Ts(),Is(20,"ion-buttons",5),Ss(21,o3,2,0,"ion-button",48),Ss(22,a3,2,0,"ion-button",48),Ts(),Ts(),Is(23,"ion-item-options"),Ss(24,s3,4,3,"ion-item-option",49),Is(25,"ion-item-option",50),js("click",function(){En(n);var e=t.$implicit;return qs(2).openActions(e)}),Ms(26,"ion-icon",51),bl(27),$u(28,"translate"),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs(2);Yo(5),Os("ngForOf",i.workflow),Yo(4),Os("ngIf","PROG"==i.state),Yo(1),Os("ngIf","STOP"==i.state),Yo(1),Os("ngIf","VAL"==i.state),Yo(1),Os("ngIf","REF"==i.state),Yo(1),Os("title",ec(14,13,"lang.accessDocument")),Yo(3),wl(i.reference),Yo(2),wl(i.title),Yo(1),Os("ngIf",i.reason.length>0),Yo(2),Os("ngIf",r.openedLine===i.id),Yo(1),Os("ngIf",r.openedLine!==i.id),Yo(2),Os("ngIf","PROG"!==i.state),Yo(3),kl(" ",ec(28,15,"lang.actions")," ")}}function u3(e,t){if(1&e&&(Is(0,"ion-list"),Is(1,"ion-virtual-scroll",35),Ss(2,l3,29,17,"ion-item",36),Ts(),Ts()),2&e){var n=qs();Yo(1),Os("items",n.ressources)}}function c3(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-item"),Is(2,"ion-label",76),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-input",77),js("ngModelChange",function(e){return En(n),qs().$implicit.val=e})("keyup.enter",function(){return En(n),qs(3).launchSearch()})("ionChange",function(){return En(n),qs(3).checkInput()}),Ts(),Ts(),Rs()}if(2&e){var i=qs().$implicit;Yo(3),kl("",ec(4,3,"lang."+i.id+"Search")," "),Yo(2),Os("ngModel",i.val)("value",i.val)}}function d3(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Is(4,"ion-checkbox",79),js("ngModelChange",function(){En(n);var e=t.$implicit,i=qs(2).$implicit;return qs(2).toggleItem(i,e,!e.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),wl(ec(3,4,i.label)),Yo(2),Os("ngModel",i.selected)("checked",i.selected)("value",i.id)}}function h3(e,t){if(1&e&&(Bs(0),Is(1,"ion-list-header"),Is(2,"ion-label",78),bl(3),$u(4,"translate"),Ts(),Ts(),Ss(5,d3,5,6,"ion-item",19),Rs()),2&e){var n=qs().$implicit;Yo(3),wl(ec(4,2,"lang."+n.id+"Search")),Yo(2),Os("ngForOf",n.values)}}function f3(e,t){if(1&e&&(Bs(0),Is(1,"ion-list-header"),Is(2,"ion-label",78),bl(3),$u(4,"translate"),Ts(),Ts(),Ms(5,"plugin-autocomplete",80),Rs()),2&e){var n=qs().$implicit;Yo(3),wl(ec(4,2,"lang."+n.id+"Search")),Yo(2),Os("currentItems",n.val)}}function p3(e,t){if(1&e&&(Is(0,"ion-list"),Ss(1,c3,6,5,"ng-container",10),Ss(2,h3,6,4,"ng-container",10),Ss(3,f3,6,4,"ng-container",10),Ts()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","text"===n.type),Yo(1),Os("ngIf","checkbox"===n.type),Yo(1),Os("ngIf","autocompleteUsers"===n.type)}}function g3(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title",71),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content"),Ss(8,p3,4,3,"ion-list",19),Ts(),Is(9,"ion-footer",72),Is(10,"div",73),Is(11,"ion-button",74),js("click",function(){return En(n),qs().onSubmit()}),Is(12,"ion-label",75),bl(13),$u(14,"translate"),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(5),wl(ec(6,4,"lang.filters")),Yo(3),Os("ngForOf",i.filters),Yo(5),wl(ec(14,6,"lang.search"))}}var v3,m3,y3=((m3=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p){Z(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.actionSheetController=d,this.datePipe=h,this.functionsService=f,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this._activatedRoute.queryParamMap.subscribe(function(t){e.functionsService.empty(t.get("documentId"))||(e.documentId=t.get("documentId"),e.filters.filter(function(e){return"documentId"===e.id})[0].val=e.documentId,e.search())})}},{key:"ionViewWillEnter",value:function(){var e=this;this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(function(){e.menu.open("right-menu")},500)}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"toggleSlide",value:function(e,t){var n=this;e.getOpenAmount().then(function(i){0===i?(n.openedLine=t,e.open("end")):(n.openedLine="",e.close("end"))})}},{key:"onSliding",value:function(e,t){this.openedLine=1===e.detail.ratio?t:""}},{key:"onSubmit",value:function(){this.search(),this.menu.close("right-menu")}},{key:"toggleItem",value:function(e,t,n){if(n)e.val.push(t.id);else{var i=e.val.indexOf(t.id);e.val.splice(i,1)}}},{key:"formatDatas",value:function(){var e={};return JSON.parse(JSON.stringify(this.filters.filter(function(e){return"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0}))).forEach(function(t){e[t.id]="workflowUsers"===t.id?t.val.map(function(e){return e.id}):"workflowStates"===t.id?t.values.filter(function(e){return e.selected}).map(function(e){return e.id}):t.val}),e}},{key:"formatListDatas",value:function(e){var t=this;return e.map(function(e){return Object.assign(Object.assign({},e),{reason:t.getReason(e),currentUser:t.getCurrentUser(e)})})}},{key:"getNbFilters",value:function(){for(var e=0,t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}},{key:"openActions",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){var n,i,r=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],this.actions.forEach(function(t){r.canShowButton(t.id,e)&&n.push({text:r.translate.instant("PROG"===e.state&&"newWorkflow"===t.id?"lang."+t.id+"Prog":"lang."+t.id),icon:t.icon,handler:function(){r[t.id](e)}})}),t.next=4,this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:n});case 4:return i=t.sent,t.next=7,i.present();case 7:case"end":return t.stop()}},t,this)}))}},{key:"canShowButton",value:function(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}},{key:"search",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return M2(e,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.present(),e.next=3,this.launchSearch();case 3:t.dismiss();case 4:case"end":return e.stop()}},e,this)}))})}},{key:"launchSearch",value:function(){var e=this;return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(function(t){e.http.post("../rest/search/documents?limit=10&offset=0",e.formatDatas()).pipe(Mw(function(n){e.ressources=e.formatListDatas(n.documents),e.count=n.count,e.infiniteScroll.disabled=!1,t(!0)}),yw(function(n){return e.notificationService.handleErrors(n),t(!1),nb(!1)})).subscribe()})}},{key:"refreshCurrentFilter",value:function(){var e=this;this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(function(t){return!e.functionsService.empty(t.val)}))),this.currentFilters.filter(function(e){return"workflowStates"===e.id}).length>0&&(this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val=this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].values.filter(function(e){return e.selected}),0===this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val.length&&(this.currentFilters=this.currentFilters.filter(function(e){return"workflowStates"!==e.id})))}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(Mw(function(n){t.ressources=t.ressources.concat(t.formatListDatas(n.documents)),e.target.complete(),t.count===t.ressources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"interruptWorkflow",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){var n=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){return M2(n,void 0,void 0,U().mark(function n(){var i,r=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(){r.loadingController.create({message:r.translate.instant("lang.processing"),spinner:"dots"}).then(function(n){return M2(r,void 0,void 0,U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n.present(),i.next=3,this.launchInterrupt(e);case 3:this.launchSearch(),t(!0),n.dismiss();case 6:case"end":return i.stop()}},i,this)}))})}}]});case 2:return i=n.sent,n.next=5,i.present();case 5:case"end":return n.stop()}},n,this)}))}));case 1:case"end":return t.stop()}},t)}))}},{key:"launchInterrupt",value:function(e){var t=this;return new Promise(function(n){t.http.put("../rest/documents/".concat(e.id,"/workflows/interrupt"),{}).pipe(Mw(function(){t.notificationService.success("lang.documentInterrupted"),n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),n(!1),nb(!1)})).subscribe()})}},{key:"newWorkflow",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0="PROG"===e.state,!t.t0){t.next=4;break}return t.next=4,this.interruptWorkflow(e);case 4:this.router.navigate(["/indexation"],{state:{documentId:e.id}});case 5:case"end":return t.stop()}},t,this)}))}},{key:"openPromptProof",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(t){return M2(i,void 0,void 0,U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.downloadProof(e,t);case 2:n.dismiss();case 3:case"end":return i.stop()}},i,this)}))}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"downloadProof",value:function(e,t){var n=this,i="onlyProof"===t?"&onlyProof=true":"";return new Promise(function(t){n.http.get("../rest/documents/".concat(e.id,"/proof?mode=stream").concat(i),{responseType:"blob"}).pipe(Mw(function(i){var r=new Date,o="proof_"+e.id+"_"+n.datePipe.transform(r,"dd-MM-y")+"."+i.type.replace("application/",""),a=document.createElement("a");a.href=window.URL.createObjectURL(i),a.setAttribute("download",o),document.body.appendChild(a),a.click(),t(!0)}),yw(function(e){return n.notificationService.handleErrors(e),t(!1),nb(!1)})).subscribe()})}},{key:"getReason",value:function(e){return e.workflow.map(function(e){return e.reason}).filter(function(e){return null!==e})}},{key:"getCurrentUser",value:function(e){var t=e.workflow.filter(function(e){return!0===e.current});return t.length>0?t[0].userId:null}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}},{key:"clearFilters",value:function(){for(var e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(function(e){return Object.assign(Object.assign({},e),{selected:!1})}));this.ressources.length>0&&this.launchSearch()}},{key:"removeFilter",value:function(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(function(t){return t.id===e.id}).values.filter(function(e){return e.id===t})[0].selected=!1;else{var n=e.val.indexOf(t);this.filters.filter(function(t){return t.id===e.id})[0].val.splice(n,1)}else this.filters.find(function(t){return t.id===e.id}).val="";this.launchSearch()}},{key:"getLabel",value:function(e){return this.filters.filter(function(e){return"workflowStates"===e.id})[0].values.find(function(t){return t.id===e}).label}},{key:"checkInput",value:function(){""===this.filters.find(function(e){return"title"===e.id}).val&&""===this.filters.find(function(e){return"reference"===e.id}).val&&""===this.filters.find(function(e){return"documentId"===e.id}).val&&0===this.filters.find(function(e){return"workflowStates"===e.id}).val.length&&0===this.filters.find(function(e){return"workflowUsers"===e.id}).val.length&&(this.clearFilters(),this.currentFilters=[])}}]),e}()).\u0275fac=function(e){return new(e||m3)(Ps(Tb),Ps(zP),Ps(h_),Ps(RE),Ps($P),Ps(Mu),Ps(WP),Ps(tO),Ps(BE),Ps(ME),Ps(TE),Ps(gf),Ps(hW),Ps(Uk))},m3.\u0275cmp=Ft({type:m3,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(bc(B2,1),bc(R2,3),bc(AS,1)),2&e&&(yc(n=kc())&&(t.appVisaWorkflow=n.first),yc(n=kc())&&(t.rightContent=n.first),yc(n=kc())&&(t.infiniteScroll=n.first))},features:[Hl([gf])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-title",4),bl(8),$u(9,"translate"),Ts(),Is(10,"ion-buttons",5),Is(11,"ion-menu-button",6),Ms(12,"ion-icon",7),Ts(),Ts(),Ts(),Ss(13,G2,7,4,"ion-toolbar",8),Ts(),Is(14,"ion-content"),Ss(15,q2,5,3,"ion-list",9),Ss(16,u3,3,1,"ion-list",10),Is(17,"ion-infinite-scroll",11),js("ionInfinite",function(e){return t.loadData(e)}),Ms(18,"ion-infinite-scroll-content",12),$u(19,"translate"),Ts(),Ts(),Ss(20,g3,15,8,"ng-template",null,13,Cc)),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,8,"lang.search")),Yo(3),xl("",t.count," ",ec(9,10,"lang.results"),""),Yo(5),Os("ngIf",t.currentFilters.length>0),Yo(2),Os("ngIf",0===t.ressources.length),Yo(1),Os("ngIf",t.ressources.length>0),Yo(2),Os("loadingText",ec(19,12,"lang.loadingMoreData")))},directives:[kS,tE,aS,RS,$S,xS,jh,pS,AS,CS,oS,Vh,hS,IS,TS,ES,OE,PE,DS,OS,PS,rS,iS,AE,bS,SS,SA,Lm,my,MS,dS,xA,T2],pipes:[jP],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),m3),b3=((v3=function(){function e(t){Z(this,e),this.latinisePipe=t}return Y(e,[{key:"transform",value:function(e,t){var n=this;return null!==e?(e.sort(function(e,i){var r=n.latinisePipe.transform(e[t]).toLocaleLowerCase(),o=n.latinisePipe.transform(i[t]).toLocaleLowerCase();return r<o?-1:r>o?1:0}),e):[]}}]),e}()).\u0275fac=function(e){return new(e||v3)(Ps(kT))},v3.\u0275pipe=Wt({name:"sortBy",type:v3,pure:!0}),v3),w3=["rightContent"];function k3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=t.$implicit;return qs(2).removeFilter(e)}),$u(1,"translate"),Ms(2,"ion-icon",19),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Ms(6,"ion-icon",20),Ts()}if(2&e){var i=t.$implicit;Os("title",ec(1,2,"lang.actions")),Yo(4),wl(ec(5,4,"lang."+i))}}function x3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=qs(2);return e.removeFilter(e.filters.user)}),$u(1,"translate"),Ms(2,"ion-icon",21),Is(3,"ion-label"),bl(4),Ts(),Ms(5,"ion-icon",20),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,2,"lang.userName")),Yo(4),wl(i.filters.user)}}function _3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=qs(2);return e.removeFilter(e.filters.date.start)}),$u(1,"translate"),Ms(2,"ion-icon",22),Is(3,"ion-label"),bl(4),$u(5,"date"),Ts(),Ms(6,"ion-icon",20),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,2,"lang.since")),Yo(4),wl(tc(5,4,i.filters.date.start,"dd/MM/yyyy"))}}function A3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=qs(2);return e.removeFilter(e.filters.date.end)}),$u(1,"translate"),Ms(2,"ion-icon",23),Is(3,"ion-label"),bl(4),$u(5,"date"),Ts(),Ms(6,"ion-icon",20),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,2,"lang.until")),Yo(4),wl(tc(5,4,i.filters.date.end,"dd/MM/yyyy"))}}function C3(e,t){if(1&e){var n=Fs();Is(0,"ion-toolbar",12),Is(1,"ion-button",13),js("click",function(){return En(n),qs().clearFilters()}),$u(2,"translate"),Ms(3,"ion-icon",14),Ts(),Is(4,"div",15),Ss(5,k3,7,6,"ion-chip",16),Ss(6,x3,6,4,"ion-chip",17),Ss(7,_3,7,7,"ion-chip",17),Ss(8,A3,7,7,"ion-chip",17),Ts(),Ts()}if(2&e){var i=qs();Yo(1),Os("title",ec(2,5,"lang.clearFilters")),Yo(4),Os("ngForOf",i.filters.messageTypes),Yo(1),Os("ngIf",""!==i.filters.user),Yo(1),Os("ngIf",null!==i.filters.date.start),Yo(1),Os("ngIf",null!==i.filters.date.end)}}function S3(e,t){if(1&e&&(Is(0,"ion-item",28),Ms(1,"ion-icon",29),Is(2,"ion-label"),Is(3,"p"),bl(4),$u(5,"titlecase"),$u(6,"translate"),Is(7,"span",30),bl(8),$u(9,"date"),Ts(),bl(10),$u(11,"translate"),Is(12,"span",30),bl(13),Ts(),Ts(),Is(14,"h2"),bl(15),Ts(),Ts(),Is(16,"ion-note",5),Is(17,"p",31),$u(18,"translate"),bl(19),$u(20,"translate"),$u(21,"shorten"),$u(22,"translate"),Ts(),Is(23,"p",32),bl(24),Ts(),Ts(),Ts()),2&e){var n=t.$implicit,i=qs(2);Yo(1),Os("name",i.aventTypesIcon[n.type]),Yo(3),kl("",ec(5,10,ec(6,12,"lang.the"))," "),Yo(4),wl(tc(9,14,n.date,"dd/MM/yyyy HH:mm")),Yo(2),kl(" ",ec(11,17,"lang.by")," "),Yo(3),wl(n.user),Yo(2),wl(n.message),Yo(2),Os("title",ec(18,19,"lang.resource")+" : "+n.objectId),Yo(2),xl("",ec(20,21,"lang."+n.objectType)," : ",null!==n.objectLabel?nc(21,23,n.objectLabel,50,"..."):ec(22,27,"lang.undefined"),""),Yo(5),kl("IP : ",n.ip,"")}}function E3(e,t){if(1&e){var n=Fs();Is(0,"ion-list"),Is(1,"ion-virtual-scroll",24),Ss(2,S3,25,29,"ion-item",25),Ts(),Is(3,"ion-infinite-scroll",26),js("ionInfinite",function(e){return En(n),qs().loadData(e)}),Ms(4,"ion-infinite-scroll-content",27),$u(5,"translate"),Ts(),Ts()}if(2&e){var i=qs();Yo(1),Os("items",i.resources),Yo(3),Os("loadingText",ec(5,2,"lang.loadingMoreData"))}}function P3(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",5),Is(1,"ion-button",42),js("click",function(){En(n);var e=qs(2);return e.filters.date.start=null,e.getDatas()}),Ms(2,"ion-icon",43),Ts(),Ts()}}function O3(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",5),Is(1,"ion-button",42),js("click",function(){En(n);var e=qs(2);return e.filters.date.end=null,e.getDatas()}),Ms(2,"ion-icon",43),Ts(),Ts()}}function D3(e,t){if(1&e){var n=Fs();Is(0,"ion-item",31),Is(1,"ion-checkbox",44),js("ionChange",function(e){return En(n),qs(2).toggleAction(e.detail)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Ts()}if(2&e){var i=t.$implicit;Os("title",i.label),Yo(1),Os("value",i.id),Yo(2),wl(i.label)}}function I3(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title",33),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content"),Is(8,"ion-list"),Is(9,"ion-item",34),Is(10,"ion-searchbar",35),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(11,"translate"),Ts(),Ts(),Is(12,"ion-item"),Is(13,"ion-label",36),bl(14),$u(15,"translate"),Ts(),Is(16,"ion-datetime",37),js("ngModelChange",function(e){return En(n),qs().filters.date.start=e})("ionChange",function(){return En(n),qs().getDatas()}),$u(17,"translate"),$u(18,"translate"),Ts(),Ss(19,P3,3,0,"ion-buttons",38),Ts(),Is(20,"ion-item"),Is(21,"ion-label",36),bl(22),$u(23,"translate"),Ts(),Is(24,"ion-datetime",39),js("ngModelChange",function(e){return En(n),qs().filters.date.end=e})("ionChange",function(){return En(n),qs().getDatas()}),$u(25,"translate"),$u(26,"translate"),Ts(),Ss(27,O3,3,0,"ion-buttons",38),Ts(),Is(28,"ion-item",40),Is(29,"ion-label",36),bl(30),$u(31,"translate"),Ts(),Ts(),Ss(32,D3,4,3,"ion-item",41),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(5),wl(ec(6,17,"lang.filters")),Yo(5),Os("placeholder",ec(11,19,"lang.enterUserName")),Yo(4),kl("",ec(15,21,"lang.since"),": "),Yo(2),Os("doneText",ec(17,23,"lang.validate"))("cancelText",ec(18,25,"lang.cancel"))("ngModel",i.filters.date.start)("max",null!==i.filters.date.end?i.filters.date.end:void 0),Yo(3),Os("ngIf",null!==i.filters.date.start),Yo(3),kl("",ec(23,27,"lang.until"),": "),Yo(2),Os("doneText",ec(25,29,"lang.validate"))("cancelText",ec(26,31,"lang.cancel"))("ngModel",i.filters.date.end)("min",null!==i.filters.date.start?i.filters.date.start:void 0),Yo(3),Os("ngIf",null!==i.filters.date.end),Yo(3),kl("",ec(31,33,"lang.actions"),": "),Yo(2),Os("ngForOf",i.actions)}}var T3,M3=((T3=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.http=t,this.translate=n,this.menu=i,this.latinisePipe=r,this.viewContainerRef=o,this.dialog=a,this.signaturesService=s,this.notificationService=l,this.authService=u,this.alertController=c,this.sortPipe=d,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}return Y(e,[{key:"applyFilter",value:function(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}},{key:"openFilters",value:function(){this.menu.open("right-menu")}},{key:"ionViewWillEnter",value:function(){return e=this,n=U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas();case 1:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getActions",value:function(){var e=this;this.http.get("../rest/history/messageTypes",this.filters).pipe(Mw(function(t){e.actions=t.messageTypes.map(function(t){return{id:t,label:e.translate.instant("lang."+t)}}),e.actions=e.sortPipe.transform(e.actions,"label")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"getDatas",value:function(){var e=this;return this.resources=[],this.offset=0,new Promise(function(t){e.http.post("../rest/history?limit=10&offset=0",e.filters).pipe(Mw(function(n){e.resources=n.history,e.count=n.total,t(!0)}),yw(function(n){return e.notificationService.handleErrors(n),t(!1),nb(!1)})).subscribe()})}},{key:"sortData",value:function(e){console.log(e)}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(Mw(function(n){t.resources=t.resources.concat(n.history),e.target.complete(),t.count===t.resources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"getNbFilters",value:function(){var e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}},{key:"toggleAction",value:function(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(function(t){return t!==e.value}),this.getDatas()}},{key:"clearFilters",value:function(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}},{key:"removeFilter",value:function(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}]),e}()).\u0275fac=function(e){return new(e||T3)(Ps(Tb),Ps(zP),Ps(RE),Ps(kT),Ps(Mu),Ps(KF),Ps($P),Ps(WP),Ps(tO),Ps(ME),Ps(b3))},T3.\u0275cmp=Ft({type:T3,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){var n;1&e&&bc(w3,3),2&e&&yc(n=kc())&&(t.rightContent=n.first)},features:[Hl([b3])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Is(8,"ion-title",4),bl(9),$u(10,"translate"),Ts(),Is(11,"ion-buttons",5),Is(12,"ion-menu-button",6),Ms(13,"ion-icon",7),Ts(),Ts(),Ts(),Ss(14,C3,9,7,"ion-toolbar",8),Ts(),Is(15,"ion-content",null,9),Ss(17,E3,6,4,"ion-list",10),Ts(),Ss(18,I3,33,35,"ng-template",null,11,Cc)),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,6,"lang.history")),Yo(3),xl("",t.count," ",ec(10,8,"lang.entries"),""),Yo(5),Os("ngIf",t.getNbFilters()>0),Yo(3),Os("ngIf",t.resources.length>0))},directives:[kS,tE,aS,RS,iS,AE,$S,xS,jh,pS,oS,Vh,hS,IS,TS,OE,PE,AS,CS,ES,FS,WS,SA,gS,CA,Lm,my,dS,xA],pipes:[jP,gf,ff,bT],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),T3),B3=["customizationForm"];function R3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",14),js("click",function(){return En(n),qs(2).watermark.enabled=!1}),bl(1),$u(2,"translate"),Ts()}2&e&&(Yo(1),kl(" ",ec(2,1,"lang.disableWatermark"),""))}function L3(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-button",15),js("click",function(){return En(n),qs(2).watermark.enabled=!0}),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),kl("",ec(3,1,"lang.enableWatermark")," "))}function F3(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-card"),Is(2,"ion-item",1),Ms(3,"ion-icon",16),Ms(4,"ion-label",17),$u(5,"translate"),Ts(),Ts(),Is(6,"ion-item"),Is(7,"ion-label",18),bl(8),$u(9,"translate"),Ts(),Is(10,"ion-input",19),js("ngModelChange",function(e){return En(n),qs(2).watermark.text=e}),Ts(),Ms(11,"ion-note",20),$u(12,"translate"),Ts(),Is(13,"ion-radio-group",21),js("ionChange",function(e){return En(n),qs(2).watermark.align=e.detail.value}),Is(14,"ion-list-header"),Is(15,"ion-label",7),bl(16),$u(17,"translate"),Ts(),Ts(),Is(18,"ion-item"),Is(19,"ion-label"),bl(20),$u(21,"translate"),Ts(),Ms(22,"ion-radio",22),Ts(),Is(23,"ion-item"),Is(24,"ion-label"),bl(25),$u(26,"translate"),Ts(),Ms(27,"ion-radio",23),Ts(),Is(28,"ion-item"),Is(29,"ion-label"),bl(30),$u(31,"translate"),Ts(),Ms(32,"ion-radio",24),Ts(),Ts(),Is(33,"ion-item"),Is(34,"ion-label",18),bl(35),$u(36,"translate"),Ts(),Is(37,"ion-input",25),js("ngModelChange",function(e){return En(n),qs(2).watermark.posY=e})("keypress",function(e){return En(n),qs(2).isNumber(e)}),Ts(),Is(38,"ion-note",26),bl(39,"px"),Ts(),Ts(),Rs()}if(2&e){var i=qs(2);Yo(4),Os("innerHTML",ec(5,12,"lang.watermarkDesc"),Zr),Yo(4),wl(ec(9,14,"lang.content")),Yo(2),Os("ngModel",i.watermark.text),Yo(1),Os("innerHTML",ec(12,16,"lang.watermarkContentDesc"),Zr),Yo(2),Os("value",i.watermark.align),Yo(3),wl(ec(17,18,"lang.alignment")),Yo(4),wl(ec(21,20,"lang.left")),Yo(5),wl(ec(26,22,"lang.center")),Yo(5),wl(ec(31,24,"lang.right")),Yo(5),kl("",ec(36,26,"lang.positionY")," "),Yo(2),Os("ngModel",i.watermark.posY)("min",0)}}function N3(e,t){if(1&e){var n=Fs();Is(0,"form",5,6),js("ngSubmit",function(){return En(n),qs().onSubmit()}),Is(2,"ion-content"),Is(3,"ion-list"),Is(4,"ion-list-header"),Is(5,"ion-label",7),bl(6),$u(7,"translate"),Ts(),Ss(8,R3,3,3,"ion-button",8),Ts(),Ss(9,L3,4,3,"ion-item",9),Ss(10,F3,40,28,"ng-container",9),Ts(),Is(11,"ion-item",10),Is(12,"div",11),Is(13,"ion-button",12),Is(14,"ion-label",13),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(6),kl(" ",ec(7,5,"lang.watermark")," "),Yo(2),Os("ngIf",i.watermark.enabled),Yo(1),Os("ngIf",!i.watermark.enabled),Yo(1),Os("ngIf",i.watermark.enabled),Yo(5),wl(ec(16,7,"lang.validate"))}}var V3,z3,j3,H3=((V3=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.translate=n,this.notificationService=i,this.authService=r,this.functions=o,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}return Y(e,[{key:"ngOnInit",value:function(){return e=this,n=U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWatermark();case 2:this.loading=!1;case 3:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getWatermark",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/customization/watermark").pipe(Mw(function(n){e.functions.empty(n.configuration)||(e.watermark=n.configuration),t(!0)}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()})}},{key:"onSubmit",value:function(){var e=this;this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(Mw(function(){e.notificationService.success(e.translate.instant("lang.modificationSaved"))}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"isNumber",value:function(e){var t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}]),e}()).\u0275fac=function(e){return new(e||V3)(Ps(Tb),Ps(zP),Ps(WP),Ps(tO),Ps(hW))},V3.\u0275cmp=Ft({type:V3,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&bc(B3,1),2&e&&yc(n=kc())&&(t.customizationForm=n.first)},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Ss(8,N3,17,9,"form",4)),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,3,"lang.customization")),Yo(2),Os("ngIf",!t.loading))},directives:[kS,tE,aS,RS,iS,AE,$S,jh,yy,Fm,py,pS,TS,MS,IS,ES,oS,sS,xS,SS,SA,Lm,my,FS,VS,CA,NS,AA,_A],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),V3),U3=function(){return{standalone:!0}},W3=((j3=function(){function e(t,n,i,r,o,a,s,l,u,c){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.modalController=u,this.functions=c,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.casTest={login:"",password:"",result:""},this.cas={id:null,label:"",identifier:"casServer",value:{version:"CAS_VERSION_2_0",url:"",port:null,context:"",separator:null,certificate:""}},this.title=""}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.casTest.login=this.authService.user.login,this.route.params.subscribe(function(t){e.creationMode=!1,e.http.get("../rest/configurations?identifier=casServer").pipe(ye(function(e){return e.configurations[0]}),Mw(function(t){var n,i,r,o,a,s;e.functions.empty(t)||(e.cas={id:t.id,label:t.label,identifier:t.identifier,value:{version:null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.version,url:null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.url,port:null===(r=null==t?void 0:t.value)||void 0===r?void 0:r.port,context:null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.context,separator:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.separator,certificate:null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.certificate}},e.casClone=JSON.parse(JSON.stringify(e.cas)),e.title=e.cas.label)}),Lw(function(){return e.loading=!1}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()})}},{key:"canValidate",value:function(){return JSON.stringify(this.cas)!==JSON.stringify(this.casClone)}},{key:"onSubmit",value:function(){this.modifyCas()}},{key:"modifyCas",value:function(){var e=this;null!==this.cas.id?this.http.patch("../rest/configurations/"+this.cas.id,this.cas).pipe(Lw(function(){e.loading=!1,e.router.navigate(["/administration/connections"]),e.notificationService.success("lang.casUpdated")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe():this.createCas()}},{key:"createCas",value:function(){var e=this;this.loading=!0,this.http.post("../rest/configurations",this.cas).pipe(Lw(function(){e.loading=!1,e.router.navigate(["/administration/connections"]),e.notificationService.success("lang.casAdded")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"cancel",value:function(){this.router.navigate(["/administration/connections"])}},{key:"isNumber",value:function(e){var t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}]),e}()).\u0275fac=function(e){return new(e||j3)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(LE),Ps(hW))},j3.\u0275cmp=Ft({type:j3,selectors:[["app-administration-cas"]],decls:66,vars:52,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["interface","popover",3,"ngModelOptions","value","ngModel","placeholder","ngModelChange"],["value","CAS_VERSION_2_0"],["value","CAS_VERSION_3_0"],["name","url","required","",3,"ngModel","ngModelChange"],["name","port","type","number","required","",3,"ngModel","keypress","ngModelChange"],["name","context","required","",3,"ngModel","ngModelChange"],["name","separator",3,"ngModel","ngModelChange"],["name","certificate",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Is(7,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-content"),Is(10,"ion-item"),Is(11,"ion-label",6),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",7),js("ngModelChange",function(e){return t.cas.label=e}),Ts(),Ts(),Is(15,"ion-item"),Is(16,"ion-label",6),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-select",8),js("ngModelChange",function(e){return t.cas.value.version=e}),$u(20,"translate"),Is(21,"ion-select-option",9),bl(22),$u(23,"translate"),Ts(),Is(24,"ion-select-option",10),bl(25),$u(26,"translate"),Ts(),Ts(),Ts(),Is(27,"ion-item"),Is(28,"ion-label",6),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-input",11),js("ngModelChange",function(e){return t.cas.value.url=e}),Ts(),Ts(),Is(32,"ion-item"),Is(33,"ion-label",6),bl(34),$u(35,"translate"),Ts(),Is(36,"ion-input",12),js("keypress",function(e){return t.isNumber(e)})("ngModelChange",function(e){return t.cas.value.port=e}),Ts(),Ms(37,"ion-note"),Ts(),Is(38,"ion-item"),Is(39,"ion-label",6),bl(40),$u(41,"translate"),Ts(),Is(42,"ion-input",13),js("ngModelChange",function(e){return t.cas.value.context=e}),Ts(),Ms(43,"ion-note"),Ts(),Is(44,"ion-item"),Is(45,"ion-label",6),bl(46),$u(47,"translate"),Ts(),Is(48,"ion-input",14),js("ngModelChange",function(e){return t.cas.value.separator=e}),Ts(),Is(49,"ion-note"),bl(50),$u(51,"translate"),Ts(),Ts(),Is(52,"ion-item"),Is(53,"ion-label",6),bl(54),$u(55,"translate"),Ts(),Is(56,"ion-input",15),js("ngModelChange",function(e){return t.cas.value.certificate=e}),Ts(),Is(57,"ion-note"),bl(58),$u(59,"translate"),Ts(),Ts(),Is(60,"ion-item",16),Is(61,"div",17),Is(62,"ion-button",18),Is(63,"ion-label",19),bl(64),$u(65,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(6),wl(t.title),Yo(6),kl("",ec(13,25,"lang.label")," *"),Yo(2),Os("ngModel",t.cas.label),Yo(3),kl("",ec(18,27,"lang.versionCas")," *"),Yo(2),Qs("placeholder",ec(20,29,"lang.casVersion")),Os("ngModelOptions",Yu(51,U3))("value",t.cas.value.version)("ngModel",t.cas.value.version),Yo(3),kl("",ec(23,31,"lang.casV2")," "),Yo(3),kl("",ec(26,33,"lang.casV3")," "),Yo(4),kl("",ec(30,35,"lang.urlCas")," *"),Yo(2),Os("ngModel",t.cas.value.url),Yo(3),kl("",ec(35,37,"lang.port")," *"),Yo(2),Os("ngModel",t.cas.value.port),Yo(4),kl("",ec(41,39,"lang.contextCas")," *"),Yo(2),Os("ngModel",t.cas.value.context),Yo(4),wl(ec(47,41,"lang.separatorCas")),Yo(2),Os("ngModel",t.cas.value.separator),Yo(2),wl(ec(51,43,"lang.casIdReturn")),Yo(4),wl(ec(55,45,"lang.certificateCas")),Yo(2),Os("ngModel",t.cas.value.certificate),Yo(2),wl(ec(59,47,"lang.casCertificatPath")),Yo(4),Os("disabled",!n.form.valid||!t.canValidate()),Yo(2),wl(ec(65,49,"lang.validate"))}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Lm,my,YS,CA,ZS,_A,FS,oS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),j3),G3=((z3=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||z3)},z3.\u0275mod=jt({type:z3}),z3.\u0275inj=at({imports:[[D_.forRoot([{path:"home",canActivate:[Bj],component:K1},{path:"indexation",canActivate:[Bj],component:_2},{path:"profile",canActivate:[Bj],component:q1},{path:"search",canActivate:[Bj],component:y3},{path:"administration",canActivate:[Bj],component:Nj},{path:"administration/users",canActivate:[Bj],component:Gj},{path:"administration/users/new",canActivate:[Bj],component:lH},{path:"administration/users/:id",canActivate:[Bj],component:lH},{path:"administration/groups",canActivate:[Bj],component:gH},{path:"administration/groups/new",canActivate:[Bj],component:RH},{path:"administration/groups/:id",canActivate:[Bj],component:RH},{path:"administration/connections",canActivate:[Bj],component:zH},{path:"administration/connections/ldaps",canActivate:[Bj],component:YH},{path:"administration/connections/cas",canActivate:[Bj],component:W3},{path:"administration/connections/ldaps/new",canActivate:[Bj],component:oU},{path:"administration/connections/ldaps/:id",canActivate:[Bj],component:oU},{path:"administration/emailConfiguration",canActivate:[Bj],component:pU},{path:"administration/passwordRules",canActivate:[Bj],component:d1},{path:"administration/history",canActivate:[Bj],component:M3},{path:"administration/customization",canActivate:[Bj],component:H3},{path:"documents/:id",canActivate:[Bj],component:Y0},{path:"login",canActivate:[Bj],component:i1},{path:"forgot-password",component:r1},{path:"update-password",component:c1},{path:"password-modification",component:m1},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy",useHash:!0})],D_]}),z3);function q3(e,t){if(1&e){var n=Fs();Is(0,"ion-item",3),js("click",function(){return En(n),qs().menu.close("left-menu")}),Ms(1,"ion-icon",4),Is(2,"ion-label"),bl(3),$u(4,"translate"),Ts(),Ts()}if(2&e){var i=t.$implicit;al("item-active",qs().isActiveRoute(i.route)),Os("routerLink",i.route),Yo(1),Os("name",i.icon),Yo(2),wl(ec(4,5,"lang."+i.id))}}var Y3,Z3=((Y3=function(){function e(t,n,i,r){Z(this,e),this.route=t,this.router=n,this.authService=i,this.menu=r,this.loading=!0,this.privileges=[]}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"openHome",value:function(){this.router.navigate(["/documents/"])}},{key:"isActiveRoute",value:function(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}]),e}()).\u0275fac=function(e){return new(e||Y3)(Ps(Uk),Ps(h_),Ps(tO),Ps(RE))},Y3.\u0275cmp=Ft({type:Y3,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(Is(0,"ion-header"),Is(1,"ion-toolbar",0),Is(2,"ion-title",1),bl(3),$u(4,"translate"),Ts(),Ts(),Ts(),Is(5,"ion-content"),Is(6,"ion-list"),Ss(7,q3,5,7,"ion-item",2),Ts(),Ts()),2&e&&(Yo(3),kl(" ",ec(4,2,"lang.administration")," "),Yo(4),Os("ngForOf",t.authService.user.administrativePrivileges))},directives:[kS,tE,$S,pS,TS,Vh,ES,CE,f_,xS,IS],pipes:[jP],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),Y3),K3=["listContent"],Q3=["searchInput"];function X3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().authService.logout()}),$u(1,"translate"),Ms(2,"ion-icon",15),Ts()}2&e&&Os("title",ec(1,1,"lang.logout"))}function J3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().openAdmin()}),$u(1,"translate"),Ms(2,"ion-icon",16),Ts()}2&e&&Os("title",ec(1,1,"lang.administration"))}function $3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().openHome()}),$u(1,"translate"),Ms(2,"ion-icon",17),Ts()}2&e&&Os("title",ec(1,1,"lang.homePage"))}function e4(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().openIndexation()}),$u(1,"translate"),Ms(2,"ion-icon",18),Ms(3,"ion-icon",19),Ts()}2&e&&Os("title",ec(1,1,"lang.indexationAdmin"))}function t4(e,t){if(1&e&&(Is(0,"span",26),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(3);Yo(1),wl(ec(2,1,"lang."+n.signaturesService.mode+"Label"))}}function n4(e,t){if(1&e){var n=Fs();Is(0,"ion-title",23),js("click",function(e){return En(n),qs(2).search(e)}),$u(1,"translate"),Is(2,"span"),bl(3),Ts(),bl(4),$u(5,"translate"),Ss(6,t4,3,3,"span",24),bl(7," \xa0 "),Ms(8,"ion-icon",25),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,6,"lang.filterInfo")),Yo(2),al("primary",""!=i.signaturesService.mode),Yo(1),wl(i.signaturesService.documentsListCount.current),Yo(1),kl(" ",ec(5,8,"lang.documents")," "),Yo(2),Os("ngIf",""!=i.signaturesService.mode)}}function i4(e,t){if(1&e){var n=Fs();Is(0,"ion-searchbar",27,28),js("ionCancel",function(e){En(n);var t=qs(2);return t.search(e),t.searchMode=!t.searchMode}),$u(2,"translate"),Ts()}if(2&e){var i=qs(2);Os("placeholder",ec(2,2,"lang.filterInfo"))("formControl",i.searchTerm)}}function r4(e,t){if(1&e&&(Is(0,"ion-header"),Is(1,"ion-toolbar",20),Ss(2,n4,9,10,"ion-title",21),Ss(3,i4,3,4,"ion-searchbar",22),Ts(),Ts()),2&e){var n=qs();Yo(2),Os("ngIf",!n.searchMode),Yo(1),Os("ngIf",n.searchMode)}}function o4(e,t){if(1&e){var n=Fs();Is(0,"ion-header",29),Is(1,"ion-toolbar",30),Is(2,"ion-segment",31),Is(3,"ion-segment-button",32),js("click",function(){return En(n),qs().filter("sign")}),Is(4,"ion-label"),bl(5),$u(6,"titlecase"),$u(7,"translate"),Ts(),Ms(8,"ion-icon",33),Is(9,"ion-badge",34),bl(10),Ts(),Ts(),Is(11,"ion-segment-button",35),js("click",function(){return En(n),qs().filter("visa")}),Is(12,"ion-label"),bl(13),$u(14,"titlecase"),$u(15,"translate"),Ts(),Ms(16,"ion-icon",36),Is(17,"ion-badge",34),bl(18),Ts(),Ts(),Is(19,"ion-segment-button",37),js("click",function(){return En(n),qs().filter("note")}),Is(20,"ion-label"),bl(21),$u(22,"titlecase"),$u(23,"translate"),Ts(),Ms(24,"ion-icon",38),Is(25,"ion-badge",34),bl(26),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(2),Os("value",i.signaturesService.mode),Yo(1),al("segment-button-notFocused","sign"!==i.signaturesService.mode),Yo(2),wl(ec(6,13,ec(7,15,"lang.signLabel"))),Yo(5),wl(i.signaturesService.documentsListCount.sign),Yo(1),al("segment-button-notFocused","visa"!==i.signaturesService.mode),Yo(2),wl(ec(14,17,ec(15,19,"lang.visaLabel"))),Yo(5),wl(i.signaturesService.documentsListCount.visa),Yo(1),al("segment-button-notFocused","note"!==i.signaturesService.mode),Yo(2),wl(ec(22,21,ec(23,23,"lang.noteLabel"))),Yo(5),wl(i.signaturesService.documentsListCount.note)}}function a4(e,t){1&e&&Ms(0,"app-admin-sidebar",39)}function s4(e,t){1&e&&(Is(0,"ion-item",44),Is(1,"ion-label",45),bl(2),$u(3,"titlecase"),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(2),kl(" ",ec(3,1,ec(4,3,"lang.noResult"))," "))}function l4(e,t){1&e&&Ms(0,"ion-icon",56)}function u4(e,t){1&e&&Ms(0,"ion-icon",57)}function c4(e,t){1&e&&Ms(0,"ion-icon",58)}function d4(e,t){1&e&&Ms(0,"ion-icon",59)}function h4(e,t){1&e&&(Is(0,"ion-label",60),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.substitutedDoc"),""))}var f4=function(e){return[e]};function p4(e,t){if(1&e){var n=Fs();Is(0,"ion-menu-toggle",46),Is(1,"ion-item",47),js("click",function(){En(n);var e=t.index;return qs(2).filterService.currentIndex=e}),Ss(2,l4,1,0,"ion-icon",48),Ss(3,u4,1,0,"ion-icon",49),Ss(4,c4,1,0,"ion-icon",50),Ss(5,d4,1,0,"ion-icon",51),Is(6,"div"),Is(7,"ion-label",52),bl(8),Ts(),Is(9,"ion-label",53),bl(10),$u(11,"shorten"),Ts(),Ss(12,h4,3,3,"ion-label",54),Ts(),Ms(13,"ion-icon",55),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs(2);Yo(1),al("selected",r.router.url==="/documents/"+i.id),Os("routerLink",Zu(14,f4,"/documents/"+i.id)),Yo(1),Os("ngIf","sign"==i.mode),Yo(1),Os("ngIf","visa"==i.mode),Yo(1),Os("ngIf","note"==i.mode),Yo(1),Os("ngIf",!r.functionsService.empty(i.mailingId)),Yo(3),wl(i.reference),Yo(2),wl(nc(11,10,i.title,50,"...")),Yo(2),Os("ngIf",!i.owner)}}function g4(e,t){if(1&e){var n=Fs();Is(0,"ion-infinite-scroll",61),js("ionInfinite",function(e){return En(n),qs(2).loadData(e)}),Ms(1,"ion-infinite-scroll-content",62),$u(2,"translate"),Ts()}2&e&&(Yo(1),Os("loadingText",ec(2,1,"lang.loadingMoreData")))}function v4(e,t){if(1&e&&(Is(0,"ion-content"),Is(1,"ion-list",40),Ss(2,s4,5,5,"ion-item",41),Ss(3,p4,14,16,"ion-menu-toggle",42),Ts(),Ss(4,g4,3,3,"ion-infinite-scroll",43),Ts()),2&e){var n=qs();Yo(2),Os("ngIf",0==n.signaturesService.documentsList.length),Yo(1),Os("ngForOf",n.signaturesService.documentsList),Yo(1),Os("ngIf",n.signaturesService.documentsList.length>0)}}var m4,y4=((m4=function(){function e(t,n,i,r,o,a,s,l,u,c){var d=this;Z(this,e),this.http=t,this.signaturesService=n,this.route=i,this.router=r,this.menu=o,this.notificationService=a,this.authService=s,this.modalController=l,this.functionsService=u,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new uy,this.searchTerm.valueChanges.pipe(OT(500),J_(),Mw(function(e){return d.loadingList=!0}),sw(function(e){return d.http.get("../rest/documents?limit="+d.filterService.limit+"&search="+e)})).subscribe(function(e){d.signaturesService.documentsList=e.documents,d.signaturesService.documentsListCount=e.count,d.loadingList=!1})}return Y(e,[{key:"ngOnInit",value:function(){var e=this;$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(function(t){e.signaturesService.documentsList=t.documents,e.signaturesService.documentsListCount=t.count})}},{key:"ngAfterViewInit",value:function(){this.filter("")}},{key:"openProfile",value:function(){return e=this,n=U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:q1,cssClass:"profileCss"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"openAdmin",value:function(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}},{key:"openHome",value:function(){this.router.navigate(["/home"])}},{key:"openIndexation",value:function(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}},{key:"openSearch",value:function(){this.menu.close("left-menu"),this.router.navigate(["/search"])}},{key:"search",value:function(e){var t=this;this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(function(){"ionCancel"!==e.type&&(t.searchInput.value="",t.searchInput.setFocus())},0)}},{key:"filter",value:function(e){var t=this;this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Lw(function(){t.loadingList=!1})).subscribe(function(e){t.signaturesService.documentsList=e.documents,t.signaturesService.documentsListCount=e.count,t.loadingList=!1})}},{key:"checkClose",value:function(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}},{key:"loadData",value:function(e){var t=this;this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Mw(function(n){t.signaturesService.documentsList=t.signaturesService.documentsList.concat(n.documents),e.target.complete(),t.signaturesService.documentsList.length===t.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}},{key:"isAdminRoute",value:function(){return this.router.url.split("/").indexOf("administration")>-1}},{key:"canIndex",value:function(){return this.authService.user.appPrivileges.map(function(e){return e.id}).indexOf("indexation")>-1}}]),e}()).\u0275fac=function(e){return new(e||m4)(Ps(Tb),Ps($P),Ps(Uk),Ps(h_),Ps(RE),Ps(WP),Ps(tO),Ps(LE),Ps(hW),Ps(eW))},m4.\u0275cmp=Ft({type:m4,selectors:[["app-sidebar"]],viewQuery:function(e,t){var n;1&e&&(bc(K3,1),bc(Q3,1)),2&e&&(yc(n=kc())&&(t.listContent=n.first),yc(n=kc())&&(t.searchInput=n.first))},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-item",2),Is(3,"ion-label",3),Is(4,"h2",4),bl(5),Ts(),Ts(),Ts(),Ts(),Ts(),Is(6,"ion-header",0),Is(7,"ion-toolbar",1),Is(8,"ion-buttons",5),Ss(9,X3,3,3,"ion-button",6),Ss(10,J3,3,3,"ion-button",6),Ss(11,$3,3,3,"ion-button",6),Ts(),Is(12,"ion-buttons",7),Is(13,"ion-button",8),js("click",function(){return t.openSearch()}),$u(14,"translate"),Ms(15,"ion-icon",9),Ts(),Ss(16,e4,4,3,"ion-button",6),Ts(),Ts(),Ts(),Is(17,"ion-avatar",10),js("click",function(){return t.openProfile()}),Ms(18,"img",11),Ts(),Ss(19,r4,4,2,"ion-header",12),Ss(20,o4,27,25,"ion-header",13),Ss(21,a4,1,0,"app-admin-sidebar",14),Ss(22,v4,5,3,"ion-content",12)),2&e&&(Os("translucent",!0),Yo(5),xl("",t.authService.user.firstname," ",t.authService.user.lastname,""),Yo(1),Os("translucent",!0),Yo(3),Os("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),Yo(1),Os("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),Yo(1),Os("ngIf",t.isAdminRoute()),Yo(2),Os("title",ec(14,14,"lang.search")),Yo(3),Os("ngIf",t.canIndex()),Yo(2),Os("src",t.authService.user.picture,Kr),Yo(1),Os("ngIf",!t.isAdminRoute()),Yo(1),Os("ngIf",!t.isAdminRoute()),Yo(1),Os("ngIf",t.isAdminRoute()),Yo(1),Os("ngIf",!t.isAdminRoute()))},directives:[kS,tE,ES,IS,aS,jh,oS,xS,nS,$S,WS,SA,Lm,xy,GS,CA,qS,rS,Z3,pS,TS,Vh,LS,CE,f_,AS,CS],pipes:[jP,ff,bT],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),m4);function b4(e,t){if(1&e){var n=Fs();Is(0,"ion-segment-button",10),js("ionChange",function(e){return En(n),qs(2).setActiveLang(e)}),Is(1,"ion-label"),bl(2),Is(3,"ion-badge",11),bl(4),Ts(),Ts(),Ts()}if(2&e){var i=qs().$implicit,r=qs();Os("value",r.currentLang),Yo(2),kl("",i.key," "),Yo(2),wl(r.missingLang[i.key].length)}}function w4(e,t){if(1&e&&(Is(0,"span"),Ss(1,b4,5,3,"ion-segment-button",9),Ts()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","fr"!==n.key)}}function k4(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label",13),bl(2),Ts(),Is(3,"ion-input",14),js("ngModelChange",function(e){return t.$implicit.value=e}),Ts(),Is(4,"ion-button",15),js("click",function(){En(n);var e=t.$implicit;return qs(2).openTranslation(e.value)}),Ms(5,"ion-icon",16),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),wl(i.id),Yo(1),Os("ngModel",i.value)}}function x4(e,t){if(1&e&&(Is(0,"ion-list",12),Ss(1,k4,6,2,"ion-item",5),Ts()),2&e){var n=qs();Yo(1),Os("ngForOf",n.missingLang[n.currentLang])}}var _4,A4,C4=((A4=function(){function e(t,n,i,r){Z(this,e),this.http=t,this.notify=n,this.translate=i,this.modalController=r,this.missingLang={},this.currentLang="en",this.data={}}return Y(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(Mw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.missingLang[t]=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).map(function(t){return{id:t,value:e.allLang.fr.lang[t]+"__TO_TRANSLATE"}})})}),yw(function(t){return e.notify.handleErrors(t),nb(!1)})).subscribe()}},{key:"openTranslation",value:function(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}},{key:"setActiveLang",value:function(e){this.currentLang=e.detail.value}},{key:"generateMissingLang",value:function(e){var t=this,n={},i=this.allLang[this.currentLang],r=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(function(t){null===t.value.match(r)&&e?n[t.id]=t.value:e||(n[t.id]=t.value)}),i.lang=Object.assign(Object.assign({},i.lang),n),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:i}).pipe(Mw(function(e){Object.keys(n).forEach(function(e){delete t.allLang[t.currentLang][e],t.missingLang[t.currentLang]=t.missingLang[t.currentLang].filter(function(t){return t.id!==e}),t.data.countMissingLang--}),t.modalController.dismiss("cancel")}),yw(function(e){return t.notify.handleErrors(e),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||A4)(Ps(Tb),Ps(WP),Ps(zP),Ps(LE))},A4.\u0275cmp=Ft({type:A4,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.dismissModal()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-header"),Is(9,"ion-segment"),Ss(10,w4,2,1,"span",5),$u(11,"keyvalue"),Ts(),Ts(),Is(12,"ion-content"),Bs(13),Ss(14,x4,2,1,"ion-list",6),Rs(),Ts(),Is(15,"ion-footer",7),Is(16,"ion-button",8),js("click",function(){return t.generateMissingLang(!1)}),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-button",8),js("click",function(){return t.generateMissingLang(!0)}),bl(20),$u(21,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,6,"lang.langChecking")),Yo(7),Os("ngForOf",ec(11,8,t.allLang)),Yo(4),Os("ngIf","en"===t.currentLang),Yo(1),Os("translucent",!0),Yo(2),wl(ec(18,10,"lang.generateLangVar")),Yo(3),wl(ec(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[kS,tE,$S,aS,oS,xS,GS,CA,Vh,pS,jh,bS,qS,IS,rS,TS,ES,SS,SA,Lm,my],pipes:[jP,vf],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),A4),S4=((_4=function(){function e(t,n,i,r){Z(this,e),this.notify=t,this.http=n,this.functionsService=i,this.modalController=r,this.countMissingLang=0}return Y(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"openLangTool",value:function(){return e=this,n=U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:C4,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(Mw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.countMissingLang+=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).length})}),yw(function(t){return e.notify.handleErrors(t),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||_4)(Ps(WP),Ps(Tb),Ps(hW),Ps(LE))},_4.\u0275cmp=Ft({type:_4,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(Is(0,"ion-fab",0),$u(1,"translate"),Is(2,"ion-fab-button",1),Ms(3,"ion-icon",2),Ts(),Is(4,"ion-fab-list",3),Is(5,"ion-button",4),js("click",function(){return t.openLangTool()}),Is(6,"ion-label"),bl(7),$u(8,"translate"),Is(9,"ion-badge",5),bl(10),Ts(),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("title",ec(1,3,"lang.missingLang")),Yo(7),kl("",ec(8,5,"lang.missingLang")," "),Yo(3),kl(" ",t.countMissingLang,""))},directives:[vS,_j,mS,xS,yS,oS,IS,rS],pipes:[jP],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),_4);function E4(e,t){1&e&&Ms(0,"app-sidebar",10)}function P4(e,t){1&e&&Ms(0,"app-dev-tool")}var O4,D4,I4,T4,M4=function(e){return[e]},B4=((O4=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f){if(Z(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.sanitizer=r,this.cookieService=o,this.notificationService=a,this.dialog=s,this.authService=u,this.menu=c,this.router=d,this.route=h,this.platform=f,this.showLeftContent=!1,this.showRightContent=!1,this.authService.getCasToken(),l.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){var p=this.cookieService.get("maarchParapheurLang");t.setDefaultLang(p)}else this.cookieService.set("maarchParapheurLang","fr"),t.setDefaultLang("fr");Cd.production||(this.debugMode=!0)}return Y(e,[{key:"test",value:function(){return!0}},{key:"allowedRoute",value:function(){var e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}]),e}()).\u0275fac=function(e){return new(e||O4)(Ps(zP),Ps(Tb),Ps($P),Ps(pp),Ps(oT),Ps(WP),Ps(KF),Ps(uN),Ps(tO),Ps(RE),Ps(h_),Ps(Uk),Ps(EA))},O4.\u0275cmp=Ft({type:O4,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(Is(0,"ion-app"),Is(1,"ion-split-pane",0),Is(2,"ion-menu",1,2),js("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),Ss(4,E4,1,0,"app-sidebar",3),Ms(5,"div",4),Ts(),Ms(6,"ion-router-outlet",5),Is(7,"ion-menu",6,7),js("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),Ms(9,"div",8),Ts(),Ts(),Ts(),Ss(10,P4,1,0,"app-dev-tool",9)),2&e&&(Yo(4),Os("ngIf",t.allowedRoute()),Yo(3),Os("ngClass",Zu(3,M4,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),Yo(3),Os("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[tS,JS,BS,jh,xE,Fh,y4,S4],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),O4);D4=WE.a,T4=void 0,"string"!=typeof(I4="fr-FR")&&(T4=I4,I4=D4[Ml.LocaleId]),I4=I4.toLowerCase().replace(/_/g,"-"),Dl[I4]=D4,T4&&(Dl[I4][Ml.ExtraData]=T4);var R4,L4=((R4=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||R4)},R4.\u0275mod=jt({type:R4,bootstrap:[B4]}),R4.\u0275inj=at({providers:[{provide:Bb,useClass:nO,multi:!0},$P,eW,WP,{provide:$x,useClass:VE},oT,kT],imports:[[$y,eb,yp,Yv,Yb,HE.forRoot({mode:"md"}),HP.forRoot({loader:{provide:lP,useFactory:N4,deps:[Tb]}}),xU,WI,KI,ST,nT,Tj,G3,lp]]}),R4),F4=function(){function e(t){Z(this,e),this.http=t}return Y(e,[{key:"getTranslation",value:function(e){return this.http.get("../rest/languages/"+e)}}]),e}();function N4(e){return new F4(e)}Cd.production&&function(){if(ad)throw new Error("Cannot enable prod mode after platform setup.");od=!1}(),vp().bootstrapModule(L4).catch(function(e){return console.log(e)})},mNvP:function(e,t){var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=r(e);function r(e,t){return function(n,i){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}void 0===n.Reflect?n.Reflect=e:i=r(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,a={__proto__:[]}instanceof Array,s=!o&&!a,l={create:o?function(){return B(Object.create(null))}:a?function(){return B({__proto__:null})}:function(){return B({})},has:s?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:s?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),c="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[r]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r<i;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,i)},t.prototype.values=function(){return new n(this._keys,this._values,o)},t.prototype.entries=function(){return new n(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[r]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function i(e,t){return e}function o(e,t){return t}function a(e,t){return[e,t]}}():Map,h=c||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[r]=function(){return this.keys()},e}():Set,f=new(c||"function"!=typeof WeakMap?function(){var e=l.create(),n=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=r(e,!1);return void 0!==t&&l.has(t,this._key)},e.prototype.get=function(e){var t=r(e,!1);return void 0!==t?l.get(t,this._key):void 0},e.prototype.set=function(e,t){return r(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=r(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var t;do{t="@@WeakMap@@"+a()}while(l.has(e,t));return e[t]=!0,t}function r(e,i){if(!t.call(e,n)){if(!i)return;Object.defineProperty(e,n,{value:l.create()})}return e[n]}function o(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function a(){var e="function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(16)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(16)):o(new Uint8Array(16),16):o(new Array(16),16);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var i=e[n];4!==n&&6!==n&&8!==n||(t+="-"),i<16&&(t+="0"),t+=i.toString(16).toLowerCase()}return t}}():WeakMap);function p(e,t,n){var i=f.get(e);if(_(i)){if(!n)return;i=new d,f.set(e,i)}var r=i.get(t);if(_(r)){if(!n)return;r=new d,i.set(t,r)}return r}function g(e,t,n){if(v(e,t,n))return!0;var i=M(t);return!A(i)&&g(e,i,n)}function v(e,t,n){var i=p(t,n,!1);return!_(i)&&!!i.has(e)}function m(e,t,n){if(v(e,t,n))return y(e,t,n);var i=M(t);return A(i)?void 0:m(e,i,n)}function y(e,t,n){var i=p(t,n,!1);if(!_(i))return i.get(e)}function b(e,t,n,i){p(n,i,!0).set(e,t)}function w(e,t){var n=k(e,t),i=M(e);if(null===i)return n;var r=w(i,t);if(r.length<=0)return n;if(n.length<=0)return r;for(var o=new h,a=[],s=0,l=n;s<l.length;s++)o.has(d=l[s])||(o.add(d),a.push(d));for(var u=0,c=r;u<c.length;u++){var d;o.has(d=c[u])||(o.add(d),a.push(d))}return a}function k(e,t){var n=[],i=p(e,t,!1);if(_(i))return n;for(var o=function(e){var t=D(e,r);if(!P(t))throw new TypeError;var n=t.call(e);if(!C(n))throw new TypeError;return n}(i.keys()),a=0;;){var s=I(o);if(!s)return n.length=a,n;var l=s.value;try{n[a]=l}catch(u){try{T(o)}finally{throw u}}a++}}function x(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function _(e){return void 0===e}function A(e){return null===e}function C(e){return"object"==typeof e?null!==e:"function"==typeof e}function S(e){var t=function(e,t){switch(x(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n="string",r=D(e,i);if(void 0!==r){var o=r.call(e,n);if(C(o))throw new TypeError;return o}return function(e,t){var n,i,r=e.toString;if(P(r)&&!C(i=r.call(e)))return i;if(P(n=e.valueOf)&&!C(i=n.call(e)))return i;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function E(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"function"==typeof e}function O(e){return"function"==typeof e}function D(e,t){var n=e[t];if(null!=n){if(!P(n))throw new TypeError;return n}}function I(e){var t=e.next();return!t.done&&t}function T(e){var t=e.return;t&&t.call(e)}function M(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var n=e.prototype,i=n&&Object.getPrototypeOf(n);if(null==i||i===Object.prototype)return t;var r=i.constructor;return"function"!=typeof r||r===e?t:r}function B(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,i){if(_(n)){if(!E(e))throw new TypeError;if(!O(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t);if(!_(i)&&!A(i)){if(!O(i))throw new TypeError;t=i}}return t}(e,t)}if(!E(e))throw new TypeError;if(!C(t))throw new TypeError;if(!C(i)&&!_(i)&&!A(i))throw new TypeError;return A(i)&&(i=void 0),function(e,t,n,i){for(var r=e.length-1;r>=0;--r){var o=(0,e[r])(t,n,i);if(!_(o)&&!A(o)){if(!C(o))throw new TypeError;i=o}}return i}(e,t,n=S(n),i)}),e("metadata",function(e,t){return function(n,i){if(!C(n))throw new TypeError;if(!_(i)&&!function(e){switch(x(e)){case 3:case 4:return!0;default:return!1}}(i))throw new TypeError;b(e,t,n,i)}}),e("defineMetadata",function(e,t,n,i){if(!C(n))throw new TypeError;return _(i)||(i=S(i)),b(e,t,n,i)}),e("hasMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),g(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),v(e,t,n)}),e("getMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),m(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),y(e,t,n)}),e("getMetadataKeys",function(e,t){if(!C(e))throw new TypeError;return _(t)||(t=S(t)),w(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!C(e))throw new TypeError;return _(t)||(t=S(t)),k(e,t)}),e("deleteMetadata",function(e,t,n){if(!C(t))throw new TypeError;_(n)||(n=S(n));var i=p(t,n,!1);if(_(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var r=f.get(t);return r.delete(n),r.size>0||f.delete(t),!0})}(i)}()}(n||(n={}))},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,r=n("1vRN"),o=function(e){if(void 0===i){var t=void 0!==e.style.webkitAnimationName;i=void 0===e.style.animationName&&t?"-webkit-":""}return i},a=function(e,t,n){var i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},s=function(e,t){var n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(V(e),V(n))}return e},c=function(e){var t,n,i,c,d,h,f,p,g,v,m,y,b,w=[],k=[],x=[],_=!1,A={},C=[],S=[],E={},P=0,O=!1,D=!1,I=!0,T=!1,M=!0,L=e,F=[],N=[],z=[],j=[],H=[],U=[],W=[],G=[],q=[],Y=[],Z="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,K="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Z,Q=function(e,t){return(t&&t.oneTimeCallback?N:F).push({c:e,o:t}),b},X=function(){if(K)Y.forEach(function(e){e.cancel()}),Y.length=0;else{var e=z.slice();Object(r.q)(function(){e.forEach(function(e){s(e,"animation-name"),s(e,"animation-duration"),s(e,"animation-timing-function"),s(e,"animation-iteration-count"),s(e,"animation-delay"),s(e,"animation-play-state"),s(e,"animation-fill-mode"),s(e,"animation-direction")})})}},J=function(){H.forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),H.length=0},$=function(){return void 0!==d?d:f?f.getFill():"both"},ee=function(){return void 0!==g?g:void 0!==h?h:f?f.getDirection():"normal"},te=function(){return O?"linear":void 0!==i?i:f?f.getEasing():"linear"},ne=function(){return D?0:void 0!==v?v:void 0!==n?n:f?f.getDuration():0},ie=function(){return void 0!==c?c:f?f.getIterations():1},re=function(){return void 0!==m?m:void 0!==t?t:f?f.getDelay():0},oe=function(){0!==P&&(0===--P&&(function(){fe(),G.forEach(function(e){return e()}),q.forEach(function(e){return e()});var e=I?1:0,t=C,n=S,i=E;z.forEach(function(e){var r=e.classList;for(var o in t.forEach(function(e){return r.add(e)}),n.forEach(function(e){return r.remove(e)}),i)i.hasOwnProperty(o)&&a(e,o,i[o])}),F.forEach(function(t){return t.c(e,b)}),N.forEach(function(t){return t.c(e,b)}),N.length=0,M=!0,I&&(T=!0),I=!0}(),f&&f.animationFinish()))},ae=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(function(){U.forEach(function(e){return e()}),W.forEach(function(e){return e()});var e=k,t=x,n=A;z.forEach(function(i){var r=i.classList;for(var o in e.forEach(function(e){return r.add(e)}),t.forEach(function(e){return r.remove(e)}),n)n.hasOwnProperty(o)&&a(i,o,n[o])})})(),w.length>0&&(K?(z.forEach(function(e){var t=e.animate(w,{id:L,delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()});t.pause(),Y.push(t)}),Y.length>0&&(Y[0].onfinish=function(){oe()})):function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J();var n,i=((n=w).forEach(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{var i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),n);z.forEach(function(n){if(i.length>0){var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.offset,n=[];for(var i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push("".concat(i,": ").concat(e[i],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")}).join(" ")}(i),u=function(e,t,n){var i=function(e){var t=e.getRootNode();return t.head||t}(n),r=o(n),a=i.querySelector("#"+e);if(a)return a;var s=(n.ownerDocument||document).createElement("style");return s.id=e,s.textContent="@".concat(r,"keyframes ").concat(e," { ").concat(t," } @").concat(r,"keyframes ").concat(e,"-alt { ").concat(t," }"),i.appendChild(s),s}(y=void 0!==e?e:function(e){var t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t}(s),s,n);H.push(u),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",re()+"ms"),a(n,"animation-fill-mode",$()),a(n,"animation-direction",ee());var c=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",c),a(n,"animation-play-state","paused"),t&&a(n,"animation-name",u.id+"-alt"),Object(r.q)(function(){a(n,"animation-name",u.id||null)})}})}(t)),_=!0},se=function(e){if(e=Math.min(Math.max(e,0),.9999),K)Y.forEach(function(t){t.currentTime=t.effect.getComputedTiming().delay+ne()*e,t.pause()});else{var t="-".concat(ne()*e,"ms");z.forEach(function(e){w.length>0&&(a(e,"animation-delay",t),a(e,"animation-play-state","paused"))})}},le=function(e){Y.forEach(function(e){e.effect.updateTiming({delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()})}),void 0!==e&&se(e)},ue=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;Object(r.q)(function(){z.forEach(function(n){a(n,"animation-name",y||null),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",void 0!==t?"-".concat(t*ne(),"ms"):re()+"ms"),a(n,"animation-fill-mode",$()||null),a(n,"animation-direction",ee()||null);var i=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",i),e&&a(n,"animation-name",y+"-alt"),Object(r.q)(function(){a(n,"animation-name",y||null)})})})},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e&&j.forEach(function(i){i.update(e,t,n)}),K?le(n):ue(t,n),b},de=function(){_&&(K?Y.forEach(function(e){e.pause()}):z.forEach(function(e){a(e,"animation-play-state","paused")}))},he=function(){p=void 0,oe()},fe=function(){p&&clearTimeout(p)},pe=function(e){return new Promise(function(t){e&&e.sync&&(D=!0,Q(function(){return D=!1},{oneTimeCallback:!0})),_||ae(),T&&(K?(se(0),le()):ue(),T=!1),M&&(P=j.length+1,M=!1),Q(function(){return t()},{oneTimeCallback:!0}),j.forEach(function(e){e.play()}),K?(Y.forEach(function(e){e.play()}),0!==w.length&&0!==z.length||oe()):function(){if(fe(),Object(r.q)(function(){z.forEach(function(e){w.length>0&&a(e,"animation-play-state","running")})}),0===w.length||0===z.length)oe();else{var e=re()||0,t=ne()||0,n=ie()||1;isFinite(n)&&(p=setTimeout(he,e+t*n+100)),function(e,t){var n,i={passive:!0},o=function(t){e===t.target&&(n&&n(),fe(),Object(r.q)(function(){z.forEach(function(e){s(e,"animation-duration"),s(e,"animation-delay"),s(e,"animation-play-state")}),Object(r.q)(oe)}))};e&&(e.addEventListener("webkitAnimationEnd",o,i),e.addEventListener("animationend",o,i),n=function(){e.removeEventListener("webkitAnimationEnd",o,i),e.removeEventListener("animationend",o,i)})}(z[0])}}()})},ge=function(e,t){var n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[B({offset:0},e,t)].concat(V(w)):n[e]=t,b};return b={parentAnimation:f,elements:z,childAnimations:j,id:L,animationFinish:oe,from:ge,to:function(e,t){var n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[].concat(V(w),[B({offset:1},e,t)]):n[e]=t,b},fromTo:function(e,t,n){return ge(e,t).to(e,n)},parent:function(e){return f=e,b},play:pe,pause:function(){return j.forEach(function(e){e.pause()}),de(),b},stop:function(){j.forEach(function(e){e.stop()}),_&&(X(),_=!1),O=!1,D=!1,M=!0,g=void 0,v=void 0,m=void 0,P=0,T=!1,I=!0},destroy:function(e){return j.forEach(function(t){t.destroy(e)}),function(e){X(),e&&J()}(e),z.length=0,j.length=0,w.length=0,F.length=0,N.length=0,_=!1,M=!0,b},keyframes:function(e){return w=e,b},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=R(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.parent(b),j.push(i)}}catch(r){n.e(r)}finally{n.f()}}else e.parent(b),j.push(e);return b},addElement:function(e){if(null!=e)if(1===e.nodeType)z.push(e);else if(e.length>=0)for(var t=0;t<e.length;t++)z.push(e[t]);else console.error("Invalid addElement value");return b},update:ce,fill:function(e){return d=e,ce(!0),b},direction:function(e){return h=e,ce(!0),b},iterations:function(e){return c=e,ce(!0),b},duration:function(e){return K||0!==e||(e=1),n=e,ce(!0),b},easing:function(e){return i=e,ce(!0),b},delay:function(e){return t=e,ce(!0),b},getWebAnimations:function(){return Y},getKeyframes:function(){return w},getFill:$,getDirection:ee,getDelay:re,getIterations:ie,getEasing:te,getDuration:ne,afterAddRead:function(e){return G.push(e),b},afterAddWrite:function(e){return q.push(e),b},afterClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=R(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;E[i]=""}}catch(r){n.e(r)}finally{n.f()}return b},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E=e,b},afterRemoveClass:function(e){return S=u(S,e),b},afterAddClass:function(e){return C=u(C,e),b},beforeAddRead:function(e){return U.push(e),b},beforeAddWrite:function(e){return W.push(e),b},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=R(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;A[i]=""}}catch(r){n.e(r)}finally{n.f()}return b},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A=e,b},beforeRemoveClass:function(e){return x=u(x,e),b},beforeAddClass:function(e){return k=u(k,e),b},onFinish:Q,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return j.forEach(function(n){n.progressStart(e,t)}),de(),O=e,_?ce(!1,!0,t):ae(),b},progressStep:function(e){return j.forEach(function(t){t.progressStep(e)}),se(e),b},progressEnd:function(e,t,n){return O=!1,j.forEach(function(i){i.progressEnd(e,t,n)}),void 0!==n&&(v=n),T=!1,I=!0,0===e?("reverse"===(g="reverse"===ee()?"normal":"reverse")&&(I=!1),K?(ce(),se(1-t)):(m=(1-t)*ne()*-1,ce(!1,!1))):1===e&&(K?(ce(),se(t)):(m=t*ne()*-1,ce(!1,!1))),void 0!==e&&(Q(function(){v=void 0,g=void 0,m=void 0},{oneTimeCallback:!0}),f||pe()),b}}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,k,x,_=n("B4Jq"),A=n("1vRN"),C=n("E/Mt"),S=n("meiF"),E=function(e){return Object(S.a)().duration(e?400:300)},P=function(e){var t,n,i=e.width+8,r=Object(S.a)(),o=Object(S.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),r.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")"));var a="ios"===Object(C.b)(e),s=a?.2:.25;return o.addElement(e.backdropEl).fromTo("opacity",.01,s),E(a).addAnimation([r,o])},O=function(e){var t,n,i=Object(C.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");var o=Object(S.a)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),a=Object(S.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=Object(S.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return E("ios"===i).addAnimation([o,a,s])},D=function(e){var t=Object(C.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(S.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(n,")"));return E("ios"===t).addAnimation(i)},I=(f=new Map,p=[],g=function(){var e=G(U().mark(function e(t){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return","start"===t||"end"===t?k(function(e){return e.side===t&&!e.disabled})||k(function(e){return e.side===t}):null!=t?k(function(e){return e.menuId===t}):k(function(e){return!e.disabled})||(p.length>0?p[0].el:void 0));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return",b());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),y=function(e){var t=e.side;p.filter(function(n){return n.side===t&&n!==e}).forEach(function(e){return e.disabled=!0})},b=function(){return k(function(e){return e._isOpen})},w=function(){return p.some(function(e){return e.isAnimating})},k=function(e){var t=p.find(e);if(void 0!==t)return t.el},x=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(e){return new Promise(function(t){return Object(A.c)(e,t)})}))},(m=function(e,t){f.set(e,t)})("reveal",D),m("push",O),m("overlay",P),"undefined"!=typeof document&&document.addEventListener("ionBackButton",function(e){var t=b();t&&e.detail.register(_.MENU_BACK_BUTTON_PRIORITY,function(){return t.close()})}),{registerAnimation:m,get:g,getMenus:(h=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return",p.map(function(e){return e.el}));case 3:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)}),getOpen:v,isEnabled:(d=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&!n.disabled);case 4:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)}),swipeGesture:(c=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.swipeGesture=t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return c.apply(this,arguments)}),isAnimating:(u=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return",w());case 3:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)}),isOpen:(l=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=5;break}return e.next=3,g(t);case 3:return n=e.sent,e.abrupt("return",void 0!==n&&n.isOpen());case 5:return e.t0=void 0,e.next=8,v();case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)}),enable:(s=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.disabled=!t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return s.apply(this,arguments)}),toggle:(a=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.toggle());case 4:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),close:(o=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?g(t):v();case 2:return n=e.sent,e.abrupt("return",void 0!==n&&n.close());case 4:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),open:(r=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.open());case 4:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),_getOpenSync:b,_createAnimation:function(e,t){var n=f.get(e);if(!n)throw new Error("animation not registered");return n(t)},_register:function(e){p.indexOf(e)<0&&(e.disabled||y(e),p.push(e))},_unregister:function(e){var t=p.indexOf(e);t>-1&&p.splice(t,1)},_setOpen:(i=G(U().mark(function e(t,n,i){var r;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!w()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=10;break}return e.next=5,v();case 5:if(r=e.sent,e.t0=r&&t.el!==r,!e.t0){e.next=10;break}return e.next=10,r.setOpen(!1,!1);case 10:return e.abrupt("return",t._setOpen(n,i));case 11:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)}),_setActiveMenu:y})},wEJo:function(e,t,n){"use strict";n.d(t,"a",function(){return Qe}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return N}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return De}),n.d(t,"f",function(){return Ke}),n.d(t,"g",function(){return de}),n.d(t,"h",function(){return Ze}),n.d(t,"i",function(){return T}),n.d(t,"j",function(){return R}),n.d(t,"k",function(){return ce}),n.d(t,"l",function(){return be}),n.d(t,"m",function(){return Ie}),n.d(t,"n",function(){return p}),n.d(t,"o",function(){return Be}),n.d(t,"p",function(){return D}),n.d(t,"q",function(){return d});var i,r,o,a=!1,s=!1,l=!1,u=!1,c=!1,d="undefined"!=typeof window?window:{},h=d.CSS,f=d.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,i){return e.addEventListener(t,n,i)},rel:function(e,t,n,i){return e.removeEventListener(t,n,i)},ce:function(e,t){return new CustomEvent(e,t)}},g=(f.head.attachShadow+"").indexOf("[native")>-1,v=function(e){return Promise.resolve(e)},m=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),y=function(e,t,n,i){n&&n.map(function(n){var i=L(n,3),r=i[0],o=i[1],a=i[2],s=w(e,r),l=b(t,a),u=k(r);p.ael(s,o,l,u),(t.$rmListeners$=t.$rmListeners$||[]).push(function(){return p.rel(s,o,l,u)})})},b=function(e,t){return function(n){try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Fe(i)}}},w=function(e,t){return 4&t?f:8&t?d:16&t?f.body:e},k=function(e){return 0!=(2&e)},x="http://www.w3.org/1999/xlink",A=new WeakMap,C=function(e,t,n){var i=ze.get(e);m&&n?(i=i||new CSSStyleSheet).replace(t):i=t,ze.set(e,i)},S=function(e,t,n,i){var r=P(t,n),o=ze.get(r);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){var a,s=A.get(e=e.head||e);if(s||A.set(e,s=new Set),!s.has(r)){if(e.host&&(a=e.querySelector('[sty-id="'.concat(r,'"]'))))a.innerHTML=o;else{if(p.$cssShim$){var l=(a=p.$cssShim$.createHostStyle(i,r,o,!!(10&t.$flags$)))["s-sc"];l&&(r=l,s=null)}else(a=f.createElement("style")).innerHTML=o;e.insertBefore(a,e.querySelector("link"))}s&&s.add(r)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[].concat(V(e.adoptedStyleSheets),[o]));return r},P=function(e,t){return"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},D=function(e){return je.push(e)},T=function(e){return Me(e).$modeName$},M={},B=function(e){return"object"==(e=typeof e)||"function"===e},R=function(e,t){for(var n=null,i=null,r=null,o=!1,a=!1,s=[],l=function t(i){for(var r=0;r<i.length;r++)n=i[r],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((o="function"!=typeof e&&!B(n))&&(n=String(n)),o&&a?s[s.length-1].$text$+=n:s.push(o?F(null,n):n),a=o)},u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];if(l(c),t){t.key&&(i=t.key),t.name&&(r=t.name);var h=t.className||t.class;h&&(t.class="object"!=typeof h?h:Object.keys(h).filter(function(e){return h[e]}).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,z);var f=F(e,null);return f.$attrs$=t,s.length>0&&(f.$children$=s),f.$key$=i,f.$name$=r,f},F=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},N={},z={forEach:function(e,t){return e.map(j).forEach(t)},map:function(e,t){return e.map(j).map(t).map(H)}},j=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},H=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R.apply(void 0,[e.vtag,t].concat(V(e.vchildren||[])))}var n=F(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},W=function(e,t,n,i,r,o){if(n!==i){var a=Le(e,t),s=t.toLowerCase();if("class"===t){var l=e.classList,u=K(n),c=K(i);l.remove.apply(l,V(u.filter(function(e){return e&&!c.includes(e)}))),l.add.apply(l,V(c.filter(function(e){return e&&!u.includes(e)})))}else if("style"===t){for(var h in n)i&&null!=i[h]||(h.includes("-")?e.style.removeProperty(h):e.style[h]="");for(var f in i)n&&i[f]===n[f]||(f.includes("-")?e.style.setProperty(f,i[f]):e.style[f]=i[f])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){var g=B(i);if((a||g&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{var v=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==v||(e[t]=v)}}catch(y){}var m=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,m=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(m?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!a||4&o||r)&&!g&&(i=!0===i?"":i,m?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):Le(d,s)?s.slice(2):s[2]+t.slice(3),n&&p.rel(e,t,n,!1),i&&p.ael(e,t,i,!1)}},q=/\s/,K=function(e){return e?e.split(q):[]},Q=function(e,t,n,i){var r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||M,a=t.$attrs$||M;for(i in o)i in a||W(r,i,o[i],void 0,n,t.$flags$);for(i in a)W(r,i,o[i],a[i],n,t.$flags$)},X=function e(t,n,s,c){var d,h,p,g=n.$children$[s],v=0;if(a||(l=!0,"slot"===g.$tag$&&(i&&c.classList.add(i+"-s"),g.$flags$|=g.$children$?2:1)),null!==g.$text$)d=g.$elm$=f.createTextNode(g.$text$);else if(1&g.$flags$)d=g.$elm$=f.createTextNode("");else{if(u||(u="svg"===g.$tag$),d=g.$elm$=f.createElementNS(u?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&g.$flags$?"slot-fb":g.$tag$),u&&"foreignObject"===g.$tag$&&(u=!1),Q(null,g,u),null!=i&&d["s-si"]!==i&&d.classList.add(d["s-si"]=i),g.$children$)for(v=0;v<g.$children$.length;++v)(h=e(t,g,v,d))&&d.appendChild(h);"svg"===g.$tag$?u=!1:"foreignObject"===d.tagName&&(u=!0)}return d["s-hn"]=o,3&g.$flags$&&(d["s-sr"]=!0,d["s-cr"]=r,d["s-sn"]=g.$name$||"",(p=t&&t.$children$&&t.$children$[s])&&p.$tag$===g.$tag$&&t.$elm$&&J(t.$elm$,!1)),d},J=function e(t,n){p.$flags$|=1;for(var i=t.childNodes,r=i.length-1;r>=0;r--){var a=i[r];a["s-hn"]!==o&&a["s-ol"]&&(ie(a).insertBefore(a,ne(a)),a["s-ol"].remove(),a["s-ol"]=void 0,l=!0),n&&e(a,n)}p.$flags$&=-2},$=function(e,t,n,i,r,a){var s,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);r<=a;++r)i[r]&&((s=X(null,n,r,e))&&(i[r].$elm$=s,l.insertBefore(s,ne(t))))},ee=function(e,t,n,i,r){for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,ue(i),s=!0,r["s-ol"]?r["s-ol"].remove():J(r,!0),r.remove())},te=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},ne=function(e){return e&&e["s-ol"]||e},ie=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},re=function e(t,n){var i,r=n.$elm$=t.$elm$,o=t.$children$,a=n.$children$,s=n.$tag$,l=n.$text$;null===l?(u="svg"===s||"foreignObject"!==s&&u,"slot"===s||Q(t,n,u),null!==o&&null!==a?function(t,n,i,r){for(var o,a,s=0,l=0,u=0,c=0,d=n.length-1,h=n[0],f=n[d],p=r.length-1,g=r[0],v=r[p];s<=d&&l<=p;)if(null==h)h=n[++s];else if(null==f)f=n[--d];else if(null==g)g=r[++l];else if(null==v)v=r[--p];else if(te(h,g))e(h,g),h=n[++s],g=r[++l];else if(te(f,v))e(f,v),f=n[--d],v=r[--p];else if(te(h,v))"slot"!==h.$tag$&&"slot"!==v.$tag$||J(h.$elm$.parentNode,!1),e(h,v),t.insertBefore(h.$elm$,f.$elm$.nextSibling),h=n[++s],v=r[--p];else if(te(f,g))"slot"!==h.$tag$&&"slot"!==v.$tag$||J(f.$elm$.parentNode,!1),e(f,g),t.insertBefore(f.$elm$,h.$elm$),f=n[--d],g=r[++l];else{for(u=-1,c=s;c<=d;++c)if(n[c]&&null!==n[c].$key$&&n[c].$key$===g.$key$){u=c;break}u>=0?((a=n[u]).$tag$!==g.$tag$?o=X(n&&n[l],i,u,t):(e(a,g),n[u]=void 0,o=a.$elm$),g=r[++l]):(o=X(n&&n[l],i,l,t),g=r[++l]),o&&ie(h.$elm$).insertBefore(o,ne(h.$elm$))}s>d?$(t,null==r[p+1]?null:r[p+1].$elm$,i,r,l,p):l>p&&ee(n,s,d)}(r,o,n,a):null!==a?(null!==t.$text$&&(r.textContent=""),$(r,null,n,a,0,a.length-1)):null!==o&&ee(o,0,o.length-1),u&&"svg"===s&&(u=!1)):(i=r["s-cr"])?i.parentNode.textContent=l:t.$text$!==l&&(r.data=l)},oe=function e(t){var n,i,r,o,a,s,l=t.childNodes;for(i=0,r=l.length;i<r;i++)if(1===(n=l[i]).nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<r;o++)if(s=l[o].nodeType,l[o]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===l[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==l[o].textContent.trim()){n.hidden=!0;break}e(n)}},ae=[],se=function e(t){for(var n,i,r,o,a,l,u=0,c=t.childNodes,d=c.length;u<d;u++){if((n=c[u])["s-sr"]&&(i=n["s-cr"])&&i.parentNode)for(r=i.parentNode.childNodes,o=n["s-sn"],l=r.length-1;l>=0;l--)(i=r[l])["s-cn"]||i["s-nr"]||i["s-hn"]===n["s-hn"]||(le(i,o)?(a=ae.find(function(e){return e.$nodeToRelocate$===i}),s=!0,i["s-sn"]=i["s-sn"]||o,a?a.$slotRefNode$=n:ae.push({$slotRefNode$:n,$nodeToRelocate$:i}),i["s-sr"]&&ae.map(function(e){le(e.$nodeToRelocate$,i["s-sn"])&&((a=ae.find(function(e){return e.$nodeToRelocate$===i}))&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$slotRefNode$))})):ae.some(function(e){return e.$nodeToRelocate$===i})||ae.push({$nodeToRelocate$:i}));1===n.nodeType&&e(n)}},le=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},ue=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},ce=function(e){return Me(e).$hostElement$},de=function(e,t,n){var i=ce(e);return{emit:function(e){return he(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},he=function(e,t,n){var i=p.ce(t,n);return e.dispatchEvent(i),i},fe=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(function(t){return e.$onRenderResolve$=t}))},pe=function(e,t){if(e.$flags$|=16,!(4&e.$flags$))return fe(e,e.$ancestorComponent$),Ke(function(){return ge(e,t)});e.$flags$|=512},ge=function(e,t){var n,i=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(function(e){var t=L(e,2),n=t[0],r=t[1];return ke(i,n,r)}),e.$queuedListeners$=null),n=ke(i,"componentWillLoad")),n=xe(n,function(){return ke(i,"componentWillRender")}),xe(n,function(){return ve(e,i,t)})},ve=function(){var e=G(U().mark(function e(t,n,i){var r,o,a,s;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.$hostElement$,o=r["s-rc"],i&&function(e){var t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=S(g&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"),2&i&&n.classList.add(r+"-s"))}(t),me(t,n),p.$cssShim$&&p.$cssShim$.updateHost(r),o&&(o.map(function(e){return e()}),r["s-rc"]=void 0),a=r["s-p"],s=function(){return ye(t)},0===a.length?s():(Promise.all(a).then(s),t.$flags$|=4,a.length=0);case 4:case"end":return e.stop()}},e)}));return function(t,n,i){return e.apply(this,arguments)}}(),me=function(e,t,n){try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,function(e,t){var n,u=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||F(null,null),h=(n=t)&&n.$tag$===N?t:R(null,null,t);if(o=u.tagName,c.$attrsToReflect$&&(h.$attrs$=h.$attrs$||{},c.$attrsToReflect$.map(function(e){var t=L(e,2),n=t[0],i=t[1];return h.$attrs$[i]=u[n]})),h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=d.$elm$=u.shadowRoot||u,i=u["s-sc"],r=u["s-cr"],a=g&&0!=(1&c.$flags$),s=!1,re(d,h),p.$flags$|=1,l){var v,m,y,b,w,k;se(h.$elm$);for(var x=0;x<ae.length;x++)(m=(v=ae[x]).$nodeToRelocate$)["s-ol"]||((y=f.createTextNode(""))["s-nr"]=m,m.parentNode.insertBefore(m["s-ol"]=y,m));for(x=0;x<ae.length;x++)if(m=(v=ae[x]).$nodeToRelocate$,v.$slotRefNode$){for(b=v.$slotRefNode$.parentNode,w=v.$slotRefNode$.nextSibling,y=m["s-ol"];y=y.previousSibling;)if((k=y["s-nr"])&&k["s-sn"]===m["s-sn"]&&b===k.parentNode&&(!(k=k.nextSibling)||!k["s-nr"])){w=k;break}(!w&&b!==m.parentNode||m.nextSibling!==w)&&m!==w&&(!m["s-hn"]&&m["s-ol"]&&(m["s-hn"]=m["s-ol"].parentNode.nodeName),b.insertBefore(m,w))}else 1===m.nodeType&&(m.hidden=!0)}s&&oe(h.$elm$),p.$flags$&=-2,ae.length=0}(e,t)}catch(u){Fe(u,e.$hostElement$)}return null},ye=function(e){var t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?ke(n,"componentDidUpdate"):(e.$flags$|=64,_e(t),ke(n,"componentDidLoad"),e.$onReadyResolve$(t),i||we()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ye(function(){return pe(e,!1)}),e.$flags$&=-517},be=function(e){var t=Me(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&pe(t,!1),n},we=function(e){_e(f.documentElement),Ye(function(){return he(d,"appload",{detail:{namespace:"ionic"}})})},ke=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(i){Fe(i)}},xe=function(e,t){return e&&e.then?e.then(t):t()},_e=function(e){return e.classList.add("hydrated")},Ae=function e(t,n,i,r,o,a,s){var l,u,c,d;if(1===a.nodeType){for((l=a.getAttribute("c-id"))&&((u=l.split("."))[0]!==s&&"0"!==u[0]||(c={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},n.push(c),a.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,t=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),d=a.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.childNodes[d],s);if(a.shadowRoot)for(d=a.shadowRoot.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.shadowRoot.childNodes[d],s)}else if(8===a.nodeType)(u=a.nodeValue.split("."))[1]!==s&&"0"!==u[1]||(l=u[0],c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(c.$elm$=a.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,n.push(c),a.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===l?(c.$tag$="slot",a["s-sn"]=u[5]?c.$name$=u[5]:"",a["s-sr"]=!0,r&&(c.$elm$=f.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),a.parentNode.insertBefore(c.$elm$,a),a.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),i.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===l&&(r?a.remove():(o["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var h=F(null,a.textContent);h.$elm$=a,h.$index$="0",t.$children$=[h]}},Ce=function e(t,n){if(1===t.nodeType){for(var i=0;i<t.childNodes.length;i++)e(t.childNodes[i],n);if(t.shadowRoot)for(i=0;i<t.shadowRoot.childNodes.length;i++)e(t.shadowRoot.childNodes[i],n)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(n.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Se=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var i=Object.entries(t.$members$),r=e.prototype;if(i.map(function(e){var i=L(e,2),o=i[0],a=L(i[1],1)[0];31&a||2&n&&32&a?Object.defineProperty(r,o,{get:function(){return e=o,Me(this).$instanceValues$.get(e);var e},set:function(e){var n=this;!function(e,t,i,r){var o,a,s=Me(n),l=s.$hostElement$,u=s.$instanceValues$.get(t),c=s.$flags$,d=s.$lazyInstance$;if(a=r.$members$[t][0],i=null==(o=i)||B(o)?o:4&a?"false"!==o&&(""===o||!!o):2&a?parseFloat(o):1&a?String(o):o,!(8&c&&void 0!==u||i===u)&&(s.$instanceValues$.set(t,i),d)){if(r.$watchers$&&128&c){var h=r.$watchers$[t];h&&h.map(function(e){try{d[e](i,u,t)}catch(n){Fe(n,l)}})}2==(18&c)&&pe(s,!1)}}(0,o,e,t)},configurable:!0,enumerable:!0}):1&n&&64&a&&Object.defineProperty(r,o,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Me(this);return i.$onInstancePromise$.then(function(){var e;return(e=i.$lazyInstance$)[o].apply(e,t)})}})}),1&n){var o=new Map;r.attributeChangedCallback=function(e,t,n){var i=this;p.jmp(function(){var t=o.get(e);i[t]=(null!==n||"boolean"!=typeof i[t])&&n})},e.observedAttributes=i.filter(function(e){var t=L(e,2);t[0];return 15&t[1][0]}).map(function(e){var n=L(e,2),i=n[0],r=n[1],a=r[1]||i;return o.set(a,i),512&r[0]&&t.$attrsToReflect$.push([i,a]),a})}}return e},Ee=function(e){ke(e,"connectedCallback")},Pe=function(e){if(0==(1&p.$flags$)){var t=Me(e),i=t.$cmpMeta$;if(1&t.$flags$)y(e,t,i.$listeners$),Ee(t.$lazyInstance$);else{var r;if(t.$flags$|=1,r=e.getAttribute("s-id")){if(g&&1&i.$flags$){var o=S(e.shadowRoot,i,e.getAttribute("s-mode"));e.classList.remove(o+"-h",o+"-s")}!function(e,t,n,i){var r=e.shadowRoot,o=[],a=r?[]:null,s=i.$vnode$=F(t,null);p.$orgLocNodes$||Ce(f.body,p.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),Ae(s,o,[],a,e,e,n),o.map(function(e){var n=e.$hostId$+"."+e.$nodeId$,i=p.$orgLocNodes$.get(n),o=e.$elm$;i&&g&&""===i["s-en"]&&i.parentNode.insertBefore(o,i.nextSibling),r||(o["s-hn"]=t,i&&(o["s-ol"]=i,o["s-ol"]["s-nr"]=o)),p.$orgLocNodes$.delete(n)}),r&&a.map(function(e){e&&r.appendChild(e)})}(e,i.$tagName$,r,t)}r||12&i.$flags$&&Oe(e);for(var a=e;a=a.parentNode||a.host;)if(1===a.nodeType&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){fe(t,t.$ancestorComponent$=a);break}i.$members$&&Object.entries(i.$members$).map(function(t){var n=L(t,2),i=n[0];if(31&L(n[1],1)[0]&&e.hasOwnProperty(i)){var r=e[i];delete e[i],e[i]=r}}),Ye(function(){return(r=G(U().mark(function e(t,i,r,o,a){var s,l,u,c,d,h;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(32&i.$flags$)){e.next=25;break}if(i.$flags$|=32,!(a=Ve(r)).then){e.next=7;break}return s=function(){},e.next=5,a;case 5:a=e.sent,s();case 7:a.isProxied||(r.$watchers$=a.watchers,Se(a,r,2),a.isProxied=!0),i.$flags$|=8;try{new a(i)}catch(o){Fe(o)}if(i.$flags$&=-9,i.$flags$|=128,Ee(i.$lazyInstance$),!a.style){e.next=25;break}if("string"!=typeof(l=a.style)&&(l=l[i.$modeName$=function(e){return je.map(function(t){return t(e)}).find(function(e){return!!e})}(t)]),u=P(r,i.$modeName$),ze.has(u)){e.next=25;break}if(c=function(){},e.t0=8&r.$flags$,!e.t0){e.next=23;break}return e.next=22,n.e(57).then(n.bind(null,"JmUR")).then(function(e){return e.scopeCss(l,u,!1)});case 22:l=e.sent;case 23:C(u,l,!!(1&r.$flags$)),c();case 25:d=i.$ancestorComponent$,h=function(){return pe(i,!0)},d&&d["s-rc"]?d["s-rc"].push(h):h();case 27:case"end":return e.stop()}},e)})),function(e,t,n,i,o){return r.apply(this,arguments)})(e,t,i);var r})}}},Oe=function(e){var t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},De=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],r=n.exclude||[],o=d.customElements,a=f.head,s=a.querySelector("meta[charset]"),l=f.createElement("style"),u=[],c=f.querySelectorAll("[sty-id]"),h=!0,v=0;for(Object.assign(p,n),p.$resourcesUrl$=new URL(n.resourcesUrl||"./",f.baseURI).href,p.$flags$|=2;v<c.length;v++)C(c[v].getAttribute("sty-id"),c[v].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(function(e){return e[1].map(function(n){var a={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};a.$members$=n[2],a.$listeners$=n[3],a.$attrsToReflect$=[],a.$watchers$={},!g&&1&a.$flags$&&(a.$flags$|=8);var s=a.$tagName$,l=function(e){E(i,e);var n=O(i);function i(e){var t;return Z(this,i),t=n.call(this,e),Re(e=I(t),a),1&a.$flags$&&(g?e.attachShadow({mode:"open",delegatesFocus:!!(16&a.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),t}return Y(i,[{key:"connectedCallback",value:function(){var e=this;t&&(clearTimeout(t),t=null),h?u.push(this):p.jmp(function(){return Pe(e)})}},{key:"disconnectedCallback",value:function(){var e=this;p.jmp(function(){return function(e){if(0==(1&p.$flags$)){var t=Me(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(function(e){return e()}),t.$rmListeners$=void 0),p.$cssShim$&&p.$cssShim$.removeHost(e),ke(n,"disconnectedCallback")}}(e)})}},{key:"componentOnReady",value:function(){return Me(this).$onReadyPromise$}}]),i}(_(HTMLElement));a.$lazyBundleId$=e[0],r.includes(s)||o.get(s)||(i.push(s),o.define(s,Se(l,a,1)))})}),l.innerHTML=i+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),a.insertBefore(l,s?s.nextSibling:a.firstChild),h=!1,u.length?u.map(function(e){return e.connectedCallback()}):p.jmp(function(){return t=setTimeout(we,30)})},Ie=function(e){var t=new URL(e,p.$resourcesUrl$);return t.origin!==d.location.origin?t.href:t.pathname},Te=new WeakMap,Me=function(e){return Te.get(e)},Be=function(e,t){return Te.set(t.$lazyInstance$=e,t)},Re=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(function(e){return n.$onInstanceResolve$=e}),n.$onReadyPromise$=new Promise(function(e){return n.$onReadyResolve$=e}),e["s-p"]=[],e["s-rc"]=[],y(e,n,t.$listeners$),Te.set(e,n)},Le=function(e,t){return t in e},Fe=function(e,t){return(0,console.error)(e,t)},Ne=new Map,Ve=function(e,t,i){var r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=Ne.get(o);return a?a[r]:n("kLfG")("./".concat(o,".entry.js")).then(function(e){return Ne.set(o,e),e[r]},Fe)},ze=new Map,je=[],He=[],Ue=[],We=function(e,t){return function(n){e.push(n),c||(c=!0,t&&4&p.$flags$?Ye(qe):p.raf(qe))}},Ge=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){Fe(n)}e.length=0},qe=function e(){Ge(He),Ge(Ue),(c=He.length>0)&&p.raf(e)},Ye=function(e){return v().then(e)},Ze=We(He,!1),Ke=We(Ue,!0),Qe={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=function(){function e(t,n,i,r,o){Z(this,e),this.id=n,this.name=i,this.disableScroll=o,this.priority=1e6*r+n,this.ctrl=t}return Y(e,[{key:"canStart",value:function(){return!!this.ctrl&&this.ctrl.canStart(this.name)}},{key:"start",value:function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}},{key:"capture",value:function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}},{key:"release",value:function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}},{key:"destroy",value:function(){this.release(),this.ctrl=void 0}}]),e}(),r=function(){function e(t,n,i,r){Z(this,e),this.id=n,this.disable=i,this.disableScroll=r,this.ctrl=t}return Y(e,[{key:"block",value:function(){if(this.ctrl){if(this.disable){var e,t=R(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.disableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.disableScroll(this.id)}}},{key:"unblock",value:function(){if(this.ctrl){if(this.disable){var e,t=R(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.enableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.enableScroll(this.id)}}},{key:"destroy",value:function(){this.unblock(),this.ctrl=void 0}}]),e}(),o=new(function(){function e(){Z(this,e),this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return Y(e,[{key:"createGesture",value:function(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}},{key:"createBlocker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(this,this.newID(),e.disable,!!e.disableScroll)}},{key:"start",value:function(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}},{key:"capture",value:function(e,t,n){if(!this.start(e,t,n))return!1;var i=this.requestedStart,r=-1e4;if(i.forEach(function(e){r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(o),!0}return i.delete(t),!1}},{key:"release",value:function(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}},{key:"disableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}},{key:"enableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}},{key:"disableScroll",value:function(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}},{key:"enableScroll",value:function(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}},{key:"canStart",value:function(e){return void 0===this.capturedId&&!this.isDisabled(e)}},{key:"isCaptured",value:function(){return void 0!==this.capturedId}},{key:"isScrollDisabled",value:function(){return this.disabledScroll.size>0}},{key:"isDisabled",value:function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)}},{key:"newID",value:function(){return this.gestureId++,this.gestureId}}]),e}())}},[[0,1]]])}();
\ No newline at end of file
+!function(){var e=["name","optional","primitiveSchema"],t=["value"],i=["isHexOnly"],r=["value","isIndefiniteForm"],o=["value"],a=["isConstructed"],s=["idBlock","lenBlock"],l=["unusedBits","isConstructed"],u=["idBlock","lenBlock"],c=["value"],d=["valueDec","isFirstSid"],h=["value"],f=["valueDec"],p=["value"],g=["value","valueDate"],v=["value"],m=["value","local"];function y(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e){var t="function"==typeof Map?new Map:void 0;return(_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return A(e,arguments,M(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),P(i,e)})(e)}function A(e,t,n){return(A=T()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&P(r,n.prototype),r}).apply(null,arguments)}function C(){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=S(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function S(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}function E(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}function P(e,t){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=T();return function(){var n,i=M(e);if(t){var r=M(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=z(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function L(e,t){return N(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||z(e,t)||F()}function F(){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 N(e){if(Array.isArray(e))return e}function V(e){return function(e){if(Array.isArray(e))return H(e)}(e)||j(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return H(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)?H(e,t):void 0}}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function U(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:k(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=u;var d={};function h(){}function f(){}function p(){}var g={};l(g,o,function(){return this});var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==t&&n.call(m,o)&&(g=m);var y=p.prototype=h.prototype=Object.create(g);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(d).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,s)})}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t(function(t,i){r(e,n,t,i)})}return o=o?o.then(i,i):i()}})}function k(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function _(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(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 i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=p,i(y,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},b(y),l(y,s,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=S,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function W(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){W(o,i,r,a,s,"next",e)}function s(e){W(o,i,r,a,s,"throw",e)}a(void 0)})}}function q(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Y(e,t,n){return t&&q(e.prototype,t),n&&q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(e,t,n){e.exports=n("m9/o")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return r}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return p}),n.d(t,"m",function(){return m}),n.d(t,"n",function(){return b}),n.d(t,"o",function(){return g}),n.d(t,"p",function(){return v}),n.d(t,"q",function(){return l});var i=function(e,t){e.componentOnReady?e.componentOnReady().then(function(e){return t(e)}):l(function(){return t(e)})},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(function(t){e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},o=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_ael");if(a)return a(e,t,n,i);if(o._ael)return o._ael(e,t,n,i)}}return e.addEventListener(t,n,i)},a=function(e,t,n,i){if("undefined"!=typeof window){var r=window,o=r&&r.Ionic&&r.Ionic.config;if(o){var a=o.get("_rel");if(a)return a(e,t,n,i);if(o._rel)return o._rel(e,t,n,i)}}return e.removeEventListener(t,n,i)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return e.shadowRoot||t},l=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},u=function(e){return!!e.shadowRoot&&!!e.attachShadow},c=function(e){var t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=function(e,t){var n,i=e.getAttribute("aria-labelledby"),r=e.id,o=null!==i&&""!==i.trim()?i:t+"-lbl",a=null!==i&&""!==i.trim()?document.getElementById(i):c(e);return a?(null===i&&(a.id=o),n=a.textContent,a.setAttribute("aria-hidden","true")):""!==r.trim()&&((a=document.querySelector('label[for="'.concat(r,'"]')))&&(""!==a.id?o=a.id:a.id=o=r+"-lbl",n=a.textContent)),{label:a,labelId:o,labelText:n}},h=function(e,t,n,i,r){if(e||u(t)){var o=t.querySelector("input.aux-input");o||((o=t.ownerDocument.createElement("input")).type="hidden",o.classList.add("aux-input"),t.appendChild(o)),o.disabled=r,o.name=n,o.value=i||""}},f=function(e,t,n){return Math.max(e,Math.min(t,n))},p=function(e,t){if(!e){var n="ASSERT: "+t;throw console.error(n),new Error(n)}},g=function(e){return e.timeStamp||Date.now()},v=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},m=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},y=function(e,t){var n=e._original||e;return{_original:e,emit:b(n.emit.bind(n),t)}},b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];clearTimeout(t),t=setTimeout.apply(void 0,[e,n].concat(r))}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){try{if(e instanceof function(){return Y(function e(t){Z(this,e),this.value=t})}())return e.value;if(!a()||"string"!=typeof e||""===e)return e;var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(function(e){for(var n=t.querySelectorAll(e),i=n.length-1;i>=0;i--){var a=n[i];a.parentNode?a.parentNode.removeChild(a):t.removeChild(a);for(var s=o(a),l=0;l<s.length;l++)r(s[l])}});for(var i=o(t),s=0;s<i.length;s++)r(i[s]);var u=document.createElement("div");u.appendChild(t);var c=u.querySelector("div");return null!==c?c.innerHTML:u.innerHTML}catch(d){return console.error(d),""}},r=function e(t){if(!t.nodeType||1===t.nodeType){for(var n=t.attributes.length-1;n>=0;n--){var i=t.attributes.item(n),r=i.name;if(s.includes(r.toLowerCase())){var a=i.value;null!=a&&a.toLowerCase().includes("javascript:")&&t.removeAttribute(r)}else t.removeAttribute(r)}for(var l=o(t),u=0;u<l.length;u++)e(l[u])}},o=function(e){return null!=e.children?e.children:e.childNodes},a=function(){var e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},s=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"3oEA":function(e,t,n){!function(t){"use strict";var n="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp("^".concat(n,"\\.").concat(n,"\\.").concat(n,"\\.").concat(n,"$"),"i"),threeOctet:new RegExp("^".concat(n,"\\.").concat(n,"\\.").concat(n,"$"),"i"),twoOctet:new RegExp("^".concat(n,"\\.").concat(n,"$"),"i"),longValue:new RegExp("^".concat(n,"$"),"i")},r=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="(?:[0-9a-f]+::?)+",s={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp("^(::)?(".concat(a,")?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$"),"i"),deprecatedTransitional:new RegExp("^(?:::)(".concat(n,"\\.").concat(n,"\\.").concat(n,"\\.").concat(n,"(%[0-9a-z]{1,})?)$"),"i"),transitional:new RegExp("^((?:".concat(a,")|(?:::)(?:").concat(a,")?)").concat(n,"\\.").concat(n,"\\.").concat(n,"\\.").concat(n,"(%[0-9a-z]{1,})?$"),"i")};function l(e,t){if(e.indexOf("::")!==e.lastIndexOf("::"))return null;var n,i,r=0,o=-1,a=(e.match(s.zoneIndex)||[])[0];for(a&&(a=a.substring(1),e=e.replace(/%.+$/,""));(o=e.indexOf(":",o+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(i=t-r,n=":";i--;)n+="0:";return":"===(e=e.replace("::",n))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){for(var t=e.split(":"),n=[],i=0;i<t.length;i++)n.push(parseInt(t[i],16));return n}(),zoneId:a}}function u(e,t,n,i){if(e.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(var r,o=0;i>0;){if((r=n-i)<0&&(r=0),e[o]>>r!=t[o]>>r)return!1;i-=n,o+=1}return!0}function c(e){if(o.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(r.test(e))return parseInt(e,8);throw new Error("ipaddr: cannot parse ".concat(e," as octal"))}return parseInt(e,10)}function d(e,t){for(;e.length<t;)e="0"+e;return e}var h={};h.IPv4=function(){function e(e){if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");var t,n;for(t=0;t<e.length;t++)if(!(0<=(n=e[t])&&n<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){var n;if(void 0===t&&(e=(n=e)[0],t=n[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,n,i=0,r=!1,o={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=3;e>=0;e-=1){if(!((t=this.octets[e])in o))return null;if(n=o[t],r&&0!==n)return null;8!==n&&(r=!0),i+=n}return 32-i},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse("::ffff:"+this.toString())},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(".")},e}(),h.IPv4.broadcastAddressFromCIDR=function(e){try{for(var t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],o=0;o<4;)r.push(parseInt(n[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(e){return null!==this.parser(e)},h.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(t){return!1}},h.IPv4.isValidFourPartDecimal=function(e){return!(!h.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(e){var t,n,i,r,o;try{for(i=(t=this.parseCIDR(e))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<4;)r.push(parseInt(i[n],10)&parseInt(o[n],10)),n++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(e){var t=this.parser(e);if(null===t)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},h.IPv4.parseCIDR=function(e){var t;if(t=e.match(/^(.+)\/(\d+)$/)){var n=parseInt(t[2]);if(n>=0&&n<=32){var i=[this.parse(t[1]),n];return Object.defineProperty(i,"toString",{value:function(){return this.join("/")}}),i}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(e){var t,n,r;if(t=e.match(i.fourOctet))return function(){for(var e=t.slice(1,6),i=[],r=0;r<e.length;r++)n=e[r],i.push(c(n));return i}();if(t=e.match(i.longValue)){if((r=c(t[1]))>4294967295||r<0)throw new Error("ipaddr: address outside defined range");return function(){var e,t=[];for(e=0;e<=24;e+=8)t.push(r>>e&255);return t}().reverse()}return(t=e.match(i.twoOctet))?function(){var e=t.slice(1,4),n=[];if((r=c(e[1]))>16777215||r<0)throw new Error("ipaddr: address outside defined range");return n.push(c(e[0])),n.push(r>>16&255),n.push(r>>8&255),n.push(255&r),n}():(t=e.match(i.threeOctet))?function(){var e=t.slice(1,5),n=[];if((r=c(e[2]))>65535||r<0)throw new Error("ipaddr: address outside defined range");return n.push(c(e[0])),n.push(c(e[1])),n.push(r>>8&255),n.push(255&r),n}():null},h.IPv4.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(var t=[0,0,0,0],n=0,i=Math.floor(e/8);n<i;)t[n]=255,n++;return i<4&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.IPv6=function(){function e(e,t){var n,i;if(16===e.length)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(n=0;n<this.parts.length;n++)if(!(0<=(i=this.parts[n])&&i<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){var n;if(void 0===t&&(e=(n=e)[0],t=n[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){for(var e,t,n=0,i=!1,r={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},o=7;o>=0;o-=1){if(!((e=this.parts[o])in r))return null;if(t=r[e],i&&0!==t)return null;16!==t&&(i=!0),n+=t}return 128-n},e.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){for(var e,t=[],n=this.parts,i=0;i<n.length;i++)e=n[i],t.push(e>>8),t.push(255&e);return t},e.prototype.toFixedLengthString=function(){var e=(function(){for(var e=[],t=0;t<this.parts.length;t++)e.push(d(this.parts[t].toString(16),4));return e}).call(this).join(":"),t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");var e=this.parts.slice(-2),t=e[0],n=e[1];return new h.IPv4([t>>8,255&t,n>>8,255&n])},e.prototype.toNormalizedString=function(){var e=(function(){for(var e=[],t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(":"),t="";return this.zoneId&&(t="%"+this.zoneId),e+t},e.prototype.toRFC5952String=function(){for(var e,t=/((^|:)(0(:|$)){2,})/g,n=this.toNormalizedString(),i=0,r=-1;e=t.exec(n);)e[0].length>r&&(i=e.index,r=e[0].length);return r<0?n:"".concat(n.substring(0,i),"::").concat(n.substring(i+r))},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),h.IPv6.broadcastAddressFromCIDR=function(e){try{for(var t=this.parseCIDR(e),n=t[0].toByteArray(),i=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],o=0;o<16;)r.push(parseInt(n[o],10)|255^parseInt(i[o],10)),o++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(a,")"))}},h.IPv6.isIPv6=function(e){return null!==this.parser(e)},h.IPv6.isValid=function(e){if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{var t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(n){return!1}},h.IPv6.networkAddressFromCIDR=function(e){var t,n,i,r,o;try{for(i=(t=this.parseCIDR(e))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),r=[],n=0;n<16;)r.push(parseInt(i[n],10)&parseInt(o[n],10)),n++;return new this(r)}catch(a){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(a,")"))}},h.IPv6.parse=function(e){var t=this.parser(e);if(null===t.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},h.IPv6.parseCIDR=function(e){var t,n,i;if((n=e.match(/^(.+)\/(\d+)$/))&&((t=parseInt(n[2]))>=0&&t<=128))return i=[this.parse(n[1]),t],Object.defineProperty(i,"toString",{value:function(){return this.join("/")}}),i;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(e){var t,n,i,r,o,a;if(i=e.match(s.deprecatedTransitional))return this.parser("::ffff:"+i[1]);if(s.native.test(e))return l(e,8);if((i=e.match(s.transitional))&&(a=i[6]||"",(t=l(i[1].slice(0,-1)+a,6)).parts)){for(o=[parseInt(i[2]),parseInt(i[3]),parseInt(i[4]),parseInt(i[5])],n=0;n<o.length;n++)if(!(0<=(r=o[n])&&r<=255))return null;return t.parts.push(o[0]<<8|o[1]),t.parts.push(o[2]<<8|o[3]),{parts:t.parts,zoneId:t.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(e){if((e=parseInt(e))<0||e>128)throw new Error("ipaddr: invalid IPv6 prefix length");for(var t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,i=Math.floor(e/8);n<i;)t[n]=255,n++;return i<16&&(t[i]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},h.fromByteArray=function(e){var t=e.length;if(4===t)return new h.IPv4(e);if(16===t)return new h.IPv6(e);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(e){return h.IPv6.isValid(e)||h.IPv4.isValid(e)},h.parse=function(e){if(h.IPv6.isValid(e))return h.IPv6.parse(e);if(h.IPv4.isValid(e))return h.IPv4.parse(e);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(e){try{return h.IPv6.parseCIDR(e)}catch(t){try{return h.IPv4.parseCIDR(e)}catch(n){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(e){var t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},h.subnetMatch=function(e,t,n){var i,r,o,a;for(r in null==n&&(n="unicast"),t)if(Object.prototype.hasOwnProperty.call(t,r))for(!(o=t[r])[0]||o[0]instanceof Array||(o=[o]),i=0;i<o.length;i++)if(a=o[i],e.kind()===a[0].kind()&&e.match.apply(e,a))return r;return n},e.exports?e.exports=h:t.ipaddr=h}(this)},"7OTs":function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return _}),n.d(t,"f",function(){return v}),n.d(t,"g",function(){return C}),n.d(t,"h",function(){return P}),n.d(t,"i",function(){return s}),n.d(t,"j",function(){return D}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return h}),n.d(t,"m",function(){return f}),n.d(t,"n",function(){return T}),n.d(t,"o",function(){return g});var i=n("E/Mt"),r=n("B4Jq"),o=n("1vRN"),a=0,s=new WeakMap,l=function(e){return{create:function(t){return m(e,t)},dismiss:function(t,n,i){return k(document,t,n,e,i)},getTop:(t=G(U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",x(document,e));case 1:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})};var t},u=l("ion-alert"),c=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),f=l("ion-picker"),p=l("ion-popover"),g=l("ion-toast"),v=function(e){"undefined"!=typeof document&&w(document);var t=a++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},m=function(e,t){return"undefined"!=typeof customElements?customElements.whenDefined(e).then(function(){var n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),S(document).appendChild(n),new Promise(function(e){return Object(o.c)(n,e)})}):Promise.resolve()},y='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',b="input:not([type=hidden]), textarea, button, select",w=function(e){0===a&&(a=1,e.addEventListener("focus",function(t){return function(e,t){var n,i,r,a=x(t),s=e.target;if(a&&s)if(a===s)a.lastFocus=void 0;else{var l=Object(o.g)(a);if(!l.contains(s))return;var u=l.querySelector(".ion-overlay-wrapper");if(!u)return;if(u.contains(s))a.lastFocus=s;else{var c=a.lastFocus;n=a,i=u.querySelector(y),(r=i&&i.shadowRoot)&&(i=r.querySelector(b)||i),i?i.focus():n.focus(),c===t.activeElement&&function(e,t){var n=Array.from(e.querySelectorAll(y)),i=n.length>0?n[n.length-1]:null,r=i&&i.shadowRoot;r&&(i=r.querySelector(b)||i),i?i.focus():t.focus()}(u,a),a.lastFocus=t.activeElement}}}(t,e)},!0),e.addEventListener("ionBackButton",function(t){var n=x(e);n&&n.backdropDismiss&&t.detail.register(r.OVERLAY_BACK_BUTTON_PRIORITY,function(){return n.dismiss(void 0,M)})}),e.addEventListener("keyup",function(t){if("Escape"===t.key){var n=x(e);n&&n.backdropDismiss&&n.dismiss(void 0,M)}}))},k=function(e,t,n,i,r){var o=x(e,i,r);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},x=function(e,t,n){var i=function(e,t){return void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(function(e){return e.overlayIndex>0})}(e,t);return void 0===n?i[i.length-1]:i.find(function(e){return e.id===n})},_=function(){var e=G(U().mark(function e(t,n,r,o,a){var s,l;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.presented){e.next=2;break}return e.abrupt("return");case 2:return t.presented=!0,t.willPresent.emit(),s=Object(i.b)(t),l=t.enterAnimation?t.enterAnimation:i.c.get(n,"ios"===s?r:o),e.next=6,E(t,l,t.el,a);case 6:if(e.t0=e.sent,!e.t0){e.next=9;break}t.didPresent.emit();case 9:"ION-TOAST"!==t.el.tagName&&A(t.el),t.keyboardClose&&t.el.focus();case 11:case"end":return e.stop()}},e)}));return function(t,n,i,r,o){return e.apply(this,arguments)}}(),A=function(){var e=G(U().mark(function e(t){var n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.activeElement){e.next=3;break}return e.abrupt("return");case 3:return(i=n&&n.shadowRoot)&&(n=i.querySelector(b)||n),e.next=7,t.onDidDismiss();case 7:n.focus();case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=G(U().mark(function e(t,n,r,o,a,l,u){var c,d;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.presented){e.next=2;break}return e.abrupt("return",!1);case 2:if(t.presented=!1,e.prev=3,t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:n,role:r}),c=Object(i.b)(t),d=t.leaveAnimation?t.leaveAnimation:i.c.get(o,"ios"===c?a:l),e.t0="gesture"!==r,!e.t0){e.next=10;break}return e.next=10,E(t,d,t.el,u);case 10:t.didDismiss.emit({data:n,role:r}),s.delete(t),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(3),console.error(e.t1);case 17:return e.abrupt("return",(t.el.remove(),!0));case 18:case"end":return e.stop()}},e,null,[[3,14]])}));return function(t,n,i,r,o,a,s){return e.apply(this,arguments)}}(),S=function(e){return e.querySelector("ion-app")||e.body},E=function(){var e=G(U().mark(function e(t,n,r,o){var a,l;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.classList.remove("overlay-hidden"),a=n(r.shadowRoot||t.el,o),t.animated&&i.c.getBoolean("animated",!0)||a.duration(0),t.keyboardClose&&a.beforeAddWrite(function(){var e=r.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()}),l=s.get(t)||[],s.set(t,[].concat(V(l),[a])),e.next=7,a.play();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}},e)}));return function(t,n,i,r){return e.apply(this,arguments)}}(),P=function(e,t){var n,i=new Promise(function(e){return n=e});return O(e,t,function(e){n(e.detail)}),i},O=function(e,t,n){Object(o.a)(e,t,function i(r){Object(o.b)(e,t,i),n(r)})},D=function(e){return"cancel"===e||e===M},I=function(e){return e()},T=function(e,t){if("function"==typeof e)return i.c.get("_zoneGate",I)(function(){try{return e(t)}catch(n){console.error(n)}})},M="backdrop"},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",function(){return a}),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",function(){return o}),n.d(t,"blockHardwareBackButton",function(){return i}),n.d(t,"startHardwareBackButton",function(){return r});var i=function(){document.addEventListener("backbutton",function(){})},r=function(){var e=document,t=!1;e.addEventListener("backbutton",function(){if(!t){var n=0,i=[],r=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(e,t){i.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(r);!function e(){if(i.length>0){var n={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};i.forEach(function(e){e.priority>=n.priority&&(n=e)}),t=!0,i=i.filter(function(e){return e.id!==n.id}),(r=G(U().mark(function t(n){var i;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n||!n.handler){t.next=7;break}if(i=n.handler(e),t.t0=null!=i,!t.t0){t.next=7;break}return t.next=7,i;case 7:t.next=12;break;case 9:t.prev=9,t.t1=t.catch(0),console.error(t.t1);case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(e){return r.apply(this,arguments)})(n).then(function(){return t=!1})}var r}()}})},o=100,a=99},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return y}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return w});var i,r=n("wEJo"),o=function(e){return s(e)},a=function(e,t){return"string"==typeof e&&(t=e,e=void 0),o(e).includes(t)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(void 0===e)return[];e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=l(e)).forEach(function(t){return e.document.documentElement.classList.add("plt-"+t)}),t},l=function(e){return Object.keys(m).filter(function(t){return m[t](e)})},u=function(e){return!!g(e,/iPad/i)||!(!g(e,/Macintosh/i)||!d(e))},c=function(e){return g(e,/android|sink/i)},d=function(e){return v(e,"(any-pointer:coarse)")},h=function(e){return f(e)||p(e)},f=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},p=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},g=function(e,t){return t.test(e.navigator.userAgent)},v=function(e,t){return e.matchMedia(t).matches},m={ipad:u,iphone:function(e){return g(e,/iPhone/i)},ios:function(e){return g(e,/iPhone|iPod/i)||u(e)},android:c,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return u(e)||function(e){return c(e)&&!g(e,/mobile/i)}(e)||i>460&&i<820&&r>780&&r<1400},cordova:f,capacitor:p,electron:function(e){return g(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:d,mobileweb:function(e){return d(e)&&!h(e)},desktop:function(e){return!d(e)},hybrid:h},y=new(function(){function e(){Z(this,e),this.m=new Map}return Y(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),b=function(e){return e&&Object(r.i)(e)||i},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"!=typeof window){var t=window.document,n=window,o=n.Ionic=n.Ionic||{};s(n);var l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},function(e){try{var t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(n){return{}}}(n)),{persistConfig:!1}),o.config),function(e){var t={};return e.location.search.slice(1).split("&").map(function(e){return e.split("=")}).map(function(e){var t=L(e,2),n=t[0],i=t[1];return[decodeURIComponent(n),decodeURIComponent(i)]}).filter(function(e){return"ionic:"===L(e,1)[0].substr(0,"ionic:".length)}).map(function(e){var t=L(e,2),n=t[0],i=t[1];return[n.slice("ionic:".length),i]}).forEach(function(e){var n=L(e,2),i=n[0],r=n[1];t[i]=r}),t}(n)),e);y.reset(l),y.getBoolean("persistConfig")&&function(e,t){try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}}(n,l),o.config=y,o.mode=i=y.get("mode",t.documentElement.getAttribute("mode")||(a(n,"ios")?"ios":"md")),y.set("mode",i),t.documentElement.setAttribute("mode",i),t.documentElement.classList.add(i),y.getBoolean("_testing")&&y.set("animated",!1);var u=function(e){return e.tagName&&e.tagName.startsWith("ION-")},c=function(e){return["ios","md"].includes(e)};Object(r.p)(function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;u(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return i})}}},Hfs6:function(e,t,n){var i,r,o;!function(a){if("object"==typeof e.exports){var s=a(0,t);void 0!==s&&(e.exports=s)}else r=[n,t],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",n,n],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[n,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[n,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[n,"\xa5"],KMF:[n,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},MYvV:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="MYvV"},OmFT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){Z(this,e)}return Y(e,null,[{key:"isArrayBuffer",value:function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},{key:"toArrayBuffer",value:function(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e).slice().buffer}},{key:"toUint8Array",value:function(e){return this.toView(e,Uint8Array)}},{key:"toView",value:function(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}},{key:"isBufferSource",value:function(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}},{key:"isArrayBufferView",value:function(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}},{key:"isEqual",value:function(t,n){var i=e.toUint8Array(t),r=e.toUint8Array(n);if(i.length!==r.byteLength)return!1;for(var o=0;o<i.length;o++)if(i[o]!==r[o])return!1;return!0}},{key:"concat",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Array.isArray(t[0])){var i,r=t[0],o=0,a=R(r);try{for(a.s();!(i=a.n()).done;){var s=i.value;o+=s.byteLength}}catch(p){a.e(p)}finally{a.f()}var l,u=new Uint8Array(o),c=0,d=R(r);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=this.toUint8Array(h);u.set(f,c),c+=f.length}}catch(p){d.e(p)}finally{d.f()}return t[1]?this.toView(u,t[1]):u.buffer}return this.concat(t)}}]),e}(),r=function(){function e(){Z(this,e)}return Y(e,null,[{key:"fromString",value:function(e){for(var t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n.buffer}},{key:"toString",value:function(e){for(var t=i.toUint8Array(e),n="",r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return decodeURIComponent(escape(n))}}]),e}(),o=function(){function e(){Z(this,e)}return Y(e,null,[{key:"toString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.toArrayBuffer(e),r=new DataView(n),o="",a=0;a<n.byteLength;a+=2){var s=r.getUint16(a,t);o+=String.fromCharCode(s)}return o}},{key:"fromString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new ArrayBuffer(2*e.length),i=new DataView(n),r=0;r<e.length;r++)i.setUint16(2*r,e.charCodeAt(r),t);return n}}]),e}(),a=function(){function e(){Z(this,e)}return Y(e,null,[{key:"isHex",value:function(e){return"string"==typeof e&&/^[a-z0-9]+$/i.test(e)}},{key:"isBase64",value:function(e){return"string"==typeof e&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},{key:"isBase64Url",value:function(e){return"string"==typeof e&&/^[a-zA-Z0-9-_]+$/i.test(e)}},{key:"ToString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8",n=i.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(n);case"binary":return this.ToBinary(n);case"hex":return this.ToHex(n);case"base64":return this.ToBase64(n);case"base64url":return this.ToBase64Url(n);case"utf16le":return o.toString(n,!0);case"utf16":case"utf16be":return o.toString(n);default:throw new Error("Unknown type of encoding '".concat(t,"'"))}}},{key:"FromString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return o.fromString(e,!0);case"utf16":case"utf16be":return o.fromString(e);default:throw new Error("Unknown type of encoding '".concat(t,"'"))}}},{key:"ToBase64",value:function(e){var t=i.toUint8Array(e);if("undefined"!=typeof btoa){var n=this.ToString(t,"binary");return btoa(n)}return Buffer.from(t).toString("base64")}},{key:"FromBase64",value:function(t){var n=this.formatString(t);if(!n)return new ArrayBuffer(0);if(!e.isBase64(n))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(n)):new Uint8Array(Buffer.from(n,"base64")).buffer}},{key:"FromBase64Url",value:function(t){var n=this.formatString(t);if(!n)return new ArrayBuffer(0);if(!e.isBase64Url(n))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(n.replace(/\-/g,"+").replace(/\_/g,"/")))}},{key:"ToBase64Url",value:function(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}},{key:"FromUtf8String",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DEFAULT_UTF8_ENCODING;switch(n){case"ascii":return this.FromBinary(t);case"utf8":return r.fromString(t);case"utf16":case"utf16be":return o.fromString(t);case"utf16le":case"usc2":return o.fromString(t,!0);default:throw new Error("Unknown type of encoding '".concat(n,"'"))}}},{key:"ToUtf8String",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DEFAULT_UTF8_ENCODING;switch(n){case"ascii":return this.ToBinary(t);case"utf8":return r.toString(t);case"utf16":case"utf16be":return o.toString(t);case"utf16le":case"usc2":return o.toString(t,!0);default:throw new Error("Unknown type of encoding '".concat(n,"'"))}}},{key:"FromBinary",value:function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n.buffer}},{key:"ToBinary",value:function(e){for(var t=i.toUint8Array(e),n="",r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return n}},{key:"ToHex",value:function(e){for(var t=i.toUint8Array(e),n=[],r=t.length,o=0;o<r;o++){var a=t[o].toString(16).padStart(2,"0");n.push(a)}return n.join("")}},{key:"FromHex",value:function(t){var n=this.formatString(t);if(!n)return new ArrayBuffer(0);if(!e.isHex(n))throw new TypeError("Argument 'hexString' is not HEX encoded");n.length%2&&(n="0"+n);for(var i=new Uint8Array(n.length/2),r=0;r<n.length;r+=2){var o=n.slice(r,r+2);i[r/2]=parseInt(o,16)}return i.buffer}},{key:"ToUtf16String",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.toString(e,t)}},{key:"FromUtf16String",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.fromString(e,t)}},{key:"Base64Padding",value:function(e){var t=4-e.length%4;if(t<4)for(var n=0;n<t;n++)e+="=";return e}},{key:"formatString",value:function(e){return(null==e?void 0:e.replace(/[\n\r\t ]/g,""))||""}}]),e}();a.DEFAULT_UTF8_ENCODING="utf8",t.BufferSourceConverter=i,t.Convert=a,t.assign=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=arguments[0],o=1;o<arguments.length;o++){var a=arguments[o];for(var s in a)r[s]=a[s]}return r},t.combine=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map(function(e){return e.byteLength}).reduce(function(e,t){return e+t}),r=new Uint8Array(i),o=0;return t.map(function(e){return new Uint8Array(e)}).forEach(function(e){var t,n=R(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;r[o++]=i}}catch(a){n.e(a)}finally{n.f()}}),r.buffer},t.isEqual=function(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;for(var n=new Uint8Array(e),i=new Uint8Array(t),r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",function(){return o});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e,t){var n="back"===t.direction,o=t.enteringEl,a=t.leavingEl,s=Object(r.g)(o),l=s.querySelector("ion-toolbar"),u=Object(i.a)();if(u.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),n?u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):u.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){var c=Object(i.a)();c.addElement(l),u.addAnimation(c)}if(a&&n){u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=Object(i.a)();d.addElement(Object(r.g)(a)).onFinish(function(e){1===e&&d.elements.length>0&&d.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),u.addAnimation(d)}return u}},b0Xh:function(e,t,i){var r;(function(){var i=function e(t){return t instanceof e?t:this instanceof e?void(this.EXIFwrapped=t):new e(t)};e.exports&&(t=e.exports=i),t.EXIF=i;var o=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},a=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},u=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function c(e){return!!e.exifdata}function d(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength;n<i;){if(255!=t.getUint8(n))return!1;if(225==t.getUint8(n+1))return m(t,n+4,t.getUint16(n+2));n+=2+t.getUint16(n+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function f(e,t,n){for(var i,r,o,a,s=new DataView(e),l={},u=t;u<t+n;)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(a=s.getUint8(u+2))in h&&(o=s.getInt16(u+3),r=h[a],i=v(s,u+5,o),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(i):l[r]=[l[r],i]:l[r]=i),u++;return l}function p(e,t,n,i,r){var o,a,s=e.getUint16(n,!r),l={};for(a=0;a<s;a++)l[i[e.getUint16(o=n+12*a+2,!r)]]=g(e,o,t,0,r);return l}function g(e,t,n,i,r){var o,a,s,l,u,c,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),f=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(o=h>4?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint8(o+l);return a;case 2:return v(e,o=h>4?f:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(o=h>2?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint16(o+2*l,!r);return a;case 4:if(1==h)return e.getUint32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getUint32(f+4*l,!r);return a;case 5:if(1==h)return u=e.getUint32(f,!r),c=e.getUint32(f+4,!r),(s=new Number(u/c)).numerator=u,s.denominator=c,s;for(a=[],l=0;l<h;l++)u=e.getUint32(f+8*l,!r),c=e.getUint32(f+4+8*l,!r),a[l]=new Number(u/c),a[l].numerator=u,a[l].denominator=c;return a;case 9:if(1==h)return e.getInt32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+4*l,!r);return a;case 10:if(1==h)return e.getInt32(f,!r)/e.getInt32(f+4,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+8*l,!r)/e.getInt32(f+4+8*l,!r);return a}}function v(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function m(e,t){if("Exif"!=v(e,t,4))return!1;var n,i,r,c,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return!1;n=!0}if(42!=e.getUint16(h+2,!n))return!1;var f=e.getUint32(h+4,!n);if(f<8)return!1;if((i=p(e,h,h+f,a,n)).ExifIFDPointer)for(r in c=p(e,h,h+i.ExifIFDPointer,o,n)){switch(r){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":c[r]=u[r][c[r]];break;case"ExifVersion":case"FlashpixVersion":c[r]=String.fromCharCode(c[r][0],c[r][1],c[r][2],c[r][3]);break;case"ComponentsConfiguration":c[r]=u.Components[c[r][0]]+u.Components[c[r][1]]+u.Components[c[r][2]]+u.Components[c[r][3]]}i[r]=c[r]}if(i.GPSInfoIFDPointer)for(r in d=p(e,h,h+i.GPSInfoIFDPointer,s,n)){switch(r){case"GPSVersionID":d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]}i[r]=d[r]}return i.thumbnail=function(e,t,n,i){var r=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var o=p(e,t,t+r,l,i);if(o.Compression)switch(o.Compression){case 6:o.JpegIFOffset&&o.JpegIFByteCount&&(o.blob=new Blob([new Uint8Array(e.buffer,t+o.JpegIFOffset,o.JpegIFByteCount)],{type:"image/jpeg"}));break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,f,n),i}function y(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),a=o.nodeName;if(null==t[a])t[a]=y(o);else{if(null==t[a].push){var s=t[a];t[a]=[],t[a].push(s)}t[a].push(y(o))}}return t}function b(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var o in r){var a=r[o],s=a.nodeName;void 0!==s&&(t[s]=a.nodeValue)}var l=i.nodeName;if(void 0===t[l])t[l]=y(i);else{if(void 0===t[l].push){var u=t[l];t[l]=[],t[l].push(u)}t[l].push(y(i))}}else t=e.textContent;return t}catch(c){console.log(c.message)}}i.enableXmp=function(){i.isXmpEnabled=!0},i.disableXmp=function(){i.isXmpEnabled=!1},i.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(c(e)?t&&t.call(e):function(e,t){function n(n){var r=d(n);e.exifdata=r||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(r(t,n)){var o=t.getUint8(n+7);return o%2!=0&&(o+=1),0===o&&(o=4),f(e,n+8+o,t.getUint16(n+6+o))}n++}}(n);if(e.iptcdata=o||{},i.isXmpEnabled){var a=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var n=2,i=e.byteLength,r=new DOMParser;n<i-4;){if("http"==v(t,n,4)){var o=n-1,a=t.getUint16(n-2)-1,s=v(t,o,a),l=s.indexOf("xmpmeta>")+8,u=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return s=s.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(u),b(r.parseFromString(s,"text/xml"))}n++}}}(n);e.xmpdata=a||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),o=new Uint8Array(r),a=0;a<i;a++)o[a]=n.charCodeAt(a);return r}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||o.readAsArrayBuffer(this.response)},n.send()}(e.src);else{var r=new XMLHttpRequest;r.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(r.response),r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){n(e.target.result)},o.readAsArrayBuffer(e)}}(e,t),0))},i.getTag=function(e,t){if(c(e))return e.exifdata[t]},i.getIptcTag=function(e,t){if(c(e))return e.iptcdata[t]},i.getAllTags=function(e){if(!c(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.getAllIptcTags=function(e){if(!c(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},i.pretty=function(e){if(!c(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&(i+="object"==typeof n[t]?n[t]instanceof Number?t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":t+" : ["+n[t].length+" values]\r\n":t+" : "+n[t]+"\r\n");return i},i.readFromBinaryFile=function(e){return d(e)},void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}).call(this)},bC4P:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e,t,n,i,a){return o(e[1],t[1],n[1],i[1],a).map(function(o){return r(e[0],t[0],n[0],i[0],o)})},r=function(e,t,n,i,r){return r*(3*t*Math.pow(r-1,2)+r*(-3*n*r+3*n+i*r))-e*Math.pow(r-1,3)},o=function(e,t,n,i,r){return a((i-=r)-3*(n-=r)+3*(t-=r)-(e-=r),3*n-6*t+3*e,3*t-3*e,e).filter(function(e){return e>=0&&e<=1})},a=function(e,t,n,i){if(0===e)return function(e,t,n){var i=t*t-4*e*n;return i<0?[]:[(-t+Math.sqrt(i))/(2*e),(-t-Math.sqrt(i))/(2*e)]}(t,n,i);var r=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(i/=e))/27;if(0===r)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-r),-Math.sqrt(-r)];var a=Math.pow(o/2,2)+Math.pow(r/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-o/2+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];var s=Math.sqrt(Math.pow(-r/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-r/3,3)))),u=2*Math.pow(s,1/3);return[u*Math.cos(l/3)-t/3,u*Math.cos((l+2*Math.PI)/3)-t/3,u*Math.cos((l+4*Math.PI)/3)-t/3]}},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",function(){return l});var i=n("y08P");n.d(t,"GESTURE_CONTROLLER",function(){return i.a});var r,o=function(e,t,n,i){var r,o,s=a(e)?{capture:!!i.capture,passive:!!i.passive}:!!i.capture;return e.__zone_symbol__addEventListener?(r="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(r="addEventListener",o="removeEventListener"),e[r](t,n,s),function(){e[o](t,n,s)}},a=function(e){if(void 0===r)try{var t=Object.defineProperty({},"passive",{get:function(){r=!0}});e.addEventListener("optsTest",function(){},t)}catch(n){r=!1}return!!r},s=function(e){return e instanceof Document?e:e.ownerDocument},l=function(e){var t=!1,n=!1,r=!0,a=!1,l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,f=l.onWillStart,p=l.onStart,g=l.onEnd,v=l.notCaptured,m=l.onMove,y=l.threshold,b=l.passive,w=l.blurOnStart,k={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},x=function(e,t,n){var i=n*(Math.PI/180),r="x"===e,o=Math.cos(i),a=t*t,s=0,l=0,u=!1,c=0;return{start:function(e,t){s=e,l=t,c=0,u=!0},detect:function(e,t){if(!u)return!1;var n=e-s,i=t-l,d=n*n+i*i;if(d<a)return!1;var h=Math.sqrt(d),f=(r?n:i)/h;return c=f>o?1:f<-o?-1:0,u=!1,!0},isGesture:function(){return 0!==c},getDirection:function(){return c}}}(l.direction,l.threshold,l.maxAngle),_=i.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),A=function(){t&&(a=!1,m&&m(k))},C=function(){return!(_&&!_.capture()||(t=!0,r=!1,k.startX=k.currentX,k.startY=k.currentY,k.startTime=k.currentTime,f?f(k).then(S):S(),0))},S=function(){w&&function(){if("undefined"!=typeof document){var e=document.activeElement;null!==e&&e.blur&&e.blur()}}(),p&&p(k),r=!0},E=function(){t=!1,n=!1,a=!1,r=!0,_.release()},P=function(e){var n=t,i=r;E(),i&&(u(k,e),n?g&&g(k):v&&v(k))},O=function(e,t,n,i,r){var a,l,u,c,d,h,f,p=0,g=function(i){p=Date.now()+2e3,t(i)&&(!l&&n&&(l=o(e,"touchmove",n,r)),u||(u=o(e,"touchend",m,r)),c||(c=o(e,"touchcancel",m,r)))},v=function(i){p>Date.now()||t(i)&&(!h&&n&&(h=o(s(e),"mousemove",n,r)),f||(f=o(s(e),"mouseup",y,r)))},m=function(e){b(),i&&i(e)},y=function(e){w(),i&&i(e)},b=function(){l&&l(),u&&u(),c&&c(),l=u=c=void 0},w=function(){h&&h(),f&&f(),h=f=void 0},k=function(){b(),w()},x=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(a||(a=o(e,"touchstart",g,r)),d||(d=o(e,"mousedown",v,r))):(a&&a(),d&&d(),a=d=void 0,k())};return{enable:x,stop:k,destroy:function(){x(!1),i=n=t=void 0}}}(l.el,function(e){var t=d(e);return!(n||!r)&&(c(e,k),k.startX=k.currentX,k.startY=k.currentY,k.startTime=k.currentTime=t,k.velocityX=k.velocityY=k.deltaX=k.deltaY=0,k.event=e,(!h||!1!==h(k))&&(_.release(),!!_.start()&&(n=!0,0===y?C():(x.start(k.startX,k.startY),!0))))},function(e){t?!a&&r&&(a=!0,u(k,e),requestAnimationFrame(A)):(u(k,e),x.detect(k.currentX,k.currentY)&&(x.isGesture()&&C()||D()))},P,{capture:!1,passive:b}),D=function(){E(),O.stop(),v&&v(k)};return{enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e||(t&&P(void 0),E()),O.enable(e)},destroy:function(){_.destroy(),O.destroy()}}},u=function(e,t){if(t){var n=e.currentX,i=e.currentY,r=e.currentTime;c(t,e);var o=e.currentX,a=e.currentY,s=(e.currentTime=d(t))-r;if(s>0&&s<100){var l=(a-i)/s;e.velocityX=(o-n)/s*.7+.3*e.velocityX,e.velocityY=.7*l+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t}},c=function(e,t){var n=0,i=0;if(e){var r=e.changedTouches;if(r&&r.length>0){var o=r[0];n=o.clientX,i=o.clientY}else void 0!==e.pageX&&(n=e.pageX,i=e.pageY)}t.currentX=n,t.currentY=i},d=function(e){return e.timeStamp||Date.now()}},k4ps:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return A}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return C}),n.d(t,"j",function(){return c});var i=n("wEJo"),r=n("1vRN"),o="ionViewWillEnter",a="ionViewDidEnter",s="ionViewWillLeave",l="ionViewDidLeave",u="ionViewWillUnload",c=function(e){return new Promise(function(t,n){Object(i.f)(function(){d(e),h(e).then(function(n){n.animation&&n.animation.destroy(),f(e),t(n)},function(t){f(e),n(t)})})})},d=function(e){var t=e.enteringEl,n=e.leavingEl;S(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),C(t,!1),n&&C(n,!1)},h=function(){var e=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:return n=e.sent,e.abrupt("return",n&&i.a.isBrowser?g(n,t):v(t));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),f=function(e){var t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},p=function(){var e=G(U().mark(function e(t){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.leavingEl||!t.animated||0===t.duration){e.next=16;break}if(!t.animationBuilder){e.next=5;break}e.t0=t.animationBuilder,e.next=15;break;case 5:if("ios"!==t.mode){e.next=11;break}return e.next=8,Promise.resolve().then(n.bind(null,"lTIg"));case 8:e.t1=e.sent.iosTransitionAnimation,e.next=14;break;case 11:return e.next=13,Promise.resolve().then(n.bind(null,"RQGG"));case 13:e.t1=e.sent.mdTransitionAnimation;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=G(U().mark(function e(t,n){var i,r;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(n,!0);case 2:return i=t(n.baseEl,n),w(n.enteringEl,n.leavingEl),e.next=6,b(i,n);case 6:return r=e.sent,e.abrupt("return",(n.progressCallback&&n.progressCallback(void 0),r&&k(n.enteringEl,n.leavingEl),{hasCompleted:r,animation:i}));case 8:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=G(U().mark(function e(t){var n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.enteringEl,i=t.leavingEl,e.next=3,m(t,!1);case 3:return w(n,i),k(n,i),e.abrupt("return",{hasCompleted:!0});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(void 0!==t.deepWait?t.deepWait:n)?[A(t.enteringEl),A(t.leavingEl)]:[_(t.enteringEl),_(t.leavingEl)],e.next=3,Promise.all(i);case 3:return e.next=5,y(t.viewIsReady,t.enteringEl);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),y=function(){var e=G(U().mark(function e(t,n){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=4;break}return e.next=4,t(n);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),b=function(e,t){var n=t.progressCallback,i=new Promise(function(t){e.onFinish(function(e){return t(1===e)})});return n?(e.progressStart(!0),n(e)):e.play(),i},w=function(e,t){x(t,s),x(e,o)},k=function(e,t){x(e,a),x(t,l)},x=function(e,t){if(e){var n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},_=function(e){return e?new Promise(function(t){return Object(r.c)(e,t)}):Promise.resolve()},A=function(){var e=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=12;break}if(e.t0=null!=n.componentOnReady,!e.t0){e.next=8;break}return e.next=6,n.componentOnReady();case 6:e.t1=e.sent,e.t0=null!=e.t1;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(Array.from(n.children).map(A));case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),C=function(e,t){t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},S=function(e,t,n){void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=function(e){return e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e}},kLfG:function(e,t,n){var i={"./ion-action-sheet.entry.js":["dUtr",0,13],"./ion-alert.entry.js":["Q8AI",0,14],"./ion-app_8.entry.js":["hgI1",0,15],"./ion-avatar_3.entry.js":["CfoV",0,16],"./ion-back-button.entry.js":["Nt02",0,17],"./ion-backdrop.entry.js":["Q2Bp",18],"./ion-button_2.entry.js":["0Pbj",0,19],"./ion-card_5.entry.js":["ydQj",0,20],"./ion-checkbox.entry.js":["4fMi",0,21],"./ion-chip.entry.js":["czK9",0,22],"./ion-col_3.entry.js":["/CAe",23],"./ion-datetime_3.entry.js":["WgF3",0,24],"./ion-fab_3.entry.js":["uQcF",0,25],"./ion-img.entry.js":["wHD8",26],"./ion-infinite-scroll_2.entry.js":["2lz6",27],"./ion-input.entry.js":["ercB",0,28],"./ion-item-option_3.entry.js":["MGMP",0,29],"./ion-item_8.entry.js":["9bur",0,30],"./ion-loading.entry.js":["cABk",0,31],"./ion-menu_3.entry.js":["kyFE",0,32],"./ion-modal.entry.js":["TvZU",0,33],"./ion-nav_2.entry.js":["vnES",0,34],"./ion-popover.entry.js":["qCuA",0,35],"./ion-progress-bar.entry.js":["0tOe",0,36],"./ion-radio_2.entry.js":["h11V",0,37],"./ion-range.entry.js":["XGij",0,38],"./ion-refresher_2.entry.js":["nYbb",0,39],"./ion-reorder_2.entry.js":["smMY",0,40],"./ion-ripple-effect.entry.js":["STjf",41],"./ion-route_4.entry.js":["k5eQ",0,42],"./ion-searchbar.entry.js":["OR5t",0,43],"./ion-segment_2.entry.js":["fSgp",0,44],"./ion-select_3.entry.js":["lfGF",0,45],"./ion-slide_2.entry.js":["5xYT",46],"./ion-spinner.entry.js":["nI0H",0,47],"./ion-split-pane.entry.js":["NAQR",48],"./ion-tab-bar_2.entry.js":["knkW",0,49],"./ion-tab_2.entry.js":["TpdJ",0,50],"./ion-text.entry.js":["ISmu",0,51],"./ion-textarea.entry.js":["U7LX",0,52],"./ion-toast.entry.js":["L3sA",0,53],"./ion-toggle.entry.js":["IUOf",0,54],"./ion-virtual-scroll.entry.js":["8Mb5",55]};function r(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id="kLfG",e.exports=r},kiQV:function(e){e.exports=JSON.parse('{"name":"parapheur","version":"21.03.16","description":"Annoter ou Signer vos documents sur votre tablette","homepage":"https://labs.maarch.org/maarch/MaarchParapheur","engines":{"npm":"6.14.5","node":"14.4.0"},"scripts":{"dep-list":"npm list --depth=0","check-update":"ncu","upgrade":"ncu -u","lint":"eslint -c .eslintrc.js --ext .ts src/frontend","lint-fix":"eslint -c .eslintrc.js --ext .ts src/frontend/ --fix","reload-packages":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i","reload-packages-prod":"rm -Rf node_modules && rm -f package-lock.json && npm cache clean --force && npm i --production","build":"ng build","build-watch":"ng build --watch","build-prod":"ng build --prod","build-release":"npm run build-prod && npm run reload-packages-prod"},"private":true,"keywords":[],"author":"Maarch","license":"GPL-3.0","dependencies":{"core-js":"3.6.4","tslib":"2.1.0","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.1100.7","@angular-eslint/eslint-plugin":"2.0.2","@angular/animations":"11.2.6","@angular/cdk":"11.2.5","@angular/cli":"11.2.5","@angular/common":"11.2.6","@angular/compiler":"11.2.6","@angular/compiler-cli":"11.2.6","@angular/core":"11.2.6","@angular/forms":"11.2.6","@angular/language-service":"11.2.6","@angular/material":"11.2.5","@angular/platform-browser":"11.2.6","@angular/platform-browser-dynamic":"11.2.6","@angular/router":"11.2.6","@biesbjerg/ngx-translate-extract":"6.0.3","@fortawesome/fontawesome-free":"5.15.3","@ionic/angular":"5.6.3","@ngrx/store":"9.2.1","@ngrx/store-devtools":"9.2.1","@ngx-translate/core":"12.1.2","@ngx-translate/http-loader":"4.0.0","@peculiar/fortify-webcomponents":"3.1.0","@types/hammerjs":"2.0.39","@types/jasmine":"3.6.7","@types/jasminewd2":"2.0.8","@types/jquery":"3.5.5","@types/node":"13.13.47","@typescript-eslint/eslint-plugin":"4.19.0","@typescript-eslint/eslint-plugin-tslint":"4.19.0","@typescript-eslint/parser":"4.19.0","angular2-draggable":"2.3.2","angular2-signaturepad":"3.0.4","codelyzer":"5.1.2","eslint":"7.22.0","eslint-config-prettier":"8.1.0","eslint-plugin-import":"2.22.1","exif-js":"2.3.0","hammerjs":"2.0.8","jquery":"3.6.0","ngx-cookie-service":"3.0.3","ngx-drag-scroll":"9.0.0-beta.4","ngx-extended-pdf-viewer":"5.0.1","ngx-pipes":"2.7.3","npm-check-updates":"4.1.0","prettier":"2.2.1","rxjs":"6.6.6","stylus":"0.54.7","stylus-loader":"3.0.2","tslint":"6.1.0","typescript":"4.0.5","typescript-tools":"0.3.1"},"repository":{}}')},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",function(){return d}),n.d(t,"shadow",function(){return a});var i=n("meiF"),r=n("k4ps");n("1vRN"),n("wEJo");var o=function(e){return document.querySelector(e+".ion-cloned-element")},a=function(e){return e.shadowRoot||e},s=function(e){var t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){var i=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=i?i.querySelector(n):null}return e.querySelector(n)},l=function(e,t){var n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),i=[];if(null!=n){var r=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=r&&(i=r.querySelectorAll("ion-buttons"))}else i=e.querySelectorAll("ion-buttons");var o,a=R(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.closest("ion-header"),u=l&&!l.classList.contains("header-collapse-condense-inactive"),c=s.querySelector("ion-back-button"),d=s.classList.contains("buttons-collapse"),h="start"===s.slot||""===s.slot;if(null!==c&&h&&(d&&u&&t||!d))return c}}catch(f){a.e(f)}finally{a.f()}return null},u=function(e,t,n,r,s,l){var u=t?"calc(100% - ".concat(l.right+4,"px)"):l.left-4+"px",c=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",f=t?"right":"left",p=t?"left":"right",g=n?[{offset:0,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")},{offset:1,opacity:1,transform:"translate3d(".concat(d,", ").concat(l.top-46,"px, 0) scale(1)")}],v=n?[{offset:0,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.2,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(h,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")}],m=Object(i.a)(),y=Object(i.a)(),b=o("ion-back-button"),w=a(b).querySelector(".button-text"),k=a(b).querySelector("ion-icon");b.text=r.text,b.mode=r.mode,b.icon=r.icon,b.color=r.color,b.disabled=r.disabled,b.style.setProperty("display","block"),b.style.setProperty("position","fixed"),y.addElement(k),m.addElement(w),m.beforeStyles({"transform-origin":f+" center"}).beforeAddWrite(function(){r.style.setProperty("display","none"),b.style.setProperty(f,u)}).afterAddWrite(function(){r.style.setProperty("display",""),b.style.setProperty("display","none"),b.style.removeProperty(f)}).keyframes(g),y.beforeStyles({"transform-origin":p+" center"}).keyframes(v),e.addAnimation([m,y])},c=function(e,t,n,r,a,s){var l=t?"calc(100% - ".concat(a.right,"px)"):a.left+"px",u=t?"-18px":"18px",c=t?"right":"left",d=n?[{offset:0,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.49)")},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")}]:[{offset:0,opacity:.99,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.5)")}],h=o("ion-title"),f=Object(i.a)();h.innerText=r.innerText,h.size=r.size,h.color=r.color,f.addElement(h),f.beforeStyles(B({"transform-origin":c+" center",height:"46px",display:"",position:"relative"},c,l)).beforeAddWrite(function(){r.style.setProperty("display","none")}).afterAddWrite(function(){r.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(d),e.addAnimation(f)},d=function(e,t){try{var n="opacity",o="transform",d="0%",h="rtl"===e.ownerDocument.dir,f=h?"-99.5%":"99.5%",p=h?"33%":"-33%",g=t.enteringEl,v=t.leavingEl,m="back"===t.direction,y=g.querySelector(":scope > ion-content"),b=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),w=g.querySelectorAll(":scope > ion-header > ion-toolbar"),k=Object(i.a)(),x=Object(i.a)();if(k.addElement(g).duration(t.duration||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){var _=Object(i.a)();_.addElement(e),k.addAnimation(_)}if(y||0!==w.length||0!==b.length?(x.addElement(y),x.addElement(b)):x.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(x),m?x.beforeClearStyles([n]).fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.8,1):x.beforeClearStyles([n]).fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),y){var A=a(y).querySelector(".transition-effect");if(A){var C=A.querySelector(".transition-cover"),S=A.querySelector(".transition-shadow"),E=Object(i.a)(),P=Object(i.a)(),O=Object(i.a)();E.addElement(A).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),P.addElement(C).beforeClearStyles([n]).fromTo(n,0,.1),O.addElement(S).beforeClearStyles([n]).fromTo(n,.03,.7),E.addAnimation([P,O]),x.addAnimation([E])}}var D=g.querySelector("ion-header.header-collapse-condense"),I=function(e,t,n,i,r){var o=l(i,n),a=s(r),d=s(i),h=l(r,n),f=null!==o&&null!==a&&!n,p=null!==d&&null!==h&&n;if(f){var g=a.getBoundingClientRect(),v=o.getBoundingClientRect();c(e,t,n,a,g,v),u(e,t,n,o,g,v)}else if(p){var m=d.getBoundingClientRect(),y=h.getBoundingClientRect();c(e,t,n,d,m,y),u(e,t,n,h,m,y)}return{forward:f,backward:p}}(k,h,m,g,v),T=I.forward,M=I.backward;if(w.forEach(function(e){var t=Object(i.a)();t.addElement(e),k.addAnimation(t);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var o,s=Object(i.a)(),l=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive");o=l.filter(m?function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t}:function(e){return!e.classList.contains("buttons-collapse")}),s.addElement(o);var g=Object(i.a)();g.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var v=Object(i.a)();v.addElement(a(e).querySelector(".toolbar-background"));var y=Object(i.a)(),b=e.querySelector("ion-back-button");if(b&&y.addElement(b),t.addAnimation([r,s,g,v,y]),s.fromTo(n,.01,1),g.fromTo(n,.01,1),m)c||r.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(p,")"),"translateX(".concat(d,")")),y.fromTo(n,.01,1);else if(D||r.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")).fromTo(n,.01,1),g.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat(d,")")),v.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?v.fromTo("transform",h?"translateX(-100%)":"translateX(100%)","translateX(0px)"):v.fromTo(n,.01,"var(--opacity)"),T||y.fromTo(n,.01,1),b&&!T){var w=Object(i.a)();w.addElement(a(b).querySelector(".button-text")).fromTo("transform",h?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(w)}}),v){var B=Object(i.a)(),R=v.querySelector(":scope > ion-content"),L=v.querySelectorAll(":scope > ion-header > ion-toolbar"),F=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(R||0!==L.length||0!==F.length?(B.addElement(R),B.addElement(F)):B.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),k.addAnimation(B),m){B.beforeClearStyles([n]).fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)");var N=Object(r.g)(v);k.afterAddWrite(function(){"normal"===k.getDirection()&&N.style.setProperty("display","none")})}else B.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,1,.8);if(R){var V=a(R).querySelector(".transition-effect");if(V){var z=V.querySelector(".transition-cover"),j=V.querySelector(".transition-shadow"),H=Object(i.a)(),U=Object(i.a)(),W=Object(i.a)();H.addElement(V).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),U.addElement(z).beforeClearStyles([n]).fromTo(n,.1,0),W.addElement(j).beforeClearStyles([n]).fromTo(n,.7,.03),H.addAnimation([U,W]),B.addAnimation([H])}}L.forEach(function(e){var t=Object(i.a)();t.addElement(e);var r=Object(i.a)();r.addElement(e.querySelector("ion-title"));var s=Object(i.a)(),l=e.querySelectorAll("ion-buttons,[menuToggle]"),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive"),f=Array.from(l).filter(function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t});s.addElement(f);var g=Object(i.a)(),v=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");v.length>0&&g.addElement(v);var y=Object(i.a)();y.addElement(a(e).querySelector(".toolbar-background"));var b=Object(i.a)(),w=e.querySelector("ion-back-button");if(w&&b.addElement(w),t.addAnimation([r,s,g,b,y]),k.addAnimation(t),b.fromTo(n,.99,0),s.fromTo(n,.99,0),g.fromTo(n,.99,0),m){if(c||r.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)").fromTo(n,.99,0),g.fromTo("transform","translateX(".concat(d,")"),h?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?y.fromTo("transform","translateX(0px)",h?"translateX(-100%)":"translateX(100%)"):y.fromTo(n,"var(--opacity)",0),w&&!M){var x=Object(i.a)();x.addElement(a(w).querySelector(".button-text")).fromTo("transform","translateX(".concat(d,")"),"translateX(".concat((h?-124:124)+"px",")")),t.addAnimation(x)}}else c||r.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).fromTo(n,.99,0).afterClearStyles([o,n]),g.fromTo("transform","translateX(".concat(d,")"),"translateX(".concat(p,")")).afterClearStyles([o,n]),b.afterClearStyles([n]),r.afterClearStyles([n]),s.afterClearStyles([n])})}return k}catch(G){throw G}}},"m9/o":function(n,k,S){"use strict";S.r(k);var P={};function T(e){return"function"==typeof e}S.r(P),S.d(P,"Any",function(){return nq}),S.d(P,"BaseBlock",function(){return QW}),S.d(P,"BaseStringBlock",function(){return JW}),S.d(P,"BitString",function(){return vG}),S.d(P,"BmpString",function(){return FG}),S.d(P,"Boolean",function(){return hG}),S.d(P,"CharacterString",function(){return ZG}),S.d(P,"Choice",function(){return iq}),S.d(P,"Constructed",function(){return sG}),S.d(P,"DATE",function(){return XG}),S.d(P,"DateTime",function(){return $G}),S.d(P,"Duration",function(){return eq}),S.d(P,"EndOfContent",function(){return uG}),S.d(P,"Enumerated",function(){return xG}),S.d(P,"GeneralString",function(){return YG}),S.d(P,"GeneralizedTime",function(){return QG}),S.d(P,"GraphicString",function(){return GG}),S.d(P,"HexBlock",function(){return WW}),S.d(P,"IA5String",function(){return WG}),S.d(P,"Integer",function(){return kG}),S.d(P,"Null",function(){return cG}),S.d(P,"NumericString",function(){return zG}),S.d(P,"ObjectIdentifier",function(){return CG}),S.d(P,"OctetString",function(){return pG}),S.d(P,"Primitive",function(){return iG}),S.d(P,"PrintableString",function(){return jG}),S.d(P,"RawData",function(){return oq}),S.d(P,"RelativeObjectIdentifier",function(){return PG}),S.d(P,"Repeated",function(){return rq}),S.d(P,"Sequence",function(){return OG}),S.d(P,"Set",function(){return DG}),S.d(P,"TIME",function(){return tq}),S.d(P,"TeletexString",function(){return HG}),S.d(P,"TimeOfDay",function(){return JG}),S.d(P,"UTCTime",function(){return KG}),S.d(P,"UniversalString",function(){return VG}),S.d(P,"Utf8String",function(){return RG}),S.d(P,"ValueBlock",function(){return qW}),S.d(P,"VideotexString",function(){return UG}),S.d(P,"ViewWriter",function(){return zW}),S.d(P,"VisibleString",function(){return qG}),S.d(P,"compareSchema",function(){return aq}),S.d(P,"fromBER",function(){return oG}),S.d(P,"verifySchema",function(){return sq});var H=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else H&&console.log("RxJS: Back to a better error behavior. Thank you. <3");H=e},get useDeprecatedSynchronousErrorHandling(){return H}};function q(e){setTimeout(function(){throw e},0)}var K={closed:!0,next:function(e){},error:function(e){if(W.useDeprecatedSynchronousErrorHandling)throw e;q(e)},complete:function(){}},Q=Array.isArray||function(e){return e&&"number"==typeof e.length};function X(e){return null!==e&&"object"==typeof e}var J,ee=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),te=((J=function(){function e(t){Z(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return Y(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(T(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(c){t=c instanceof ee?ne(c.errors):[c]}}if(Q(o))for(var s=-1,l=o.length;++s<l;){var u=o[s];if(X(u))try{u.unsubscribe()}catch(c){t=t||[],c instanceof ee?t=t.concat(ne(c.errors)):t.push(c)}}if(t)throw new ee(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new J),J);function ne(e){return e.reduce(function(e,t){return e.concat(t instanceof ee?t.errors:t)},[])}var ie="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),re=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;switch(Z(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=K;break;case 1:if(!e){o.destination=K;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(I(o))):(o.syncErrorThrowable=!0,o.destination=new oe(I(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new oe(I(o),e,i,r)}return o}return Y(n,[{key:ie,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,C(M(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(te),oe=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a,s;Z(this,n),(a=t.call(this))._parentSubscriber=e;var l=I(a);return T(i)?s=i:i&&(s=i.next,r=i.error,o=i.complete,i!==K&&(T((l=Object.create(i)).unsubscribe)&&a.add(l.unsubscribe.bind(l)),l.unsubscribe=a.unsubscribe.bind(I(a)))),a._context=l,a._next=s,a._error=r,a._complete=o,a}return Y(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;W.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=W.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):q(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;q(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};W.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),W.useDeprecatedSynchronousErrorHandling)throw n;q(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!W.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return W.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(q(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(re),ae="function"==typeof Symbol&&Symbol.observable||"@@observable";function se(e){return e}var le,ue=((le=function(){function e(t){Z(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Y(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof re)return e;if(e[ie])return e[ie]()}return e||t||n?new re(e,t,n):new re(K)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||W.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),W.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){W.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof re?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=ce(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:ae,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(i=t).length?se:1===i.length?i[0]:function(e){return i.reduce(function(e,t){return t(e)},e)})(this);var i}},{key:"toPromise",value:function(e){var t=this;return new(e=ce(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}()).create=function(e){return new le(e)},le);function ce(e){if(e||(e=W.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var de,he=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),fe=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return Y(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(te),pe=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e)).destination=e,i}return Y(n)}(re),ge=((de=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Y(n,[{key:ie,value:function(){return new pe(this)}},{key:"lift",value:function(e){var t=new ve(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new he;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new he;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new he;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new he;return C(M(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new he;return this.hasError?(e.error(this.thrownError),te.EMPTY):this.isStopped?(e.complete(),te.EMPTY):(this.observers.push(e),new fe(this,e))}},{key:"asObservable",value:function(){var e=new ue;return e.source=this,e}}]),n}(ue)).create=function(e,t){return new ve(e,t)},de),ve=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).destination=e,r.source=i,r}return Y(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):te.EMPTY}}]),n}(ge);function me(e){return e&&"function"==typeof e.schedule}function ye(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new be(e,t))}}var be=function(){function e(t,n){Z(this,e),this.project=t,this.thisArg=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new we(e,this.project,this.thisArg))}}]),e}(),we=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||I(o),o}return Y(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(re),ke=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};var xe="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",_e=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ae(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Ce=function(e){if(e&&"function"==typeof e[ae])return i=e,function(e){var t=i[ae]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(_e(e))return ke(e);if(Ae(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,q),e};if(e&&"function"==typeof e[xe])return t=e,function(e){for(var n=t[xe]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i,r=X(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(r," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function Se(e,t){return new ue(function(n){var i=new te,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function Ee(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[ae]}(e))return function(e,t){return new ue(function(n){var i=new te;return i.add(t.schedule(function(){var r=e[ae]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Ae(e))return function(e,t){return new ue(function(n){var i=new te;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(_e(e))return Se(e,t);if(function(e){return e&&"function"==typeof e[xe]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new ue(function(n){var i,r=new te;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[xe](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}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 ue?e:new ue(Ce(e))}var Pe=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).parent=e,i}return Y(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(re),Oe=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(re);function De(e,t){if(!t.closed)return e instanceof ue?e.subscribe(t):Ce(e)(t)}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(Ie(function(n,i){return Ee(e(n,i)).pipe(ye(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Te(e,n))})}var Te=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Z(this,e),this.project=t,this.concurrent=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Me(e,this.project,this.concurrent))}}]),e}(),Me=function(e){E(n,e);var t=O(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Z(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return Y(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new Pe(this),n=this.destination;n.add(t);var i=De(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(Oe);function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Ie(se,e)}function Re(e,t){return t?Se(e,t):new ue(ke(e))}function Le(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return me(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof o&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof ue?t[0]:Be(i)(Re(t,r))}function Fe(){return function(e){return e.lift(new Ve(e))}}var Ne,Ve=function(){function e(t){Z(this,e),this.connectable=t}return Y(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new ze(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),ze=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).connectable=i,r}return Y(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(re),je=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return Y(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new te).add(this.source.subscribe(new Ue(this.getSubject(),this))),e.closed&&(this._connection=null,e=te.EMPTY)),e}},{key:"refCount",value:function(){return Fe()(this)}}]),n}(ue),He={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(Ne=je.prototype)._subscribe},_isComplete:{value:Ne._isComplete,writable:!0},getSubject:{value:Ne.getSubject},connect:{value:Ne.connect},refCount:{value:Ne.refCount}},Ue=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).connectable=i,r}return Y(n,[{key:"_error",value:function(e){this._unsubscribe(),C(M(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),C(M(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(pe);function We(){return new ge}function Ge(){return function(e){return Fe()((t=We,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,He);return i.source=e,i.subjectFactory=n,i})(e));var t}}function qe(e){for(var t in e)if(e[t]===qe)return t;throw Error("Could not find renamed property on target object.")}function Ye(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ze(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ze).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ke(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Qe=qe({__forward_ref__:qe});function Xe(e){return e.__forward_ref__=Xe,e.toString=function(){return Ze(this())},e}function Je(e){return $e(e)?e():e}function $e(e){return"function"==typeof e&&e.hasOwnProperty(Qe)&&e.__forward_ref__===Xe}var et=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return Y(n)}(_(Error));function tt(e){return"string"==typeof e?e:null==e?"":String(e)}function nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tt(e)}function it(e,t){var n=t?" in "+t:"";throw new et("201","No provider for ".concat(nt(e)," found").concat(n))}function rt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var ot=rt;function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function st(e){return lt(e,dt)||lt(e,ft)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function ut(e){return e&&(e.hasOwnProperty(ht)||e.hasOwnProperty(pt))?e[ht]:null}var ct,dt=qe({"\u0275prov":qe}),ht=qe({"\u0275inj":qe}),ft=qe({ngInjectableDef:qe}),pt=qe({ngInjectorDef:qe}),gt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function vt(e){var t=ct;return ct=e,t}function mt(e,t,n){var i=st(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&gt.Optional?null:void 0!==t?t:void it(Ze(e),"Injector")}function yt(e){return{toString:e}.toString()}var bt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),wt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),kt="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,_t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Ct=kt||At||xt||_t,St={},Et=[],Pt=[],Ot=qe({"\u0275cmp":qe}),Dt=qe({"\u0275dir":qe}),It=qe({"\u0275pipe":qe}),Tt=qe({"\u0275mod":qe}),Mt=qe({"\u0275loc":qe}),Bt=qe({"\u0275fac":qe}),Rt=qe({__NG_ELEMENT_ID__:qe}),Lt=0;function Ft(e){return yt(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Pt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,id:"c",styles:e.styles||Pt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=Lt++,n.inputs=Ht(e.inputs,t),n.outputs=Ht(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Nt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Vt)}:null,n})}function Nt(e){return Gt(e)||function(e){return e[Dt]||null}(e)}function Vt(e){return function(e){return e[It]||null}(e)}var zt={};function jt(e){var t={type:e.type,bootstrap:e.bootstrap||Pt,declarations:e.declarations||Pt,imports:e.imports||Pt,exports:e.exports||Pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&yt(function(){zt[e.id]=e.type}),t}function Ht(e,t){if(null==e)return St;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var Ut=Ft;function Wt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gt(e){return e[Ot]||null}function qt(e,t){var n=e[Tt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Ze(e)," does not have '\u0275mod' property."));return n}function Yt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Zt(e){return Array.isArray(e)&&!0===e[1]}function Kt(e){return 0!=(8&e.flags)}function Qt(e){return 2==(2&e.flags)}function Xt(e){return 1==(1&e.flags)}function Jt(e){return null!==e.template}function $t(e,t){return e.hasOwnProperty(Bt)?e[Bt]:null}var en=function(){function e(t,n,i){Z(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return Y(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function tn(){return nn}function nn(e){return e.type.prototype.ngOnChanges&&(e.setInput=on),rn}function rn(){var e=an(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===St)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function on(e,t,n,i){var r=an(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:St,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new en(l&&l.currentValue,t,a===St),e[i]=t}function an(e){return e.__ngSimpleChanges__||null}tn.ngInherit=!0;var sn=void 0;function ln(){return void 0!==sn?sn:"undefined"!=typeof document?document:void 0}function un(e){return!!e.listen}var cn={createRenderer:function(e,t){return ln()}};function dn(e){for(;Array.isArray(e);)e=e[0];return e}function hn(e,t){return dn(t[e])}function fn(e,t){return dn(t[e.index])}function pn(e,t){return e.data[t]}function gn(e,t){return e[t]}function vn(e,t){var n=t[e];return Yt(n)?n:n[0]}function mn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function yn(e){return 4==(4&e[2])}function bn(e){return 128==(128&e[2])}function wn(e,t){return null==t?null:e[t]}function kn(e){e[18]=0}function xn(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var _n={lFrame:Yn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function An(){return _n.bindingsEnabled}function Cn(){return _n.lFrame.lView}function Sn(){return _n.lFrame.tView}function En(e){_n.lFrame.contextLView=e}function Pn(){for(var e=On();null!==e&&64===e.type;)e=e.parent;return e}function On(){return _n.lFrame.currentTNode}function Dn(e,t){var n=_n.lFrame;n.currentTNode=e,n.isParent=t}function In(){return _n.lFrame.isParent}function Tn(){_n.lFrame.isParent=!1}function Mn(){return _n.isInCheckNoChangesMode}function Bn(e){_n.isInCheckNoChangesMode=e}function Rn(){var e=_n.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ln(){return _n.lFrame.bindingIndex}function Fn(){return _n.lFrame.bindingIndex++}function Nn(e){var t=_n.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Vn(e){_n.lFrame.currentDirectiveIndex=e}function zn(e){var t=_n.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function jn(){return _n.lFrame.currentQueryIndex}function Hn(e){_n.lFrame.currentQueryIndex=e}function Un(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wn(e,t,n){if(n&gt.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&gt.Host||(i=Un(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=_n.lFrame=qn();return o.currentTNode=t,o.lView=e,!0}function Gn(e){var t=qn(),n=e[1];_n.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qn(){var e=_n.lFrame,t=null===e?null:e.child;return null===t?Yn(e):t}function Yn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Zn(){var e=_n.lFrame;return _n.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Kn=Zn;function Qn(){var e=Zn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Xn(){return _n.lFrame.selectedIndex}function Jn(e){_n.lFrame.selectedIndex=e}function $n(){var e=_n.lFrame;return pn(e.tView,e.selectedIndex)}function ei(){_n.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ti(){_n.lFrame.currentNamespace=null}function ni(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,u=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function ii(e,t,n){ai(e,t,3,n)}function ri(e,t,n,i){(3&e[2])===n&&ai(e,t,n,i)}function oi(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ai(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(si(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function si(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var li=Y(function e(t,n,i){Z(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i});function ui(e,t,n){for(var i=un(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var u=o,c=n[++r];di(u)?i&&e.setProperty(t,u,c):i?e.setAttribute(t,u,c):t.setAttribute(u,c),r++}}return r}function ci(e){return 3===e||4===e||6===e}function di(e){return 64===e.charCodeAt(0)}function hi(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||fi(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function fi(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function pi(e){return-1!==e}function gi(e){return 32767&e}function vi(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var mi=!0;function yi(e){var t=mi;return mi=e,t}var bi=0;function wi(e,t){var n=xi(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ki(i.data,e),ki(t,null),ki(i.blueprint,null));var r=_i(e,t),o=e.injectorIndex;if(pi(r))for(var a=gi(r),s=vi(r,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=r,o}function ki(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xi(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _i(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ai(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Rt)&&(i=n[Rt]),null==i&&(i=n[Rt]=bi++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Ci(e,t,n){if(n&gt.Optional)return e;it(t,"NodeInjector")}function Si(e,t,n,i){if(n&gt.Optional&&void 0===i&&(i=null),0==(n&(gt.Self|gt.Host))){var r=e[9],o=vt(void 0);try{return r?r.get(t,i,n&gt.Optional):mt(t,i,n&gt.Optional)}finally{vt(o)}}return Ci(i,t,n)}function Ei(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Rt)?e[Rt]:void 0;return"number"==typeof t?t>=0?255&t:Oi:t}(n);if("function"==typeof o){if(!Wn(t,e,i))return i&gt.Host?Ci(r,n,i):Si(t,n,i,r);try{var a=o();if(null!=a||i&gt.Optional)return a;it(n)}finally{Kn()}}else if("number"==typeof o){var s=null,l=xi(e,t),u=-1,c=i&gt.Host?t[16][6]:null;for((-1===l||i&gt.SkipSelf)&&(-1!==(u=-1===l?_i(e,t):t[l+8])&&Bi(i,!1)?(s=t[1],l=gi(u),t=vi(u,t)):l=-1);-1!==l;){var d=t[1];if(Mi(o,l,d.data)){var h=Di(l,t,n,s,i,c);if(h!==Pi)return h}-1!==(u=t[l+8])&&Bi(i,t[1].data[l+8]===c)&&Mi(o,l,t)?(s=d,l=gi(u),t=vi(u,t)):l=-1}}}return Si(t,n,i,r)}var Pi={};function Oi(){return new Ri(Pn(),Cn())}function Di(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],l=Ii(s,a,n,null==i?Qt(s)&&mi:i!=a&&0!=(3&s.type),r&gt.Host&&o===s);return null!==l?Ti(t,a,l,s):Pi}function Ii(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,u=o>>20,c=r?s+u:e.directiveEnd,d=i?s:s+u;d<c;d++){var h=a[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(r){var f=a[l];if(f&&Jt(f)&&f.type===n)return l}return null}function Ti(e,t,n,i){var r=e[n],o=t.data;if(r instanceof li){var a=r;a.resolving&&function(e,t){throw new et("200","Circular dependency in DI detected for "+e)}(nt(o[n]));var s=yi(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?vt(a.injectImpl):null;Wn(e,i,gt.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=nn(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==l&&vt(l),yi(s),a.resolving=!1,Kn()}}return r}function Mi(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Bi(e,t){return!(e&gt.Self||e&gt.Host&&t)}var Ri=function(){function e(t,n){Z(this,e),this._tNode=t,this._lView=n}return Y(e,[{key:"get",value:function(e,t){return Ei(this._tNode,this._lView,e,void 0,t)}}]),e}();function Li(e){return yt(function(){for(var t=e.prototype.constructor,n=t[Bt]||Fi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[Bt]||Fi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function Fi(e){return $e(e)?function(){var t=Fi(Je(e));return t&&t()}:$t(e)}function Ni(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(ci(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(Pn(),e)}function Vi(e,t,n){return yt(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=A(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var zi=Vi("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return Ni(e)}}}),ji=function(){function e(t,n){Z(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=rt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return Y(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),Hi=new ji("AnalyzeForEntryComponents"),Ui=Function;function Wi(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Wi(i,t)):t!==e&&t.push(i)}return t}function Gi(e,t){e.forEach(function(e){return Array.isArray(e)?Gi(e,t):t(e)})}function qi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Yi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zi(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ki(e,t,n){var i=Xi(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Qi(e,t){var n=Xi(e,t);if(n>=0)return e[1|n]}function Xi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Ji={},$i=/\n/gm,er=qe({provide:String,useValue:qe}),tr=void 0;function nr(e){var t=tr;return tr=e,t}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt.Default;if(void 0===tr)throw new Error("inject() must be called from an injection context");return null===tr?mt(e,void 0,t):tr.get(e,t&gt.Optional?null:void 0,t)}function rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt.Default;return(ct||ir)(Je(e),t)}var or=rr;function ar(e){for(var t=[],n=0;n<e.length;n++){var i=Je(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=gt.Default,a=0;a<i.length;a++){var s=i[a],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:o|=l:r=s}t.push(rr(r,o))}else t.push(rr(i))}return t}function sr(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var lr,ur,cr=sr(Vi("Inject",function(e){return{token:e}}),-1),dr=sr(Vi("Optional"),8),hr=sr(Vi("SkipSelf"),4);function fr(e){var t;return(null===(t=function(){if(void 0===lr&&(lr=null,Ct.trustedTypes))try{lr=Ct.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return lr}())||void 0===t?void 0:t.createHTML(e))||e}function pr(e){var t;return(null===(t=function(){if(void 0===ur&&(ur=null,Ct.trustedTypes))try{ur=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return ur}())||void 0===t?void 0:t.createHTML(e))||e}var gr=function(){function e(t){Z(this,e),this.changingThisBreaksApplicationSecurity=t}return Y(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}]),e}(),vr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(gr),mr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(gr),yr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(gr),br=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(gr),wr=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(gr);function kr(e){return e instanceof gr?e.changingThisBreaksApplicationSecurity:e}function xr(e,t){var n=_r(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function _r(e){return e instanceof gr&&e.getTypeName()||null}var Ar=function(){function e(t){Z(this,e),this.inertDocumentHelper=t}return Y(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(fr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Cr=function(){function e(t){if(Z(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return Y(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=fr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=fr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),Sr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Er=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Pr(e){return(e=String(e)).match(Sr)||e.match(Er)?e:"unsafe:"+e}function Or(e){var t,n={},i=R(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function Dr(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var Ir,Tr=Or("area,br,col,hr,img,wbr"),Mr=Or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Br=Or("rp,rt"),Rr=Dr(Br,Mr),Lr=Dr(Tr,Dr(Mr,Or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dr(Br,Or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Rr),Fr=Or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Nr=Or("srcset"),Vr=Dr(Fr,Nr,Or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),zr=Or("script,style,template"),jr=function(){function e(){Z(this,e),this.sanitizedSomething=!1,this.buf=[]}return Y(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!Lr.hasOwnProperty(t))return this.sanitizedSomething=!0,!zr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(Vr.hasOwnProperty(s)){var l=o.value;Fr[s]&&(l=Pr(l)),Nr[s]&&(n=l,l=(n=String(n)).split(",").map(function(e){return Pr(e.trim())}).join(", ")),this.buf.push(" ",a,'="',Wr(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Lr.hasOwnProperty(t)&&!Tr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Wr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),Hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function Wr(e){return e.replace(/&/g,"&amp;").replace(Hr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gr(e,t){var n=null;try{Ir=Ir||function(e){var t=new Cr(e);return function(){try{return!!(new window.DOMParser).parseFromString(fr(""),"text/html")}catch(e){return!1}}()?new Ar(t):t}(e);var i=t?String(t):"";n=Ir.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ir.getInertBodyElement(i)}while(i!==o);return fr((new jr).sanitizeChildren(qr(n)||n))}finally{if(n)for(var a=qr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function qr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Yr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Zr(e){var t=Qr();return t?pr(t.sanitize(Yr.HTML,e)||""):xr(e,"HTML")?pr(kr(e)):Gr(ln(),tt(e))}function Kr(e){var t=Qr();return t?t.sanitize(Yr.URL,e)||"":xr(e,"URL")?kr(e):Pr(tt(e))}function Qr(){var e=Cn();return e&&e[12]}function Xr(e){return e.ngDebugContext}function Jr(e){return e.ngOriginalError}function $r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var eo=function(){function e(){Z(this,e),this._console=console}return Y(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||$r}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Xr(e)?Xr(e):this._findContext(Jr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Jr(e);t&&Jr(t);)t=Jr(t);return t}}]),e}();function to(e,t){e.__ngContext__=t}var no=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ct);function io(e){return{name:"window",target:e.ownerDocument.defaultView}}function ro(e){return{name:"body",target:e.ownerDocument.body}}function oo(e){return e instanceof Function?e():e}var ao=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function so(e,t){return(void 0)(e,t)}function lo(e){var t=e[3];return Zt(t)?t[3]:t}function uo(e){return ho(e[13])}function co(e){return ho(e[4])}function ho(e){for(;null!==e&&!Zt(e);)e=e[4];return e}function fo(e,t,n,i,r){if(null!=i){var o,a=!1;Zt(i)?o=i:Yt(i)&&(a=!0,i=i[0]);var s=dn(i);0===e&&null!==n?null==r?ko(t,n,s):wo(t,n,s,r||null,!0):1===e&&null!==n?wo(t,n,s,r||null,!0):2===e?function(e,t,n){var i=_o(e,t);i&&function(e,t,n,i){un(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==dn(n)&&fo(t,e,i,o,r);for(var a=10;a<n.length;a++){var s=n[a];Io(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function po(e,t,n){return un(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function go(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,xn(r,-1)),n.splice(i,1)}function vo(e,t){if(!(e.length<=10)){var n,i=10+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&go(o,r),t>0&&(e[i-1][4]=r[4]);var a=Yi(e,10+t);Io(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function mo(e,t){if(!(256&t[2])){var n=t[11];un(n)&&n.destroyNode&&Io(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return yo(e[1],e);for(;t;){var n=null;if(Yt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Yt(t)&&yo(t[1],t),t=t[3];null===t&&(t=e),Yt(t)&&yo(t[1],t),n=t&&t[4]}t=n}}(t)}}function yo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof li)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):dn(t[a]),l=i[r=n[o+2]],u=n[o+3];"boolean"==typeof u?s.removeEventListener(n[o],l,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var d=r+1;d<i.length;d++)(0,i[d])();t[7]=null}}(e,t),1===t[1].type&&un(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Zt(t[3])){n!==t[3]&&go(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function bo(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===wt.None||r===wt.Emulated)return null}return fn(i,n)}(e,t.parent,n)}function wo(e,t,n,i,r){un(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function ko(e,t,n){un(e)?e.appendChild(t,n):t.appendChild(n)}function xo(e,t,n,i,r){null!==i?wo(e,t,n,i,r):ko(e,t,n)}function _o(e,t){return un(e)?e.parentNode(t):t.parentNode}function Ao(e,t,n){return Co(e,t,n)}var Co=function(e,t,n){return 40&e.type?fn(e,n):null};function So(e,t,n,i){var r=bo(e,i,t),o=t[11],a=Ao(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)xo(o,r,n[s],a,!1);else xo(o,r,n,a,!1)}function Eo(e,t){if(null!==t){var n=t.type;if(3&n)return fn(t,e);if(4&n)return Oo(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return Eo(e,i);var r=e[t.index];return Zt(r)?Oo(-1,r):dn(r)}if(32&n)return so(t,e)()||dn(e[t.index]);var o=Po(e,t);return null!==o?Array.isArray(o)?o[0]:Eo(lo(e[16]),o):Eo(e,t.next)}return null}function Po(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Oo(e,t){var n=10+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return Eo(i,r)}return t[7]}function Do(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],l=n.type;if(a&&0===t&&(s&&to(dn(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)Do(e,t,n.child,i,r,o,!1),fo(t,e,r,s,o);else if(32&l){for(var u=so(n,i),c=void 0;c=u();)fo(t,e,r,c,o);fo(t,e,r,s,o)}else 16&l?To(e,t,i,n,r,o):fo(t,e,r,s,o);n=a?n.projectionNext:n.next}}function Io(e,t,n,i,r,o){Do(n,i,e.firstChild,t,r,o,!1)}function To(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)fo(t,e,r,s[l],o);else Do(e,t,s,a[3],r,o,!0)}function Mo(e,t,n){un(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Bo(e,t,n){un(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ro(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}function Lo(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==Ro((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Fo(e){return 4===e.type&&"ng-template"!==e.value}function No(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Vo(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(ci(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!No(e,l,n)||""===l&&1===t.length){if(zo(i))return!1;a=!0}}else{var u=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!Lo(e.attrs,u,n)){if(zo(i))return!1;a=!0}continue}var c=jo(8&i?"class":l,r,Fo(e),n);if(-1===c){if(zo(i))return!1;a=!0;continue}if(""!==u){var d;d=c>o?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==Ro(h,u,0)||2&i&&u!==d){if(zo(i))return!1;a=!0}}}}else{if(!a&&!zo(i)&&!zo(l))return!1;if(a&&zo(l))continue;a=!1,i=l|1&i}}return zo(i)||a}function zo(e){return 0==(1&e)}function jo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Ho(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(Vo(e,t[i],n))return!0;return!1}function Uo(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Wo(e,t){return e?":not("+t.trim()+")":t}function Go(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||zo(a)||(t+=Wo(o,r),r=""),i=a,o=o||!zo(i);n++}return""!==r&&(t+=Wo(o,r)),t}var qo={};function Yo(e){Zo(Sn(),Cn(),Xn()+e,Mn())}function Zo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&ii(t,r,n)}else{var o=e.preOrderHooks;null!==o&&ri(t,o,0,n)}Jn(n)}function Ko(e,t){return e<<17|t<<2}function Qo(e){return e>>17&32767}function Xo(e){return 2|e}function Jo(e){return(131068&e)>>2}function $o(e,t){return-131069&e|t<<2}function ea(e){return 1|e}function ta(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1];if(-1!==o){var a=e.data[o];Hn(r),a.contentQueries(2,t[o],o)}}}function na(e,t,n,i,r,o,a,s,l,u){var c=t.blueprint.slice();return c[0]=r,c[2]=140|i,kn(c),c[3]=c[15]=e,c[8]=n,c[10]=a||e&&e[10],c[11]=s||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function ia(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=On(),a=In(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),_n.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(o=_n.lFrame,a=o.currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return Dn(s,!0),s}function ra(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function oa(e,t,n){Gn(t);try{var i=e.viewQuery;null!==i&&Ra(1,i,n);var r=e.template;null!==r&&la(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&ta(e,t),e.staticViewQueries&&Ra(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)Da(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Qn()}}function aa(e,t,n,i){var r=t[2];if(256!=(256&r)){Gn(t);var o=Mn();try{kn(t),_n.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&la(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&ii(t,s,null)}else{var l=e.preOrderHooks;null!==l&&ri(t,l,0,null),oi(t,0)}if(function(e){for(var t=uo(e);null!==t;t=co(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i],o=r[3];0==(1024&r[2])&&xn(o,1),r[2]|=1024}}(t),function(e){for(var t=uo(e);null!==t;t=co(t))for(var n=10;n<t.length;n++){var i=t[n],r=i[1];bn(i)&&aa(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&ta(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&ii(t,u)}else{var c=e.contentHooks;null!==c&&ri(t,c,1),oi(t,1)}!function(e,t){var n,i,r,o=e.hostBindingOpCodes;if(null!==o)try{for(var a=0;a<o.length;a++){var s=o[a];if(s<0)Jn(~s);else{var l=s,u=o[++a],c=o[++a];n=u,i=l,r=void 0,(r=_n.lFrame).bindingIndex=r.bindingRootIndex=n,Vn(i),c(2,t[l])}}}finally{Jn(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)Pa(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&Ra(2,h,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&ii(t,f)}else{var p=e.viewHooks;null!==p&&ri(t,p,2),oi(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,xn(t[3],-1))}finally{Qn()}}}function sa(e,t,n,i){var r=t[10],o=!Mn(),a=yn(t);try{o&&!a&&r.begin&&r.begin(),a&&oa(e,t,i),aa(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function la(e,t,n,i,r){var o=Xn();try{Jn(-1),2&i&&t.length>20&&Zo(e,t,20,Mn()),n(i,r)}finally{Jn(o)}}function ua(e,t,n){if(Kt(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function ca(e,t,n){An()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||wi(n,t),to(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var l=e.data[s],u=Jt(l);u&&Aa(t,n,l);var c=Ti(t,e,s,n);to(c,t),null!==a&&Ca(0,s-r,c,l,0,a),u&&(vn(n.index,t)[8]=c)}}(e,t,n,fn(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=_n.lFrame.currentDirectiveIndex;try{Jn(o);for(var s=i;s<r;s++){var l=e.data[s],u=t[s];Vn(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||ba(l,u)}}finally{Jn(-1),Vn(a)}}(e,t,n))}function da(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function ha(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=fa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function fa(e,t,n,i,r,o,a,s,l,u){var c=20+i,d=c+r,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:qo);return n}(c,d),f="function"==typeof u?u():u;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function pa(e,t,n,i){var r=Fa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Na(e).push(i,r.length-1))}function ga(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function va(e,t,n,i,r,o,a,s){var l,u,c=fn(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(ja(e,n,l,i,r),Qt(t)&&function(e,t){var n=vn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=a?a(r,t.value||"",i):r,un(o)?o.setProperty(c,i,r):di(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function ma(e,t,n,i){var r=!1;if(An()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];Ho(n,a.selectors,!1)&&(r||(r=[]),Ai(wi(n,t),e,a.type),Jt(a)?(wa(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,xa(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var l=o[s];l.providersResolver&&l.providersResolver(l)}for(var u=!1,c=!1,d=ra(e,t,o.length,null),h=0;h<o.length;h++){var f=o[h];n.mergedAttrs=hi(n.mergedAttrs,f.hostAttrs),_a(e,n,t,d,f),ka(d,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),c||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),c=!0),d++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var u=i[l],c=u.inputs,d=null===r||Fo(t)?null:Sa(c,r);o.push(d),a=ga(c,l,a),s=ga(u.outputs,l,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new et("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=hi(n.mergedAttrs,n.attrs),r}function ya(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function ba(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function wa(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ka(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Jt(t)&&(n[""]=e)}}function xa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function _a(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=$t(r.type)),a=new li(o,Jt(r),null);e.blueprint[i]=a,n[i]=a,ya(e,t,0,i,ra(e,n,r.hostVars,qo),r)}function Aa(e,t,n){var i=fn(t,e),r=ha(n),o=e[10],a=Ia(e,na(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function Ca(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,l=0;l<a.length;){var u=a[l++],c=a[l++],d=a[l++];null!==s?i.setInput(n,d,u,c):n[c]=d}}function Sa(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Ea(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Pa(e,t){var n=vn(t,e);if(bn(n)){var i=n[1];80&n[2]?aa(i,n,i.template,n[8]):n[5]>0&&Oa(n)}}function Oa(e){for(var t=uo(e);null!==t;t=co(t))for(var n=10;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];aa(r,i,r.template,i[8])}else i[5]>0&&Oa(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=vn(o[a],e);bn(s)&&s[5]>0&&Oa(s)}}function Da(e,t){var n=vn(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),oa(i,n,n[8])}function Ia(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Ta(e){for(;e;){e[2]|=64;var t=lo(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Ma(e,t,n){var i=t[10];i.begin&&i.begin();try{aa(e,t,e.template,n)}catch(r){throw za(t,r),r}finally{i.end&&i.end()}}function Ba(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=mn(n),r=i[1];sa(r,i,r.template,n)}}(e[8])}function Ra(e,t,n){Hn(0),t(e,n)}var La=Promise.resolve(null);function Fa(e){return e[7]||(e[7]=[])}function Na(e){return e.cleanup||(e.cleanup=[])}function Va(e,t,n){return(null===e||Jt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function za(e,t){var n=e[9],i=n?n.get(eo,null):null;i&&i.handleError(t)}function ja(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],u=e.data[a];null!==u.setInput?u.setInput(l,r,i,s):l[s]=r}}function Ha(e,t,n){var i=hn(t,e);!function(e,t,n){un(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Ua(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Ke(r,s):2==o&&(i=Ke(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Wa=new ji("INJECTOR",-1),Ga=function(){function e(){Z(this,e)}return Y(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ji;if(t===Ji){var n=new Error("NullInjectorError: No provider for ".concat(Ze(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),qa=new ji("Set Injector scope."),Ya={},Za={},Ka=[],Qa=void 0;function Xa(){return void 0===Qa&&(Qa=new Ga),Qa}function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new $a(e,n,t||Xa(),i)}var $a=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Z(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Gi(n,function(e){return r.processProvider(e,t,n)}),Gi([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(Wa,ns(void 0,this));var s=this.records.get(qa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Ze(t))}return Y(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ji,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt.Default;this.assertNotDestroyed();var i,r=nr(this);try{if(!(n&gt.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(i=e)||"object"==typeof i&&i instanceof ji)&&st(e);o=a&&this.injectableDefInScope(a)?ns(es(e),Ya):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&gt.Self?Xa():this.parent).get(e,t=n&gt.Optional&&t===Ji?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Ze(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Ze(t);if(Array.isArray(t))r=t.map(Ze).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ze(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace($i,"\n  "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{nr(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Ze(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Je(e)))return!1;var r=ut(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=ut(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{Gi(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,r=t.providers;Gi(r,function(e){return i.processProvider(e,n,r||Ka)})},c=0;c<l.length;c++)u(c)}this.injectorDefTypes.add(a);var d=$t(a)||function(){return new a};this.records.set(a,ns(d,Ya));var h=r.providers;if(null!=h&&!s){var f=e;Gi(h,function(e){return i.processProvider(e,f,h)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=rs(e=Je(e))?e:Je(e&&e.provide),r=function(e,t,n){return is(e)?ns(void 0,e.useValue):ns(ts(e),Ya)}(e);if(rs(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=ns(void 0,Ya,!0)).factory=function(){return ar(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ya&&(t.value=Za,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function es(e){var t=st(e),n=null!==t?t.factory:$t(e);if(null!==n)return n;if(e instanceof ji)throw new Error("Token ".concat(Ze(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Zi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Ze(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[dt]||e[ft]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ts(e,t,n){var i,r=void 0;if(rs(e)){var o=Je(e);return $t(o)||es(o)}if(is(e))r=function(){return Je(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,V(ar(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return rr(Je(e.useExisting))};else{var a=Je(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return $t(a)||es(a);r=function(){return A(a,V(ar(e.deps)))}}return r}function ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function is(e){return null!==e&&"object"==typeof e&&er in e}function rs(e){return"function"==typeof e}var os=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ja(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},as=function(){var e=function(){function e(){Z(this,e)}return Y(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?os(e,t,""):os(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ji,e.NULL=new Ga,e.\u0275prov=rt({token:e,providedIn:"any",factory:function(){return rr(Wa)}}),e.__NG_ELEMENT_ID__=-1,e}();function ss(e,t){ni(mn(e)[1],Pn())}function ls(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Jt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=us(e.inputs),o.declaredInputs=us(e.declaredInputs),o.outputs=us(e.outputs);var a=r.hostBindings;a&&hs(e,a);var s=r.viewQuery,l=r.contentQueries;if(s&&cs(e,s),l&&ds(e,l),Ye(e.inputs,r.inputs),Ye(e.declaredInputs,r.declaredInputs),Ye(e.outputs,r.outputs),Jt(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d<c.length;d++){var h=c[d];h&&h.ngInherit&&h(e),h===ls&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=hi(r.hostAttrs,n=hi(n,r.hostAttrs))}}(i)}function us(e){return e===St?{}:e===Pt?[]:e}function cs(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function ds(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function hs(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var fs=null;function ps(){if(!fs){var e=Ct.Symbol;if(e&&e.iterator)fs=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(fs=i)}}return fs}var gs=function(){function e(t){Z(this,e),this.wrapped=t}return Y(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function vs(e){return!!ms(e)&&(Array.isArray(e)||!(e instanceof Map)&&ps()in e)}function ms(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ys(e,t,n){return e[t]=n}function bs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ws(e,t,n,i){var r=bs(e,t,n);return bs(e,t+1,i)||r}function ks(e,t,n,i,r){var o=ws(e,t,n,i);return bs(e,t+2,r)||o}function xs(e,t,n,i,r,o){var a=ws(e,t,n,i);return ws(e,t+2,r,o)||a}function _s(e,t,n,i){var r=Cn();return bs(r,Fn(),t)&&(Sn(),function(e,t,n,i,r,o){var a=fn(e,t);!function(e,t,n,i,r,o,a){if(null==o)un(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?tt(o):a(o,i||"",r);un(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}($n(),r,e,t,n,i)),_s}function As(e,t,n,i){return bs(e,Fn(),n)?t+tt(n)+i:qo}function Cs(e,t,n,i,r,o){var a=ws(e,Ln(),n,r);return Nn(2),a?t+tt(n)+i+tt(r)+o:qo}function Ss(e,t,n,i,r,o,a,s){var l=Cn(),u=Sn(),c=e+20,d=u.firstCreatePass?function(e,t,n,i,r,o,a,s,l){var u=t.consts,c=ia(t,e,4,a||null,wn(u,s));ma(t,n,c,wn(u,l)),ni(t,c);var d=c.tViews=fa(2,c,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,i,r,o,a):u.data[c];Dn(d,!1);var h=l[11].createComment("");So(u,l,h,d),to(h,l),Ia(l,l[c]=Ea(h,l,h,d)),Xt(d)&&ca(u,l,d),null!=a&&da(l,d,s)}function Es(e){return gn(_n.lFrame.contextLView,20+e)}function Ps(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt.Default,n=Cn();return null===n?rr(e,t):Ei(Pn(),n,Je(e),t)}function Os(e,t,n){var i=Cn();return bs(i,Fn(),t)&&va(Sn(),$n(),i,e,t,i[11],n,!1),Os}function Ds(e,t,n,i,r){var o=r?"class":"style";ja(e,n,t.inputs[o],o,i)}function Is(e,t,n,i){var r=Cn(),o=Sn(),a=20+e,s=r[11],l=r[a]=po(s,t,_n.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,l=ia(t,e,2,r,wn(s,o));return ma(t,n,l,wn(s,a)),null!==l.attrs&&Ua(l,l.attrs,!1),null!==l.mergedAttrs&&Ua(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(a,o,r,0,t,n,i):o.data[a];Dn(u,!0);var c=u.mergedAttrs;null!==c&&ui(s,l,c);var d=u.classes;null!==d&&Bo(s,l,d);var h=u.styles;null!==h&&Mo(s,l,h),64!=(64&u.flags)&&So(o,r,l,u),0===_n.lFrame.elementDepthCount&&to(l,r),_n.lFrame.elementDepthCount++,Xt(u)&&(ca(o,r,u),ua(o,u,r)),null!==i&&da(r,u)}function Ts(){var e=Pn();In()?Tn():Dn(e=e.parent,!1);var t=e;_n.lFrame.elementDepthCount--;var n=Sn();n.firstCreatePass&&(ni(n,e),Kt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ds(n,t,Cn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ds(n,t,Cn(),t.stylesWithoutHost,!1)}function Ms(e,t,n,i){Is(e,t,n,i),Ts()}function Bs(e,t,n){var i=Cn(),r=Sn(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=wn(o,i),s=ia(t,e,8,"ng-container",a);return null!==a&&Ua(s,a,!0),ma(t,n,s,wn(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];Dn(a,!0);var s=i[o]=i[11].createComment("");So(r,i,s,a),to(s,i),Xt(a)&&(ca(r,i,a),ua(r,a,i)),null!=n&&da(i,a)}function Rs(){var e=Pn(),t=Sn();In()?Tn():Dn(e=e.parent,!1),t.firstCreatePass&&(ni(t,e),Kt(e)&&t.queries.elementEnd(e))}function Ls(e,t,n){Bs(e,t,n),Rs()}function Fs(){return Cn()}function Ns(e){return!!e&&"function"==typeof e.then}function Vs(e){return!!e&&"function"==typeof e.subscribe}var zs=Vs;function js(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Cn(),o=Sn(),a=Pn();return Us(o,r,r[11],a,e,t,n,i),js}function Hs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Pn(),o=Cn(),a=Sn();return Us(a,o,Va(zn(a.data),r,o),r,e,t,n,i),Hs}function Us(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Xt(i),u=e.firstCreatePass&&Na(e),c=Fa(t),d=!0;if(3&i.type){var h=fn(i,t),f=s?s(h):St,p=f.target||h,g=c.length,v=s?function(e){return s(dn(e[i.index])).target}:i.index;if(un(n)){var m=null;if(!s&&l&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=Gs(i,t,o,!1);var y=n.listen(f.name||p,r,o);c.push(o,y),u&&u.push(r,v,g,g+1)}}else o=Gs(i,t,o,!0),p.addEventListener(r,o,a),c.push(o),u&&u.push(r,v,g,a)}else o=Gs(i,t,o,!1);var b,w=i.outputs;if(d&&null!==w&&(b=w[r])){var k=b.length;if(k)for(var x=0;x<k;x+=2){var _=t[b[x]][b[x+1]].subscribe(o),A=c.length;c.push(o,_),u&&u.push(r,i.index,A,-(A+1))}}}function Ws(e,t,n){try{return!1!==t(n)}catch(i){return za(e,i),!1}}function Gs(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?vn(e.index,t):t;0==(32&t[2])&&Ta(a);for(var s=Ws(t,n,o),l=r.__ngNextListenerFn__;l;)s=Ws(t,l,o)&&s,l=l.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function qs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(_n.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,_n.lFrame.contextLView))[8]}(e)}function Ys(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?Ho(e,o,!0):Uo(i,o))return r}else n=r}return n}function Zs(e){var t=Cn()[16][6];if(!t.projection)for(var n=t.projection=Zi(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Ys(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Cn(),r=Sn(),o=ia(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Tn(),64!=(64&o.flags)&&function(e,t,n){To(t[11],0,t,n,bo(e,n,t),Ao(n.parent||t[6],n,t))}(r,i,o)}function Qs(e,t,n){return Xs(e,"",t,"",n),Qs}function Xs(e,t,n,i,r){var o=Cn(),a=As(o,t,n,i);return a!==qo&&va(Sn(),$n(),o,e,a,o[11],r,!1),Xs}function Js(e,t,n,i,r,o,a){var s=Cn(),l=Cs(s,t,n,i,r,o);return l!==qo&&va(Sn(),$n(),s,e,l,s[11],a,!1),Js}function $s(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Qo(o):Jo(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];el(e[s],t)&&(l=!0,e[s+1]=i?ea(u):Xo(u)),s=i?Qo(u):Jo(u)}l&&(e[n+1]=i?Xo(o):ea(o))}function el(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xi(e,t)>=0}var tl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nl(e){return e.substring(tl.key,tl.keyEnd)}function il(e,t){var n=tl.textEnd;return n===t?-1:(t=tl.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,tl.key=t,n),rl(e,t,n))}function rl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ol(e,t,n){return ul(e,t,n,!1),ol}function al(e,t){return ul(e,t,null,!0),al}function sl(e){cl(Ki,ll,e,!0)}function ll(e,t){for(var n=function(e){return function(e){tl.key=0,tl.keyEnd=0,tl.value=0,tl.valueEnd=0,tl.textEnd=e.length}(e),il(e,rl(e,0,tl.textEnd))}(t);n>=0;n=il(t,n))Ki(e,nl(t),!0)}function ul(e,t,n,i){var r=Cn(),o=Sn(),a=Nn(2);o.firstUpdatePass&&hl(o,e,a,i),t!==qo&&bs(r,a,t)&&gl(o,o.data[Xn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ze(kr(e)))),e}(t,n),i,a)}function cl(e,t,n,i){var r=Sn(),o=Nn(2);r.firstUpdatePass&&hl(r,null,o,i);var a=Cn();if(n!==qo&&bs(a,o,n)){var s=r.data[Xn()];if(yl(s,i)&&!dl(r,o)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ke(l,n||"")),Ds(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===qo&&(r=Et);for(var l=0,u=0,c=0<r.length?r[0]:null,d=0<o.length?o[0]:null;null!==c||null!==d;){var h=l<r.length?r[l+1]:void 0,f=u<o.length?o[u+1]:void 0,p=null,g=void 0;c===d?(l+=2,u+=2,h!==f&&(p=d,g=f)):null===d||null!==c&&c<d?(l+=2,p=c):(u+=2,p=d,g=f),null!==p&&gl(e,t,n,i,p,g,a,s),c=l<r.length?r[l]:null,d=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return Et;var i=[],r=kr(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,o)}}function dl(e,t){return t>=e.expandoStartIndex}function hl(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Xn()],a=dl(e,n);yl(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=zn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=pl(n=fl(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=fl(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Jo(i))return e[Qo(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Qo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=pl(s=fl(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=pl(i,e[o].hostAttrs,n);return pl(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=Qo(a),l=Jo(a);e[i]=n;var u,c=!1;if(Array.isArray(n)){var d=n;(null===(u=d[1])||Xi(d,u)>0)&&(c=!0)}else u=n;if(r)if(0!==l){var h=Qo(e[s+1]);e[i+1]=Ko(h,s),0!==h&&(e[h+1]=$o(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ko(s,0),0!==s&&(e[s+1]=$o(e[s+1],i)),s=i;else e[i+1]=Ko(l,0),0===s?s=i:e[l+1]=$o(e[l+1],i),l=i;c&&(e[i+1]=Xo(e[i+1])),$s(e,u,i,!0),$s(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xi(o,t)>=0&&(n[i+1]=ea(n[i+1]))}(t,u,e,i,o),a=Ko(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function fl(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=pl(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function pl(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ki(e,a,!!n||t[++o]))}return void 0===e?null:e}function gl(e,t,n,i,r,o,a,s){if(3&t.type){var l=e.data,u=l[s+1];ml(1==(1&u)?vl(l,t,n,r,Jo(u),a):void 0)||(ml(o)||2==(2&u)&&(o=vl(l,null,n,r,s,a)),function(e,t,n,i,r){var o=un(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:ao.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=ao.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,hn(Xn(),n),r,o))}}function vl(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[r+1];h===qo&&(h=d?Et:void 0);var f=d?Qi(h,i):c===i?h:void 0;if(u&&!ml(f)&&(f=Qi(l,i)),ml(f)&&(s=f,a))return s;var p=e[r+1];r=a?Qo(p):Jo(p)}if(null!==t){var g=o?t.residualClasses:t.residualStyles;null!=g&&(s=Qi(g,i))}return s}function ml(e){return void 0!==e}function yl(e,t){return 0!=(e.flags&(t?16:32))}function bl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Cn(),i=Sn(),r=e+20,o=i.firstCreatePass?ia(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return un(e)?e.createText(t):e.createTextNode(t)}(n[11],t);So(i,n,a,o),Dn(o,!1)}function wl(e){return kl("",e,""),wl}function kl(e,t,n){var i=Cn(),r=As(i,e,t,n);return r!==qo&&Ha(i,Xn(),r),kl}function xl(e,t,n,i,r){var o=Cn(),a=Cs(o,e,t,n,i,r);return a!==qo&&Ha(o,Xn(),a),xl}function _l(e,t,n,i,r,o,a){var s=Cn(),l=function(e,t,n,i,r,o,a,s){var l=ks(e,Ln(),n,r,a);return Nn(3),l?t+tt(n)+i+tt(r)+o+tt(a)+s:qo}(s,e,t,n,i,r,o,a);return l!==qo&&Ha(s,Xn(),l),_l}function Al(e,t,n,i,r,o,a,s,l){var u=Cn(),c=function(e,t,n,i,r,o,a,s,l,u){var c=xs(e,Ln(),n,r,a,l);return Nn(4),c?t+tt(n)+i+tt(r)+o+tt(a)+s+tt(l)+u:qo}(u,e,t,n,i,r,o,a,s,l);return c!==qo&&Ha(u,Xn(),c),Al}function Cl(e,t,n){cl(Ki,ll,As(Cn(),e,t,n),!0)}function Sl(e,t,n){var i=Cn();return bs(i,Fn(),t)&&va(Sn(),$n(),i,e,t,i[11],n,!0),Sl}function El(e,t,n){var i=Cn();if(bs(i,Fn(),t)){var r=Sn(),o=$n();va(r,o,i,e,t,Va(zn(r.data),o,i),n,!0)}return El}var Pl=void 0,Ol=["en",[["a","p"],["AM","PM"],Pl],[["AM","PM"],Pl,Pl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Pl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Pl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Pl,"{1} 'at' {0}",Pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Dl={};function Il(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Tl(t);if(n)return n;var i=t.split("-")[0];if(n=Tl(i))return n;if("en"===i)return Ol;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Tl(e){return e in Dl||(Dl[e]=Ct.ng&&Ct.ng.common&&Ct.ng.common.locales&&Ct.ng.common.locales[e]),Dl[e]}var Ml=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Bl(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Rl(e,t,n,i,r){if(e=Je(e),Array.isArray(e))for(var o=0;o<e.length;o++)Rl(e[o],t,n,i,r);else{var a=Sn(),s=Cn(),l=rs(e)?e:Je(e.provide),u=ts(e),c=Pn(),d=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(rs(e)||!e.multi){var p=new li(u,r,Ps),g=Nl(l,t,r?d:d+f,h);-1===g?(Ai(wi(c,s),a,l),Ll(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var v=Nl(l,t,d+f,h),m=Nl(l,t,d,d+f),y=v>=0&&n[v],b=m>=0&&n[m];if(r&&!b||!r&&!y){Ai(wi(c,s),a,l);var w=function(e,t,n,i,r){var o=new li(e,n,Ps);return o.multi=[],o.index=t,o.componentProviders=0,Fl(o,r,i&&!n),o}(r?zl:Vl,n.length,r,i,u);!r&&b&&(n[m].providerFactory=w),Ll(a,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(w),s.push(w)}else Ll(a,e,v>-1?v:m,Fl(n[r?m:v],u,!r&&i));!r&&i&&b&&n[m].componentProviders++}}}function Ll(e,t,n,i){var r=rs(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function Fl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Nl(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function Vl(e,t,n,i){return jl(this.multi,[])}function zl(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=Ti(n,n[1],this.providerFactory.index,i);jl(o,r=s.slice(0,a));for(var l=a;l<s.length;l++)r.push(s[l])}else jl(o,r=[]);return r}function jl(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Hl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=Sn();if(i.firstCreatePass){var r=Jt(e);Rl(n,i.data,i.blueprint,r,!0),Rl(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var Ul=Y(function e(){Z(this,e)}),Wl=function(){function e(){Z(this,e)}return Y(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Ze(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Gl=function(){var e=Y(function e(){Z(this,e)});return e.NULL=new Wl,e}();function ql(){}function Yl(e,t){return new Kl(fn(e,t))}var Zl=function(){return Yl(Pn(),Cn())},Kl=function(){var e=Y(function e(t){Z(this,e),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Zl,e}();function Ql(e){return e instanceof Kl?e.nativeElement:e}var Xl=Y(function e(){Z(this,e)}),Jl=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=function(){return $l()},e}(),$l=function(){var e=Cn(),t=vn(Pn().index,e);return function(e){return e[11]}(Yt(t)?t:e)},eu=function(){var e=Y(function e(){Z(this,e)});return e.\u0275prov=rt({token:e,providedIn:"root",factory:function(){return null}}),e}(),tu=Y(function e(t){Z(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}),nu=new tu("11.2.6"),iu=function(){function e(){Z(this,e)}return Y(e,[{key:"supports",value:function(e){return vs(e)}},{key:"create",value:function(e){return new ou(e)}}]),e}(),ru=function(e,t){return t},ou=function(){function e(t){Z(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ru}return Y(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<uu(n,i,r)?t:n,a=uu(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,u=s-i;if(l!=u){for(var c=0;c<l;c++){var d=c<r.length?r[c]:r[c]=0,h=d+c;u<=h&&h<l&&(r[c]=d+1)}r[o.previousIndex]=u-l}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!vs(e))throw new Error("Error trying to diff '".concat(Ze(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],r=this._trackByFn(s,i),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[ps()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new au(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new lu),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new lu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),au=Y(function e(t,n){Z(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),su=function(){function e(){Z(this,e),this._head=null,this._tail=null}return Y(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),lu=function(){function e(){Z(this,e),this.map=new Map}return Y(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new su,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function uu(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var cu=function(){function e(){Z(this,e)}return Y(e,[{key:"supports",value:function(e){return e instanceof Map||ms(e)}},{key:"create",value:function(){return new du}}]),e}(),du=function(){function e(){Z(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Y(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||ms(e)))throw new Error("Error trying to diff '".concat(Ze(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new hu(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),hu=Y(function e(t){Z(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function fu(){return new pu([new iu])}var pu=function(){var e=function(){function e(t){Z(this,e),this.factories=t}return Y(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||fu())},deps:[[e,new hr,new dr]]}}}]),e}();return e.\u0275prov=rt({token:e,providedIn:"root",factory:fu}),e}();function gu(){return new vu([new cu])}var vu=function(){var e=function(){function e(t){Z(this,e),this.factories=t}return Y(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||gu())},deps:[[e,new hr,new dr]]}}}]),e}();return e.\u0275prov=rt({token:e,providedIn:"root",factory:gu}),e}();function mu(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(dn(o)),Zt(o))for(var a=10;a<o.length;a++){var s=o[a],l=s[1].firstChild;null!==l&&mu(s[1],s,l,i)}var u=n.type;if(8&u)mu(e,t,n.child,i);else if(32&u)for(var c=so(n,t),d=void 0;d=c();)i.push(d);else if(16&u){var h=Po(t,n);if(Array.isArray(h))i.push.apply(i,V(h));else{var f=lo(t[16]);mu(f[1],f,h,i,!0)}}n=r?n.projectionNext:n.next}return i}var yu=function(){function e(t,n){Z(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return Y(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return mu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(Zt(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(vo(e,n),Yi(t,n))}this._attachedToViewContainer=!1}mo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){pa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Ta(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ma(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Bn(!0);try{Ma(e,t,n)}finally{Bn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Io(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),bu=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e))._view=e,i}return Y(n,[{key:"detectChanges",value:function(){Ba(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Bn(!0);try{Ba(e)}finally{Bn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(yu),wu=xu,ku=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=wu,e.__ChangeDetectorRef__=!0,e}();function xu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Qt(e)){var i=vn(e.index,t);return new yu(i,i)}return 47&e.type?new yu(t[16],t):null}(Pn(),Cn(),e)}var _u=[new cu],Au=new pu([new iu]),Cu=new vu(_u),Su=function(){return Ou(Pn(),Cn())},Eu=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=Su,e}(),Pu=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return Y(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=na(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),oa(t,n,e),new yu(n)}}]),n}(Eu);function Ou(e,t){return 4&e.type?new Pu(t,e,Yl(e,t)):null}var Du=Y(function e(){Z(this,e)}),Iu=Y(function e(){Z(this,e)}),Tu=function(){return Fu(Pn(),Cn())},Mu=function(){var e=Y(function e(){Z(this,e)});return e.__NG_ELEMENT_ID__=Tu,e}(),Bu=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return Y(n,[{key:"element",get:function(){return Yl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Ri(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=_i(this._hostTNode,this._hostLView);if(pi(e)){var t=vi(e,this._hostLView),n=gi(e);return new Ri(t[1].data[n+8],t)}return new Ri(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Du,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(Zt(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-10?(t[4]=n[r],qi(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,i,u,l);var c=Oo(l,u),d=i[11],h=_o(d,u[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,Io(e,i,n,1,r,o)}(r,u[6],d,i,h,c),e.attachToViewContainerRef(),qi(Lu(u),l,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=Ru(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=vo(this._lContainer,t);n&&(Yi(Lu(this._lContainer),t),mo(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=vo(this._lContainer,t);return n&&null!=Yi(Lu(this._lContainer),t)?new yu(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Mu);function Ru(e){return e[8]}function Lu(e){return e[8]||(e[8]=[])}function Fu(e,t){var n,i=t[e.index];if(Zt(i))n=i;else{var r;if(8&e.type)r=dn(i);else{var o=t[11];r=o.createComment("");var a=fn(e,t);wo(o,_o(o,a),r,function(e,t){return un(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Ea(i,t,r,e),Ia(t,n)}return new Bu(n,e,t)}var Nu={},Vu=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).ngModule=e,i}return Y(n,[{key:"resolveComponentFactory",value:function(e){var t=Gt(e);return new Hu(t,this.ngModule)}}]),n}(Gl);function zu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var ju=new ji("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return no}}),Hu=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Go).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return Y(n,[{key:"inputs",get:function(){return zu(this.componentDef.inputs)}},{key:"outputs",get:function(){return zu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Nu,r);return o!==Nu||i===Nu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Xl,cn),l=a.get(eu,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(un(e))return e.selectRootElement(t,n===wt.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):po(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:no,clean:La,playerHandler:null,flags:0},p=fa(0,null,null,1,0,null,null,null,null,null),g=na(null,p,f,h,null,null,s,u,l,a);Gn(g);try{var v=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=ia(a,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(Ua(s,l,!0),null!==e&&(ui(r,e,l),null!==s.classes&&Bo(r,e,s.classes),null!==s.styles&&Mo(r,e,s.styles)));var u=i.createRenderer(e,t),c=na(n,ha(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(Ai(wi(s,n),a,t.type),wa(a,s),xa(s,n.length,1)),Ia(n,c),n[20]=c}(d,this.componentDef,g,s,u);if(d)if(n)ui(u,d,["ng-version",nu.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!zo(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=m.attrs,b=m.classes;y&&ui(u,d,y),b&&b.length>0&&Bo(u,d,b.join(" "))}if(o=pn(p,20),void 0!==t)for(var w=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var x=t[k];w.push(null!=x?Array.from(x):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=Pn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),_a(e,i,t,ra(e,t,1,null),n));var r=Ti(t,e,i.directiveStart,i);to(r,t);var o=fn(i,t);return o&&to(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=Pn();t.contentQueries(1,a,s.directiveStart)}var l=Pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Jn(l.index),ya(n[1],l,0,l.directiveStart,l.directiveEnd,t),ba(t,a)),a}(v,this.componentDef,g,f,[ss]),oa(p,g,null)}finally{Qn()}return new Uu(this.componentType,r,Yl(o,g),g,o)}}]),n}(Ul),Uu=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.instance=i,s.hostView=s.changeDetectorRef=new bu(o),s.componentType=e,s}return Y(n,[{key:"injector",get:function(){return new Ri(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return Y(function e(){Z(this,e)})}()),Wu=new Map,Gu=function(e){E(n,e);var t=O(n);function n(e,i){var r;Z(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=I(r),r.destroyCbs=[],r.componentFactoryResolver=new Vu(I(r));var o=qt(e),a=e[Mt]||null;return a&&Bl(a),r._bootstrapComponents=oo(o.bootstrap),r._r3Injector=Ja(e,i,[{provide:Du,useValue:I(r)},{provide:Gl,useValue:r.componentFactoryResolver}],Ze(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return Y(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:as.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt.Default;return e===as||e===Du||e===Wa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Du),qu=function(e){E(n,e);var t=O(n);function n(e){var i,r,o;return Z(this,n),(i=t.call(this)).moduleType=e,null!==qt(e)&&(r=e,o=new Set,function e(t){var n=qt(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Ze(t)," vs ").concat(Ze(t.name)))}(i,Wu.get(i),t),Wu.set(i,t));var r,a=R(oo(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return Y(n,[{key:"create",value:function(e){return new Gu(this.moduleType,e)}}]),n}(Iu);function Yu(e,t,n){var i=Rn()+e,r=Cn();return r[i]===qo?ys(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Zu(e,t,n,i){return Xu(Cn(),Rn(),e,t,n,i)}function Ku(e,t,n,i,r){return Ju(Cn(),Rn(),e,t,n,i,r)}function Qu(e,t){var n=e[t];return n===qo?void 0:n}function Xu(e,t,n,i,r,o){var a=t+n;return bs(e,a,r)?ys(e,a+1,o?i.call(o,r):i(r)):Qu(e,a+1)}function Ju(e,t,n,i,r,o,a){var s=t+n;return ws(e,s,r,o)?ys(e,s+2,a?i.call(a,r,o):i(r,o)):Qu(e,s+2)}function $u(e,t){var n,i=Sn(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new et("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=$t(n.type)),a=vt(Ps);try{var s=yi(!1),l=o();return yi(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Cn(),r,l),l}finally{vt(a)}}function ec(e,t,n){var i=e+20,r=Cn(),o=gn(r,i);return oc(r,rc(r,i)?Xu(r,Rn(),t,o.transform,n,o):o.transform(n))}function tc(e,t,n,i){var r=e+20,o=Cn(),a=gn(o,r);return oc(o,rc(o,r)?Ju(o,Rn(),t,a.transform,n,i,a):a.transform(n,i))}function nc(e,t,n,i,r){var o=e+20,a=Cn(),s=gn(a,o);return oc(a,rc(a,o)?function(e,t,n,i,r,o,a,s){var l=t+n;return ks(e,l,r,o,a)?ys(e,l+3,s?i.call(s,r,o,a):i(r,o,a)):Qu(e,l+3)}(a,Rn(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function ic(e,t,n,i,r,o){var a=e+20,s=Cn(),l=gn(s,a);return oc(s,rc(s,a)?function(e,t,n,i,r,o,a,s,l){var u=t+n;return xs(e,u,r,o,a,s)?ys(e,u+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):Qu(e,u+4)}(s,Rn(),t,l.transform,n,i,r,o,l):l.transform(n,i,r,o))}function rc(e,t){return e[1].data[t].pure}function oc(e,t){return gs.isWrapped(t)&&(t=gs.unwrap(t),e[Ln()]=qo),t}var ac=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Z(this,n),(e=t.call(this)).__isAsync=i,e}return Y(n,[{key:"emit",value:function(e){C(M(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(a=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var s=C(M(n.prototype),"subscribe",this).call(this,r,o,a);return e instanceof te&&e.add(s),s}}]),n}(ge);function sc(){return this._results[ps()]()}var lc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Z(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ps(),i=e.prototype;i[n]||(i[n]=sc)}return Y(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ac)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=Wi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),uc=function(){function e(t){Z(this,e),this.queryList=t,this.matches=null}return Y(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),cc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Z(this,e),this.queries=t}return Y(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Ac(e,t).matches&&this.queries[t].setDirty()}}]),e}(),dc=Y(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Z(this,e),this.predicate=t,this.flags=n,this.read=i}),hc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Z(this,e),this.queries=t}return Y(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),fc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;Z(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Y(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,pc(t,r)),this.matchTNodeWithReadOption(e,t,Ii(t,e,r,!1,!1))}else n===Eu?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Ii(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Kl||i===Mu||i===Eu&&4&t.type)this.addMatch(t.index,-2);else{var r=Ii(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function pc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function gc(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Yl(e,t):4&e.type?Ou(e,t):null}(t,e):-2===n?function(e,t,n){return n===Kl?Yl(t,e):n===Eu?Ou(t,e):n===Mu?Fu(t,e):void 0}(e,t,i):Ti(e,e[1],n,t)}function vc(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var u=a[l];s.push(u<0?null:gc(t,o[u],a[l+1],n.metadata.read))}r.matches=s}return r.matches}function mc(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=vc(e,t,r,n),s=0;s<o.length;s+=2){var l=o[s];if(l>0)i.push(a[s/2]);else{for(var u=o[s+1],c=t[-l],d=10;d<c.length;d++){var h=c[d];h[17]===h[3]&&mc(h[1],h,u,i)}if(null!==c[9])for(var f=c[9],p=0;p<f.length;p++){var g=f[p];mc(g[1],g,u,i)}}}return i}function yc(e){var t=Cn(),n=Sn(),i=jn();Hn(i+1);var r=Ac(n,i);if(e.dirty&&yn(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?mc(n,t,i,[]):vc(n,t,r,i);e.reset(o,Ql),e.notifyOnChanges()}return!0}return!1}function bc(e,t,n){var i=Sn();i.firstCreatePass&&(_c(i,new dc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),xc(i,Cn(),t)}function wc(e,t,n,i){var r=Sn();if(r.firstCreatePass){var o=Pn();_c(r,new dc(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}xc(r,Cn(),n)}function kc(){return e=Cn(),t=jn(),e[19].queries[t].queryList;var e,t}function xc(e,t,n){var i=new lc(4==(4&n));pa(e,t,i,i.destroy),null===t[19]&&(t[19]=new cc),t[19].queries.push(new uc(i))}function _c(e,t,n){null===e.queries&&(e.queries=new hc),e.queries.track(new fc(t,n))}function Ac(e,t){return e.queries.getByIndex(t)}function Cc(e,t){return Ou(e,t)}function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt.Default,t=xu(!0);if(null!=t||e&gt.Optional)return t;it("ChangeDetectorRef")}var Ec=new ji("Application Initializer"),Pc=function(){var e=function(){function e(t){var n=this;Z(this,e),this.appInits=t,this.resolve=ql,this.reject=ql,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return Y(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();Ns(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(Ec,8))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),Oc=new ji("AppId"),Dc={provide:Oc,useFactory:function(){return"".concat(Ic()).concat(Ic()).concat(Ic())},deps:[]};function Ic(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Tc=new ji("Platform Initializer"),Mc=new ji("Platform ID"),Bc=new ji("appBootstrapListener"),Rc=function(){var e=function(){function e(){Z(this,e)}return Y(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),Lc=new ji("LocaleId"),Fc=new ji("DefaultCurrencyCode"),Nc=Y(function e(t,n){Z(this,e),this.ngModuleFactory=t,this.componentFactories=n}),Vc=function(e){return new qu(e)},zc=Vc,jc=function(e){return Promise.resolve(Vc(e))},Hc=function(e){var t=Vc(e),n=oo(qt(e).declarations).reduce(function(e,t){var n=Gt(t);return n&&e.push(new Hu(n)),e},[]);return new Nc(t,n)},Uc=Hc,Wc=function(e){return Promise.resolve(Hc(e))},Gc=function(){var e=function(){function e(){Z(this,e),this.compileModuleSync=zc,this.compileModuleAsync=jc,this.compileModuleAndAllComponentsSync=Uc,this.compileModuleAndAllComponentsAsync=Wc}return Y(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),qc=Promise.resolve(0);function Yc(e){"undefined"==typeof Zone?qc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Zc=function(){function e(t){var n,i,r=t.enableLongStackTrace,o=void 0!==r&&r,a=t.shouldCoalesceEventChangeDetection,s=void 0!==a&&a,l=t.shouldCoalesceRunChangeDetection,u=void 0!==l&&l;if(Z(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ac(!1),this.onMicrotaskEmpty=new ac(!1),this.onStable=new ac(!1),this.onError=new ac(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!u&&s,this.shouldCoalesceRunChangeDetection=u,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Ct.requestAnimationFrame,t=Ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ct,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Xc(e),Qc(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Xc(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,o,a,s){try{return Jc(n),e.invokeTask(r,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&i(),$c(n)}},onInvoke:function(e,t,r,o,a,s,l){try{return Jc(n),e.invoke(r,o,a,s,l)}finally{n.shouldCoalesceRunChangeDetection&&i(),$c(n)}},onHasTask:function(e,t,i,r){e.hasTask(i,r),t===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Xc(n),Qc(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,i,r){return e.handleError(i,r),n.runOutsideAngular(function(){return n.onError.emit(r)}),!1}})}return Y(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,Kc,ql,ql);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Kc={};function Qc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Xc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Jc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $c(e){e._nesting--,Qc(e)}var ed,td=function(){function e(){Z(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ac,this.onMicrotaskEmpty=new ac,this.onStable=new ac,this.onError=new ac}return Y(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),nd=function(){var e=function(){function e(t){var n=this;Z(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return Y(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Zc.assertNotInAngularZone(),Yc(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Yc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(Zc))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),id=function(){var e=function(){function e(){Z(this,e),this._applications=new Map,rd.addToWindow(this)}return Y(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return rd.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}(),rd=new(function(){function e(){Z(this,e)}return Y(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),od=!0,ad=!1;function sd(){return ad=!0,od}var ld=new ji("AllowMultipleToken"),ud=Y(function e(t,n){Z(this,e),this.name=t,this.token=n});function cd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,r=new ji(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=dd();if(!o||o.injector.get(ld,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:qa,useValue:"platform"});!function(e){if(ed&&!ed.destroyed&&!ed.injector.get(ld,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ed=e.get(hd);var t=e.get(Tc,null);t&&t.forEach(function(e){return e()})}(as.create({providers:a,name:i}))}return function(e){var t=dd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function dd(){return ed&&!ed.destroyed?ed:null}var hd=function(){var e=function(){function e(t){Z(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Y(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new td:("zone.js"===n?void 0:n)||new Zc({enableLongStackTrace:sd(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:Zc,useValue:o}];return o.run(function(){var t=as.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(eo,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){vd(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Pc)).runInitializers(),a.donePromise.then(function(){return Bl(n.injector.get(Lc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Ns(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=fd({},n);return function(e,t,n){var i=new qu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(gd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Ze(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(as))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}();function fd(e,t){return Array.isArray(t)?t.reduce(fd,e):Object.assign(Object.assign({},e),t)}var pd,gd=((pd=function(){function e(t,n,i,r,o){var a=this;Z(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new ue(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),l=new ue(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){Zc.assertNotInAngularZone(),Yc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Zc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Le(s,l.pipe(Ge()))}return Y(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ul?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Du),o=n.create(as.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(nd,null),l=s&&o.injector.get(id);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),vd(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=R(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;vd(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Bc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||pd)(rr(Zc),rr(as),rr(eo),rr(Gl),rr(Pc))},pd.\u0275prov=rt({token:pd,factory:pd.\u0275fac}),pd);function vd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var md=Y(function e(){Z(this,e)}),yd=Y(function e(){Z(this,e)}),bd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},wd=function(){var e=function(){function e(t,n){Z(this,e),this._compiler=t,this._config=n||bd}return Y(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=L(e.split("#"),2),i=n[0],r=n[1];return void 0===r&&(r="default"),S("MYvV")(i).then(function(e){return e[r]}).then(function(e){return kd(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=L(e.split("#"),2),n=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),S("MYvV")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return kd(e,n,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(rr(Gc),rr(yd,8))},e.\u0275prov=rt({token:e,factory:e.\u0275fac}),e}();function kd(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var xd=cd(null,"core",[{provide:Mc,useValue:"unknown"},{provide:hd,deps:[as]},{provide:id,deps:[]},{provide:Rc,deps:[]}]),_d=[{provide:gd,useClass:gd,deps:[Zc,as,eo,Gl,Pc]},{provide:ju,deps:[Zc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Pc,useClass:Pc,deps:[[new dr,Ec]]},{provide:Gc,useClass:Gc,deps:[]},Dc,{provide:pu,useFactory:function(){return Au},deps:[]},{provide:vu,useFactory:function(){return Cu},deps:[]},{provide:Lc,useFactory:function(e){return Bl(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new cr(Lc),new dr,new hr]]},{provide:Fc,useValue:"USD"}],Ad=function(){var e=Y(function e(t){Z(this,e)});return e.\u0275fac=function(t){return new(t||e)(rr(gd))},e.\u0275mod=jt({type:e}),e.\u0275inj=at({providers:_d}),e}(),Cd={production:!0,VERSION:S("kiQV").version,AUTHOR:S("kiQV").author},Sd=null;function Ed(){return Sd}var Pd,Od=new ji("DocumentToken"),Dd=((Pd=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Pd)},Pd.\u0275prov=rt({factory:Id,token:Pd,providedIn:"platform"}),Pd);function Id(){return rr(Bd)}var Td,Md=new ji("Location Initialized"),Bd=((Td=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._doc=e,i._init(),i}return Y(n,[{key:"_init",value:function(){this.location=Ed().getLocation(),this._history=Ed().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Ed().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Ed().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Ed().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Rd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Rd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(Dd)).\u0275fac=function(e){return new(e||Td)(rr(Od))},Td.\u0275prov=rt({factory:Ld,token:Td,providedIn:"platform"}),Td);function Rd(){return!!window.history.pushState}function Ld(){return new Bd(rr(Od))}function Fd(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Nd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Vd(e){return e&&"?"!==e[0]?"?"+e:e}var zd,jd=((zd=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zd)},zd.\u0275prov=rt({factory:Hd,token:zd,providedIn:"root"}),zd);function Hd(e){var t=rr(Od).location;return new Yd(rr(Dd),t&&t.origin||"")}var Ud,Wd,Gd,qd=new ji("appBaseHref"),Yd=((Gd=function(e){E(n,e);var t=O(n);function n(e,i){var r;if(Z(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,D(r)}return Y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Fd(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Vd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(jd)).\u0275fac=function(e){return new(e||Gd)(rr(Dd),rr(qd,8))},Gd.\u0275prov=rt({token:Gd,factory:Gd.\u0275fac}),Gd),Zd=((Wd=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return Y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Fd(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(jd)).\u0275fac=function(e){return new(e||Wd)(rr(Dd),rr(qd,8))},Wd.\u0275prov=rt({token:Wd,factory:Wd.\u0275fac}),Wd),Kd=((Ud=function(){function e(t,n){var i=this;Z(this,e),this._subject=new ac,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Nd(Xd(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return Y(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Vd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Xd(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vd(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vd(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||Ud)(rr(jd),rr(Dd))},Ud.normalizeQueryParams=Vd,Ud.joinWithSlash=Fd,Ud.stripTrailingSlash=Nd,Ud.\u0275prov=rt({factory:Qd,token:Ud,providedIn:"root"}),Ud);function Qd(){return new Kd(rr(jd),rr(Dd))}function Xd(e){return e.replace(/\/index.html$/,"")}var Jd=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),$d=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),eh=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),th=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),nh=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function ih(e,t){return lh(Il(e)[Ml.DateFormat],t)}function rh(e,t){return lh(Il(e)[Ml.TimeFormat],t)}function oh(e,t){return lh(Il(e)[Ml.DateTimeFormat],t)}function ah(e,t){var n=Il(e),i=n[Ml.NumberSymbols][t];if(void 0===i){if(t===nh.CurrencyDecimal)return n[Ml.NumberSymbols][nh.Decimal];if(t===nh.CurrencyGroup)return n[Ml.NumberSymbols][nh.Group]}return i}function sh(e){if(!e[Ml.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[Ml.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function lh(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function uh(e){var t=L(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var ch=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,dh={},hh=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,fh=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),ph=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),gh=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function vh(e,t,n,i){var r=function(e){if(Oh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=L(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,o=t[2];return mh(n,r-1,void 0===o?1:o)}var a,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(a=e.match(ch))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var a=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,l,u),t}(a)}var l=new Date(e);if(!Oh(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);t=yh(n,t)||t;for(var o,a=[];t;){if(!(o=hh.exec(t))){a.push(t);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;t=s}var l=r.getTimezoneOffset();i&&(l=Ph(i,l),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ph(t,i)-i))}(r,i));var u="";return a.forEach(function(e){var t=function(e){if(Eh[e])return Eh[e];var t;switch(e){case"G":case"GG":case"GGG":t=xh(gh.Eras,eh.Abbreviated);break;case"GGGG":t=xh(gh.Eras,eh.Wide);break;case"GGGGG":t=xh(gh.Eras,eh.Narrow);break;case"y":t=kh(ph.FullYear,1,0,!1,!0);break;case"yy":t=kh(ph.FullYear,2,0,!0,!0);break;case"yyy":t=kh(ph.FullYear,3,0,!1,!0);break;case"yyyy":t=kh(ph.FullYear,4,0,!1,!0);break;case"Y":t=Sh(1);break;case"YY":t=Sh(2,!0);break;case"YYY":t=Sh(3);break;case"YYYY":t=Sh(4);break;case"M":case"L":t=kh(ph.Month,1,1);break;case"MM":case"LL":t=kh(ph.Month,2,1);break;case"MMM":t=xh(gh.Months,eh.Abbreviated);break;case"MMMM":t=xh(gh.Months,eh.Wide);break;case"MMMMM":t=xh(gh.Months,eh.Narrow);break;case"LLL":t=xh(gh.Months,eh.Abbreviated,$d.Standalone);break;case"LLLL":t=xh(gh.Months,eh.Wide,$d.Standalone);break;case"LLLLL":t=xh(gh.Months,eh.Narrow,$d.Standalone);break;case"w":t=Ch(1);break;case"ww":t=Ch(2);break;case"W":t=Ch(1,!0);break;case"d":t=kh(ph.Date,1);break;case"dd":t=kh(ph.Date,2);break;case"E":case"EE":case"EEE":t=xh(gh.Days,eh.Abbreviated);break;case"EEEE":t=xh(gh.Days,eh.Wide);break;case"EEEEE":t=xh(gh.Days,eh.Narrow);break;case"EEEEEE":t=xh(gh.Days,eh.Short);break;case"a":case"aa":case"aaa":t=xh(gh.DayPeriods,eh.Abbreviated);break;case"aaaa":t=xh(gh.DayPeriods,eh.Wide);break;case"aaaaa":t=xh(gh.DayPeriods,eh.Narrow);break;case"b":case"bb":case"bbb":t=xh(gh.DayPeriods,eh.Abbreviated,$d.Standalone,!0);break;case"bbbb":t=xh(gh.DayPeriods,eh.Wide,$d.Standalone,!0);break;case"bbbbb":t=xh(gh.DayPeriods,eh.Narrow,$d.Standalone,!0);break;case"B":case"BB":case"BBB":t=xh(gh.DayPeriods,eh.Abbreviated,$d.Format,!0);break;case"BBBB":t=xh(gh.DayPeriods,eh.Wide,$d.Format,!0);break;case"BBBBB":t=xh(gh.DayPeriods,eh.Narrow,$d.Format,!0);break;case"h":t=kh(ph.Hours,1,-12);break;case"hh":t=kh(ph.Hours,2,-12);break;case"H":t=kh(ph.Hours,1);break;case"HH":t=kh(ph.Hours,2);break;case"m":t=kh(ph.Minutes,1);break;case"mm":t=kh(ph.Minutes,2);break;case"s":t=kh(ph.Seconds,1);break;case"ss":t=kh(ph.Seconds,2);break;case"S":t=kh(ph.FractionalSeconds,1);break;case"SS":t=kh(ph.FractionalSeconds,2);break;case"SSS":t=kh(ph.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=_h(fh.Short);break;case"ZZZZZ":t=_h(fh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_h(fh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=_h(fh.Long);break;default:return null}return Eh[e]=t,t}(e);u+=t?t(r,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function mh(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function yh(e,t){var n=function(e){return Il(e)[Ml.LocaleId]}(e);if(dh[n]=dh[n]||{},dh[n][t])return dh[n][t];var i="";switch(t){case"shortDate":i=ih(e,th.Short);break;case"mediumDate":i=ih(e,th.Medium);break;case"longDate":i=ih(e,th.Long);break;case"fullDate":i=ih(e,th.Full);break;case"shortTime":i=rh(e,th.Short);break;case"mediumTime":i=rh(e,th.Medium);break;case"longTime":i=rh(e,th.Long);break;case"fullTime":i=rh(e,th.Full);break;case"short":var r=yh(e,"shortTime"),o=yh(e,"shortDate");i=bh(oh(e,th.Short),[r,o]);break;case"medium":var a=yh(e,"mediumTime"),s=yh(e,"mediumDate");i=bh(oh(e,th.Medium),[a,s]);break;case"long":var l=yh(e,"longTime"),u=yh(e,"longDate");i=bh(oh(e,th.Long),[l,u]);break;case"full":var c=yh(e,"fullTime"),d=yh(e,"fullDate");i=bh(oh(e,th.Full),[c,d])}return i&&(dh[n][t]=i),i}function bh(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function wh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));for(var a=String(e);a.length<t;)a="0"+a;return i&&(a=a.substr(a.length-t)),o+a}function kh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,l=function(e,t){switch(e){case ph.FullYear:return t.getFullYear();case ph.Month:return t.getMonth();case ph.Date:return t.getDate();case ph.Hours:return t.getHours();case ph.Minutes:return t.getMinutes();case ph.Seconds:return t.getSeconds();case ph.FractionalSeconds:return t.getMilliseconds();case ph.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||l>-n)&&(l+=n),e===ph.Hours)0===l&&-12===n&&(l=12);else if(e===ph.FractionalSeconds)return s=t,wh(l,3).substr(0,s);var u=ah(a,nh.MinusSign);return wh(l,t,u,i,r)}}function xh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$d.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,o){return function(e,t,n,i,r,o){switch(n){case gh.Months:return function(e,t,n){var i=Il(e),r=lh([i[Ml.MonthsFormat],i[Ml.MonthsStandalone]],t);return lh(r,n)}(t,r,i)[e.getMonth()];case gh.Days:return function(e,t,n){var i=Il(e),r=lh([i[Ml.DaysFormat],i[Ml.DaysStandalone]],t);return lh(r,n)}(t,r,i)[e.getDay()];case gh.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(o){var l=function(e){var t=Il(e);return sh(t),(t[Ml.ExtraData][2]||[]).map(function(e){return"string"==typeof e?uh(e):[uh(e[0]),uh(e[1])]})}(t),u=function(e,t,n){var i=Il(e);sh(i);var r=lh([i[Ml.ExtraData][0],i[Ml.ExtraData][1]],t)||[];return lh(r,n)||[]}(t,r,i),c=l.findIndex(function(e){if(Array.isArray(e)){var t=L(e,2),n=t[0],i=t[1],r=a>=n.hours&&s>=n.minutes,o=a<i.hours||a===i.hours&&s<i.minutes;if(n.hours<i.hours){if(r&&o)return!0}else if(r||o)return!0}else if(e.hours===a&&e.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function(e,t,n){var i=Il(e),r=lh([i[Ml.DayPeriodsFormat],i[Ml.DayPeriodsStandalone]],t);return lh(r,n)}(t,r,i)[a<12?0:1];case gh.Eras:return function(e,t){return lh(Il(e)[Ml.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,o,e,t,n,i)}}function _h(e){return function(t,n,i){var r=-1*i,o=ah(n,nh.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case fh.Short:return(r>=0?"+":"")+wh(a,2,o)+wh(Math.abs(r%60),2,o);case fh.ShortGMT:return"GMT"+(r>=0?"+":"")+wh(a,1,o);case fh.Long:return"GMT"+(r>=0?"+":"")+wh(a,2,o)+":"+wh(Math.abs(r%60),2,o);case fh.Extended:return 0===i?"Z":(r>=0?"+":"")+wh(a,2,o)+":"+wh(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function Ah(e){return mh(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Ch(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,o,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var u=Ah(n),c=(o=u.getFullYear(),a=mh(o,0,1).getDay(),mh(o,0,1+(a<=4?4:11)-a)),d=u.getTime()-c.getTime();r=1+Math.round(d/6048e5)}return wh(r,e,ah(i,nh.MinusSign))}}function Sh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return wh(Ah(n).getFullYear(),e,ah(i,nh.MinusSign),t)}}var Eh={};function Ph(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Oh(e){return e instanceof Date&&!isNaN(e.valueOf())}var Dh,Ih=Y(function e(){Z(this,e)}),Th=((Dh=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).locale=e,i}return Y(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return Il(e)[Ml.PluralCase]}(t||this.locale)(e)){case Jd.Zero:return"zero";case Jd.One:return"one";case Jd.Two:return"two";case Jd.Few:return"few";case Jd.Many:return"many";default:return"other"}}}]),n}(Ih)).\u0275fac=function(e){return new(e||Dh)(rr(Lc))},Dh.\u0275prov=rt({token:Dh,factory:Dh.\u0275fac}),Dh);function Mh(e,t){t=encodeURIComponent(t);var n,i=R(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=L(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],l=a[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(u){i.e(u)}finally{i.f()}return null}var Bh,Rh,Lh,Fh=((Bh=function(){function e(t,n,i,r){Z(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Y(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(vs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ze(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}()).\u0275fac=function(e){return new(e||Bh)(Ps(pu),Ps(vu),Ps(Kl),Ps(Jl))},Bh.\u0275dir=Ut({type:Bh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Bh),Nh=function(){function e(t,n,i,r){Z(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return Y(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Vh=((Rh=function(){function e(t,n,i){Z(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Y(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Nh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new zh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new zh(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Rh)(Ps(Mu),Ps(Eu),Ps(pu))},Rh.\u0275dir=Ut({type:Rh,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Rh),zh=Y(function e(t,n){Z(this,e),this.record=t,this.view=n}),jh=((Lh=function(){function e(t,n){Z(this,e),this._viewContainer=t,this._context=new Hh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Y(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Uh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Uh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Lh)(Ps(Mu),Ps(Eu))},Lh.\u0275dir=Ut({type:Lh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Lh),Hh=Y(function e(){Z(this,e),this.$implicit=null,this.ngIf=null});function Uh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Ze(t),"'."))}var Wh,Gh,qh,Yh,Zh,Kh=function(){function e(t,n){Z(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return Y(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Qh=((Zh=function(){function e(){Z(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Y(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}()).\u0275fac=function(e){return new(e||Zh)},Zh.\u0275dir=Ut({type:Zh,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Zh),Xh=((Yh=function(){function e(t,n,i){Z(this,e),this.ngSwitch=i,i._addCase(),this._view=new Kh(t,n)}return Y(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||Yh)(Ps(Mu),Ps(Eu),Ps(Qh,1))},Yh.\u0275dir=Ut({type:Yh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Yh),Jh=((qh=Y(function e(t,n,i){Z(this,e),i._addDefault(new Kh(t,n))})).\u0275fac=function(e){return new(e||qh)(Ps(Mu),Ps(Eu),Ps(Qh,1))},qh.\u0275dir=Ut({type:qh,selectors:[["","ngSwitchDefault",""]]}),qh),$h=((Gh=function(){function e(t,n,i){Z(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return Y(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=L(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}()).\u0275fac=function(e){return new(e||Gh)(Ps(Kl),Ps(vu),Ps(Jl))},Gh.\u0275dir=Ut({type:Gh,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Gh),ef=((Wh=function(){function e(t){Z(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return Y(e,[{key:"ngOnChanges",value:function(e){if(this._shouldRecreateView(e)){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}},{key:"_hasContextShapeChanged",value:function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){var i,r=R(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(-1===t.indexOf(o))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}}]),e}()).\u0275fac=function(e){return new(e||Wh)(Ps(Mu))},Wh.\u0275dir=Ut({type:Wh,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[tn]}),Wh);function tf(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Ze(e),"'"))}var nf,rf,of,af,sf,lf=function(){function e(){Z(this,e)}return Y(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),uf=new(function(){function e(){Z(this,e)}return Y(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),cf=new lf,df=((nf=function(){function e(t){Z(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return Y(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(Ns(t))return uf;if(Vs(t))return cf;throw tf(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}()).\u0275fac=function(e){return new(e||nf)(Sc())},nf.\u0275pipe=Wt({name:"async",type:nf,pure:!1}),nf),hf=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,ff=((sf=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw tf(e,t);return t.replace(hf,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}]),e}()).\u0275fac=function(e){return new(e||sf)},sf.\u0275pipe=Wt({name:"titlecase",type:sf,pure:!0}),sf),pf=((af=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw tf(e,t);return t.toUpperCase()}}]),e}()).\u0275fac=function(e){return new(e||af)},af.\u0275pipe=Wt({name:"uppercase",type:af,pure:!0}),af),gf=((of=function(){function e(t){Z(this,e),this.locale=t}return Y(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return vh(t,n,r||this.locale,i)}catch(o){throw tf(e,o.message)}}}]),e}()).\u0275fac=function(e){return new(e||of)(Ps(Lc))},of.\u0275pipe=Wt({name:"date",type:of,pure:!0}),of),vf=((rf=function(){function e(t){Z(this,e),this.differs=t,this.keyValues=[]}return Y(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mf;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var i=this.differ.diff(e);return i&&(this.keyValues=[],i.forEachItem(function(e){t.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(n)),this.keyValues}}]),e}()).\u0275fac=function(e){return new(e||rf)(Ps(vu))},rf.\u0275pipe=Wt({name:"keyvalue",type:rf,pure:!1}),rf);function mf(e,t){var n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;var r=String(n),o=String(i);return r==o?0:r<o?-1:1}var yf,bf=((yf=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yf)},yf.\u0275mod=jt({type:yf}),yf.\u0275inj=at({providers:[{provide:Ih,useClass:Th}]}),yf);function wf(e){return"browser"===e}var kf,xf=((kf=Y(function e(){Z(this,e)})).\u0275prov=rt({token:kf,providedIn:"root",factory:function(){return new _f(rr(Od),window)}}),kf),_f=function(){function e(t,n){Z(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return Y(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Af(this.window.history)||Af(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Af(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Cf,Sf,Ef,Pf,Of=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Df||(Df=document.querySelector("base"))?Df.getAttribute("href"):null;return null==n?null:(t=n,Cf||(Cf=document.createElement("a")),Cf.setAttribute("href",t),"/"===Cf.pathname.charAt(0)?Cf.pathname:"/"+Cf.pathname)}},{key:"resetBaseElement",value:function(){Df=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Mh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Sd||(Sd=e)}}]),n}(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this)}return Y(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return Y(function e(){Z(this,e)})}())),Df=null,If=new ji("TRANSITION_ID"),Tf=[{provide:Ec,useFactory:function(e,t,n){return function(){n.get(Pc).donePromise.then(function(){var n=Ed();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[If,Od,as],multi:!0}],Mf=function(){function e(){Z(this,e)}return Y(e,[{key:"addToWindow",value:function(e){Ct.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},Ct.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ct.getAllAngularRootElements=function(){return e.getAllRootElements()},Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(function(e){var t=Ct.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Ed().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,rd=t}}]),e}(),Bf=new ji("EventManagerPlugins"),Rf=((Sf=function(){function e(t,n){var i=this;Z(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return Y(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||Sf)(rr(Bf),rr(Zc))},Sf.\u0275prov=rt({token:Sf,factory:Sf.\u0275fac}),Sf),Lf=function(){function e(t){Z(this,e),this._doc=t}return Y(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Ed().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Ff=((Pf=function(){function e(){Z(this,e),this._stylesSet=new Set}return Y(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Pf)},Pf.\u0275prov=rt({token:Pf,factory:Pf.\u0275fac}),Pf),Nf=((Ef=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return Y(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return Ed().remove(e)})}}]),n}(Ff)).\u0275fac=function(e){return new(e||Ef)(rr(Od))},Ef.\u0275prov=rt({token:Ef,factory:Ef.\u0275fac}),Ef),Vf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},zf=/%COMP%/g;function jf(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?jf(e,r,n):(r=r.replace(zf,e),n.push(r))}return n}function Hf(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Uf,Wf,Gf,qf,Yf,Zf,Kf,Qf,Xf,Jf=((Uf=function(){function e(t,n,i){Z(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new $f(t)}return Y(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case wt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new ep(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case wt.ShadowDom:return new tp(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=jf(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Uf)(rr(Rf),rr(Nf),rr(Oc))},Uf.\u0275prov=rt({token:Uf,factory:Uf.\u0275fac}),Uf),$f=function(){function e(t){Z(this,e),this.eventManager=t,this.data=Object.create(null)}return Y(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Vf[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=Vf[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=Vf[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(ao.DashCase|ao.Important)?e.style.setProperty(t,n,i&ao.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&ao.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Hf(n)):this.eventManager.addEventListener(e,t,Hf(n))}}]),e}(),ep=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;Z(this,n),(a=t.call(this,e)).component=r;var s=jf(o+"-"+r.id,r.styles,[]);return i.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(zf,o+"-"+r.id),a.hostAttr="_nghost-%COMP%".replace(zf,o+"-"+r.id),a}return Y(n,[{key:"applyToHost",value:function(e){C(M(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=C(M(n.prototype),"createElement",this).call(this,e,t);return C(M(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}($f),tp=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;Z(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.shadowRoot=r.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=jf(o.id,o.styles,[]),l=0;l<s.length;l++){var u=document.createElement("style");u.textContent=s[l],a.shadowRoot.appendChild(u)}return a}return Y(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return C(M(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return C(M(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return C(M(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(C(M(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}($f),np=((Wf=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Lf)).\u0275fac=function(e){return new(e||Wf)(rr(Od))},Wf.\u0275prov=rt({token:Wf,factory:Wf.\u0275fac}),Wf),ip={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},rp=new ji("HammerGestureConfig"),op=new ji("HammerLoader"),ap=((Gf=function(){function e(){Z(this,e),this.events=[],this.overrides={}}return Y(e,[{key:"buildHammer",value:function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t}}]),e}()).\u0275fac=function(e){return new(e||Gf)},Gf.\u0275prov=rt({token:Gf,factory:Gf.\u0275fac}),Gf),sp=[{provide:Bf,useClass:(qf=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e))._config=i,a.console=r,a.loader=o,a._loaderPromise=null,a}return Y(n,[{key:"supports",value:function(e){return!(!ip.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(e,t,n){var i=this,r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();var o=!1,a=function(){o=!0};return this._loaderPromise.then(function(){window.Hammer?o||(a=i.addEventListener(e,t,n)):a=function(){}}).catch(function(){a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var o=i._config.buildHammer(e),a=function(e){r.runGuarded(function(){n(e)})};return o.on(t,a),function(){o.off(t,a),"function"==typeof o.destroy&&o.destroy()}})}},{key:"isCustomEvent",value:function(e){return this._config.events.indexOf(e)>-1}}]),n}(Lf),qf.\u0275fac=function(e){return new(e||qf)(rr(Od),rr(rp),rr(Rc),rr(op,8))},qf.\u0275prov=rt({token:qf,factory:qf.\u0275fac}),qf),multi:!0,deps:[Od,rp,Rc,[new dr,op]]},{provide:rp,useClass:ap,deps:[]}],lp=((Yf=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Yf)},Yf.\u0275mod=jt({type:Yf}),Yf.\u0275inj=at({providers:sp}),Yf),up=["alt","control","meta","shift"],cp={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dp={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},hp={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},fp=((Qf=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ed().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(up.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&dp.hasOwnProperty(t)&&(t=dp[t]))}return cp[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),up.forEach(function(i){i!=n&&(0,hp[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Lf)).\u0275fac=function(e){return new(e||Qf)(rr(Od))},Qf.\u0275prov=rt({token:Qf,factory:Qf.\u0275fac}),Qf),pp=((Kf=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Kf)},Kf.\u0275prov=rt({factory:function(){return rr(gp)},token:Kf,providedIn:"root"}),Kf),gp=((Zf=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._doc=e,i}return Y(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Yr.NONE:return t;case Yr.HTML:return xr(t,"HTML")?kr(t):Gr(this._doc,String(t)).toString();case Yr.STYLE:return xr(t,"Style")?kr(t):t;case Yr.SCRIPT:if(xr(t,"Script"))return kr(t);throw new Error("unsafe value used in a script context");case Yr.URL:return _r(t),xr(t,"URL")?kr(t):Pr(String(t));case Yr.RESOURCE_URL:if(xr(t,"ResourceURL"))return kr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new vr(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new mr(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new yr(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new br(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new wr(e)}}]),n}(pp)).\u0275fac=function(e){return new(e||Zf)(rr(Od))},Zf.\u0275prov=rt({factory:function(){return e=rr(Wa),new gp(e.get(Od));var e},token:Zf,providedIn:"root"}),Zf),vp=cd(xd,"browser",[{provide:Mc,useValue:"browser"},{provide:Tc,useValue:function(){Of.makeCurrent(),Mf.init()},multi:!0},{provide:Od,useFactory:function(){return function(e){sn=e}(document),document},deps:[]}]),mp=[[],{provide:qa,useValue:"root"},{provide:eo,useFactory:function(){return new eo},deps:[]},{provide:Bf,useClass:np,multi:!0,deps:[Od,Zc,Mc]},{provide:Bf,useClass:fp,multi:!0,deps:[Od]},[],{provide:Jf,useClass:Jf,deps:[Rf,Nf,Oc]},{provide:Xl,useExisting:Jf},{provide:Ff,useExisting:Nf},{provide:Nf,useClass:Nf,deps:[Od]},{provide:nd,useClass:nd,deps:[Zc]},{provide:Rf,useClass:Rf,deps:[Bf,Zc]},[]],yp=((Xf=function(){function e(t){if(Z(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return Y(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Oc,useValue:t.appId},{provide:If,useExisting:Oc},Tf]}}}]),e}()).\u0275fac=function(e){return new(e||Xf)(rr(Xf,12))},Xf.\u0275mod=jt({type:Xf}),Xf.\u0275inj=at({providers:mp,imports:[bf,Ad]}),Xf);"undefined"!=typeof window&&window;var bp=Y(function e(){Z(this,e)});function wp(e,t){return{type:7,name:e,definitions:t,options:{}}}function kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function xp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function _p(e){return{type:6,styles:e,offset:null}}function Ap(e,t,n){return{type:0,name:e,styles:t,options:n}}function Cp(e){return{type:5,steps:e}}function Sp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Ep(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Pp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Op(e){Promise.resolve(null).then(e)}var Dp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Z(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return Y(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Op(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ip=function(){function e(t){var n=this;Z(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?Op(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return Y(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function Tp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Mp(e){switch(e.length){case 0:return new Dp;case 1:return e[0];default:return new Ip(e)}}function Bp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Rp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Lp(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Lp(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Lp(n,"destroy",e))})}}function Lp(e,t,n){var i=n.totalTime,r=Fp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function Fp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Np(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Vp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var zp=function(e,t){return!1},jp=function(e,t){return!1},Hp=function(e,t,n){return[]},Up=Tp();(Up||"undefined"!=typeof Element)&&(zp=function(e,t){return e.contains(t)},jp=function(){if(Up||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:jp}(),Hp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var Wp=null,Gp=!1;function qp(e){Wp||(Wp=("undefined"!=typeof document?document.body:null)||{},Gp=!!Wp.style&&"WebkitAppearance"in Wp.style);var t=!0;return Wp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Wp.style)&&Gp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Wp.style),t}var Yp=jp,Zp=zp,Kp=Hp;function Qp(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Xp,Jp=((Xp=function(){function e(){Z(this,e)}return Y(e,[{key:"validateStyleProperty",value:function(e){return qp(e)}},{key:"matchesElement",value:function(e,t){return Yp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Kp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new Dp(n,i)}}]),e}()).\u0275fac=function(e){return new(e||Xp)},Xp.\u0275prov=rt({token:Xp,factory:Xp.\u0275fac}),Xp),$p=function(){var e=Y(function e(){Z(this,e)});return e.NOOP=new Jp,e}();function eg(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:tg(parseFloat(t[1]),t[2])}function tg(e,t){switch(t){case"s":return 1e3*e;default:return e}}function ng(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=tg(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=tg(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else i=e;if(!n){var u=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function ig(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function rg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else ig(e,n);return n}function og(e,t,n){return n?t+":"+n+";":""}function ag(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=og(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=og(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function sg(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=gg(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),Tp()&&ag(e))}function lg(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=gg(t);e.style[n]=""}),Tp()&&ag(e))}function ug(e){return Array.isArray(e)?1==e.length?e[0]:xp(e):e}var cg=new RegExp("{{\\s*(.+?)\\s*}}","g");function dg(e){var t=[];if("string"==typeof e){for(var n;n=cg.exec(e);)t.push(n[1]);cg.lastIndex=0}return t}function hg(e,t,n){var i=e.toString(),r=i.replace(cg,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?e:r}function fg(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var pg=/-+([a-z0-9])/g;function gg(e){return e.replace(pg,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function vg(e,t){return 0===e||0===t}function mg(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=bg(e,t)})},s=1;s<t.length;s++)a()}return t}function yg(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function bg(e,t){return window.getComputedStyle(e)[t]}var wg=new Set(["true","1"]),kg=new Set(["false","0"]);function xg(e,t){var n=wg.has(e)||kg.has(e),i=wg.has(t)||kg.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?wg.has(e):kg.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?wg.has(t):kg.has(t)),a&&s}}var _g=new RegExp("s*:selfs*,?","g");function Ag(e,t,n){return new Cg(e).build(t,n)}var Cg=function(){function e(t){Z(this,e),this._driver=t}return Y(e,[{key:"build",value:function(e,t){var n=new Sg(t);return this._resetContextStyleTimingState(n),yg(this,ug(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(Eg(e)){var t=e;Object.keys(t).forEach(function(e){dg(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=fg(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=yg(this,ug(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(xg(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(xg(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Pg(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return yg(n,e,t)}),options:Pg(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=yg(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:Pg(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Og(ng(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=Og(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Og((n=n||ng(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:_p({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=_p(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(Eg(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,u,c,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(o!=r&&o>=h.startTime&&r<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=h.startTime),f&&(d[i]={startTime:o,endTime:r}),t.options&&(a=e[i],s=t.options,l=t.errors,u=s.params||{},(c=dg(a)).length&&c.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Eg(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Eg(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(c-1));var h=c-1,f=t.currentTime,p=t.currentAnimateTimings,g=p.duration;return u.forEach(function(e,r){var a=d>0?r==h?1:d*r:o[r],s=a*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:yg(this,ug(e.animation),t),options:Pg(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Pg(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Pg(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=L(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(_g,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,Np(t.collectedStyles,t.currentQuerySelector,{});var s=yg(this,ug(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Pg(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ng(e.timings,t.errors,!0);return{type:12,animation:yg(this,ug(e.animation),t),timings:n,options:null}}}]),e}(),Sg=Y(function e(t){Z(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null});function Eg(e){return!Array.isArray(e)&&"object"==typeof e}function Pg(e){var t;return e?(e=ig(e)).params&&(e.params=(t=e.params)?ig(t):null):e={},e}function Og(e,t,n){return{duration:e,delay:t,easing:n}}function Dg(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Ig=function(){function e(){Z(this,e),this._map=new Map}return Y(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,V(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Tg=new RegExp(":enter","g"),Mg=new RegExp(":leave","g");function Bg(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Rg).buildKeyframes(e,t,n,i,r,o,a,s,l,u)}var Rg=function(){function e(){Z(this,e)}return Y(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Ig;var c=new Fg(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),yg(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[Dg(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?eg(n.duration):null,o=null!=n.delay?eg(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),yg(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lg);var a=eg(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return yg(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?eg(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),yg(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return ng(t.params?hg(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?eg(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Lg);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(l=s.currentTimeline),yg(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;yg(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Lg={},Fg=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ng(this._driver,n,0),s.push(this.currentTimeline)}return Y(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=eg(i.duration)),null!=i.delay&&(r.delay=eg(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=hg(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Lg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Vg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(Tg,"."+this._enterClassName)).replace(Mg,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,V(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),Ng=function(){function e(t,n,i,r){Z(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return Y(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):rg(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=hg(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=rg(o,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?fg(t.values()):[],a=n.size?fg(n.values()):[];if(i){var s=r[0],l=ig(s);s.offset=0,l.offset=1,r=[s,l]}return Dg(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),Vg=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Z(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=o,l.postStyleProps=a,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return Y(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=rg(e[0],!1);l.offset=0,o.push(l);var u=rg(e[0],!1);u.offset=zg(s),o.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=rg(e[d],!1);h.offset=zg((n+h.offset*i)/a),o.push(h)}i=a,n=0,r="",e=o}return Dg(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Ng);function zg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var jg=Y(function e(){Z(this,e)}),Hg=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"normalizePropertyName",value:function(e,t){return gg(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Ug[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(jg),Ug=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Wg(e,t,n,i,r,o,a,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var Gg={},qg=function(){function e(t,n,i){Z(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return Y(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||Gg,h=this.buildStyles(n,a&&a.params||Gg,c),f=s&&s.params||Gg,p=this.buildStyles(i,f,c),g=new Set,v=new Map,m=new Map,y="void"===i,b={params:Object.assign(Object.assign({},d),f)},w=u?[]:Bg(e,t,this.ast.animation,r,o,h,p,b,l,c),k=0;if(w.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Wg(t,this._triggerName,n,i,y,h,p,[],[],v,m,k,c);w.forEach(function(e){var n=e.element,i=Np(v,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Np(m,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var x=fg(g.values());return Wg(t,this._triggerName,n,i,y,h,p,w,x,v,m,k)}}]),e}(),Yg=function(){function e(t,n){Z(this,e),this.styles=t,this.defaultParams=n}return Y(e,[{key:"buildStyles",value:function(e,t){var n={},i=ig(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var o=r[e];o.length>1&&(o=hg(o,i,t)),n[e]=o})}}),n}}]),e}(),Zg=function(){function e(t,n){var i=this;Z(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Yg(e.style,e.options&&e.options.params||{})}),Kg(this.states,"true","1"),Kg(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new qg(t,e,i.states))}),this.fallbackTransition=new qg(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Y(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Kg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Qg=new Ig,Xg=function(){function e(t,n,i){Z(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return Y(e,[{key:"register",value:function(e,t){var n=[],i=Ag(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Bp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Bg(this._driver,t,a,"ng-enter","ng-leave",{},{},r,Qg,o)).forEach(function(e){var t=Np(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=Mp(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,i){var r=Fp(t,"","","");return Rp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Jg=[],$g={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ev={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Z(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=ig(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Y(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),nv=new tv("void"),iv=function(){function e(t,n,i){Z(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,cv(n,this._hostClassName)}return Y(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Np(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var l=Np(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(cv(e,"ng-trigger"),cv(e,"ng-trigger-"+t),l[t]=nv),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new ov(this.id,t,e),s=this._engine.statesByElement.get(e);s||(cv(e,"ng-trigger"),cv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new tv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=nv),"void"===u.value||l.value!==u.value){var c=Np(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(cv(e,"ng-animate-queued"),a.onStart(function(){dv(e,"ng-animate-queued")})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(l.params,u.params)){var f=[],p=o.matchStyles(l.value,l.params,f),g=o.matchStyles(u.value,u.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){lg(e,p),sg(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,"void",i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Mp(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||nv,l=new tv("void"),u=new ov(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==$g||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){cv(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=Fp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Rp(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),rv=function(){function e(t,n,i){Z(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return Y(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new iv(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(av(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(av(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),cv(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),dv(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(av(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return av(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Mp(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=$g,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)cv(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var o=0;o<r.length;o++)r[o]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?Mp(n).onDone(function(){s.forEach(function(e){return e()})}):s.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Ig,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)c.add(t[i])});var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=uv(h,this.collectedEnterElements),p=new Map,g=0;f.forEach(function(e,t){var n="ng-enter"+g++;p.set(t,n),e.forEach(function(e){return cv(e,n)})});for(var v=[],m=new Set,y=new Set,b=0;b<this.collectedLeaveElements.length;b++){var w=this.collectedLeaveElements[b],k=w.__ng_removed;k&&k.setForRemoval&&(v.push(w),m.add(w),k.hasAnimation?this.driver.query(w,".ng-star-inserted",!0).forEach(function(e){return m.add(e)}):y.add(w))}var x=new Map,_=uv(h,Array.from(m));_.forEach(function(e,t){var n="ng-leave"+g++;x.set(t,n),e.forEach(function(e){return cv(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return dv(e,n)})}),_.forEach(function(e,t){var n=x.get(t);e.forEach(function(e){return dv(e,n)})}),v.forEach(function(e){n.processLeaveNode(e)})});for(var A=[],C=[],S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(A.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,o),f=x.get(o),g=p.get(o),v=n._buildInstruction(e,i,g,f,h);if(v.errors&&v.errors.length)C.push(v);else{if(h)return t.onStart(function(){return lg(o,v.fromStyles)}),t.onDestroy(function(){return sg(o,v.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return lg(o,v.fromStyles)}),t.onDestroy(function(){return sg(o,v.toStyles)}),void r.push(t);v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,v.timelines),a.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return Np(s,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(C.length){var E=[];C.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),A.forEach(function(e){return e.destroy()}),this.reportError(E)}var P=new Map,O=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Np(P,t,[]).push(e),e.destroy()})});var D=v.filter(function(e){return pv(e,l,u)}),I=new Map;lv(I,this.driver,y,u,"*").forEach(function(e){pv(e,l,u)&&D.push(e)});var T=new Map;f.forEach(function(e,t){lv(T,n.driver,new Set(e),l,"!")}),D.forEach(function(e){var t=I.get(e),n=T.get(e);I.set(e,Object.assign(Object.assign({},t),n))});var M=[],B=[],R={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(c.has(t))return a.onDestroy(function(){return sg(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=R;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var h=O.get(u);if(h){l=h;break}d.push(u)}d.forEach(function(e){return O.set(e,l)})}var f=n._buildAnimation(a.namespaceId,s,P,o,T,I);if(a.setRealPlayer(f),l===R)M.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=Mp(p)),r.push(a)}}else lg(t,s.fromStyles),a.onDestroy(function(){return sg(t,s.toStyles)}),B.push(a),c.has(t)&&r.push(a)}),B.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Mp(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var L=0;L<v.length;L++){var F=v[L],N=F.__ng_removed;if(dv(F,"ng-leave"),!N||!N.hasAnimation){var z=[];if(s.size){var j=s.get(F);j&&j.length&&z.push.apply(z,V(j));for(var H=this.driver.query(F,".ng-animating",!0),U=0;U<H.length;U++){var W=s.get(H[U]);W&&W.length&&z.push.apply(z,V(W))}}var G=z.filter(function(e){return!e.destroyed});G.length?hv(this,F,G):this.processLeaveNode(F)}}return v.length=0,M.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),M}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!r||"void"==r;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=R(t.timelines);try{var u=function(){var e=i.value.element,l=e!==o,u=Np(n,e,[]);r._getPreviousPlayers(e,l,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(l.s();!(i=l.n()).done;)u()}catch(c){l.e(c)}finally{l.f()}lg(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map(function(t){var h=t.element;c.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Dp(t.duration,t.delay);var p,g,v=h!==l,m=(p=(n.get(h)||Jg).map(function(e){return e.getRealPlayer()}),g=[],fv(p,g),g).filter(function(e){return!!e.element&&e.element===h}),y=r.get(h),b=o.get(h),w=Bp(0,a._normalizer,0,t.keyframes,y,b),k=a._buildPlayer(t,w,m);if(t.subTimeline&&i&&d.add(h),v){var x=new ov(e,s,h);x.setRealPlayer(k),u.push(x)}return k});u.forEach(function(e){Np(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return cv(e,"ng-animating")});var f=Mp(h);return f.onDestroy(function(){c.forEach(function(e){return dv(e,"ng-animating")}),sg(l,t.toStyles)}),d.forEach(function(e){Np(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Dp(e.duration,e.delay)}}]),e}(),ov=function(){function e(t,n,i){Z(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Dp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Y(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Rp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Np(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function av(e){return e&&1===e.nodeType}function sv(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function lv(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(sv(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=ev,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return sv(e,o[s++])}),a}function uv(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function cv(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function dv(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function hv(e,t,n){Mp(n).onDone(function(){return e.processLeaveNode(t)})}function fv(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof Ip?fv(i.players,t):t.push(i)}}function pv(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var gv=function(){function e(t,n,i){var r=this;Z(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new rv(t,n,i),this._timelineEngine=new Xg(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return Y(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=Ag(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Zg(e,t)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=L(Vp(n),2),o=r[0],a=r[1];this._timelineEngine.command(o,t,a,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=L(Vp(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,t,s,r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function vv(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=yv(t[0]),t.length>1&&(i=yv(t[t.length-1]))):t&&(n=yv(t)),n||i?new mv(e,n,i):null}var mv=function(){var e=function(){function e(t,n,i){Z(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return Y(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&sg(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(sg(this._element,this._initialStyles),this._endStyles&&(sg(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(lg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lg(this._element,this._endStyles),this._endStyles=null),sg(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function yv(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];bv(r)&&((t=t||{})[r]=e[r])}return t}function bv(e){return"display"===e||"position"===e}var wv=function(){function e(t,n,i,r,o,a,s){var l=this;Z(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return Y(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Sv(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),Cv(e,"",t),Av(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){kv(this._element,this._name,"paused")}},{key:"resume",value:function(){kv(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=xv(this._element,this._name);this._position=e*this._duration,Cv(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Av(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Sv(e,"").split(","),(i=_v(n,t))>=0&&(n.splice(i,1),Cv(e,"",n.join(","))))}}]),e}();function kv(e,t,n){Cv(e,"PlayState",n,xv(e,t))}function xv(e,t){var n=Sv(e,"");return n.indexOf(",")>0?_v(n.split(","),t):_v([n],t)}function _v(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Av(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Cv(e,t,n,i){var r="animation"+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function Sv(e,t){return e.style["animation"+t]||""}var Ev=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return Y(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new wv(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:bg(e.element,i))})}this.currentSnapshot=t}}]),e}(),Pv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Qp(i),r}return Y(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),C(M(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),C(M(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,C(M(n.prototype),"destroy",this).call(this))}}]),n}(Dp),Ov=function(){function e(){Z(this,e),this._count=0,this._head=document.querySelector("head")}return Y(e,[{key:"validateStyleProperty",value:function(e){return qp(e)}},{key:"matchesElement",value:function(e,t){return Yp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Kp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Qp(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof Ev}),s={};vg(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=mg(e,t,s));if(0==n)return new Pv(e,l);var u="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var d=vv(e,t),h=new Ev(e,t,u,n,i,r,l,d);return h.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),h}}]),e}(),Dv=function(){function e(t,n,i,r){Z(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return Y(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:bg(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Iv=function(){function e(){Z(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Tv().toString()),this._cssKeyframesDriver=new Ov}return Y(e,[{key:"validateStyleProperty",value:function(e){return qp(e)}},{key:"matchesElement",value:function(e,t){return Yp(e,t)}},{key:"containsElement",value:function(e,t){return Zp(e,t)}},{key:"query",value:function(e,t,n){return Kp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=o.filter(function(e){return e instanceof Dv});vg(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var c=vv(e,t=mg(e,t=t.map(function(e){return rg(e,!1)}),l));return new Dv(e,t,s,c)}}]),e}();function Tv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Mv,Bv=((Mv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:wt.None,styles:[],data:{animation:[]}}),r}return Y(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?xp(e):e;return Fv(this._renderer,null,t,"register",[n]),new Rv(t,this._renderer)}}]),n}(bp)).\u0275fac=function(e){return new(e||Mv)(rr(Xl),rr(Od))},Mv.\u0275prov=rt({token:Mv,factory:Mv.\u0275fac}),Mv),Rv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return Y(n,[{key:"create",value:function(e,t){return new Lv(this._id,e,t||{},this._renderer)}}]),n}(function(){return Y(function e(){Z(this,e)})}()),Lv=function(){function e(t,n,i,r){Z(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return Y(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Fv(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Fv(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Nv,Vv,zv,jv=((Nv=function(){function e(t,n,i){Z(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return Y(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Hv("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new Uv(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=L(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||Nv)(rr(Xl),rr(gv),rr(Zc))},Nv.\u0275prov=rt({token:Nv,factory:Nv.\u0275fac}),Nv),Hv=function(){function e(t,n,i){Z(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return Y(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Uv=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return Y(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if("@"==t.charAt(0)){var a,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),u="";return"@"!=l.charAt(0)&&(r=(i=l).indexOf("."),l=(a=L([i.substring(0,r),i.substr(r+1)],2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,l,u,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Hv),Wv=((Vv=function(e){E(n,e);var t=O(n);function n(e,i,r){return Z(this,n),t.call(this,e.body,i,r)}return Y(n)}(gv)).\u0275fac=function(e){return new(e||Vv)(rr(Od),rr($p),rr(jg))},Vv.\u0275prov=rt({token:Vv,factory:Vv.\u0275fac}),Vv),Gv=new ji("AnimationModuleType"),qv=[{provide:$p,useFactory:function(){return"function"==typeof Tv()?new Iv:new Ov}},{provide:Gv,useValue:"BrowserAnimations"},{provide:bp,useClass:Bv},{provide:jg,useFactory:function(){return new Hg}},{provide:gv,useClass:Wv},{provide:Xl,useFactory:function(e,t,n){return new jv(e,t,n)},deps:[Jf,gv,Zc]}],Yv=((zv=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zv)},zv.\u0275mod=jt({type:zv}),zv.\u0275inj=at({providers:qv,imports:[yp]}),zv);function Zv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(Q(i))return Kv(i,null);if(X(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return Kv(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return Kv(t=1===t.length&&Q(t[0])?t[0]:t,null).pipe(ye(function(e){return o.apply(void 0,V(e))}))}return Kv(t,null)}function Kv(e,t){return new ue(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=Ee(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var Qv,Xv,Jv=Y(function e(){Z(this,e)}),$v=new ji("NgValueAccessor"),em={provide:$v,useExisting:Xe(function(){return tm}),multi:!0},tm=((Qv=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r.onChange=function(e){},r.onTouched=function(){},r}return Y(n,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),n}(Jv)).\u0275fac=function(e){return new(e||Qv)(Ps(Jl),Ps(Kl))},Qv.\u0275dir=Ut({type:Qv,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&js("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Hl([em]),ls]}),Qv),nm={provide:$v,useExisting:Xe(function(){return rm}),multi:!0},im=new ji("CompositionEventMode"),rm=((Xv=function(){function e(t,n,i){var r;Z(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Ed()?Ed().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return Y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||Xv)(Ps(Jl),Ps(Kl),Ps(im,8))},Xv.\u0275dir=Ut({type:Xv,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&&js("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:[Hl([nm])]}),Xv);function om(e){return null==e||0===e.length}function am(e){return null!=e&&"number"==typeof e.length}var sm=new ji("NgValidators"),lm=new ji("NgAsyncValidators"),um=/^(?=.{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])?)*$/,cm=function(){function e(){Z(this,e)}return Y(e,null,[{key:"min",value:function(e){return function(e){return function(t){if(om(t.value)||om(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}},{key:"max",value:function(e){return function(e){return function(t){if(om(t.value)||om(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return dm(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return om(e.value)||um.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return om(t.value)||!am(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"maxLength",value:function(e){return hm(e)}},{key:"pattern",value:function(e){return fm(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return wm(e)}},{key:"composeAsync",value:function(e){return xm(e)}}]),e}();function dm(e){return om(e.value)?{required:!0}:null}function hm(e){return function(t){return am(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}function fm(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(om(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):pm;var t,n}function pm(e){return null}function gm(e){return null!=e}function vm(e){var t=Ns(e)?Ee(e):e;return zs(t),t}function mm(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function ym(e,t){return t.map(function(t){return t(e)})}function bm(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function wm(e){if(!e)return null;var t=e.filter(gm);return 0==t.length?null:function(e){return mm(ym(e,t))}}function km(e){return null!=e?wm(bm(e)):null}function xm(e){if(!e)return null;var t=e.filter(gm);return 0==t.length?null:function(e){return Zv(ym(e,t).map(vm)).pipe(ye(mm))}}function _m(e){return null!=e?xm(bm(e)):null}function Am(e,t){return null===e?[t]:Array.isArray(e)?[].concat(V(e),[t]):[e,t]}function Cm(e){return e._rawValidators}function Sm(e){return e._rawAsyncValidators}var Em,Pm,Om,Dm,Im=((Pm=function(){function e(){Z(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return Y(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=km(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=_m(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||Pm)},Pm.\u0275dir=Ut({type:Pm}),Pm),Tm=((Em=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Im)).\u0275fac=function(e){return Mm(e||Em)},Em.\u0275dir=Ut({type:Em,features:[ls]}),Em),Mm=Li(Tm),Bm=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return Y(n)}(Im),Rm=function(){function e(t){Z(this,e),this._cd=t}return Y(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Lm=((Dm=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n)}(Rm)).\u0275fac=function(e){return new(e||Dm)(Ps(Bm,2))},Dm.\u0275dir=Ut({type:Dm,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&al("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:[ls]}),Dm),Fm=((Om=function(e){E(n,e);var t=O(n);function n(e){return Z(this,n),t.call(this,e)}return Y(n)}(Rm)).\u0275fac=function(e){return new(e||Om)(Ps(Tm,10))},Om.\u0275dir=Ut({type:Om,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&al("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:[ls]}),Om);function Nm(e,t){return[].concat(V(t.path),[e])}function Vm(e,t){Hm(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Wm(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Wm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function zm(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Um(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function jm(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Hm(e,t,n){var i=Cm(e);null!==t.validator?e.setValidators(Am(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=Sm(e);if(null!==t.asyncValidator?e.setAsyncValidators(Am(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var o=function(){return e.updateValueAndValidity()};jm(t._rawValidators,o),jm(t._rawAsyncValidators,o)}}function Um(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=Cm(e);if(Array.isArray(r)&&r.length>0){var o=r.filter(function(e){return e!==t.validator});o.length!==r.length&&(i=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=Sm(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};jm(t._rawValidators,l),jm(t._rawAsyncValidators,l)}return i}function Wm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Gm(e,t){Hm(e,t,!1)}function qm(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Ym(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Zm(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===rm?n=e:Object.getPrototypeOf(e.constructor)===Jv?i=e:r=e}),r||i||n||null}function Km(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Qm(e){return(ey(e)?e.validators:e)||null}function Xm(e){return Array.isArray(e)?km(e):e||null}function Jm(e,t){return(ey(t)?t.asyncValidators:e)||null}function $m(e){return Array.isArray(e)?_m(e):e||null}function ey(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ty,ny,iy,ry,oy,ay,sy,ly=function(){function e(t,n){Z(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Xm(this._rawValidators),this._composedAsyncValidatorFn=$m(this._rawAsyncValidators)}return Y(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Xm(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=$m(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=vm(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof cy?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof dy&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new ac,this.statusChanges=new ac}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ey(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),uy=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Z(this,n),(e=t.call(this,Qm(r),Jm(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return Y(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Km(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Km(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ly),cy=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Qm(i),Jm(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return Y(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof uy?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ly),dy=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Qm(i),Jm(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return Y(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof uy?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=R(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(ly),hy={provide:Tm,useExisting:Xe(function(){return py})},fy=Promise.resolve(null),py=((ty=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new ac,r.form=new cy({},km(e),_m(i)),r}return Y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Vm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Km(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path),i=new cy({});Gm(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;fy.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Ym(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Tm)).\u0275fac=function(e){return new(e||ty)(Ps(sm,10),Ps(lm,10))},ty.\u0275dir=Ut({type:ty,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&js("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Hl([hy]),ls]}),ty),gy={provide:Bm,useExisting:Xe(function(){return my})},vy=Promise.resolve(null),my=((ry=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this)).control=new uy,a._registered=!1,a.update=new ac,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=Zm(0,o),a}return Y(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),qm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Nm(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Vm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;vy.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;vy.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Bm)).\u0275fac=function(e){return new(e||ry)(Ps(Tm,9),Ps(sm,10),Ps(lm,10),Ps($v,10))},ry.\u0275dir=Ut({type:ry,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Hl([gy]),ls,tn]}),ry),yy=((iy=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||iy)},iy.\u0275dir=Ut({type:iy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),iy),by=((ny=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||ny)},ny.\u0275mod=jt({type:ny}),ny.\u0275inj=at({}),ny),wy=new ji("NgModelWithFormControlWarning"),ky={provide:Bm,useExisting:Xe(function(){return xy})},xy=((oy=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new ac,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=Zm(0,r),a}return Y(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&zm(t,this,!1),Vm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}qm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&zm(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(Bm)).\u0275fac=function(e){return new(e||oy)(Ps(sm,10),Ps(lm,10),Ps($v,10),Ps(wy,8))},oy.\u0275dir=Ut({type:oy,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Hl([ky]),ls,tn]}),oy._ngModelWarningSentOnce=!1,oy),_y={provide:Tm,useExisting:Xe(function(){return Ay})},Ay=((ay=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new ac,r._setValidators(e),r._setAsyncValidators(i),r}return Y(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Um(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Vm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){zm(e.control||null,e,!1),Km(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Ym(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(zm(n||null,t),i instanceof uy&&(Vm(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);Gm(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Um(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Hm(this.form,this,!1),this._oldForm&&Um(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Tm)).\u0275fac=function(e){return new(e||ay)(Ps(sm,10),Ps(lm,10))},ay.\u0275dir=Ut({type:ay,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&js("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Hl([_y]),ls,tn]}),ay),Cy={provide:Bm,useExisting:Xe(function(){return Sy})},Sy=((sy=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new ac,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=Zm(0,o),s}return Y(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),qm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return Nm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Bm)).\u0275fac=function(e){return new(e||sy)(Ps(Tm,13),Ps(sm,10),Ps(lm,10),Ps($v,10),Ps(wy,8))},sy.\u0275dir=Ut({type:sy,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Hl([Cy]),ls,tn]}),sy._ngModelWarningSentOnce=!1,sy),Ey={provide:$v,useExisting:Xe(function(){return Iy}),multi:!0};function Py(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Oy,Dy,Iy=((Dy=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return Y(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Py(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}]),n}(Jv)).\u0275fac=function(e){return new(e||Dy)(Ps(Jl),Ps(Kl))},Dy.\u0275dir=Ut({type:Dy,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&js("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Hl([Ey]),ls]}),Dy),Ty=((Oy=function(){function e(t,n,i){Z(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}return Y(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Py(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||Oy)(Ps(Kl),Ps(Jl),Ps(Iy,9))},Oy.\u0275dir=Ut({type:Oy,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Oy),My={provide:$v,useExisting:Xe(function(){return Wy}),multi:!0};function By(e,t){return null==e?""+t:("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var Ry,Ly,Fy,Ny,Vy,zy,jy,Hy,Uy,Wy=((Ly=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r._optionMap=new Map,r._idCounter=0,r.onChange=function(e){},r.onTouched=function(){},r._compareWith=Object.is,r}return Y(n,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var l=n.options,u=0;u<l.length;u++){var c=l.item(u);if(c.selected){var d=t._getOptionValue(c.value);i.push(d)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}]),n}(Jv)).\u0275fac=function(e){return new(e||Ly)(Ps(Jl),Ps(Kl))},Ly.\u0275dir=Ut({type:Ly,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&js("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Hl([My]),ls]}),Ly),Gy=((Ry=function(){function e(t,n,i){Z(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}return Y(e,[{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(By(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(By(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),e}()).\u0275fac=function(e){return new(e||Ry)(Ps(Kl),Ps(Jl),Ps(Wy,9))},Ry.\u0275dir=Ut({type:Ry,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ry),qy={provide:sm,useExisting:Xe(function(){return Yy}),multi:!0},Yy=((Fy=function(){function e(){Z(this,e),this._required=!1}return Y(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?dm(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||Fy)},Fy.\u0275dir=Ut({type:Fy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&_s("required",t.required?"":null)},inputs:{required:"required"},features:[Hl([qy])]}),Fy),Zy={provide:sm,useExisting:Xe(function(){return Ky}),multi:!0},Ky=((Ny=function(){function e(){Z(this,e),this._validator=pm}return Y(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=hm("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||Ny)},Ny.\u0275dir=Ut({type:Ny,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&_s("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Hl([Zy]),tn]}),Ny),Qy={provide:sm,useExisting:Xe(function(){return Xy}),multi:!0},Xy=((Uy=function(){function e(){Z(this,e),this._validator=pm}return Y(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=fm(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||Uy)},Uy.\u0275dir=Ut({type:Uy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&_s("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[Hl([Qy]),tn]}),Uy),Jy=((Hy=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Hy)},Hy.\u0275mod=jt({type:Hy}),Hy.\u0275inj=at({imports:[[by]]}),Hy),$y=((jy=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||jy)},jy.\u0275mod=jt({type:jy}),jy.\u0275inj=at({imports:[Jy]}),jy),eb=((zy=function(){function e(){Z(this,e)}return Y(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:wy,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||zy)},zy.\u0275mod=jt({type:zy}),zy.\u0275inj=at({imports:[Jy]}),zy),tb=((Vy=function(){function e(){Z(this,e)}return Y(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new cy(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new uy(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new dy(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof uy||e instanceof cy||e instanceof dy?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||Vy)},Vy.\u0275prov=rt({factory:function(){return new Vy},token:Vy,providedIn:eb}),Vy);function nb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return me(i)?(t.pop(),Se(t,i)):Re(t)}function ib(e,t){return Ie(e,t,1)}function rb(e,t){return function(n){return n.lift(new ob(e,t))}}var ob=function(){function e(t,n){Z(this,e),this.predicate=t,this.thisArg=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new ab(e,this.predicate,this.thisArg))}}]),e}(),ab=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return Y(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(re),sb=Y(function e(){Z(this,e)}),lb=Y(function e(){Z(this,e)}),ub=function(){function e(t){var n=this;Z(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return Y(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,V(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),cb=function(){function e(){Z(this,e)}return Y(e,[{key:"encodeKey",value:function(e){return db(e)}},{key:"encodeValue",value:function(e){return db(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function db(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var hb=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Z(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new cb,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=L(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return Y(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function fb(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function pb(e){return"undefined"!=typeof Blob&&e instanceof Blob}function gb(e){return"undefined"!=typeof FormData&&e instanceof FormData}var vb=function(){function e(t,n,i,r){var o;if(Z(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new ub),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new hb,this.urlWithParams=n}return Y(e,[{key:"serializeBody",value:function(){return null===this.body?null:fb(this.body)||pb(this.body)||gb(this.body)||"string"==typeof this.body?this.body:this.body instanceof hb?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||gb(this.body)?null:pb(this.body)?this.body.type||null:fb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof hb?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,o,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),mb=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),yb=Y(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";Z(this,e),this.headers=t.headers||new ub,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}),bb=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).type=mb.ResponseHeader,e}return Y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(yb),wb=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).type=mb.Response,e.body=void 0!==i.body?i.body:null,e}return Y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(yb),kb=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return Y(n)}(yb);function xb(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var _b,Ab,Cb,Sb,Eb,Pb,Ob,Db,Ib,Tb=((_b=function(){function e(t){Z(this,e),this.handler=t}return Y(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof vb)n=e;else{var o=void 0;o=r.headers instanceof ub?r.headers:new ub(r.headers);var a=void 0;r.params&&(a=r.params instanceof hb?r.params:new hb({fromObject:r.params})),n=new vb(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=nb(n).pipe(ib(function(e){return i.handler.handle(e)}));if(e instanceof vb||"events"===r.observe)return s;var l=s.pipe(rb(function(e){return e instanceof wb}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(ye(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(ye(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(ye(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(ye(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new hb).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,xb(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,xb(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,xb(n,t))}}]),e}()).\u0275fac=function(e){return new(e||_b)(rr(sb))},_b.\u0275prov=rt({token:_b,factory:_b.\u0275fac}),_b),Mb=function(){function e(t,n){Z(this,e),this.next=t,this.interceptor=n}return Y(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Bb=new ji("HTTP_INTERCEPTORS"),Rb=((Ab=function(){function e(){Z(this,e)}return Y(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ab)},Ab.\u0275prov=rt({token:Ab,factory:Ab.\u0275fac}),Ab),Lb=/^\)\]\}',?\n/,Fb=Y(function e(){Z(this,e)}),Nb=((Sb=function(){function e(){Z(this,e)}return Y(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||Sb)},Sb.\u0275prov=rt({token:Sb,factory:Sb.\u0275fac}),Sb),Vb=((Cb=function(){function e(t){Z(this,e),this.xhrFactory=t}return Y(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ue(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new ub(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new bb({headers:r,status:t,statusText:n,url:o})},u=function(){var t=l(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(Lb,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new wb({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new kb({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,r=new kb({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:mb.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:mb.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:mb.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||Cb)(rr(Fb))},Cb.\u0275prov=rt({token:Cb,factory:Cb.\u0275fac}),Cb),zb=new ji("XSRF_COOKIE_NAME"),jb=new ji("XSRF_HEADER_NAME"),Hb=Y(function e(){Z(this,e)}),Ub=((Ib=function(){function e(t,n,i){Z(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return Y(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Ib)(rr(Od),rr(Mc),rr(zb))},Ib.\u0275prov=rt({token:Ib,factory:Ib.\u0275fac}),Ib),Wb=((Db=function(){function e(t,n){Z(this,e),this.tokenService=t,this.headerName=n}return Y(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Db)(rr(Hb),rr(jb))},Db.\u0275prov=rt({token:Db,factory:Db.\u0275fac}),Db),Gb=((Ob=function(){function e(t,n){Z(this,e),this.backend=t,this.injector=n,this.chain=null}return Y(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Bb,[]);this.chain=t.reduceRight(function(e,t){return new Mb(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ob)(rr(lb),rr(as))},Ob.\u0275prov=rt({token:Ob,factory:Ob.\u0275fac}),Ob),qb=((Pb=function(){function e(){Z(this,e)}return Y(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Wb,useClass:Rb}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:zb,useValue:t.cookieName}:[],t.headerName?{provide:jb,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||Pb)},Pb.\u0275mod=jt({type:Pb}),Pb.\u0275inj=at({providers:[Wb,{provide:Bb,useExisting:Wb,multi:!0},{provide:Hb,useClass:Ub},{provide:zb,useValue:"XSRF-TOKEN"},{provide:jb,useValue:"X-XSRF-TOKEN"}]}),Pb),Yb=((Eb=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Eb)},Eb.\u0275mod=jt({type:Eb}),Eb.\u0275inj=at({providers:[Tb,{provide:sb,useClass:Gb},Vb,{provide:lb,useExisting:Vb},Nb,{provide:Fb,useExisting:Nb}],imports:[[qb.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Eb),Zb=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._value=e,i}return Y(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=C(M(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new he;return this._value}},{key:"next",value:function(e){C(M(n.prototype),"next",this).call(this,this._value=e)}}]),n}(ge),Kb=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(re),Qb=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return Y(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(re);function Xb(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Qb(e,n,i);if(!r.closed)return t instanceof ue?t.subscribe(r):Ce(t)(r)}var Jb={};function $b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return me(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Q(t[0])&&(t=t[0]),Re(t,r).lift(new ew(i))}var ew=function(){function e(t){Z(this,e),this.resultSelector=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new tw(e,this.resultSelector))}}]),e}(),tw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return Y(n,[{key:"_next",value:function(e){this.values.push(Jb),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(Xb(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===Jb?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Kb),nw=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function iw(){return Be(1)(nb.apply(void 0,arguments))}var rw=new ue(function(e){return e.complete()});function ow(e){return e?function(e){return new ue(function(t){return e.schedule(function(){return t.complete()})})}(e):rw}function aw(e){return new ue(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Ee(n):ow()).subscribe(t)})}function sw(e,t){return"function"==typeof t?function(n){return n.pipe(sw(function(n,i){return Ee(e(n,i)).pipe(ye(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new lw(e))}}var lw=function(){function e(t){Z(this,e),this.project=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new uw(e,this.project))}}]),e}(),uw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return Y(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new Pe(this),i=this.destination;i.add(n),this.innerSubscription=De(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||C(M(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&C(M(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(Oe),cw=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function dw(e){return function(t){return 0===e?ow():t.lift(new hw(e))}}var hw=function(){function e(t){if(Z(this,e),this.total=t,this.total<0)throw new cw}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new fw(e,this.total))}}]),e}(),fw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Y(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(re);function pw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return me(i)?(t.pop(),function(e){return iw(t,e,i)}):function(e){return iw(t,e)}}function gw(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new vw(e,t,n))}}var vw=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Z(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new mw(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),mw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return Y(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(re);function yw(e){return function(t){var n=new bw(e),i=t.lift(n);return n.caught=i}}var bw=function(){function e(t){Z(this,e),this.selector=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new ww(e,this.selector,this.caught))}}]),e}(),ww=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return Y(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void C(M(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new Pe(this);this.add(i);var r=De(t,i);r!==i&&this.add(r)}}}]),n}(Oe);function kw(e){return function(t){return 0===e?ow():t.lift(new xw(e))}}var xw=function(){function e(t){if(Z(this,e),this.total=t,this.total<0)throw new cw}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new _w(e,this.total))}}]),e}(),_w=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return Y(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(re);function Aw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ew;return function(t){return t.lift(new Cw(e))}}var Cw=function(){function e(t){Z(this,e),this.errorFactory=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Sw(e,this.errorFactory))}}]),e}(),Sw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return Y(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(re);function Ew(){return new nw}function Pw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Ow(e))}}var Ow=function(){function e(t){Z(this,e),this.defaultValue=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Dw(e,this.defaultValue))}}]),e}(),Dw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return Y(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(re);function Iw(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?rb(function(t,n){return e(t,n,i)}):se,dw(1),n?Pw(t):Aw(function(){return new nw}))}}function Tw(){}function Mw(e,t,n){return function(i){return i.lift(new Bw(e,t,n))}}var Bw=function(){function e(t,n,i){Z(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Rw(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Rw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e))._tapNext=Tw,a._tapError=Tw,a._tapComplete=Tw,a._tapError=r||Tw,a._tapComplete=o||Tw,T(i)?(a._context=I(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Tw,a._tapError=i.error||Tw,a._tapComplete=i.complete||Tw),a}return Y(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(re);function Lw(e){return function(t){return t.lift(new Fw(e))}}var Fw=function(){function e(t){Z(this,e),this.callback=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new Nw(e,this.callback))}}]),e}(),Nw=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).add(new te(i)),r}return Y(n)}(re),Vw=Y(function e(t,n){Z(this,e),this.id=t,this.url=n}),zw=function(e){E(n,e);var t=O(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Z(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return Y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Vw),jw=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return Y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Vw),Hw=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e,i)).reason=r,o}return Y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Vw),Uw=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e,i)).error=r,o}return Y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Vw),Ww=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),Gw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),qw=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return Y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Vw),Yw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),Zw=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return Y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Vw),Kw=function(){function e(t){Z(this,e),this.route=t}return Y(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Qw=function(){function e(t){Z(this,e),this.route=t}return Y(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Xw=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Jw=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$w=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ek=function(){function e(t){Z(this,e),this.snapshot=t}return Y(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),tk=function(){function e(t,n,i){Z(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return Y(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),nk=function(){function e(t){Z(this,e),this.params=t||{}}return Y(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ik(e){return new nk(e)}function rk(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ok(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ak(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!sk(e[n=i[o]],t[n]))return!1;return!0}function sk(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=V(e).sort(),i=V(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function lk(e){return Array.prototype.concat.apply([],e)}function uk(e){return e.length>0?e[e.length-1]:null}function ck(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function dk(e){return zs(e)?e:Ns(e)?Ee(Promise.resolve(e)):nb(e)}function hk(e,t,n){return n?function(e,t){return ak(e,t)}(e.queryParams,t.queryParams)&&fk(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return sk(e[n],t[n])})}(e.queryParams,t.queryParams)&&pk(e.root,t.root)}function fk(e,t){if(!bk(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!fk(e.children[n],t.children[n]))return!1}return!0}function pk(e,t){return gk(e,t,t.segments)}function gk(e,t,n){if(e.segments.length>n.length)return!!bk(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!bk(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!pk(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!bk(e.segments,r)&&!!e.children.primary&&gk(e.children.primary,t,o)}var vk=function(){function e(t,n,i){Z(this,e),this.root=t,this.queryParams=n,this.fragment=i}return Y(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ik(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return xk.serialize(this)}}]),e}(),mk=function(){function e(t,n){var i=this;Z(this,e),this.segments=t,this.children=n,this.parent=null,ck(n,function(e,t){return e.parent=i})}return Y(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return _k(this)}}]),e}(),yk=function(){function e(t,n){Z(this,e),this.path=t,this.parameters=n}return Y(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ik(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Dk(this)}}]),e}();function bk(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var wk=Y(function e(){Z(this,e)}),kk=function(){function e(){Z(this,e)}return Y(e,[{key:"parse",value:function(e){var t=new Rk(e);return new vk(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Ak(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Sk(e),"=").concat(Sk(t))}).join("&"):"".concat(Sk(e),"=").concat(Sk(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),xk=new kk;function _k(e){return e.segments.map(function(e){return Dk(e)}).join("/")}function Ak(e,t){if(!e.hasChildren())return _k(e);if(t){var n=e.children.primary?Ak(e.children.primary,!1):"",i=[];return ck(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Ak(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return ck(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),ck(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Ak(e.children.primary,!1)]:["".concat(n,":").concat(Ak(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(_k(e),"/").concat(r[0]):"".concat(_k(e),"/(").concat(r.join("//"),")")}function Ck(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sk(e){return Ck(e).replace(/%3B/gi,";")}function Ek(e){return Ck(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pk(e){return decodeURIComponent(e)}function Ok(e){return Pk(e.replace(/\+/g,"%20"))}function Dk(e){return"".concat(Ek(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Ek(e),"=").concat(Ek(t[e]))}).join("")));var t}var Ik=/^[^\/()?;=#]+/;function Tk(e){var t=e.match(Ik);return t?t[0]:""}var Mk=/^[^=?&#]+/,Bk=/^[^?&#]+/,Rk=function(){function e(t){Z(this,e),this.url=t,this.remaining=t}return Y(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mk([],{}):new mk([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new mk(e,t)),n}},{key:"parseSegment",value:function(){var e=Tk(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new yk(Pk(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Tk(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Tk(this.remaining);i&&(n=i,this.capture(n))}e[Pk(t)]=Pk(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Mk);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Bk);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Ok(t),o=Ok(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Tk(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new mk([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Lk=function(){function e(t){Z(this,e),this._root=t}return Y(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Fk(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Fk(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Nk(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return Nk(e,this._root).map(function(e){return e.value})}}]),e}();function Fk(e,t){if(e===t.value)return t;var n,i=R(t.children);try{for(i.s();!(n=i.n()).done;){var r=Fk(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function Nk(e,t){if(e===t.value)return[t];var n,i=R(t.children);try{for(i.s();!(n=i.n()).done;){var r=Nk(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var Vk=function(){function e(t,n){Z(this,e),this.value=t,this.children=n}return Y(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function zk(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var jk=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).snapshot=i,Yk(I(r),e),r}return Y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Lk);function Hk(e,t){var n=function(e,t){var n=new Gk([],{},{},"",{},"primary",t,null,e.root,-1,{});return new qk("",new Vk(n,[]))}(e,t),i=new Zb([new yk("",{})]),r=new Zb({}),o=new Zb({}),a=new Zb({}),s=new Zb(""),l=new Uk(i,r,a,s,o,"primary",t,n.root);return l.snapshot=n.root,new jk(new Vk(l,[]),n)}var Uk=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return Y(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(ye(function(e){return ik(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(function(e){return ik(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function Wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Gk=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return Y(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ik(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ik(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),qk=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,i)).url=e,Yk(I(r),i),r}return Y(n,[{key:"toString",value:function(){return Zk(this._root)}}]),n}(Lk);function Yk(e,t){t.value._routerState=e,t.children.forEach(function(t){return Yk(e,t)})}function Zk(e){var t=e.children.length>0?" { ".concat(e.children.map(Zk).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Kk(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ak(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ak(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ak(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ak(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Qk(e,t){var n,i;return ak(e.params,t.params)&&bk(n=e.url,i=t.url)&&n.every(function(e,t){return ak(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||Qk(e.parent,t.parent))}function Xk(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=R(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return Xk(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return Xk(e,t)})}(e,t,n);return new Vk(i,r)}var o=e.retrieve(t.value);if(o){var a=o.route;return Jk(t,a),a}var s,l=new Uk(new Zb((s=t.value).url),new Zb(s.params),new Zb(s.queryParams),new Zb(s.fragment),new Zb(s.data),s.outlet,s.component,s),u=t.children.map(function(t){return Xk(e,t)});return new Vk(l,u)}function Jk(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)Jk(e.children[n],t.children[n])}function $k(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ex(e){return"object"==typeof e&&null!=e&&e.outlets}function tx(e,t,n,i,r){var o={};return i&&ck(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new vk(n.root===e?t:nx(n.root,e,t),o,r)}function nx(e,t,n){var i={};return ck(e.children,function(e,r){i[r]=e===t?n:nx(e,t,n)}),new mk(e.segments,i)}var ix=function(){function e(t,n,i){if(Z(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&$k(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(ex);if(r&&r!==uk(i))throw new Error("{outlets:{}} has to be the last command")}return Y(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),rx=Y(function e(t,n,i){Z(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i});function ox(e,t,n){if(e||(e=new mk([],{})),0===e.segments.length&&e.hasChildren())return ax(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(ex(s))break;var l=""+s,u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!cx(l,u,a))return o;i+=2}else{if(!cx(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new mk(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new mk(e.segments.slice(i.pathIndex),e.children),ax(o,0,r)}return i.match&&0===r.length?new mk(e.segments,{}):i.match&&!e.hasChildren()?sx(e,t,n):i.match?ax(e,0,r):sx(e,t,n)}function ax(e,t,n){if(0===n.length)return new mk(e.segments,{});var i=function(e){return ex(e[0])?e[0].outlets:{primary:e}}(n),r={};return ck(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=ox(e.children[i],t,n))}),ck(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new mk(e.segments,r)}function sx(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(ex(o)){var a=lx(o.outlets);return new mk(i,a)}if(0===r&&$k(n[0]))i.push(new yk(e.segments[t].path,ux(n[0]))),r++;else{var s=ex(o)?o.outlets.primary:""+o,l=r<n.length-1?n[r+1]:null;s&&l&&$k(l)?(i.push(new yk(s,ux(l))),r+=2):(i.push(new yk(s,{})),r++)}}return new mk(i,{})}function lx(e){var t={};return ck(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=sx(new mk([],{}),0,e))}),t}function ux(e){var t={};return ck(e,function(e,n){return t[n]=""+e}),t}function cx(e,t,n){return e==n.path&&ak(t,n.parameters)}var dx=function(){function e(t,n,i,r){Z(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return Y(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Kk(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=zk(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),ck(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=zk(e),o=0,a=Object.keys(r);o<a.length;o++){var s=a[o];this.deactivateRouteAndItsChildren(r[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=zk(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new ek(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Jw(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(Kk(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),hx(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=u,a.outlet&&a.outlet.activateWith(i,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function hx(e){Kk(e.value),e.children.forEach(hx)}var fx=Y(function e(t,n){Z(this,e),this.routes=t,this.module=n});function px(e){return"function"==typeof e}function gx(e){return e instanceof vk}var vx=Symbol("INITIAL_VALUE");function mx(){return sw(function(e){return $b(e.map(function(e){return e.pipe(dw(1),pw(vx))})).pipe(gw(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==vx)return e;if(i===vx&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||gx(i))return i}return e},e)},vx),rb(function(e){return e!==vx}),ye(function(e){return gx(e)?e:!0===e}),dw(1))})}var yx,bx=((yx=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yx)},yx.\u0275cmp=Ft({type:yx,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Ms(0,"router-outlet")},directives:function(){return[b_]},encapsulation:2}),yx);function wx(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];kx(i,xx(t,i))}}function kx(e,t){e.children&&wx(e.children,t)}function xx(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function _x(e){var t=e.children&&e.children.map(_x),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=bx),n}function Ax(e){return e.outlet||"primary"}function Cx(e,t){var n=e.filter(function(e){return Ax(e)===t});return n.push.apply(n,V(e.filter(function(e){return Ax(e)!==t}))),n}var Sx={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ex(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Sx):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ok)(n,e,t);if(!r)return Object.assign({},Sx);var o={};ck(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Px(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ox(e,t,n)&&"primary"!==Ax(n)})}(e,n,i)){var o=new mk(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=R(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==Ax(s)){var l=new mk([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,r[Ax(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}(e,t,i,new mk(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ox(e,t,n)})}(e,n,i)){var a=new mk(e.segments,function(e,t,n,i,r,o){var a,s={},l=R(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(Ox(e,n,u)&&!r[Ax(u)]){var c=new mk([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Ax(u)]=c}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new mk(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ox(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Dx(e,t,n,i){return!!(Ax(e)===i||"primary"!==i&&Ox(t,n,e))&&("**"===e.path||Ex(t,e,n).matched)}function Ix(e,t,n){return 0===t.length&&!e.children[n]}var Tx=Y(function e(t){Z(this,e),this.segmentGroup=t||null}),Mx=Y(function e(t){Z(this,e),this.urlTree=t});function Bx(e){return new ue(function(t){return t.error(new Tx(e))})}function Rx(e){return new ue(function(t){return t.error(new Mx(e))})}function Lx(e){return new ue(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Fx=function(){function e(t,n,i,r,o){Z(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Du)}return Y(e,[{key:"apply",value:function(){var e=this,t=Px(this.urlTree.root,[],[],this.config).segmentGroup,n=new mk(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(ye(function(t){return e.createUrlTree(Nx(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(yw(function(t){if(t instanceof Mx)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Tx)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(ye(function(n){return t.createUrlTree(Nx(n),e.queryParams,e.fragment)})).pipe(yw(function(e){if(e instanceof Tx)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new mk([],{primary:e}):e;return new vk(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(ye(function(e){return new mk([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return Ee(r).pipe(ib(function(r){var o=n.children[r],a=Cx(t,r);return i.expandSegmentGroup(e,a,o,r).pipe(ye(function(e){return{segment:e,outlet:r}}))}),gw(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?rb(function(t,n){return e(t,n,i)}):se,kw(1),n?Pw(t):Aw(function(){return new nw}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return Ee(n).pipe(ib(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(yw(function(e){if(e instanceof Tx)return nb(null);throw e}))}),Iw(function(e){return!!e}),yw(function(e,n){if(e instanceof nw||"EmptyError"===e.name){if(Ix(t,i,r))return nb(new mk([],{}));throw new Tx(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return Dx(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Bx(t):Bx(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Rx(o):this.lineralizeSegments(n,o).pipe(Ie(function(n){var o=new mk(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=Ex(t,i,r),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return Bx(t);var h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?Rx(h):this.lineralizeSegments(i,h).pipe(Ie(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?nb(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(ye(function(e){return n._loadedConfig=e,new mk(i,{})})):nb(new mk(i,{}));var a=Ex(t,n,i),s=a.matched,l=a.consumedSegments,u=a.lastChild;if(!s)return Bx(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(Ie(function(e){var i=e.module,a=e.routes,s=Px(t,l,c,a),u=s.segmentGroup,d=s.slicedSegments,h=new mk(u.segments,u.children);if(0===d.length&&h.hasChildren())return o.expandChildren(i,a,h).pipe(ye(function(e){return new mk(l,e)}));if(0===a.length&&0===d.length)return nb(new mk(l,{}));var f=Ax(n)===r;return o.expandSegment(i,h,a,d,f?"primary":r,!0).pipe(ye(function(e){return new mk(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?nb(new fx(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?nb(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Ie(function(n){return n?i.configLoader.load(e.injector,t).pipe(ye(function(e){return t._loadedConfig=e,e})):function(e){return new ue(function(t){return t.error(rk("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):nb(new fx([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?nb(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&px(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!px(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return dk(r)})).pipe(mx(),Mw(function(e){if(gx(e)){var t=rk('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),ye(function(e){return!0===e})):nb(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return nb(n);if(i.numberOfChildren>1||!i.children.primary)return Lx(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new vk(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return ck(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return ck(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new mk(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=R(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function Nx(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=Nx(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new mk(e.segments.concat(t.segments),t.children)}return e}(new mk(e.segments,t))}var Vx=Y(function e(t){Z(this,e),this.path=t,this.route=this.path[this.path.length-1]}),zx=Y(function e(t,n){Z(this,e),this.component=t,this.route=n});function jx(e,t,n){var i=e._root;return Ux(i,t?t._root:null,n,[i.value])}function Hx(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Ux(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=zk(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!bk(e.url,t.url);case"pathParamsOrQueryParamsChange":return!bk(e.url,t.url)||!ak(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qk(e,t)||!ak(e.queryParams,t.queryParams);case"paramsChange":default:return!Qk(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Vx(i)):(o.data=a.data,o._resolvedData=a._resolvedData),Ux(e,t,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new zx(s.outlet.component,a))}else a&&Wx(t,s,r),r.canActivateChecks.push(new Vx(i)),Ux(e,null,o.component?s?s.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),ck(o,function(e,t){return Wx(e,n.getContext(t),r)}),r}function Wx(e,t,n){var i=zk(e),r=e.value;ck(i,function(e,i){Wx(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new zx(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var Gx=Y(function e(){Z(this,e)});function qx(e){return new ue(function(t){return t.error(e)})}var Yx=function(){function e(t,n,i,r,o,a){Z(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return Y(e,[{key:"recognize",value:function(){var e=Px(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new Gk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Vk(n,t),r=new qk(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=Wk(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=Cx(e,o),l=this.processSegmentGroup(s,a,o);if(null===l)return null;n.push.apply(n,V(l))}var u=function(e){var t,n=[],i=R(e);try{var r=function(){var e,i=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(i))return n.push(i),"continue";var r=n.find(function(e){return i.value.routeConfig===e.value.routeConfig});void 0!==r?(e=r.children).push.apply(e,V(i.children)):n.push(i)};for(i.s();!(t=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return n}(n);return u.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),u}},{key:"processSegment",value:function(e,t,n,i){var r,o=R(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.processSegmentAgainstRoute(a,t,n,i);if(null!==s)return s}}catch(l){o.e(l)}finally{o.f()}return Ix(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!Dx(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?uk(n).parameters:{};r=new Gk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qx(e),Ax(e),e.component,e,Zx(t),Kx(t)+n.length,Xx(e))}else{var l=Ex(t,e,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new Gk(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qx(e),Ax(e),e.component,e,Zx(t),Kx(t)+o.length,Xx(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Px(t,o,a,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return null===f?null:[new Vk(r,f)]}if(0===u.length&&0===h.length)return[new Vk(r,[])];var p=Ax(e)===i,g=this.processSegment(u,d,h,p?"primary":i);return null===g?null:[new Vk(r,g)]}}]),e}();function Zx(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Kx(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Qx(e){return e.data||{}}function Xx(e){return e.resolve||{}}function Jx(e){return sw(function(t){var n=e(t);return n?Ee(n).pipe(ye(function(){return t})):nb(t)})}var $x=Y(function e(){Z(this,e)}),e_=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(function(){function e(){Z(this,e)}return Y(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),t_=new ji("ROUTES"),n_=function(){function e(t,n,i,r){Z(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return Y(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(ye(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new fx(lk(r.injector.get(t_,void 0,gt.Self|gt.Optional)).map(_x),r)}),yw(function(e){throw t._loader$=void 0,e}));return t._loader$=new je(i,function(){return new ge}).pipe(Fe()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Ee(this.loader.load(e)):dk(e()).pipe(Ie(function(e){return e instanceof Iu?nb(e):Ee(t.compiler.compileModuleAsync(e))}))}}]),e}(),i_=Y(function e(){Z(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new r_,this.attachRef=null}),r_=function(){function e(){Z(this,e),this.contexts=new Map}return Y(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new i_,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),o_=function(){function e(){Z(this,e)}return Y(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function a_(e){throw e}function s_(e,t,n){return t.parse("/")}function l_(e,t){return nb(null)}var u_,c_,d_,h_=((d_=function(){function e(t,n,i,r,o,a,s,l){var u=this;Z(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new ge,this.errorHandler=a_,this.malformedUriErrorHandler=s_,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:l_,afterPreactivation:l_},this.urlHandlingStrategy=new o_,this.routeReuseStrategy=new e_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(Du),this.console=o.get(Rc);var c=o.get(Zc);this.isNgZoneEnabled=c instanceof Zc&&Zc.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new vk(new mk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new n_(a,s,function(e){return u.triggerEvent(new Kw(e))},function(e){return u.triggerEvent(new Qw(e))}),this.routerState=Hk(this.currentUrlTree,this.rootComponentType),this.transitions=new Zb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return Y(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(rb(function(e){return 0!==e.id}),ye(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),sw(function(e){var i,r,o,a=!1,s=!1;return nb(e).pipe(Mw(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),sw(function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return nb(e).pipe(sw(function(e){var i=t.transitions.getValue();return n.next(new zw(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?rw:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,sw(function(e){return function(e,t,n,i,r){return new Fx(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(ye(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Mw(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return Ie(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Yx(e,t,n,i,r,o).recognize();return null===a?qx(new Gx):nb(a)}catch(s){return qx(s)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(ye(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Mw(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new Ww(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new zw(l,t.serializeUrl(u),c,d);n.next(f);var p=Hk(u,t.rootComponentType).snapshot;return nb(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),rw}),Jx(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),Mw(function(e){var n=new Gw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),ye(function(e){return Object.assign(Object.assign({},e),{guards:jx(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return Ie(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?nb(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Ee(e).pipe(Ie(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?nb(o.map(function(o){var a,s=Hx(o,t,r);if(function(e){return e&&px(e.canDeactivate)}(s))a=dk(s.canDeactivate(e,t,n,i));else{if(!px(s))throw new Error("Invalid CanDeactivate guard");a=dk(s(e,t,n,i))}return a.pipe(Iw())})).pipe(mx()):nb(!0)}(e.component,e.route,n,t,i)}),Iw(function(e){return!0!==e},!0))}(s,i,r,e).pipe(Ie(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return Ee(t).pipe(ib(function(t){return iw(function(e,t){return null!==e&&t&&t(new Xw(e)),nb(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new $w(e)),nb(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return aw(function(){return nb(t.guards.map(function(r){var o,a=Hx(r,t.node,n);if(function(e){return e&&px(e.canActivateChild)}(a))o=dk(a.canActivateChild(i,e));else{if(!px(a))throw new Error("Invalid CanActivateChild guard");o=dk(a(i,e))}return o.pipe(Iw())})).pipe(mx())})});return nb(r).pipe(mx())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?nb(i.map(function(i){return aw(function(){var r,o=Hx(i,t,n);if(function(e){return e&&px(e.canActivate)}(o))r=dk(o.canActivate(t,e));else{if(!px(o))throw new Error("Invalid CanActivate guard");r=dk(o(t,e))}return r.pipe(Iw())})})).pipe(mx()):nb(!0)}(e,t.route,n))}),Iw(function(e){return!0!==e},!0))}(i,a,e,t):nb(n)}),ye(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Mw(function(e){if(gx(e.guardsResult)){var n=rk('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new qw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),rb(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new Hw(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),Jx(function(e){if(e.guards.canActivateChecks.length)return nb(e).pipe(Mw(function(e){var n=new Yw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),sw(function(e){var i,r,o=!1;return nb(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,Ie(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return nb(e);var o=0;return Ee(n).pipe(ib(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return nb({});var o={};return Ee(r).pipe(Ie(function(r){return function(e,t,n,i){var r=Hx(e,t,i);return dk(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Mw(function(e){o[r]=e}))}),kw(1),Ie(function(){return Object.keys(o).length===r.length?nb(o):rw}))}(e._resolve,e,t,i).pipe(ye(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Wk(e,n).resolve),null}))}(e.route,t,i,r)}),Mw(function(){return o++}),kw(1),Ie(function(t){return o===n.length?nb(e):rw}))})),Mw({next:function(){return o=!0},complete:function(){if(!o){var i=new Hw(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Mw(function(e){var n=new Zw(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Jx(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})}),ye(function(e){var n=function(e,t,n){var i=Xk(e,t._root,n?n._root:void 0);return new jk(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Mw(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},ye(function(e){return new dx(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),Mw({next:function(){a=!0},complete:function(){a=!0}}),Lw(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new Hw(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),yw(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=gx(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Hw(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new Uw(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var l;return rw}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){wx(e),this.config=e.map(_x),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,r){if(0===n.length)return tx(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ix(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return ck(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(V(e),[{outlets:o}])}if(i.segmentPath)return[].concat(V(e),[i.segmentPath])}return"string"!=typeof i?[].concat(V(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(V(e),[i])},[]);return new ix(n,t,i)}(n);if(o.toRoot())return tx(t.root,new mk([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new rx(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new rx(i,i===t.root,0)}var r=$k(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new rx(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?ax(a.segmentGroup,a.index,o.commands):ox(a.segmentGroup,a.index,o.commands);return tx(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,u,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=gx(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(gx(e))return hk(this.currentUrlTree,e,t);var n=this.parseUrl(e);return hk(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new jw(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==t&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(e,t){o=e,a=t});var d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}()).\u0275fac=function(e){return new(e||d_)(rr(Ui),rr(wk),rr(r_),rr(Kd),rr(as),rr(md),rr(Gc),rr(void 0))},d_.\u0275prov=rt({token:d_,factory:d_.\u0275fac}),d_),f_=((c_=function(){function e(t,n,i,r,o){Z(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new ge,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return Y(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:g_(this.skipLocationChange),replaceUrl:g_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:g_(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||c_)(Ps(h_),Ps(Uk),Ni("tabindex"),Ps(Jl),Ps(Kl))},c_.\u0275dir=Ut({type:c_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&js("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[tn]}),c_),p_=((u_=function(){function e(t,n,i){var r=this;Z(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new ge,this.subscription=t.events.subscribe(function(e){e instanceof jw&&r.updateTargetUrlAndHref()})}return Y(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:g_(this.skipLocationChange),replaceUrl:g_(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:g_(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||u_)(Ps(h_),Ps(Uk),Ps(jd))},u_.\u0275dir=Ut({type:u_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&js("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Sl("href",t.href,Kr),_s("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[tn]}),u_);function g_(e){return""===e||!!e}var v_,m_,y_,b_=((v_=function(){function e(t,n,i,r,o){Z(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ac,this.deactivateEvents=new ac,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return Y(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new w_(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||v_)(Ps(r_),Ps(Mu),Ps(Gl),Ni("name"),Ps(ku))},v_.\u0275dir=Ut({type:v_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),v_),w_=function(){function e(t,n,i){Z(this,e),this.route=t,this.childContexts=n,this.parent=i}return Y(e,[{key:"get",value:function(e,t){return e===Uk?this.route:e===r_?this.childContexts:this.parent.get(e,t)}}]),e}(),k_=Y(function e(){Z(this,e)}),x_=function(){function e(){Z(this,e)}return Y(e,[{key:"preload",value:function(e,t){return nb(null)}}]),e}(),__=((y_=function(){function e(t,n,i,r,o){Z(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new n_(n,i,function(e){return t.triggerEvent(new Kw(e))},function(e){return t.triggerEvent(new Qw(e))})}return Y(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(rb(function(e){return e instanceof jw}),ib(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(Du);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=R(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return Ee(i).pipe(Be(),ye(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?nb(t._loadedConfig):n.loader.load(e.injector,t)).pipe(Ie(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||y_)(rr(h_),rr(md),rr(Gc),rr(as),rr(k_))},y_.\u0275prov=rt({token:y_,factory:y_.\u0275fac}),y_),A_=((m_=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Z(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return Y(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof zw?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof jw&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof tk&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new tk(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||m_)(rr(h_),rr(xf),rr(void 0))},m_.\u0275prov=rt({token:m_,factory:m_.\u0275fac}),m_),C_=new ji("ROUTER_CONFIGURATION"),S_=new ji("ROUTER_FORROOT_GUARD"),E_=[Kd,{provide:wk,useClass:kk},{provide:h_,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new h_(null,e,t,n,i,r,o,lk(a));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var d=Ed();c.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[wk,r_,Kd,as,md,Gc,t_,C_,[function(){return Y(function e(){Z(this,e)})}(),new dr],[$x,new dr]]},r_,{provide:Uk,useFactory:function(e){return e.routerState.root},deps:[h_]},{provide:md,useClass:wd},__,x_,function(){function e(){Z(this,e)}return Y(e,[{key:"preload",value:function(e,t){return t().pipe(yw(function(){return nb(null)}))}}]),e}(),{provide:C_,useValue:{enableTracing:!1}}];function P_(){return new ud("Router",h_)}var O_,D_=((O_=function(){function e(t,n){Z(this,e)}return Y(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[E_,B_(t),{provide:S_,useFactory:M_,deps:[[h_,new dr,new hr]]},{provide:C_,useValue:n||{}},{provide:jd,useFactory:T_,deps:[Dd,[new cr(qd),new dr],C_]},{provide:A_,useFactory:I_,deps:[h_,xf,C_]},{provide:k_,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:x_},{provide:ud,multi:!0,useFactory:P_},[L_,{provide:Ec,multi:!0,useFactory:F_,deps:[L_]},{provide:V_,useFactory:N_,deps:[L_]},{provide:Bc,multi:!0,useExisting:V_}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[B_(t)]}}}]),e}()).\u0275fac=function(e){return new(e||O_)(rr(S_,8),rr(h_,8))},O_.\u0275mod=jt({type:O_}),O_.\u0275inj=at({}),O_);function I_(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new A_(e,t,n)}function T_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Zd(e,t):new Yd(e,t)}function M_(e){return"guarded"}function B_(e){return[{provide:Hi,multi:!0,useValue:e},{provide:t_,multi:!0,useValue:e}]}var R_,L_=((R_=function(){function e(t){Z(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new ge}return Y(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Md,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(h_),r=e.injector.get(C_);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?nb(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(C_),n=this.injector.get(__),i=this.injector.get(A_),r=this.injector.get(h_),o=this.injector.get(gd);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||R_)(rr(as))},R_.\u0275prov=rt({token:R_,factory:R_.\u0275fac}),R_);function F_(e){return e.appInitializer.bind(e)}function N_(e){return e.bootstrapListener.bind(e)}var V_=new ji("Router Initializer");function z_(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function j_(e,t){return function(n,i){t(n,i,e)}}function H_(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function U_(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}S("meiF"),S("lTIg"),S("RQGG"),S("bC4P"),S("iWo5");var W_=S("E/Mt"),G_=S("1vRN"),q_=(S("39oe"),S("k4ps")),Y_=S("r7QR"),Z_=S("7OTs"),K_=(S("y08P"),S("wEJo"));function Q_(e,t,n,i){return T(n)&&(i=n,n=void 0),i?Q_(e,t,n).pipe(ye(function(e){return Q(e)?i.apply(void 0,V(e)):i(e)})):new ue(function(i){X_(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function X_(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u<c;u++)X_(e[u],t,n,i,r)}i.add(o)}function J_(e,t){return function(n){return n.lift(new hA(e,t))}}S("B4Jq");var $_,eA,tA,nA,iA,rA,oA,aA,sA,lA,uA,cA,dA,hA=function(){function e(t,n){Z(this,e),this.compare=t,this.keySelector=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new fA(e,this.compare,this.keySelector))}}]),e}(),fA=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return Y(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(re),pA=W_.e,gA=["*"],vA=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},mA=(($_=function(){function e(t,n){Z(this,e),this.injector=t,this.el=n,this.onChange=function(){},this.onTouched=function(){}}return Y(e,[{key:"writeValue",value:function(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,yA(this.el)}},{key:"handleChangeEvent",value:function(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),yA(this.el))}},{key:"_handleBlurEvent",value:function(e){e===this.el.nativeElement&&(this.onTouched(),yA(this.el))}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.el.nativeElement.disabled=e}},{key:"ngOnDestroy",value:function(){this.statusChanges&&this.statusChanges.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e,t=this;try{e=this.injector.get(Bm)}catch(i){}if(e){e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(function(){return yA(t.el)}));var n=e.control;n&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(function(e){if(n[e]){var i=n[e].bind(n);n[e]=function(){i.apply(void 0,arguments),yA(t.el)}}})}}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},$_.\u0275dir=Ut({type:$_,hostBindings:function(e,t){1&e&&js("ionBlur",function(e){return t._handleBlurEvent(e.target)})}}),$_),yA=function(e){vA(function(){var t=e.nativeElement,n=bA(t);wA(t,n);var i=t.closest("ion-item");i&&wA(i,n)})},bA=function(e){for(var t=e.classList,n=[],i=0;i<t.length;i++){var r=t.item(i);null!==r&&kA(r,"ng-")&&n.push("ion-"+r.substr(3))}return n},wA=function(e,t){var n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(function(e){return n.remove(e)}),t.forEach(function(e){return n.add(e)})},kA=function(e,t){return e.substr(0,t.length)===t},xA=((tA=eA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"writeValue",value:function(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,yA(this.el)}},{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(mA)).\u0275fac=function(e){return new(e||tA)(Ps(as),Ps(Kl))},tA.\u0275dir=Ut({type:tA,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Hl([{provide:$v,useExisting:eA,multi:!0}]),ls]}),tA),_A=((iA=nA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.value)}},{key:"registerOnChange",value:function(e){C(M(n.prototype),"registerOnChange",this).call(this,function(t){e(""===t?null:parseFloat(t))})}}]),n}(mA)).\u0275fac=function(e){return new(e||iA)(Ps(as),Ps(Kl))},iA.\u0275dir=Ut({type:iA,selectors:[["ion-input","type","number"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleIonChange(e.target)})},features:[Hl([{provide:$v,useExisting:nA,multi:!0}]),ls]}),iA),AA=((oA=rA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleIonSelect",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(mA)).\u0275fac=function(e){return new(e||oA)(Ps(as),Ps(Kl))},oA.\u0275dir=Ut({type:oA,selectors:[["ion-radio"]],hostBindings:function(e,t){1&e&&js("ionSelect",function(e){return t._handleIonSelect(e.target)})},features:[Hl([{provide:$v,useExisting:rA,multi:!0}]),ls]}),oA),CA=((sA=aA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleChangeEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(mA)).\u0275fac=function(e){return new(e||sA)(Ps(as),Ps(Kl))},sA.\u0275dir=Ut({type:sA,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleChangeEvent(e.target)})},features:[Hl([{provide:$v,useExisting:aA,multi:!0}]),ls]}),sA),SA=((cA=lA=function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this,e,i)}return Y(n,[{key:"_handleInputEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(mA)).\u0275fac=function(e){return new(e||cA)(Ps(as),Ps(Kl))},cA.\u0275dir=Ut({type:cA,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(e,t){1&e&&js("ionChange",function(e){return t._handleInputEvent(e.target)})},features:[Hl([{provide:$v,useExisting:lA,multi:!0}]),ls]}),cA),EA=((uA=function(){function e(t,n){var i=this;Z(this,e),this.doc=t,this.backButton=new ge,this.keyboardDidShow=new ge,this.keyboardDidHide=new ge,this.pause=new ge,this.resume=new ge,this.resize=new ge,n.run(function(){var e;i.win=t.defaultView,i.backButton.subscribeWithPriority=function(e,t){return this.subscribe(function(i){return i.register(e,function(e){return n.run(function(){return t(e)})})})},OA(i.pause,t,"pause"),OA(i.resume,t,"resume"),OA(i.backButton,t,"ionBackButton"),OA(i.resize,i.win,"resize"),OA(i.keyboardDidShow,i.win,"ionKeyboardDidShow"),OA(i.keyboardDidHide,i.win,"ionKeyboardDidHide"),i._readyPromise=new Promise(function(t){e=t}),i.win&&i.win.cordova?t.addEventListener("deviceready",function(){e("cordova")},{once:!0}):e("dom")})}return Y(e,[{key:"is",value:function(e){return Object(W_.a)(this.win,e)}},{key:"platforms",value:function(){return Object(W_.d)(this.win)}},{key:"ready",value:function(){return this._readyPromise}},{key:"isRTL",get:function(){return"rtl"===this.doc.dir}},{key:"getQueryParam",value:function(e){return PA(this.win.location.href,e)}},{key:"isLandscape",value:function(){return!this.isPortrait()}},{key:"isPortrait",value:function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}},{key:"testUserAgent",value:function(e){var t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}},{key:"url",value:function(){return this.win.location.href}},{key:"width",value:function(){return this.win.innerWidth}},{key:"height",value:function(){return this.win.innerHeight}}]),e}()).\u0275fac=function(e){return new(e||uA)(rr(Od),rr(Zc))},uA.\u0275prov=rt({token:uA,factory:function(e){return uA.\u0275fac(e)},providedIn:"root"}),uA.ngInjectableDef=rt({factory:function(){return new uA(rr(Od),rr(Zc))},token:uA,providedIn:"root"}),uA=z_([j_(0,cr(Od))],uA)),PA=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},OA=function(e,t,n){t&&t.addEventListener(n,function(t){e.next(null!=t?t.detail:void 0)})},DA=((dA=function(){function e(t,n,i,r){var o=this;Z(this,e),this.location=n,this.serializer=i,this.router=r,this.direction=TA,this.animated=MA,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(function(e){if(e instanceof zw){var t=e.restoredState?e.restoredState.navigationId:e.id;o.guessDirection=t<o.lastNavId?"back":"forward",o.guessAnimation=e.restoredState?void 0:o.guessDirection,o.lastNavId="forward"===o.guessDirection?e.id:t}}),t.backButton.subscribeWithPriority(0,function(e){o.pop(),e()})}return Y(e,[{key:"navigateForward",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"back",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animated:!0,animationDirection:"back"};return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}},{key:"pop",value:function(){return U_(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.topOutlet;case 1:if(e.t0=t,!e.t0){e.next=6;break}return e.next=5,t.pop();case 5:e.t0=!e.sent;case 6:if(!e.t0){e.next=10;break}t=t.parentOutlet;case 8:e.next=1;break;case 10:case"end":return e.stop()}},e,this)}))}},{key:"setDirection",value:function(e,t,n,i){this.direction=e,this.animated=IA(e,t,n),this.animationBuilder=i}},{key:"setTopOutlet",value:function(e){this.topOutlet=e}},{key:"consumeTransition",value:function(){var e,t="root",n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=TA,this.animated=MA,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}},{key:"navigate",value:function(e,t){if(Array.isArray(e))return this.router.navigate(e,t);var n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}]),e}()).\u0275fac=function(e){return new(e||dA)(rr(EA),rr(Kd),rr(wk),rr(h_,8))},dA.\u0275prov=rt({token:dA,factory:function(e){return dA.\u0275fac(e)},providedIn:"root"}),dA.ngInjectableDef=rt({factory:function(){return new dA(rr(EA),rr(Kd),rr(wk),rr(h_,8))},token:dA,providedIn:"root"}),dA=z_([j_(3,dr())],dA)),IA=function(e,t,n){if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},TA="auto",MA=void 0,BA=function(e,t,n){n.forEach(function(n){return e[n]=Q_(t,n)})};function RA(e){return function(t){return e.inputs&&(n=t,i=e.inputs,r=n.prototype,i.forEach(function(e){Object.defineProperty(r,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular(function(){return n.el[e]=t})}})})),e.methods&&function(e,t){var n=e.prototype;t.forEach(function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular(function(){return t.el[e].apply(t.el,n)})}})}(t,e.methods),t;var n,i,r}}var LA,FA,NA,VA,zA,jA,HA,UA,WA,GA,qA,YA,ZA,KA,QA,XA,JA,$A,eC,tC,nC,iC,rC,oC,aC,sC,lC,uC,cC,dC,hC,fC,pC,gC,vC,mC,yC,bC,wC,kC,xC,_C,AC,CC,SC,EC,PC,OC,DC,IC,TC,MC,BC,RC,LC,FC,NC,VC,zC,jC,HC,UC,WC,GC,qC,YC,ZC,KC,QC,XC,JC,$C,eS,tS=((FC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||FC)(Ps(ku),Ps(Kl),Ps(Zc))},FC.\u0275cmp=Ft({type:FC,selectors:[["ion-app"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),FC),nS=((LC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||LC)(Ps(ku),Ps(Kl),Ps(Zc))},LC.\u0275cmp=Ft({type:LC,selectors:[["ion-avatar"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),LC),iS=((RC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||RC)(Ps(ku),Ps(Kl),Ps(Zc))},RC.\u0275cmp=Ft({type:RC,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),RC=z_([RA({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],RC)),rS=((BC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||BC)(Ps(ku),Ps(Kl),Ps(Zc))},BC.\u0275cmp=Ft({type:BC,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),BC=z_([RA({inputs:["color","mode"]})],BC)),oS=((MC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||MC)(Ps(ku),Ps(Kl),Ps(Zc))},MC.\u0275cmp=Ft({type:MC,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),MC=z_([RA({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],MC)),aS=((TC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||TC)(Ps(ku),Ps(Kl),Ps(Zc))},TC.\u0275cmp=Ft({type:TC,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),TC=z_([RA({inputs:["collapse"]})],TC)),sS=((IC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||IC)(Ps(ku),Ps(Kl),Ps(Zc))},IC.\u0275cmp=Ft({type:IC,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),IC=z_([RA({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],IC)),lS=((DC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||DC)(Ps(ku),Ps(Kl),Ps(Zc))},DC.\u0275cmp=Ft({type:DC,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),DC=z_([RA({inputs:["mode"]})],DC)),uS=((OC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||OC)(Ps(ku),Ps(Kl),Ps(Zc))},OC.\u0275cmp=Ft({type:OC,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),OC=z_([RA({inputs:["color","mode","translucent"]})],OC)),cS=((PC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||PC)(Ps(ku),Ps(Kl),Ps(Zc))},PC.\u0275cmp=Ft({type:PC,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),PC=z_([RA({inputs:["color","mode"]})],PC)),dS=((EC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||EC)(Ps(ku),Ps(Kl),Ps(Zc))},EC.\u0275cmp=Ft({type:EC,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),EC=z_([RA({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],EC)),hS=((SC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||SC)(Ps(ku),Ps(Kl),Ps(Zc))},SC.\u0275cmp=Ft({type:SC,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),SC=z_([RA({inputs:["color","disabled","mode","outline"]})],SC)),fS=((CC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||CC)(Ps(ku),Ps(Kl),Ps(Zc))},CC.\u0275cmp=Ft({type:CC,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),CC=z_([RA({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],CC)),pS=((AC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])})).\u0275fac=function(e){return new(e||AC)(Ps(ku),Ps(Kl),Ps(Zc))},AC.\u0275cmp=Ft({type:AC,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),AC=z_([RA({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],AC)),gS=((_C=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||_C)(Ps(ku),Ps(Kl),Ps(Zc))},_C.\u0275cmp=Ft({type:_C,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",dayNames:"dayNames",dayShortNames:"dayShortNames",dayValues:"dayValues",disabled:"disabled",displayFormat:"displayFormat",displayTimezone:"displayTimezone",doneText:"doneText",hourValues:"hourValues",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthNames:"monthNames",monthShortNames:"monthShortNames",monthValues:"monthValues",name:"name",pickerFormat:"pickerFormat",pickerOptions:"pickerOptions",placeholder:"placeholder",readonly:"readonly",value:"value",yearValues:"yearValues"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),_C=z_([RA({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],_C)),vS=((xC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||xC)(Ps(ku),Ps(Kl),Ps(Zc))},xC.\u0275cmp=Ft({type:xC,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),xC=z_([RA({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],xC)),mS=((kC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||kC)(Ps(ku),Ps(Kl),Ps(Zc))},kC.\u0275cmp=Ft({type:kC,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),kC=z_([RA({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],kC)),yS=((wC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||wC)(Ps(ku),Ps(Kl),Ps(Zc))},wC.\u0275cmp=Ft({type:wC,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),wC=z_([RA({inputs:["activated","side"]})],wC)),bS=((bC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||bC)(Ps(ku),Ps(Kl),Ps(Zc))},bC.\u0275cmp=Ft({type:bC,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),bC=z_([RA({inputs:["mode","translucent"]})],bC)),wS=((yC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||yC)(Ps(ku),Ps(Kl),Ps(Zc))},yC.\u0275cmp=Ft({type:yC,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),yC=z_([RA({inputs:["fixed"]})],yC)),kS=((mC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||mC)(Ps(ku),Ps(Kl),Ps(Zc))},mC.\u0275cmp=Ft({type:mC,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),mC=z_([RA({inputs:["collapse","mode","translucent"]})],mC)),xS=((vC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||vC)(Ps(ku),Ps(Kl),Ps(Zc))},vC.\u0275cmp=Ft({type:vC,selectors:[["ion-icon"]],inputs:{ariaHidden:"ariaHidden",ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),vC=z_([RA({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],vC)),_S=((gC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])})).\u0275fac=function(e){return new(e||gC)(Ps(ku),Ps(Kl),Ps(Zc))},gC.\u0275cmp=Ft({type:gC,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),gC=z_([RA({inputs:["alt","src"]})],gC)),AS=((pC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionInfinite"])})).\u0275fac=function(e){return new(e||pC)(Ps(ku),Ps(Kl),Ps(Zc))},pC.\u0275cmp=Ft({type:pC,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),pC=z_([RA({inputs:["disabled","position","threshold"],methods:["complete"]})],pC)),CS=((fC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||fC)(Ps(ku),Ps(Kl),Ps(Zc))},fC.\u0275cmp=Ft({type:fC,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),fC=z_([RA({inputs:["loadingSpinner","loadingText"]})],fC)),SS=((hC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])})).\u0275fac=function(e){return new(e||hC)(Ps(ku),Ps(Kl),Ps(Zc))},hC.\u0275cmp=Ft({type:hC,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),hC=z_([RA({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],hC)),ES=((dC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||dC)(Ps(ku),Ps(Kl),Ps(Zc))},dC.\u0275cmp=Ft({type:dC,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),dC=z_([RA({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],dC)),PS=((cC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||cC)(Ps(ku),Ps(Kl),Ps(Zc))},cC.\u0275cmp=Ft({type:cC,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),cC=z_([RA({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],cC)),OS=((uC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionSwipe"])})).\u0275fac=function(e){return new(e||uC)(Ps(ku),Ps(Kl),Ps(Zc))},uC.\u0275cmp=Ft({type:uC,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),uC=z_([RA({inputs:["side"]})],uC)),DS=((lC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionDrag"])})).\u0275fac=function(e){return new(e||lC)(Ps(ku),Ps(Kl),Ps(Zc))},lC.\u0275cmp=Ft({type:lC,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),lC=z_([RA({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],lC)),IS=((sC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||sC)(Ps(ku),Ps(Kl),Ps(Zc))},sC.\u0275cmp=Ft({type:sC,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),sC=z_([RA({inputs:["color","mode","position"]})],sC)),TS=((aC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||aC)(Ps(ku),Ps(Kl),Ps(Zc))},aC.\u0275cmp=Ft({type:aC,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),aC=z_([RA({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],aC)),MS=((oC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||oC)(Ps(ku),Ps(Kl),Ps(Zc))},oC.\u0275cmp=Ft({type:oC,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),oC=z_([RA({inputs:["color","lines","mode"]})],oC)),BS=((rC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])})).\u0275fac=function(e){return new(e||rC)(Ps(ku),Ps(Kl),Ps(Zc))},rC.\u0275cmp=Ft({type:rC,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),rC=z_([RA({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],rC)),RS=((iC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||iC)(Ps(ku),Ps(Kl),Ps(Zc))},iC.\u0275cmp=Ft({type:iC,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),iC=z_([RA({inputs:["autoHide","color","disabled","menu","mode","type"]})],iC)),LS=((nC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||nC)(Ps(ku),Ps(Kl),Ps(Zc))},nC.\u0275cmp=Ft({type:nC,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),nC=z_([RA({inputs:["autoHide","menu"]})],nC)),FS=((tC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||tC)(Ps(ku),Ps(Kl),Ps(Zc))},tC.\u0275cmp=Ft({type:tC,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),tC=z_([RA({inputs:["color","mode"]})],tC)),NS=((eC=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||eC)(Ps(ku),Ps(Kl),Ps(Zc))},eC.\u0275cmp=Ft({type:eC,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),eC=z_([RA({inputs:["color","disabled","mode","name","value"]})],eC)),VS=(($A=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange"])})).\u0275fac=function(e){return new(e||$A)(Ps(ku),Ps(Kl),Ps(Zc))},$A.\u0275cmp=Ft({type:$A,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),$A=z_([RA({inputs:["allowEmptySelection","name","value"]})],$A)),zS=((JA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||JA)(Ps(ku),Ps(Kl),Ps(Zc))},JA.\u0275cmp=Ft({type:JA,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),JA=z_([RA({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],JA)),jS=((XA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||XA)(Ps(ku),Ps(Kl),Ps(Zc))},XA.\u0275cmp=Ft({type:XA,selectors:[["ion-reorder"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),XA),HS=((QA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionItemReorder"])})).\u0275fac=function(e){return new(e||QA)(Ps(ku),Ps(Kl),Ps(Zc))},QA.\u0275cmp=Ft({type:QA,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),QA=z_([RA({inputs:["disabled"],methods:["complete"]})],QA)),US=((KA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||KA)(Ps(ku),Ps(Kl),Ps(Zc))},KA.\u0275cmp=Ft({type:KA,selectors:[["ion-row"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),KA),WS=((ZA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])})).\u0275fac=function(e){return new(e||ZA)(Ps(ku),Ps(Kl),Ps(Zc))},ZA.\u0275cmp=Ft({type:ZA,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),ZA=z_([RA({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],ZA)),GS=((YA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange"])})).\u0275fac=function(e){return new(e||YA)(Ps(ku),Ps(Kl),Ps(Zc))},YA.\u0275cmp=Ft({type:YA,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),YA=z_([RA({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],YA)),qS=((qA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||qA)(Ps(ku),Ps(Kl),Ps(Zc))},qA.\u0275cmp=Ft({type:qA,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),qA=z_([RA({inputs:["disabled","layout","mode","type","value"]})],qA)),YS=((GA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||GA)(Ps(ku),Ps(Kl),Ps(Zc))},GA.\u0275cmp=Ft({type:GA,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),GA=z_([RA({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],GA)),ZS=((WA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||WA)(Ps(ku),Ps(Kl),Ps(Zc))},WA.\u0275cmp=Ft({type:WA,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),WA=z_([RA({inputs:["disabled","value"]})],WA)),KS=((UA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||UA)(Ps(ku),Ps(Kl),Ps(Zc))},UA.\u0275cmp=Ft({type:UA,selectors:[["ion-slide"]],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),UA),QS=((HA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])})).\u0275fac=function(e){return new(e||HA)(Ps(ku),Ps(Kl),Ps(Zc))},HA.\u0275cmp=Ft({type:HA,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),HA=z_([RA({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],HA)),XS=((jA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||jA)(Ps(ku),Ps(Kl),Ps(Zc))},jA.\u0275cmp=Ft({type:jA,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),jA=z_([RA({inputs:["color","duration","name","paused"]})],jA)),JS=((zA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionSplitPaneVisible"])})).\u0275fac=function(e){return new(e||zA)(Ps(ku),Ps(Kl),Ps(Zc))},zA.\u0275cmp=Ft({type:zA,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),zA=z_([RA({inputs:["contentId","disabled","when"]})],zA)),$S=((VA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||VA)(Ps(ku),Ps(Kl),Ps(Zc))},VA.\u0275cmp=Ft({type:VA,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),VA=z_([RA({inputs:["color","size"]})],VA)),eE=((NA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement,BA(this,this.el,["ionChange","ionFocus","ionBlur"])})).\u0275fac=function(e){return new(e||NA)(Ps(ku),Ps(Kl),Ps(Zc))},NA.\u0275cmp=Ft({type:NA,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),NA=z_([RA({inputs:["checked","color","disabled","mode","name","value"]})],NA)),tE=((FA=Y(function e(t,n,i){Z(this,e),this.z=i,t.detach(),this.el=n.nativeElement})).\u0275fac=function(e){return new(e||FA)(Ps(ku),Ps(Kl),Ps(Zc))},FA.\u0275cmp=Ft({type:FA,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),FA=z_([RA({inputs:["color","mode"]})],FA)),nE=((LA=function(){function e(){Z(this,e)}return Y(e,[{key:"get",value:function(e,t){var n=rE();return n?n.get(e,t):null}},{key:"getBoolean",value:function(e,t){var n=rE();return!!n&&n.getBoolean(e,t)}},{key:"getNumber",value:function(e,t){var n=rE();return n?n.getNumber(e,t):0}},{key:"set",value:function(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=rE();n&&n.set(e,t)}}]),e}()).\u0275fac=function(e){return new(e||LA)},LA.\u0275prov=rt({token:LA,factory:function(e){return LA.\u0275fac(e)},providedIn:"root"}),LA.ngInjectableDef=rt({factory:function(){return new LA},token:LA,providedIn:"root"}),LA),iE=new ji("USERCONFIG"),rE=function(){if("undefined"!=typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},oE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.data=t}return Y(e,[{key:"get",value:function(e){return this.data[e]}}]),e}(),aE=((NC=function(){function e(t,n){Z(this,e),this.zone=t,this.appRef=n}return Y(e,[{key:"create",value:function(e,t,n){return new sE(e,t,n,this.appRef,this.zone)}}]),e}()).\u0275fac=function(e){return new(e||NC)(rr(Zc),rr(gd))},NC.\u0275prov=rt({token:NC,factory:function(e){return NC.\u0275fac(e)}}),NC),sE=function(){function e(t,n,i,r,o){Z(this,e),this.resolver=t,this.injector=n,this.location=i,this.appRef=r,this.zone=o,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return Y(e,[{key:"attachViewToDom",value:function(e,t,n,i){var r=this;return this.zone.run(function(){return new Promise(function(o){o(lE(r.zone,r.resolver,r.injector,r.location,r.appRef,r.elRefMap,r.elEventsMap,e,t,n,i))})})}},{key:"removeViewFromDom",value:function(e,t){var n=this;return this.zone.run(function(){return new Promise(function(e){var i=n.elRefMap.get(t);if(i){i.destroy(),n.elRefMap.delete(t);var r=n.elEventsMap.get(t);r&&(r(),n.elEventsMap.delete(t))}e()})})}}]),e}(),lE=function(e,t,n,i,r,o,a,s,l,u,c){var d=t.resolveComponentFactory(l),h=as.create({providers:hE(u),parent:n}),f=i?i.createComponent(d,i.length,h):d.create(h),p=f.instance,g=f.location.nativeElement;if(u&&Object.assign(p,u),c){var v,m=R(c);try{for(m.s();!(v=m.n()).done;){var y=v.value;g.classList.add(y)}}catch(w){m.e(w)}finally{m.f()}}var b=cE(e,p,g);return s.appendChild(g),i||r.attachView(f.hostView),f.changeDetectorRef.reattach(),o.set(g,f),a.set(g,b),g},uE=[q_.a,q_.b,q_.c,q_.d,q_.e],cE=function(e,t,n){return e.run(function(){var e=uE.filter(function(e){return"function"==typeof t[e]}).map(function(e){var i=function(n){return t[e](n.detail)};return n.addEventListener(e,i),function(){return n.removeEventListener(e,i)}});return function(){return e.forEach(function(e){return e()})}})},dE=new ji("NavParamsToken"),hE=function(e){return[{provide:dE,useValue:e},{provide:oE,useFactory:fE,deps:[dE]}]},fE=function(e){return new oE(e)},pE=function(e,t){return(e=e.filter(function(e){return e.stackId!==t.stackId})).push(t),e},gE=function(e,t){var n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},vE=function(e,t){if(e)for(var n=mE(t),i=0;i<n.length;i++){if(i>=e.length)return n[i];if(n[i]!==e[i])return}},mE=function(e){return e.split("/").map(function(e){return e.trim()}).filter(function(e){return""!==e})},yE=function(e){e&&(e.ref.destroy(),e.unlistenEvents())},bE=function(){function e(t,n,i,r,o,a){Z(this,e),this.containerEl=n,this.router=i,this.navCtrl=r,this.zone=o,this.location=a,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?mE(t):void 0}return Y(e,[{key:"createView",value:function(e,t){var n=gE(this.router,t),i=e&&e.location&&e.location.nativeElement,r=cE(this.zone,e.instance,i);return{id:this.nextId++,stackId:vE(this.tabsPrefix,n),unlistenEvents:r,element:i,ref:e,url:n}}},{key:"getExistingView",value:function(e){var t=gE(this.router,e),n=this.views.find(function(e){return e.url===t});return n&&n.ref.changeDetectorRef.reattach(),n}},{key:"setActive",value:function(e){var t=this,n=this.navCtrl.consumeTransition(),i=n.direction,r=n.animation,o=n.animationBuilder,a=this.activeView,s=function(e,t){return!t||e.stackId!==t.stackId}(e,a);s&&(i="back",r=void 0);var l,u=this.views.slice(),c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var d=this.views.includes(e),h=this.insertView(e,i);d||e.ref.changeDetectorRef.detectChanges();var f=e.animationBuilder;return void 0!==o||"back"!==i||s||void 0===f||(o=f),a&&(a.animationBuilder=o),this.zone.runOutsideAngular(function(){return t.wait(function(){return a&&a.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),t.transition(e,a,r,t.canGoBack(1),!1,o).then(function(){return wE(e,h,u,t.location)}).then(function(){return{enteringView:e,direction:i,animation:r,tabSwitch:s}})})})}},{key:"canGoBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.getStack(t).length>e}},{key:"pop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.zone.run(function(){var i=t.getStack(n);if(i.length<=e)return Promise.resolve(!1);var r=i[i.length-e-1],o=r.url,a=r.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(o=s.route._routerState.snapshot.url)}var l=t.navCtrl.consumeTransition().animationBuilder;return t.navCtrl.navigateBack(o,Object.assign({},r.savedExtras,{animation:l})).then(function(){return!0})})}},{key:"startBackTransition",value:function(){var e=this,t=this.activeView;if(t){var n=this.getStack(t.stackId),i=n[n.length-2],r=i.animationBuilder;return this.wait(function(){return e.transition(i,t,"back",e.canGoBack(2),!0,r)})}return Promise.resolve()}},{key:"endBackTransition",value:function(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&kE(this.activeView,this.views,this.views,this.location)}},{key:"getLastUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}},{key:"getRootUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[0]:void 0}},{key:"getActiveStackId",value:function(){return this.activeView?this.activeView.stackId:void 0}},{key:"destroy",value:function(){this.containerEl=void 0,this.views.forEach(yE),this.activeView=void 0,this.views=[]}},{key:"getStack",value:function(e){return this.views.filter(function(t){return t.stackId===e})}},{key:"insertView",value:function(e,t){return this.activeView=e,this.views=function(e,t,n){return"root"===n?pE(e,t):"forward"===n?function(e,t){return e.indexOf(t)>=0?e=e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):e.push(t),e}(e,t):function(e,t){return e.indexOf(t)>=0?e.filter(function(e){return e.stackId!==t.stackId||e.id<=t.id}):pE(e,t)}(e,t)}(this.views,e,t),this.views.slice()}},{key:"transition",value:function(e,t,n,i,r,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);var a=e?e.element:void 0,s=t?t.element:void 0,l=this.containerEl;return a&&a!==s&&(a.classList.add("ion-page"),a.classList.add("ion-page-invisible"),a.parentElement!==l&&l.appendChild(a),l.commit)?l.commit(a,s,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:i,progressAnimation:r,animationBuilder:o}):Promise.resolve(!1)}},{key:"wait",value:function(e){return U_(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0!==this.runningTask,!t.t0){t.next=5;break}return t.next=4,this.runningTask;case 4:this.runningTask=void 0;case 5:return t.abrupt("return",this.runningTask=e());case 6:case"end":return t.stop()}},t,this)}))}}]),e}(),wE=function(e,t,n,i){return"function"==typeof requestAnimationFrame?new Promise(function(r){requestAnimationFrame(function(){kE(e,t,n,i),r()})}):Promise.resolve()},kE=function(e,t,n,i){n.filter(function(e){return!t.includes(e)}).forEach(yE),t.forEach(function(t){var n=i.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){var r=t.element;r.setAttribute("aria-hidden","true"),r.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})},xE=((VC=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f){Z(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.config=a,this.navCtrl=s,this.parentOutlet=f,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Zb(null),this.stackEvents=new ac,this.activateEvents=new ac,this.deactivateEvents=new ac,this.nativeEl=u.nativeElement,this.name=r||"primary",this.tabsPrefix="true"===o?gE(c,h):void 0,this.stackCtrl=new bE(this.tabsPrefix,this.nativeEl,c,s,d,l),t.onChildOutletCreated(this.name,this)}return Y(e,[{key:"animation",set:function(e){this.nativeEl.animation=e}},{key:"animated",set:function(e){this.nativeEl.animated=e}},{key:"swipeGesture",set:function(e){var t=this;this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:function(){return t.stackCtrl.canGoBack(1)},onStart:function(){return t.stackCtrl.startBackTransition()},onEnd:function(e){return t.stackCtrl.endBackTransition(e)}}:void 0}},{key:"ngOnDestroy",value:function(){this.stackCtrl.destroy()}},{key:"getContext",value:function(){return this.parentContexts.getContext(this.name)}},{key:"ngOnInit",value:function(){var e=this;if(!this.activated){var t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}new Promise(function(t){return Object(G_.c)(e.nativeEl,t)}).then(function(){void 0===e._swipeGesture&&(e.swipeGesture=e.config.getBoolean("swipeBackEnabled","ios"===e.nativeEl.mode))})}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){throw new Error("incompatible reuse strategy")}},{key:"attach",value:function(e,t){throw new Error("incompatible reuse strategy")}},{key:"deactivate",value:function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var e=this.getContext();if(e.route){var t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}},{key:"activateWith",value:function(e,t){var n,i=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var r=this.stackCtrl.getExistingView(e);if(r){n=this.activated=r.ref;var o=r.savedData;o&&(this.getContext().children.contexts=o),this.updateActivatedRouteProxy(n.instance,e)}else{var a=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,l=new Zb(null),u=this.createActivatedRouteProxy(l,e),c=new _E(u,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,c),l.next(n.instance),r=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,u),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=r,this.stackCtrl.setActive(r).then(function(e){i.navCtrl.setTopOutlet(i),i.activateEvents.emit(n.instance),i.stackEvents.emit(e)})}},{key:"canGoBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.canGoBack(e,t)}},{key:"pop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.pop(e,t)}},{key:"getLastUrl",value:function(e){var t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}},{key:"getLastRouteView",value:function(e){return this.stackCtrl.getLastUrl(e)}},{key:"getRootView",value:function(e){return this.stackCtrl.getRootUrl(e)}},{key:"getActiveStackId",value:function(){return this.stackCtrl.getActiveStackId()}},{key:"createActivatedRouteProxy",value:function(e,t){var n=new Uk;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}},{key:"proxyObservable",value:function(e,t){var n=this;return e.pipe(rb(function(e){return!!e}),sw(function(e){return n.currentActivatedRoute$.pipe(rb(function(t){return null!==t&&t.component===e}),sw(function(e){return e&&e.activatedRoute[t]}),J_())}))}},{key:"updateActivatedRouteProxy",value:function(e,t){var n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}}]),e}()).\u0275fac=function(e){return new(e||VC)(Ps(r_),Ps(Mu),Ps(Gl),Ni("name"),Ni("tabs"),Ps(nE),Ps(DA),Ps(Kd),Ps(Kl),Ps(h_),Ps(Zc),Ps(Uk),Ps(VC,12))},VC.\u0275dir=Ut({type:VC,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),VC=z_([j_(3,zi("name")),j_(4,dr()),j_(4,zi("tabs")),j_(12,hr()),j_(12,dr())],VC)),_E=function(){function e(t,n,i){Z(this,e),this.route=t,this.childContexts=n,this.parent=i}return Y(e,[{key:"get",value:function(e,t){return e===Uk?this.route:e===r_?this.childContexts:this.parent.get(e,t)}}]),e}(),AE=((GC=function(){function e(t,n,i){Z(this,e),this.routerOutlet=t,this.navCtrl=n,this.config=i}return Y(e,[{key:"onClick",value:function(e){var t=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),e.preventDefault()):null!=t&&(this.navCtrl.navigateBack(t,{animation:this.routerAnimation}),e.preventDefault())}}]),e}()).\u0275fac=function(e){return new(e||GC)(Ps(xE,8),Ps(DA),Ps(nE))},GC.\u0275dir=Ut({type:GC,selectors:[["ion-back-button"]],hostBindings:function(e,t){1&e&&js("click",function(e){return t.onClick(e)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),GC=z_([j_(0,dr())],GC)),CE=((WC=function(){function e(t,n,i,r,o){Z(this,e),this.locationStrategy=t,this.navCtrl=n,this.elementRef=i,this.router=r,this.routerLink=o,this.routerDirection="forward"}return Y(e,[{key:"ngOnInit",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnChanges",value:function(){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"updateTargetUrlAndHref",value:function(){if(this.routerLink){var e=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=e}}},{key:"onClick",value:function(e){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),e.preventDefault()}}]),e}()).\u0275fac=function(e){return new(e||WC)(Ps(jd),Ps(DA),Ps(Kl),Ps(h_),Ps(f_,8))},WC.\u0275dir=Ut({type:WC,selectors:[["","routerLink",""]],hostBindings:function(e,t){1&e&&js("click",function(e){return t.onClick(e)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[tn]}),WC=z_([j_(4,dr())],WC)),SE=((UC=Y(function e(t){Z(this,e),this.templateRef=t})).\u0275fac=function(e){return new(e||UC)(Ps(Eu))},UC.\u0275dir=Ut({type:UC,selectors:[["","virtualFooter",""]]}),UC),EE=((HC=Y(function e(t){Z(this,e),this.templateRef=t})).\u0275fac=function(e){return new(e||HC)(Ps(Eu))},HC.\u0275dir=Ut({type:HC,selectors:[["","virtualHeader",""]]}),HC),PE=((jC=Y(function e(t,n){Z(this,e),this.templateRef=t,this.viewContainer=n})).\u0275fac=function(e){return new(e||jC)(Ps(Eu),Ps(Mu))},jC.\u0275dir=Ut({type:jC,selectors:[["","virtualItem",""]]}),jC),OE=((zC=function(){function e(t,n,i){Z(this,e),this.z=t,this.iterableDiffers=n,this.refMap=new WeakMap,this.el=i.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return Y(e,[{key:"ngOnChanges",value:function(e){if(this.trackBy&&"items"in e){var t=e.items.currentValue;if(void 0===this.differ&&null!=t)try{this.differ=this.iterableDiffers.find(t).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"'. VirtualScroll only supports binding to Iterables such as Arrays."))}}}},{key:"ngDoCheck",value:function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}},{key:"nodeRender",value:function(e,t,n){var i=this;return this.z.run(function(){var r;if(e){var o=(r=i.refMap.get(e)).context;o.$implicit=t.value,o.index=t.index}else r=i.itmTmp.viewContainer.createEmbeddedView(i.getComponent(t.type),{$implicit:t.value,index:n},n),e=DE(r),i.refMap.set(e,r);return r.detectChanges(),e})}},{key:"getComponent",value:function(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}}]),e}()).\u0275fac=function(e){return new(e||zC)(Ps(Zc),Ps(pu),Ps(Kl))},zC.\u0275cmp=Ft({type:zC,selectors:[["ion-virtual-scroll"]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,PE,1),wc(n,EE,1),wc(n,SE,1)),2&e&&(yc(i=kc())&&(t.itmTmp=i.first),yc(i=kc())&&(t.hdrTmp=i.first),yc(i=kc())&&(t.ftrTmp=i.first))},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[tn],ngContentSelectors:gA,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},encapsulation:2,changeDetection:0}),zC=z_([RA({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],zC)),DE=function(e){for(var t=e.rootNodes,n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")},IE=function(){function e(t){Z(this,e),this.ctrl=t}return Y(e,[{key:"create",value:function(e){return this.ctrl.create(e||{})}},{key:"dismiss",value:function(e,t,n){return this.ctrl.dismiss(e,t,n)}},{key:"getTop",value:function(){return this.ctrl.getTop()}}]),e}(),TE=((JC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.c)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||JC)},JC.\u0275prov=rt({token:JC,factory:function(e){return JC.\u0275fac(e)},providedIn:"root"}),JC.ngInjectableDef=rt({factory:function(){return new JC},token:JC,providedIn:"root"}),JC),ME=((XC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.b)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||XC)},XC.\u0275prov=rt({token:XC,factory:function(e){return XC.\u0275fac(e)},providedIn:"root"}),XC.ngInjectableDef=rt({factory:function(){return new XC},token:XC,providedIn:"root"}),XC),BE=((QC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.k)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||QC)},QC.\u0275prov=rt({token:QC,factory:function(e){return QC.\u0275fac(e)},providedIn:"root"}),QC.ngInjectableDef=rt({factory:function(){return new QC},token:QC,providedIn:"root"}),QC),RE=((KC=function(){function e(){Z(this,e)}return Y(e,[{key:"open",value:function(e){return Y_.a.open(e)}},{key:"close",value:function(e){return Y_.a.close(e)}},{key:"toggle",value:function(e){return Y_.a.toggle(e)}},{key:"enable",value:function(e,t){return Y_.a.enable(e,t)}},{key:"swipeGesture",value:function(e,t){return Y_.a.swipeGesture(e,t)}},{key:"isOpen",value:function(e){return Y_.a.isOpen(e)}},{key:"isEnabled",value:function(e){return Y_.a.isEnabled(e)}},{key:"get",value:function(e){return Y_.a.get(e)}},{key:"getOpen",value:function(){return Y_.a.getOpen()}},{key:"getMenus",value:function(){return Y_.a.getMenus()}}]),e}()).\u0275fac=function(e){return new(e||KC)},KC.\u0275prov=rt({token:KC,factory:function(e){return KC.\u0275fac(e)},providedIn:"root"}),KC.ngInjectableDef=rt({factory:function(){return new KC},token:KC,providedIn:"root"}),KC),LE=((ZC=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Z_.l)).angularDelegate=e,o.resolver=i,o.injector=r,o}return Y(n,[{key:"create",value:function(e){return C(M(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(IE)).\u0275fac=function(e){return new(e||ZC)(rr(aE),rr(Gl),rr(as))},ZC.\u0275prov=rt({token:ZC,factory:function(e){return ZC.\u0275fac(e)}}),ZC),FE=((YC=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,Z_.d)).angularDelegate=e,o.resolver=i,o.injector=r,o}return Y(n,[{key:"create",value:function(e){return C(M(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(IE)).\u0275fac=function(e){return new(e||YC)(rr(aE),rr(Gl),rr(as))},YC.\u0275prov=rt({token:YC,factory:function(e){return YC.\u0275fac(e)}}),YC),NE=((qC=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.call(this,Z_.o)}return Y(n)}(IE)).\u0275fac=function(e){return new(e||qC)},qC.\u0275prov=rt({token:qC,factory:function(e){return qC.\u0275fac(e)},providedIn:"root"}),qC.ngInjectableDef=rt({factory:function(){return new qC},token:qC,providedIn:"root"}),qC),VE=function(){function e(){Z(this,e)}return Y(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"shouldAttach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){if(e.routeConfig!==t.routeConfig)return!1;var n=e.params,i=t.params,r=Object.keys(n),o=Object.keys(i);if(r.length!==o.length)return!1;for(var a=0,s=r;a<s.length;a++){var l=s[a];if(i[l]!==n[l])return!1}return!0}}]),e}(),zE=!1,jE=function(e,t,n){return function(){var i=t.defaultView;if(i&&"undefined"!=typeof window){zE&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),zE=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:function(e){return n.run(e)}});var r="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(S.e(7).then(S.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(S.e(5).then(S.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(function(){return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:vA,jmp:function(e){return n.runOutsideAngular(e)},ael:function(e,t,n,i){e[r](t,n,i)},rel:function(e,t,n,i){e.removeEventListener(t,n,i)}},"undefined"==typeof window?Promise.resolve():(K_.b&&K_.b.supports&&K_.b.supports("color","var(--c)")?Object(K_.d)():S.e(6).then(S.t.bind(null,"9qUq",7)).then(function(){return(K_.n.$cssShim$=K_.q.__cssshim)?K_.n.$cssShim$.i():0})).then(function(){return pA(),Object(K_.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)});var e})}}},HE=((eS=$C=function(){function e(){Z(this,e)}return Y(e,null,[{key:"forRoot",value:function(e){return{ngModule:$C,providers:[{provide:iE,useValue:e},{provide:Ec,useFactory:jE,multi:!0,deps:[iE,Od,Zc]}]}}}]),e}()).\u0275fac=function(e){return new(e||eS)},eS.\u0275mod=jt({type:eS}),eS.\u0275inj=at({providers:[aE,LE,FE],imports:[[bf]]}),eS),UE=S("Hfs6"),WE=S.n(UE);function GE(e){return!!e&&(e instanceof ue||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var qE=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return Y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){E(n,e);var t=O(n);function n(e,i){return Z(this,n),t.call(this)}return Y(n,[{key:"schedule",value:function(e){return this}}]),n}(te)),YE=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return Y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?C(M(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?C(M(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?C(M(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(qE),ZE=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;Z(this,e),this.SchedulerAction=t,this.now=n}return Y(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),KE=function(e){E(n,e);var t=O(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ZE.now;return Z(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==I(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return Y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):C(M(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(ZE),QE=new(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(KE))(YE);function XE(e,t){return new ue(t?function(n){return t.schedule(JE,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function JE(e){var t=e.error;e.subscriber.error(t)}var $E,eP=(($E=function(){function e(t,n,i){Z(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return Y(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return nb(this.value);case"E":return XE(this.error);case"C":return ow()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new $E("C"),$E.undefinedValueNotification=new $E("N",void 0),$E),tP=function(e){E(n,e);var t=O(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Z(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return Y(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new nP(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(eP.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(eP.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(eP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(re),nP=Y(function e(t,n){Z(this,e),this.notification=t,this.destination=n}),iP=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return Z(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return Y(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}C(M(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new rP(this._getNow(),e)),this._trimBufferThenGetEvents()),C(M(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new he;if(this.isStopped||this.hasError?t=te.EMPTY:(this.observers.push(e),t=new fe(this,e)),r&&e.add(e=new tP(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||QE).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(ge),rP=Y(function e(t,n){Z(this,e),this.time=t,this.value=n});function oP(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var i;u++,!t||c?(c=!1,t=new iP(r,a,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}var aP,sP,lP=Y(function e(){Z(this,e)}),uP=((aP=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"getTranslation",value:function(e){return nb({})}}]),n}(lP)).\u0275fac=function(e){return cP(e||aP)},aP.\u0275prov=rt({token:aP,factory:aP.\u0275fac}),aP),cP=Li(uP),dP=Y(function e(){Z(this,e)}),hP=((sP=function(){function e(){Z(this,e)}return Y(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||sP)},sP.\u0275prov=rt({token:sP,factory:sP.\u0275fac}),sP);function fP(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,r,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!fP(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!fP(e[i],t[i]))return!1;return!0}}return!1}function pP(e){return null!=e}function gP(e){return e&&"object"==typeof e&&!Array.isArray(e)}function vP(e,t){var n=Object.assign({},e);return gP(e)&&gP(t)&&Object.keys(t).forEach(function(i){gP(t[i])&&i in e?n[i]=vP(e[i],t[i]):Object.assign(n,B({},i,t[i]))}),n}var mP,yP,bP,wP,kP,xP,_P,AP,CP,SP,EP,PP,OP=Y(function e(){Z(this,e)}),DP=((mP=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return Y(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!pP(e)||!pP(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,function(e,i){var r=n.getValue(t,i);return pP(r)?r:e}):e}}]),n}(OP)).\u0275fac=function(e){return IP(e||mP)},mP.\u0275prov=rt({token:mP,factory:mP.\u0275fac}),mP),IP=Li(DP),TP=Y(function e(){Z(this,e)}),MP=((yP=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(TP)).\u0275fac=function(e){return BP(e||yP)},yP.\u0275prov=rt({token:yP,factory:yP.\u0275fac}),yP),BP=Li(MP),RP=Y(function e(){Z(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new ac,this.onLangChange=new ac,this.onDefaultLangChange=new ac}),LP=new ji("USE_STORE"),FP=new ji("USE_DEFAULT_LANG"),NP=new ji("DEFAULT_LANGUAGE"),VP=new ji("USE_EXTEND"),zP=((kP=function(){function e(t,n,i,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0;Z(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=s,this.extend=l,this.pending=!1,this._onTranslationChange=new ac,this._onLangChange=new ac,this._onDefaultLangChange=new ac,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}return Y(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(dw(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return nb(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(dw(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),nb(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(oP(1),dw(1));return this.loadingTranslations=n.pipe(ye(function(n){return t.compiler.compileTranslations(n,e)}),oP(1),dw(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?vP(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},a=!1,s=R(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;o[l]=this.getParsedResult(e,l,n),GE(o[l])&&(a=!0)}}catch(c){s.e(c)}finally{s.f()}return a?Zv(t.map(function(e){return GE(o[e])?o[e]:nb(o[e])})).pipe(ye(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!pP(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(ib(function(i){return GE(i=n.getParsedResult(i,e,t))?i:nb(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return GE(i)?i:nb(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!pP(e)||!e.length)throw new Error('Parameter "key" required');return iw(aw(function(){return n.get(e,t)}),this.onTranslationChange.pipe(sw(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:nb(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!pP(e)||!e.length)throw new Error('Parameter "key" required');return iw(aw(function(){return n.get(e,t)}),this.onLangChange.pipe(sw(function(i){var r=n.getParsedResult(i.translations,e,t);return GE(r)?r:nb(r)})))}},{key:"instant",value:function(e,t){if(!pP(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(GE(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}()).\u0275fac=function(e){return new(e||kP)(rr(RP),rr(lP),rr(TP),rr(OP),rr(dP),rr(FP),rr(LP),rr(VP),rr(NP))},kP.\u0275prov=rt({token:kP,factory:kP.\u0275fac}),kP),jP=((wP=function(){function e(t,n){Z(this,e),this.translate=t,this._ref=n,this.value=""}return Y(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);GE(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(fP(e,this.lastKey)&&fP(r,this.lastParams))return this.value;if(pP(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){var a=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+r[0])}}else"object"!=typeof r[0]||Array.isArray(r[0])||(t=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(i){n.lastKey&&i.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(i){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))})),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}()).\u0275fac=function(e){return new(e||wP)(Ps(zP),Sc())},wP.\u0275pipe=Wt({name:"translate",type:wP,pure:!1}),wP.\u0275prov=rt({token:wP,factory:wP.\u0275fac}),wP),HP=((bP=function(){function e(){Z(this,e)}return Y(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:lP,useClass:uP},t.compiler||{provide:TP,useClass:MP},t.parser||{provide:OP,useClass:DP},t.missingTranslationHandler||{provide:dP,useClass:hP},RP,{provide:LP,useValue:t.isolate},{provide:FP,useValue:t.useDefaultLang},{provide:VP,useValue:t.extend},{provide:NP,useValue:t.defaultLanguage},zP]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:lP,useClass:uP},t.compiler||{provide:TP,useClass:MP},t.parser||{provide:OP,useClass:DP},t.missingTranslationHandler||{provide:dP,useClass:hP},{provide:LP,useValue:t.isolate},{provide:FP,useValue:t.useDefaultLang},{provide:VP,useValue:t.extend},{provide:NP,useValue:t.defaultLanguage},zP]}}}]),e}()).\u0275fac=function(e){return new(e||bP)},bP.\u0275mod=jt({type:bP}),bP.\u0275inj=at({}),bP),UP=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},WP=((xP=function(){function e(t,n,i){Z(this,e),this.translate=t,this.router=n,this.toastController=i}return Y(e,[{key:"success",value:function(e){return UP(this,void 0,void 0,U().mark(function t(){var n;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-success",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"message",value:function(e){return UP(this,void 0,void 0,U().mark(function t(){var n;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.includes("lang.")?this.translate.instant(e):e,t.next=3,this.toastController.create({cssClass:"notif-primary",duration:3e3,message:n,position:"top"});case 3:t.sent.present();case 4:case"end":return t.stop()}},t,this)}))}},{key:"error",value:function(e){return UP(this,void 0,void 0,U().mark(function t(){var n;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return"object"==typeof e&&(e=e.toString()),n=e.indexOf("lang.")>-1?this.translate.instant(e):e,t.next=4,this.toastController.create({cssClass:"notif-error",duration:3e3,message:n,position:"top"});case 4:t.sent.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"handleErrors",value:function(e){console.log(e),0===e.status&&"Unknown Error"===e.statusText?this.error("lang.connectionServerFailed"):void 0!==e.error.errors?(this.error(void 0!==e.error.lang?"lang."+e.error.lang:e.error.errors),403!==e.status&&404!==e.status||this.router.navigate(["/home"])):this.error(void 0!==e.error.exception?e.error.exception[0].message:void 0!==e.error.error&&void 0!==e.error.error.message?e.error.error.message:void 0!==e.error.error[0]?e.error.error[0].message:e.message)}}]),e}()).\u0275fac=function(e){return new(e||xP)(rr(zP),rr(h_),rr(NE))},xP.\u0275prov=rt({token:xP,factory:xP.\u0275fac}),xP),GP=function(){function e(){Z(this,e)}return Y(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),qP=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return Y(n)}(GP),YP=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return Y(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,C(M(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,C(M(n.prototype),"detach",this).call(this)}}]),n}(GP),ZP=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this)).element=e instanceof Kl?e.nativeElement:e,i}return Y(n)}(GP),KP=function(){function e(){Z(this,e),this._isDisposed=!1,this.attachDomPortal=null}return Y(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof qP?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof YP?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof ZP?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),QP=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s,l;return Z(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=o,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),C((s=I(l),M(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=a,l}return Y(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){C(M(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(KP),XP=((PP=function(e){E(n,e);var t=O(n);function n(e,i,r){var o,a;return Z(this,n),(a=t.call(this))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new ac,a.attachDomPortal=function(e){var t=e.element,i=a._document.createComment("dom-portal");e.setAttachedHost(I(a)),t.parentNode.insertBefore(i,t),a._getRootNode().appendChild(t),C((o=I(a),M(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},a._document=r,a}return Y(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&C(M(n.prototype),"detach",this).call(this),e&&C(M(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){C(M(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),C(M(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return C(M(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(KP)).\u0275fac=function(e){return new(e||PP)(Ps(Gl),Ps(Mu),Ps(Od))},PP.\u0275dir=Ut({type:PP,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ls]}),PP),JP=((EP=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||EP)},EP.\u0275mod=jt({type:EP}),EP.\u0275inj=at({}),EP),$P=((SP=function(){function e(t,n,i){Z(this,e),this.componentFactoryResolver=t,this.injector=n,this.appRef=i,this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentToobal="mainDocumentDetail",this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.mobileMode=!0,this.smartphoneMode=!0,this.mode="",this.scale=1,this.x=0,this.y=90,this.dragging=!1,this.mustRefreshCerts=!0,this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}return Y(e,[{key:"reset",value:function(){this.mainDocumentId=0,this.signaturesContent=[],this.datesContent=[],this.notesContent=[],this.signaturesList=[],this.signaturesListSubstituted=[],this.currentPage=1,this.totalPage=1,this.stampLock=!1,this.currentAction=0,this.indexDocumentsList=0,this.documentsList=[],this.documentsListCount={},this.workingAreaWidth=0,this.workingAreaHeight=0,this.currentToobal="mainDocumentDetail",this.smartphoneMode=window.screen.width<=360,this.mobileMode=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.mode="",this.scale=1,this.x=0,this.y=90}},{key:"getAppSession",value:function(){this.appSession="AD098AD9ADA0D9IAXKJ90AKS099S"}},{key:"initTemplate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"adminMenu";document.getElementById(""+n).innerHTML="",this.portalHost=new QP(document.querySelector("#"+n),this.componentFactoryResolver,this.appRef,this.injector);var i=new YP(e,t);this.portalHost.attach(i)}},{key:"detachTemplate",value:function(){this.portalHost.detach()}}]),e}()).\u0275fac=function(e){return new(e||SP)(rr(Gl),rr(as),rr(gd))},SP.\u0275prov=rt({token:SP,factory:SP.\u0275fac}),SP),eO=((CP=function(){function e(){Z(this,e)}return Y(e,[{key:"setAppSession",value:function(e){this.appSession=e}},{key:"getAppSession",value:function(){return this.appSession}},{key:"save",value:function(e,t){localStorage.setItem(e+"_"+this.getAppSession(),t)}},{key:"get",value:function(e){return localStorage.getItem(e+"_"+this.getAppSession())}},{key:"remove",value:function(e){localStorage.removeItem(e+"_"+this.getAppSession())}}]),e}()).\u0275fac=function(e){return new(e||CP)},CP.\u0275prov=rt({token:CP,factory:CP.\u0275fac,providedIn:"root"}),CP),tO=((AP=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.localStorage=o,this.navCtrl=a,this.authMode="default",this.changeKey=!1,this.casToken=null,this.coreUrl="",this.authUri="",this.user={},this.signatureRoles=[],this.authFailed=!1}return Y(e,[{key:"cleanUrl",value:function(e){return this.localStorage.remove("MaarchCourrierUrl_"+e)}},{key:"getToken",value:function(){return this.localStorage.get("MaarchParapheurToken")}},{key:"setToken",value:function(e){this.localStorage.save("MaarchParapheurToken",e)}},{key:"getRefreshToken",value:function(){return this.localStorage.get("MaarchParapheurRefreshToken")}},{key:"setRefreshToken",value:function(e){this.localStorage.save("MaarchParapheurRefreshToken",e)}},{key:"clearTokens",value:function(){this.localStorage.remove("MaarchParapheurToken"),this.localStorage.remove("MaarchParapheurRefreshToken")}},{key:"refreshToken",value:function(){var e=this;return this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).pipe(Mw(function(t){e.setToken(t.token),e.updateUserInfo(t.token)}),yw(function(t){return e.logout(),e.notificationService.error("lang.sessionExpired"),nb(!1)}))}},{key:"logout",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null===this.getRefreshToken())return this.clearTokens(),void this.navCtrl.navigateRoot("/login");["cas"].indexOf(this.authMode)>-1&&!n?this.SsoLogout(t):i&&this.http.get("../rest/authenticate/logout").subscribe(),this.http.get("../rest/authenticate/logout").pipe(Mw(function(){e.clearTokens(),e.navCtrl.navigateRoot("/login")}),yw(function(t){return e.notificationService.handleErrors(t),e.clearTokens(),e.navCtrl.navigateRoot("/login"),nb(!1)})).subscribe()}},{key:"SsoLogout",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.http.get("../rest/authenticate/logout").pipe(Mw(function(n){return i=e,o=U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.redirectAfterLogout(t),window.location.href=n.logoutUrl;case 1:case"end":return e.stop()}},e,this)}),new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,a)}s((o=o.apply(i,[])).next())});var i,r,o})).subscribe()}},{key:"redirectAfterLogout",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!==this.getToken()&&e&&this.cleanUrl(JSON.parse(atob(this.getToken().split(".")[1])).user.id),this.clearTokens()}},{key:"saveTokens",value:function(e,t){this.setToken(e),this.setRefreshToken(t)}},{key:"isAuth",value:function(){return null!==this.getToken()}},{key:"updateUserInfo",value:function(e){var t=this.user.picture,n=JSON.parse(atob(e.split(".")[1]));this.user=n.user,this.authMode=n.connection,this.user.picture=t}},{key:"updateUserInfoWithTokenRefresh",value:function(){var e=this;this.http.get("../rest/authenticate/token",{params:{refreshToken:this.getRefreshToken()}}).subscribe({next:function(t){e.setToken(t.token),e.updateUserInfo(e.getToken())},error:function(t){e.notificationService.handleErrors(t)}})}},{key:"setUser",value:function(e){this.user=e}},{key:"getSignatureMode",value:function(e){return"visa"===e?"stamp":e}},{key:"getWorkflowMode",value:function(e){return this.signatureRoles.filter(function(t){return t.id===e})[0].type}},{key:"setCachedUrl",value:function(e){this.localStorage.save("MaarchParapheurCacheUrl",e)}},{key:"getCachedUrl",value:function(){return this.localStorage.get("MaarchParapheurCacheUrl")}},{key:"cleanCachedUrl",value:function(){return this.localStorage.remove("MaarchParapheurCacheUrl")}},{key:"getCasToken",value:function(){null!==window.location.search.match(/ticket=[.]*/g)&&(this.casToken=window.location.search.substring(1,window.location.search.length))}}]),e}()).\u0275fac=function(e){return new(e||AP)(rr(Tb),rr(h_),rr(WP),rr($P),rr(eO),rr(DA))},AP.\u0275prov=rt({token:AP,factory:AP.\u0275fac,providedIn:"root"}),AP),nO=((_P=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.router=n,this.notificationService=i,this.signaturesService=r,this.authService=o,this.excludeUrls=["../rest/authenticate","../rest/authenticate/token","../rest/authenticationInformations","../rest/password","../rest/passwordRules","../rest/languages/fr","../rest/languages/en"],this.frontUrl=["../rest/documents/","../rest/users/","../rest/groups/","../rest/configurations/"],this.byPassHandleErrors=[{route:"/password",method:["PUT"]},{route:"/logout",method:["GET"]}],this.isRefreshing=!1,this.refreshTokenSubject=new Zb(null)}return Y(e,[{key:"addAuthHeader",value:function(e){var t=this.authService.getToken();return e.clone({setHeaders:{Authorization:"Bearer "+t}})}},{key:"intercept",value:function(e,t){var n=this;return(this.excludeUrls.indexOf(e.url)>-1||e.url.indexOf("/password")>-1)&&-1===e.url.indexOf("/passwordRules")&&-1===e.method.indexOf("PUT")?t.handle(e):(e=this.addAuthHeader(e),t.handle(e).pipe(yw(function(i){return n.byPassHandleErrors.filter(function(t){return e.url.indexOf(t.route)>-1&&t.method.indexOf(e.method)>-1}).length>0?t.handle(e):401===i.status?n.handle401Error(e,t):"Password expired : User must change his password"===i.error.errors?n.router.navigate(["/password-modification"]):("GET"===e.method&&n.frontUrl.forEach(function(t){if(e.url.indexOf(t)>-1)return"../rest/documents/"===t&&(n.signaturesService.mainDocumentId=null),r=new kb({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r)}),r=new kb({error:i.error,status:i.status,statusText:i.statusText,headers:i.headers,url:i.url}),Promise.reject(r));var r})))}},{key:"handle401Error",value:function(e,t){var n=this;return this.isRefreshing?this.refreshTokenSubject.pipe(rb(function(e){return null!=e}),dw(1),sw(function(){return e=n.addAuthHeader(e),t.handle(e)})):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.authService.refreshToken().pipe(sw(function(i){return n.isRefreshing=!1,n.refreshTokenSubject.next(i.token),e=n.addAuthHeader(e),t.handle(e)})))}}]),e}()).\u0275fac=function(e){return new(e||_P)(rr(Tb),rr(h_),rr(WP),rr($P),rr(tO))},_P.\u0275prov=rt({token:_P,factory:_P.\u0275fac}),_P);function iO(e,t){if(1&e){var n=Fs();Is(0,"div",2),Is(1,"div",3),Is(2,"button",4),ei(),Is(3,"svg",5),Ms(4,"path",6),Ts(),ti(),Is(5,"span",7),bl(6,"Presentation Mode"),Ts(),Ts(),Is(7,"button",8),ei(),Is(8,"svg",5),Ms(9,"path",9),Ts(),ti(),Is(10,"span",10),bl(11,"Open"),Ts(),Ts(),Is(12,"button",11),ei(),Is(13,"svg",5),Ms(14,"path",12),Ts(),ti(),Is(15,"span",13),bl(16,"Print"),Ts(),Ts(),Is(17,"button",14),ei(),Is(18,"svg",5),Ms(19,"path",15),Ts(),ti(),Is(20,"span",16),bl(21,"Download"),Ts(),Ts(),Is(22,"a",17),ei(),Is(23,"svg",5),Ms(24,"path",18),Ts(),ti(),Is(25,"span",19),bl(26,"Current View"),Ts(),Ts(),Is(27,"button",20),ei(),Is(28,"svg",21),Ms(29,"path",22),Ts(),ti(),Is(30,"span",23),bl(31,"Go to First Page"),Ts(),Ts(),Is(32,"button",24),js("click",function(){return En(n),qs().previousPage()}),ei(),Is(33,"svg",21),Ms(34,"path",25),Ts(),ti(),Is(35,"span",26),bl(36,"Go to Previous Page"),Ts(),Ts(),Is(37,"button",27),js("click",function(){return En(n),qs().nextPage()}),ei(),Is(38,"svg",21),Ms(39,"path",28),Ts(),ti(),Is(40,"span",29),bl(41,"Go to Next Page"),Ts(),Ts(),Is(42,"button",30),ei(),Is(43,"svg",21),Ms(44,"path",31),Ts(),ti(),Is(45,"span",32),bl(46,"Go to Last Page"),Ts(),Ts(),Is(47,"button",33),ei(),Is(48,"svg",5),Ms(49,"path",34),Ts(),ti(),Is(50,"span",35),bl(51,"Rotate Clockwise"),Ts(),Ts(),Is(52,"button",36),ei(),Is(53,"svg",5),Ms(54,"path",37),Ts(),ti(),Is(55,"span",38),bl(56,"Rotate Counterclockwise"),Ts(),Ts(),Is(57,"button",39),ei(),Is(58,"svg",5),Ms(59,"path",40),Ts(),ti(),Is(60,"span",41),bl(61,"Text Selection Tool"),Ts(),Ts(),Is(62,"button",42),ei(),Is(63,"svg",5),Ms(64,"path",43),Ts(),ti(),Is(65,"span",44),bl(66,"Hand Tool"),Ts(),Ts(),Is(67,"button",45),ei(),Is(68,"svg",46),Ms(69,"path",47),Ts(),ti(),Is(70,"span",48),bl(71,"Vertical Scrolling"),Ts(),Ts(),Is(72,"button",49),ei(),Is(73,"svg",46),Ms(74,"path",50),Ts(),ti(),Is(75,"span",51),bl(76,"Horizontal Scrolling"),Ts(),Ts(),Is(77,"button",52),ei(),Is(78,"svg",46),Ms(79,"path",53),Ts(),ti(),Is(80,"span",54),bl(81,"Wrapped Scrolling"),Ts(),Ts(),Is(82,"button",55),js("click",function(){return En(n),qs().onSpreadChange("off")}),ei(),Is(83,"svg",56),Ms(84,"path",57),Ts(),ti(),Is(85,"span",58),bl(86,"No Spreads"),Ts(),Ts(),Is(87,"button",59),js("click",function(){return En(n),qs().onSpreadChange("odd")}),ei(),Is(88,"svg",46),Ms(89,"path",60),Ts(),ti(),Is(90,"span",61),bl(91,"Odd Spreads"),Ts(),Ts(),Is(92,"button",62),js("click",function(){return En(n),qs().onSpreadChange("even")}),ei(),Is(93,"svg",46),Ms(94,"path",63),Ts(),ti(),Is(95,"span",64),bl(96,"Even Spreads"),Ts(),Ts(),Is(97,"button",65),ei(),Is(98,"svg",66),Ms(99,"path",67),Ms(100,"path",68),Ms(101,"circle",69),Ts(),ti(),Is(102,"span",70),bl(103,"Document Properties\u2026"),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();ol("top",i.secondaryToolbarTop)("transform","scale("+i.mobileFriendlyZoomScale+")")("transform-origin","right top"),Yo(2),al("invisible",!i.showPresentationModeButton),Yo(5),al("invisible",!i.showOpenFileButton),Yo(5),al("invisible",!i.showPrintButton),Yo(5),al("invisible",!i.showDownloadButton),Yo(5),al("invisible",!i.showBookmarkButton),Yo(5),al("invisible",!i.showPagingButtons),Yo(5),al("invisible",!i.showPagingButtons),Os("disabled",i.disablePreviousPage),Yo(5),al("invisible",!i.showPagingButtons),Os("disabled",i.disableNextPage),Yo(5),al("invisible",!i.showPagingButtons),Yo(5),al("invisible",!i.showRotateButton),Yo(5),al("invisible",!i.showRotateButton),Yo(5),al("invisible",!i.showHandToolButton),Yo(5),al("invisible",!i.showHandToolButton),Yo(5),al("invisible",!i.showScrollingButton),Yo(5),al("invisible",!i.showScrollingButton),Yo(5),al("invisible",!i.showScrollingButton),Yo(5),al("invisible",!i.showSpreadButton),Yo(5),al("invisible",!i.showSpreadButton),Yo(5),al("invisible",!i.showSpreadButton),Yo(5),al("invisible",!i.showPropertiesButton)}}function rO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customSidebar ? customSidebar : defaultSidebar"])}function oO(e,t){if(1&e){var n=Fs();Is(0,"div",2),Is(1,"div",3),Ms(2,"pdf-sidebar-toolbar"),Ts(),Is(3,"pdf-sidebar-content",4),js("thumbnailDrawn",function(e){return En(n),qs().thumbnailDrawn.emit(e)}),Ts(),Ms(4,"div",5),Ts()}if(2&e){var i=qs();ol("top",i.sidebarPositionTop),Yo(1),ol("display",i.hideSidebarToolbar?"none":""),Yo(2),Os("customThumbnail",i.customThumbnail)("hideSidebarToolbar",i.hideSidebarToolbar)}}var aO=["*"],sO=["root"],lO=["pdfSecondaryToolbarComponent"],uO=["pdfsidebar"];function cO(e,t){1&e&&Ms(0,"link",48)}function dO(e,t){1&e&&Ms(0,"pdf-dark-theme")}function hO(e,t){1&e&&Ms(0,"pdf-light-theme")}function fO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar"])}function pO(e,t){}function gO(e,t){if(1&e&&(Is(0,"div",3),Ls(1,0),Ts()),2&e){var n=qs(),i=Es(4);ol("transform","scale("+n.mobileFriendlyZoomScale+")")("transform-origin","left center")("left",n.findbarLeft)("top",n.findbarTop),al("invisible",!n.showFindButton),Yo(1),Os("ngTemplateOutlet",n.customFindbarButtons?n.customFindbarButtons:i)}}function vO(e,t){1&e&&(Ms(0,"pdf-find-input-area",4),Ms(1,"pdf-findbar-options-one-container"),Ms(2,"pdf-findbar-options-two-container"),Ms(3,"pdf-findbar-options-three-container"),Ms(4,"pdf-findbar-message-container")),2&e&&Os("customFindbarInputArea",qs().customFindbarInputArea)}function mO(e,t){1&e&&(Is(0,"div",2),Ms(1,"pdf-search-input-field"),Ms(2,"pdf-find-previous"),Ms(3,"pdf-find-next"),Ts())}var yO=["button"],bO="[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",wO=["button1"],kO=["button2"],xO="[_nghost-%COMP%]{margin-top:-1px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}",_O="button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}";function AO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customToolbar ? customToolbar : defaultToolbar"])}function CO(e,t){if(1&e&&(Is(0,"div",7),Is(1,"div",8),Ms(2,"pdf-toggle-sidebar",9),Ms(3,"pdf-find-button",10),Ms(4,"pdf-paging-area",11),Ts(),Ms(5,"pdf-zoom-toolbar",12),Is(6,"div",13),Ms(7,"pdf-hand-tool",14),Ms(8,"pdf-select-tool",15),Ms(9,"pdf-rotate-page",16),Ms(10,"pdf-presentation-mode",17),Ms(11,"pdf-open-file",18),Ms(12,"pdf-print",19),Ms(13,"pdf-download",20),Ms(14,"pdf-bookmark",21),Ms(15,"pdf-toggle-secondary-toolbar",22),Ts(),Ts()),2&e){var n=qs();Yo(2),Os("showSidebarButton",n.showSidebarButton),Yo(1),Os("showFindButton",n.showFindButton)("textLayer",n.textLayer),Yo(1),Os("showPagingButtons",n.showPagingButtons),Yo(1),Os("showZoomButtons",n.showZoomButtons)("zoomLevels",n.zoomLevels),Yo(2),Os("showHandToolButton",n.showHandToolButton),Yo(1),Os("showSelectToolButton",n.showHandToolButton),Yo(1),Os("showRotateButton",n.showRotateButton),Yo(1),Os("showPresentationModeButton",n.showPresentationModeButton),Yo(1),Os("showOpenFileButton",n.showOpenFileButton),Yo(1),Os("showPrintButton",n.showPrintButton),Yo(1),Os("showDownloadButton",n.showDownloadButton),Yo(1),Os("showBookmarkButton",n.showBookmarkButton),Yo(1),Os("showSecondaryToolbarButton",n.showSecondaryToolbarButton)}}var SO=["sizeSelector"];function EO(e,t){if(1&e&&(Is(0,"option",5),bl(1),Ts()),2&e){var n=t.$implicit;Os("id",n.id),_s("value",n.value)("data-l10n-id",n.dataL10nId)("data-l10n-args",n.dataL10nArgs),Yo(1),kl(" ",n.displayValue," ")}}var PO=["thumbnailViewTemplate"];function OO(e,t){1&e&&Ks(0,0,["*ngTemplateOutlet","customThumbnail ? customThumbnail : defaultThumbnail"])}function DO(e,t){1&e&&(Is(0,"a",8),Is(1,"div",9),Ms(2,"div",10),Ts(),Ts())}var IO="undefined"!=typeof window&&!!window.MSInputMethodContext&&!!document.documentMode,TO=/Edge\/\d./i.test(navigator.userAgent),MO="undefined"==typeof ReadableStream||void 0===Promise.allSettled,BO={cursorToolOnLoad:0,defaultUrl:"",defaultZoomValue:"",disableHistory:!1,disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkRel:"noopener noreferrer nofollow",externalLinkTarget:0,historyUpdateUrl:!1,imageResourcesPath:"./images/",maxCanvasPixels:16777216,pdfBugEnabled:!1,removePageBorders:!1,renderer:"canvas",renderInteractiveForms:!0,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,cMapPacked:!0,cMapUrl:function(){return"./"+BO.assetsFolder+"/cmaps/"},disableAutoFetch:!1,disableCreateObjectURL:!1,disableFontFace:!1,disableRange:!1,disableStream:!1,isEvalSupported:!0,maxImageSize:-1,pdfBug:!1,postMessageTransfers:!0,verbosity:1,workerPort:null,assetsFolder:"assets",workerSrc:function(){return IO||TO||MO?"./"+BO.assetsFolder+"/pdf.worker-es5.js":"./"+BO.assetsFolder+"/pdf.worker.js"}};window.pdfDefaultOptions?BO=window.pdfDefaultOptions:window.pdfDefaultOptions=BO;var RO={ERRORS:0,WARNINGS:1,INFOS:5};RO[RO.ERRORS]="ERRORS",RO[RO.WARNINGS]="WARNINGS",RO[RO.INFOS]="INFOS";var LO={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};LO[LO.FOUND]="FOUND",LO[LO.NOT_FOUND]="NOT_FOUND",LO[LO.WRAPPED]="WRAPPED",LO[LO.PENDING]="PENDING";var FO,NO,VO,zO=["toolbarViewer","numPages","pageNumber","scaleSelectContainer","customScaleOption","previous","next","zoomIn","zoomOut","viewFind","openFile","print","presentationMode","download","viewBookmark","secondaryToolbar","secondaryToolbarToggle","secondaryToolbarButtonContainer","secondaryPresentationMode","secondaryOpenFile","secondaryPrint","secondaryDownload","secondaryViewBookmark","firstPage","lastPage","pageRotateCw","pageRotateCcw","cursorSelectTool","cursorHandTool","scrollVertical","scrollHorizontal","scrollWrapped","spreadNone","spreadOdd","spreadEven","documentProperties","contextFirstPage","contextLastPage","contextPageRotateCw","contextPageRotateCcw","outerContainer","viewerContainer","sidebarToggle","viewThumbnail","viewOutline","viewAttachments","thumbnailView","outlineView","attachmentsView","outerContainer","sidebarResizer","findbar","viewFind","findInput","findInputMultiline","findHighlightAll","findMatchCase","findEntireWord","findMultipleSearchTexts","findIgnoreAccents","findMsg","findResultsCount","findPrevious","findNext","findFuzzy","passwordOverlay","passwordText","password","passwordSubmit","passwordCancel","documentPropertiesOverlay","documentPropertiesClose","fileNameField","fileSizeField","titleField","authorField","subjectField","keywordsField","creationDateField","modificationDateField","creatorField","producerField","versionField","pageCountField","pageSizeField","linearizedField","errorWrapper","errorMessage","errorClose","errorMoreInfo","errorShowMore","errorShowLess","scaleSelectContainer","viewAttachments","viewLayers","viewThumbnail","viewOutline"],jO=((VO=function(){function e(){Z(this,e)}return Y(e,[{key:"addMissingStandardWidgets",value:function(){var e=this;this.dummyComponentsContainer=document.getElementsByClassName("dummy-pdf-viewer-components")[0];var t=this.dummyComponentsContainer;if(t)for(var n=0;n<t.children.length;n++){var i=t.firstChild;i&&t.removeChild(i)}if(zO.forEach(function(t){if(e.needsDummyWidget(t)){var n=document.createElement("span");n.id=t,n.className="invisible dummy-component",e.dummyComponentsContainer.appendChild(n)}}),this.needsDummyWidget("scaleSelect")){var r=document.createElement("select");r.id="scaleSelect",r.className="invisible dummy-component",this.dummyComponentsContainer.appendChild(r)}}},{key:"needsDummyWidget",value:function(e){return!document.getElementById(e)}}]),e}()).\u0275fac=function(e){return new(e||VO)},VO.\u0275cmp=Ft({type:VO,selectors:[["pdf-dummy-components"]],decls:1,vars:0,consts:[[1,"invisible","dummy-pdf-viewer-components"]],template:function(e,t){1&e&&Ms(0,"span",0)},encapsulation:2}),VO),HO=((NO=Y(function e(){var t=this;Z(this,e),this.onPDFJSInit=new ge,this.pdfjsVersion=new iP(1),window.pdfjsLib&&window.pdfjsLib.version?this.pdfjsVersion.next(window.pdfjsLib.version):this.onPDFJSInit.subscribe(function(){t.pdfjsVersion.next(window.pdfjsLib.version)})})).\u0275fac=function(e){return new(e||NO)},NO.\u0275prov=rt({token:NO,factory:NO.\u0275fac,providedIn:"root"}),NO.ngInjectableDef=ot({factory:function(){return new NO},token:NO,providedIn:"root"}),NO),UO=((FO=function(){function e(t,n){var i=this;Z(this,e),this.element=t,this.notificationService=n,this.showPresentationModeButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.showPagingButtons=!0,this.showRotateButton=!0,this.showHandToolButton=!0,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.spreadChange=new ac,this.secondaryMenuIsEmpty=new ac,this.disablePreviousPage=!0,this.disableNextPage=!0;var r=this.notificationService.onPDFJSInit.subscribe(function(){i.onPdfJsInit(),r.unsubscribe()})}return Y(e,[{key:"onPdfJsInit",value:function(){var e=this,t=window.PDFViewerApplication;t.eventBus.on("pagechanging",function(){e.updateUIState()}),t.eventBus.on("pagerendered",function(){e.updateUIState()})}},{key:"updateUIState",value:function(){var e=this;setTimeout(function(){var t=window.PDFViewerApplication,n=t.pdfViewer.currentPageNumber,i=document.getElementById("previousPage");i&&(e.disablePreviousPage=Number(n)<=1,i.disabled=e.disablePreviousPage);var r=document.getElementById("nextPage");r&&(e.disableNextPage=n===t.pagesCount,r.disabled=e.disableNextPage)})}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"ngOnChanges",value:function(e){var t=this;setTimeout(function(){return t.checkVisibility()})}},{key:"onResize",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){return e.checkVisibility()})}},{key:"checkVisibility",value:function(){var e=0,t=this.element.nativeElement.children.item(0);if(t){var n=t.children.item(0);n&&n instanceof HTMLElement&&(e=this.checkVisibilityRecursively(n))}this.secondaryMenuIsEmpty.emit(0===e)}},{key:"checkVisibilityRecursively",value:function(e){if("none"===e.style.display)return 0;if(e.classList.contains("hidden"))return 0;if(e.classList.contains("invisible"))return 0;if("none"===window.getComputedStyle(e).display)return 0;if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)return 1;var t=0,n=e.children;if(n&&n.length)for(var i=0;i<n.length&&0===t;i++){var r=n.item(i);r&&r instanceof HTMLElement&&(t+=this.checkVisibilityRecursively(r))}return t}},{key:"previousPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("previouspage")}},{key:"nextPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("nextpage")}}]),e}()).\u0275fac=function(e){return new(e||FO)(Ps(Kl),Ps(HO))},FO.\u0275cmp=Ft({type:FO,selectors:[["pdf-secondary-toolbar"]],hostBindings:function(e,t){1&e&&js("resize",function(){return t.onResize()},!1,io)},inputs:{showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",showPagingButtons:"showPagingButtons",showRotateButton:"showRotateButton",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",customSecondaryToolbar:"customSecondaryToolbar",secondaryToolbarTop:"secondaryToolbarTop",mobileFriendlyZoomScale:"mobileFriendlyZoomScale"},outputs:{spreadChange:"spreadChange",secondaryMenuIsEmpty:"secondaryMenuIsEmpty"},features:[tn],decls:3,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultSecondaryToolbar",""],["id","secondaryToolbar",1,"secondaryToolbar","hidden","doorHangerRight"],["id","secondaryToolbarButtonContainer"],["type","button","id","secondaryPresentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"secondaryToolbarButton","visibleLargeView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"],["type","button","id","secondaryOpenFile","title","Open File","data-l10n-id","open_file",1,"secondaryToolbarButton","visibleMediumView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"],["type","button","id","secondaryPrint","title","Print","data-l10n-id","print",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"],["type","button","id","secondaryDownload","title","Download","data-l10n-id","download",1,"secondaryToolbarButton","visibleSmallView"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"],["href","#","id","secondaryViewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"secondaryToolbarButton","bookmark","visibleTinyView"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"],["type","button","id","firstPage","title","Go to First Page","data-l10n-id","first_page",1,"secondaryToolbarButton","firstPage","visibleLargeView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"],["type","button","id","previousPage","title","Go to Previous Page","data-l10n-id","previous",1,"secondaryToolbarButton","previousPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"],["type","button","id","nextPage","title","Go to Next Page","data-l10n-id","next",1,"secondaryToolbarButton","nextPage","visibleTinyView",3,"disabled","click"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"],["type","button","id","lastPage","title","Go to Last Page","data-l10n-id","last_page",1,"secondaryToolbarButton","lastPage","visibleLargeView"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"],["type","button","id","pageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"secondaryToolbarButton","rotateCw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["data-l10n-id","page_rotate_cw_label"],["type","button","id","pageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"secondaryToolbarButton","rotateCcw","visibleXLView"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"],["data-l10n-id","page_rotate_ccw_label"],["type","button","id","cursorSelectTool","title","Enable Text Selection Tool","data-l10n-id","cursor_text_select_tool",1,"secondaryToolbarButton","toggled","visibleXXLView"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"],["type","button","id","cursorHandTool","title","Enable Hand Tool","data-l10n-id","cursor_hand_tool",1,"secondaryToolbarButton","visibleXXLView"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"],["type","button","id","scrollVertical","title","Use Vertical Scrolling","data-l10n-id","scroll_vertical",1,"secondaryToolbarButton","scrollVertical","toggled"],[2,"width","24px","height","24px","margin-top","3px"],["fill","currentColor","d","M9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM11 0v.5c0 1-.5 1.5-1.5 1.5h-3C5.5 2 5 1.5 5 .5V0h6zM11 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6z"],["data-l10n-id","scroll_vertical_label"],["type","button","id","scrollHorizontal","title","Use Horizontal Scrolling","data-l10n-id","scroll_horizontal",1,"secondaryToolbarButton","scrollHorizontal"],["fill","currentColor","d","M0 4h1.5c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5H0zM9.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C5 4.5 5.5 4 6.5 4zM16 4h-1.5c-1 0-1.5.5-1.5 1.5v5c0 1 .5 1.5 1.5 1.5H16z"],["data-l10n-id","scroll_horizontal_label"],["type","button","id","scrollWrapped","title","Use Wrapped Scrolling","data-l10n-id","scroll_wrapped",1,"secondaryToolbarButton","scrollWrapped"],["fill","currentColor","d","M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5c0-1 .5-1.5 1.5-1.5zM15 0v.5c0 1-.5 1.5-1.5 1.5h-3C9.5 2 9 1.5 9 .5V0h6zM15 16v-.507c0-1-.5-1.5-1.5-1.5h-3C9.5 14 9 14.5 9 15.5v.5h6z"],["data-l10n-id","scroll_wrapped_label"],["type","button","id","spreadNone","title","Do not join page spreads","data-l10n-id","spread_none",1,"secondaryToolbarButton","spreadNone","toggled",3,"click"],["height","16","width","16"],["fill","currentColor","d","M6 3c-1 0-1.5.5-1.5 1.5v7c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5v-7c0-1-.5-1.5-1.5-1.5z"],["data-l10n-id","spread_none_label"],["type","button","id","spreadOdd","title","Join page spreads starting with odd-numbered pages","data-l10n-id","spread_odd",1,"secondaryToolbarButton","spreadOdd",3,"click"],["fill","currentColor","d","M10.56 3.5C9.56 3.5 9 4 9 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.93 1.2c.8 0 1.4.2 1.8.64.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.44-.2.3-.6.6-1 .93l-.6.4c-.4.3-.6.4-.7.55-.1.1-.2.2-.3.4h3.2v1.27h-5c0-.5.1-1 .3-1.43.2-.49.7-1 1.5-1.54.7-.5 1.1-.8 1.3-1.02.3-.3.4-.7.4-1.05 0-.3-.1-.6-.3-.77-.2-.2-.4-.3-.7-.3-.4 0-.7.2-.9.5-.1.2-.1.5-.2.9h-1.4c0-.6.2-1.1.3-1.5.4-.7 1.1-1.1 2-1.1zM1.54 3.5C.54 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.54 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm1.8 1.125H4.5V12H3V6.9H1.3v-1c.5 0 .8 0 .97-.03.33-.07.53-.17.73-.37.1-.2.2-.3.25-.5.05-.2.05-.3.05-.3z"],["data-l10n-id","spread_odd_label"],["type","button","id","spreadEven","title","Join page spreads starting with even-numbered pages","data-l10n-id","spread_even",1,"secondaryToolbarButton","spreadEven",3,"click"],["fill","currentColor","d","M1.5 3.5C.5 3.5 0 4 0 5v6.5c0 1 .5 1.5 1.5 1.5h4c1 0 1.5-.5 1.5-1.5V5c0-1-.5-1.5-1.5-1.5zm2 1.2c.8 0 1.4.2 1.8.6.5.4.7 1 .7 1.7 0 .5-.2 1-.5 1.4-.2.3-.5.7-1 1l-.6.4c-.4.3-.6.4-.75.56-.15.14-.25.24-.35.44H6v1.3H1c0-.6.1-1.1.3-1.5.3-.6.7-1 1.5-1.6.7-.4 1.1-.8 1.28-1 .32-.3.42-.6.42-1 0-.3-.1-.6-.23-.8-.17-.2-.37-.3-.77-.3s-.7.1-.9.5c-.04.2-.1.5-.1.9H1.1c0-.6.1-1.1.3-1.5.4-.7 1.1-1.1 2.1-1.1zM10.54 3.54C9.5 3.54 9 4 9 5v6.5c0 1 .5 1.5 1.54 1.5h4c.96 0 1.46-.5 1.46-1.5V5c0-1-.5-1.46-1.5-1.46zm1.9.95c.7 0 1.3.2 1.7.5.4.4.6.8.6 1.4 0 .4-.1.8-.4 1.1-.2.2-.3.3-.5.4.1 0 .3.1.6.3.4.3.5.8.5 1.4 0 .6-.2 1.2-.6 1.6-.4.5-1.1.7-1.9.7-1 0-1.8-.3-2.2-1-.14-.29-.24-.69-.24-1.29h1.4c0 .3 0 .5.1.7.2.4.5.5 1 .5.3 0 .5-.1.7-.3.2-.2.3-.5.3-.8 0-.5-.2-.8-.6-.95-.2-.05-.5-.15-1-.15v-1c.5 0 .8-.1 1-.14.3-.1.5-.4.5-.9 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.7-.3-.3 0-.6.1-.75.3-.2.2-.2.5-.2.86h-1.34c0-.4.1-.7.19-1.1 0-.12.2-.32.4-.62.2-.2.4-.3.7-.4.3-.1.6-.1 1-.1z"],["data-l10n-id","spread_even_label"],["type","button","id","documentProperties","title","Document Properties\u2026","data-l10n-id","document_properties",1,"secondaryToolbarButton","documentProperties"],["viewBox","0 0 16 16",2,"width","16px","height","16px","margin-top","3px"],["fill","currentColor","d","M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z"],["fill","currentColor","d","M8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"],["fill","currentColor","cx","8","cy","5","r","1.188"],["data-l10n-id","document_properties_label"]],template:function(e,t){if(1&e&&(Ls(0,0),Ss(1,iO,104,48,"ng-template",null,1,Cc)),2&e){var n=Es(2);Os("ngTemplateOutlet",t.customSecondaryToolbar?t.customSecondaryToolbar:n)}},directives:[ef],styles:["svg[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:0;left:0}"]}),FO),WO={SELECT:0,HAND:1,ZOOM:2};WO[WO.SELECT]="SELECT",WO[WO.HAND]="HAND",WO[WO.ZOOM]="ZOOM";var GO,qO,YO,ZO,KO,QO,XO,JO,$O,eD,tD,nD,iD,rD,oD,aD,sD,lD,uD,cD,dD,hD,fD,pD,gD,vD,mD,yD,bD,wD,kD,xD,_D,AD,CD,SD,ED,PD,OD,DD,ID,TD,MD,BD,RD,LD,FD,ND,VD,zD=function(){function e(t){Z(this,e),this._zone=t,this.startX=0,this.startY=0,this.initialPinchDistance=0,this.pinchScale=1,this.isMobile()&&this.initializePinchZoom()}return Y(e,[{key:"isMobile",value:function(){return"ontouchstart"in document.documentElement}},{key:"onViewerTouchStart",value:function(e){if(this.initialPinchDistance=0,2===e.touches.length){var t=this.container.getBoundingClientRect();e.touches[0].pageX>=t.left&&e.touches[0].pageX<=t.right&&e.touches[0].pageY>=t.top&&e.touches[1].pageX>=t.left&&e.touches[1].pageX<=t.right&&e.touches[1].pageY>=t.top&&(this.startX=(e.touches[0].pageX+e.touches[1].pageX)/2,this.startY=(e.touches[0].pageY+e.touches[1].pageY)/2,this.initialPinchDistance=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),e.preventDefault(),e.stopPropagation())}}},{key:"onViewerTouchMove",value:function(e){var t=window.PDFViewerApplicationOptions;if(!(this.initialPinchDistance<=0||2!==e.touches.length)){1!==this.pinchScale&&e.preventDefault();var n=Math.hypot(e.touches[1].pageX-e.touches[0].pageX,e.touches[1].pageY-e.touches[0].pageY),i=this.startX+this.container.scrollLeft,r=this.startY+this.container.scrollTop;this.pinchScale=n/this.initialPinchDistance;var o=Number(t.get("minZoom"));o||(o=.1),this.pinchScale<o&&(this.pinchScale=o);var a=Number(t.get("maxZoom"));a||(a=10),this.pinchScale>a&&(this.pinchScale=a),this.viewer.style.transform="scale(".concat(this.pinchScale,")"),this.viewer.style.transformOrigin="".concat(i,"px ").concat(r,"px"),e.preventDefault(),e.stopPropagation()}}},{key:"onViewerTouchEnd",value:function(e){var t=window.PDFViewerApplication;if(!(this.initialPinchDistance<=0)){this.viewer.style.transform="none",this.viewer.style.transformOrigin="unset",t.pdfViewer.currentScale*=this.pinchScale;var n=this.container.getBoundingClientRect(),i=this.startY-n.top;this.container.scrollLeft+=(this.startX-n.left)*(this.pinchScale-1),this.container.scrollTop+=i*(this.pinchScale-1),this.resetPinchZoomParams(),e.preventDefault(),e.stopPropagation()}}},{key:"resetPinchZoomParams",value:function(){this.startX=this.startY=this.initialPinchDistance=0,this.pinchScale=1}},{key:"initializePinchZoom",value:function(){var e=this;this.viewer=document.getElementById("viewer"),this.container=document.getElementById("viewerContainer"),this._zone.runOutsideAngular(function(){document.addEventListener("touchstart",e.onViewerTouchStart.bind(e)),document.addEventListener("touchmove",e.onViewerTouchMove.bind(e),{passive:!1}),document.addEventListener("touchend",e.onViewerTouchEnd.bind(e))})}},{key:"destroyPinchZoom",value:function(){this.isMobile()&&(document.removeEventListener("touchstart",this.onViewerTouchStart),document.removeEventListener("touchmove",this.onViewerTouchMove),document.removeEventListener("touchend",this.onViewerTouchEnd))}}]),e}(),jD=((VD=function(){function e(t,n){Z(this,e),this.elementRef=t,this.ref=n,this.sidebarVisible=!0,this.showSidebarButton=!0,this.thumbnailDrawn=new ac,this.hideSidebarToolbar=!0}return Y(e,[{key:"showToolbarWhenNecessary",value:function(){var e=this.elementRef.nativeElement.querySelectorAll("button"),t=0;e.forEach(function(e){e.hidden||t++}),this.hideSidebarToolbar=t<=1,this.ref.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||VD)(Ps(Kl),Ps(ku))},VD.\u0275cmp=Ft({type:VD,selectors:[["pdf-sidebar"]],inputs:{sidebarVisible:"sidebarVisible",showSidebarButton:"showSidebarButton",sidebarPositionTop:"sidebarPositionTop",customSidebar:"customSidebar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:aO,decls:4,vars:1,consts:[[4,"ngTemplateOutlet"],["defaultSidebar",""],["id","sidebarContainer"],["id","additionalSidebarContainer"],[3,"customThumbnail","hideSidebarToolbar","thumbnailDrawn"],["id","sidebarResizer",1,"hidden"]],template:function(e,t){if(1&e&&(Zs(),Is(0,"div"),Ss(1,rO,1,0,"ng-content",0),Ts(),Ss(2,oO,5,6,"ng-template",null,1,Cc)),2&e){var n=Es(3);Yo(1),Os("ngTemplateOutlet",t.customSidebar?t.customSidebar:n)}},directives:function(){return[ef,MI,TI]},styles:[""]}),VD),HD=((ND=function(){function e(t,n,i,r){Z(this,e),this.ngZone=t,this.platformId=n,this.notificationService=i,this.location=r,this.customFindbarButtons=void 0,this.srcChange=new ac,this.authorization=void 0,this.httpHeaders=void 0,this.contextMenuAllowed=!0,this.afterPrint=new ac,this.beforePrint=new ac,this.currentZoomFactor=new ac,this.enablePrint=!0,this.delayFirstView=0,this.logLevel=RO.WARNINGS,this.enablePinchOnMobile=!1,this.minifiedJSLibraries=!0,this.primaryMenuVisible=!0,this.printResolution=null,this.rotationChange=new ac,this.minHeight=void 0,this._height="100%",this.useBrowserLocale=!1,this.backgroundColor="#e8e8eb",this.filenameForDownload="document.pdf",this.ignoreKeyboard=!1,this.ignoreKeys=[],this.acceptKeys=[],this.imageResourcesPath="./"+BO.assetsFolder+"/images/",this.language=void 0,this.listenToURL=!1,this.nameddest=void 0,this.password=void 0,this._showSidebarButton=!0,this.viewerPositionTop="32px",this.showUnverifiedSignatures=!1,this.showSidebarOnLoad=void 0,this.sidebarVisible=void 0,this.sidebarVisibleChange=new ac,this.showFindButton=void 0,this.showPagingButtons=!0,this.showZoomButtons=!0,this.showPresentationModeButton=!1,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showDownloadButton=!0,this.showBookmarkButton=!0,this.theme="light",this.showSecondaryToolbarButton=!0,this.hideKebabMenuForSecondaryToolbar=!1,this.showRotateButton=!0,this.handTool=!0,this.handToolChange=new ac,this.showHandToolButton=!1,this.showScrollingButton=!0,this.showSpreadButton=!0,this.showPropertiesButton=!0,this.showBorders=!0,this.spreadChange=new ac,this.thumbnailDrawn=new ac,this._page=void 0,this.pageChange=new ac,this.pageLabel=void 0,this.pageLabelChange=new ac,this.pagesLoaded=new ac,this.pageRendered=new ac,this.pdfDownloaded=new ac,this.pdfLoaded=new ac,this.pdfLoadingFailed=new ac,this.textLayer=void 0,this.textlayerRendered=new ac,this.textLayerRendered=new ac,this.updateFindMatchesCount=new ac,this.updateFindState=new ac,this.zoom=void 0,this.zoomChange=new ac,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,1,1.25,1.5,2,3,4],this.maxZoom=10,this.minZoom=.1,this._mobileFriendlyZoom="100%",this.mobileFriendlyZoomScale=1,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.toolbarWidthInPixels=100,this.secondaryToolbarTop=void 0,this.findbarTop=void 0,this.findbarLeft=void 0,this._top=void 0,this.shuttingDown=!1}return Y(e,[{key:"src",set:function(e){e instanceof Uint8Array?this._src=e.buffer:e instanceof Blob?this._src=URL.createObjectURL(e):"string"==typeof e?(this._src=e,e.length>980&&e.length%4==0&&/^[a-zA-Z\d\/+]+={0,2}$/.test(e)&&console.error("The URL looks like a base64 encoded string. If so, please use the attribute base64 instead of src")):this._src=e}},{key:"base64Src",set:function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);this.src=i.buffer}},{key:"height",get:function(){return this._height},set:function(e){var t=this;this.minHeight=void 0,e?this._height=e:this.height="100%",setTimeout(function(){t.checkHeight()})}},{key:"showSidebarButton",get:function(){return this._showSidebarButton},set:function(e){this._showSidebarButton=e;var t=1;/msie\s|trident\//i.test(window.navigator.userAgent)&&(t=Number((this._mobileFriendlyZoom||"100").replace("%",""))/100),this.findbarLeft=this._showSidebarButton?(68*t).toString()+"px":"0px"}},{key:"page",get:function(){return this._page},set:function(e){this._page=e?Number(e):void 0}},{key:"mobileFriendlyZoom",get:function(){return this._mobileFriendlyZoom},set:function(e){var t;"true"==e?e="150%":"false"!=e&&null!=e||(e="100%"),this._mobileFriendlyZoom=e,String(e).includes("%")||(e=100*Number(e)+"%"),t=Number((e||"100").replace("%",""))/100,this.mobileFriendlyZoomScale=t,this.toolbarWidth=(100/t).toString()+"%",this.toolbarPaddingTop=8*(t-1)+"px",this.findbarLeft=this.showSidebarButton?(68*t).toString()+"px":"0px",this.secondaryToolbarTop=(36+36*(t-1)).toString()+"px",this.findbarTop=(36+52*(t-1)).toString()+"px"}},{key:"mobileZoom",set:function(e){this.mobileFriendlyZoom=e}},{key:"sidebarPositionTop",get:function(){return this._top?this._top:this.mobileFriendlyZoom?this.mobileFriendlyZoom.endsWith("%")?(2+.29*Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1))).toString()+"px":this.mobileFriendlyZoom.endsWith("px")?this.mobileFriendlyZoom:(16+.16*Number(this.mobileFriendlyZoom)).toString()+"px":"32px"}},{key:"calcViewerPositionTop",value:function(){if(this._top)this.viewerPositionTop=this._top;else{if(this.mobileFriendlyZoom){if(this.mobileFriendlyZoom.endsWith("%")){var e=Number(this.mobileFriendlyZoom.substring(0,this.mobileFriendlyZoom.length-1));return void(this.viewerPositionTop=this.isPrimaryMenuVisible()?(1+.32*e).toString()+"px":"0")}if(this.mobileFriendlyZoom.endsWith("px"))return void(this.viewerPositionTop=this.mobileFriendlyZoom)}this.viewerPositionTop=this.isPrimaryMenuVisible()?"32px":"0"}}},{key:"iOSVersionRequiresES5",value:function(){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!=e&&parseInt(e[1],10)<13}},{key:"loadViewer",value:function(){var e=this;if(window["pdfjs-dist/build/pdf"]){var t=!!window.MSInputMethodContext&&!!document.documentMode,n=/Edge\/\d./i.test(navigator.userAgent),i=this.iOSVersionRequiresES5(),r="undefined"==typeof ReadableStream||void 0===Promise.allSettled,o=this.minifiedJSLibraries?".min.js":".js",a=document.createElement("script"),s=BO.assetsFolder;r&&console.log("Using the ES5 version of the PDF viewer."),a.src=this.location.normalize(t||n||i||r?s+"/viewer-es5"+o:s+"/viewer"+o),a.type="text/javascript",a.async=!0,document.getElementsByTagName("head")[0].appendChild(a)}else setTimeout(function(){return e.loadViewer()},25)}},{key:"ngOnInit",value:function(){if(this.onResize(),wf(this.platformId)){if(!window["pdfjs-dist/build/pdf"]){var e=!!window.MSInputMethodContext&&!!document.documentMode,t=/Edge\/\d./i.test(navigator.userAgent),n="undefined"==typeof ReadableStream||void 0===Promise.allSettled,i=this.iOSVersionRequiresES5(),r=this.minifiedJSLibraries?".min.js":".js";if(this.minifiedJSLibraries&&!BO.workerSrc().endsWith(".min.js")){var o=BO.workerSrc();BO.workerSrc=function(){return o.replace(".js",".min.js")}}var a=BO.assetsFolder,s=document.createElement("script");s.src=this.location.normalize(e||t||i||n?a+"/pdf-es5"+r:a+"/pdf"+r),s.type="text/javascript",s.async=!0,document.getElementsByTagName("head")[0].appendChild(s)}window.webViewerLoad||this.loadViewer()}}},{key:"ngAfterViewInit",value:function(){var e=this;this.shuttingDown||(window.webViewerLoad?this.doInitPDFViewer():setTimeout(function(){return e.ngAfterViewInit()},50))}},{key:"assignTabindexes",value:function(){if(this.startTabindex){var e=this.root.nativeElement.cloneNode(!0);e.classList.add("offscreen"),this.showElementsRecursively(e),document.body.appendChild(e);var t=this.collectElementPositions(e,this.root.nativeElement,[]);document.body.removeChild(e);for(var n=t.sort(function(e,t){return e.y-t.y>15?1:t.y-e.y>15?-1:e.x-t.x}),i=0;i<n.length;i++)n[i].element.tabIndex=this.startTabindex+i}}},{key:"showElementsRecursively",value:function(e){if(e.classList.remove("hidden"),e.classList.remove("invisible"),e.classList.remove("hiddenXXLView"),e.classList.remove("hiddenXLView"),e.classList.remove("hiddenLargeView"),e.classList.remove("hiddenMediumView"),e.classList.remove("hiddenSmallView"),e.classList.remove("hiddenTinyView"),e.classList.remove("visibleXXLView"),e.classList.remove("visibleXLView"),e.classList.remove("visibleLargeView"),e.classList.remove("visibleMediumView"),e.classList.remove("visibleSmallView"),e.classList.remove("visibleTinyView"),!(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement)&&e.childElementCount>0)for(var t=0;t<e.childElementCount;t++){var n=e.children.item(t);n&&this.showElementsRecursively(n)}}},{key:"collectElementPositions",value:function(e,t,n){if(e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement){var i=e.getBoundingClientRect(),r={element:t,x:Math.round(i.left),y:Math.round(i.top)};n.push(r)}else if(e.childElementCount>0)for(var o=0;o<e.childElementCount;o++){var a=e.children.item(o),s=t.children.item(o);a&&s&&(n=this.collectElementPositions(a,s,n))}return n}},{key:"doInitPDFViewer",value:function(){var t=this,n=document.querySelectorAll('link[type="application/l10n"]');if(0===n.length)document.querySelector('script[type="application/l10n"]')?this.useBrowserLocale&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag."):this.useBrowserLocale||(console.error("If you set the attribute 'useBrowserLocale' to false, you must provide the translations yourself in a script or link tag."),console.error("The easiest way to do this is to add them to the index.html."));else if(this.useBrowserLocale){var i=n[0].attributes.origin;i&&"ngx-extended-pdf-viewer"!==i.value&&console.error("Please set the attribute 'useBrowserLocale' to false if you provide the translations yourself in a script or link tag.")}window.addEventListener("afterprint",function(e){t.afterPrint.emit()}),window.addEventListener("beforeprint",function(e){t.beforePrint.emit()}),document.addEventListener("localized",function e(n){document.removeEventListener("localized",e),t.initTimeout=setTimeout(function(){t.shuttingDown||(t.afterLibraryInit(),t.openPDF(),t.assignTabindexes())},t.delayFirstView)}),e.ngxExtendedPdfViewerInitialized&&console.error("You're trying to open two instances of the PDF viewer. Most likely, this will result in errors."),document.addEventListener("webviewerloaded",function e(){t.overrideDefaultSettings(),document.removeEventListener("webviewerloaded",e),t.enablePinchOnMobile&&(t.pinchOnMobileSupport=new zD(t.ngZone))}),this.activateTextlayerIfNecessary(null),setTimeout(function(){if(!t.shuttingDown){t.primaryMenuVisible=!0,t.hideKebabMenuForSecondaryToolbar&&!t.showSecondaryToolbarButton&&(t.isPrimaryMenuVisible()||(t.primaryMenuVisible=!1)),t.calcViewerPositionTop(),t.dummyComponents.addMissingStandardWidgets(),window.webViewerLoad();var e=window.PDFViewerApplication;e.appConfig.defaultUrl="",e.appConfig.filenameForDownload=t.filenameForDownload;var n=window.PDFViewerApplicationOptions;n.set("locale",t.language),n.set("imageResourcesPath",t.imageResourcesPath),n.set("minZoom",t.minZoom),n.set("maxZoom",t.maxZoom),e.isViewerEmbedded=!0,e.printKeyDownListener&&window.addEventListener("keydown",e.printKeyDownListener,!0);var i=document.getElementById("printContainer");i&&document.getElementsByTagName("body")[0].appendChild(i)}},0)}},{key:"afterLibraryInit",value:function(){this.notificationService.onPDFJSInit.next()}},{key:"checkHeight",value:function(){var e=document.getElementsByClassName("zoom")[0];if(e&&0===e.clientHeight&&this._height.includes("%")){var t=window.innerHeight-e.getBoundingClientRect().top;t=t*Number(this._height.replace("%",""))/100,this.minHeight=t>100?t+"px":"100px"}}},{key:"onSpreadChange",value:function(e){this.spreadChange.emit(e)}},{key:"activateTextlayerIfNecessary",value:function(e){var t=this;void 0===this.textLayer?this.handTool?(e&&e.set("textLayerMode",this.showHandToolButton?1:0),this.showHandToolButton||((this.showFindButton||void 0===this.showFindButton)&&(this.ngZone.run(function(){t.showFindButton=!1}),this.logLevel>=RO.WARNINGS&&console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.')),this.showHandToolButton&&this.logLevel>=RO.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))):(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):this.textLayer?(e&&e.set("textLayerMode",1),this.textLayer=!0,void 0===this.showFindButton&&(this.showFindButton=!0,setTimeout(function(){var e=document.getElementById("viewFind");e&&e.classList.remove("invisible");var t=document.getElementById("findbar");t&&t.classList.remove("invisible")}))):(e&&e.set("textLayerMode",0),this.textLayer=!1,this.showFindButton&&this.logLevel>=RO.WARNINGS&&(console.warn('Hiding the "find" button because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the find button.'),this.ngZone.run(function(){t.showFindButton=!1})),this.showHandToolButton&&this.logLevel>=RO.WARNINGS&&(console.warn('Hiding the "hand tool / selection mode" menu because the text layer of the PDF file is not rendered. Use [textLayer]="true" to enable the the menu items.'),this.showHandToolButton=!1))}},{key:"overrideDefaultSettings",value:function(){var e=window.PDFViewerApplicationOptions;for(var t in BO)e.set(t,BO[t]);e.set("disablePreferences",!0),this.setZoom(),e.set("ignoreKeyboard",this.ignoreKeyboard),e.set("ignoreKeys",this.ignoreKeys),e.set("acceptKeys",this.acceptKeys),this.activateTextlayerIfNecessary(e);var n=this.sidebarVisible;void 0===n&&(n=this.showSidebarOnLoad);var i=window.PDFViewerApplication;void 0!==n&&(i.sidebarViewOnLoad=n?1:0,i.appConfig&&(i.appConfig.sidebarViewOnLoad=n?1:0),e.set("sidebarViewOnLoad",this.sidebarVisible?1:0)),"even"===this.spread?(e.set("spreadModeOnLoad",2),i.pdfViewer&&(i.pdfViewer.spreadMode=2),this.onSpreadChange("even")):"odd"===this.spread?(e.set("spreadModeOnLoad",1),i.pdfViewer&&(i.pdfViewer.spreadMode=1),this.onSpreadChange("odd")):(e.set("spreadModeOnLoad",0),i.pdfViewer&&(i.pdfViewer.spreadMode=0),this.onSpreadChange("off")),this.printResolution&&e.set("printResolution",this.printResolution),!1===this.showBorders&&e.set("removePageBorders",!this.showBorders)}},{key:"openPDF",value:function(){var t=this;ServiceWorkerOptions.showUnverifiedSignatures=this.showUnverifiedSignatures;var n=window.PDFViewerApplication;n.enablePrint=this.enablePrint,e.ngxExtendedPdfViewerInitialized=!0,this.onResize(),this.listenToURL||(n.pdfLinkService.setHash=function(){}),this.initTimeout=null,this.selectCursorTool(),n.eventBus.on("textlayerrendered",function(e){t.textlayerRendered.emit(e),t.textLayerRendered.emit(e)}),n.eventBus.on("pagesloaded",function(e){if(t.pagesLoaded.emit(e),t.rotation){var i=Number(t.rotation);0!==i&&90!==i&&180!==i&&270!==i||(n.pdfViewer.pagesRotation=i)}else n.pdfViewer.pagesRotation=0;setTimeout(function(){t.shuttingDown||(t.nameddest?n.pdfLinkService.navigateTo(t.nameddest):t.page?n.page=Number(t.page):t.pageLabel&&(n.pdfViewer.currentPageLabel=t.pageLabel))}),t.setZoom()}),n.eventBus.on("pagerendered",function(e){t.ngZone.run(function(){t.pageRendered.emit(e)})}),n.eventBus.on("download",function(e){t.ngZone.run(function(){t.pdfDownloaded.emit(e)})}),n.eventBus.on("scalechanging",function(e){setTimeout(function(){t.ngZone.run(function(){t.currentZoomFactor.emit(e.scale);var n=t.root.nativeElement.querySelector("#scaleSelect"),i=t.zoom;n&&(i=n.value),"auto"!==i&&"page-fit"!==i&&"page-actual"!==i&&"page-width"!==i&&t.zoomChange.emit(100*e.scale)})})}),n.eventBus.on("rotationchanging",function(e){t.ngZone.run(function(){t.rotationChange.emit(e.pagesRotation)})}),n.eventBus.on("fileinputchange",function(e){t.ngZone.run(function(){var n=e.fileInput.value.replace("C:\\fakepath\\","");t.srcChange.emit(n)})}),n.eventBus.on("cursortoolchanged",function(e){t.ngZone.run(function(){t.handToolChange.emit(e.tool===WO.HAND)})}),n.eventBus.on("sidebarviewchanged",function(e){t.ngZone.run(function(){t.sidebarVisibleChange.emit(e.view>0),t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})});var i=function(){t.ngZone.run(function(){t.sidebarComponent&&t.sidebarComponent.showToolbarWhenNecessary()})};if(n.eventBus.on("outlineloaded",i),n.eventBus.on("attachmentsloaded",i),n.eventBus.on("layersloaded",i),n.eventBus.on("updatefindcontrolstate",function(e){t.updateFindMatchesCount&&(e.state===LO.NOT_FOUND?t.updateFindMatchesCount.emit({current:0,total:0}):e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)),t.updateFindState&&t.updateFindState.emit(e.state)}),n.eventBus.on("updatefindmatchescount",function(e){t.updateFindMatchesCount&&e.matchesCount.total&&t.updateFindMatchesCount.emit(e.matchesCount)}),n.eventBus.on("pagechanging",function(e){t.shuttingDown||t.ngZone.run(function(){var e=n.pdfViewer.currentPageNumber,i=n.pdfViewer.currentPageLabel;e!==t.page&&t.pageChange.emit(e),i!==t.pageLabel&&t.pageLabelChange.emit(i)})}),this.checkHeight(),this._src){var r={password:this.password,verbosity:this.logLevel};this._src.range&&(r.range=this._src.range),this.httpHeaders&&(r.httpHeaders=this.httpHeaders),this.authorization&&(r.withCredentials=!0,r.httpHeaders?r.httpHeaders.Authorization||(r.httpHeaders.Authorization=this.authorization):r.httpHeaders={Authorization:this.authorization}),n.onError=function(e){return t.pdfLoadingFailed.emit(e)},n.open(this._src,r).then(function(){return t.pdfLoaded.emit({pagesCount:n.pagesCount})})}setTimeout(function(){t.shuttingDown||t.page&&(n.page=Number(t.page))},100)}},{key:"selectCursorTool",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:this.handTool?1:0})}},{key:"ngOnDestroy",value:function(){var t=window.PDFViewerApplication;if(this.shuttingDown=!0,e.ngxExtendedPdfViewerInitialized=!1,this.initTimeout&&(clearTimeout(this.initTimeout),this.initTimeout=void 0),t){this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0),t.cleanup(),t.close(),t.printKeyDownListener&&removeEventListener("keydown",t.printKeyDownListener,!0),t._boundEvents&&t.unbindWindowEvents();var n=t.eventBus;if(n)for(var i in t.unbindEvents(),n._listeners)if(n._listeners[i]){for(var r=n._listeners[i],o=0;o<r.length;o++)r[o]=void 0;n._listeners[i]=void 0}t.eventBus=null}var a=document.getElementsByTagName("body");if(a[0])for(var s=a[0].children,l=s.length-1;l>=0;l--){var u=s.item(l);(u&&"printContainer"===u.id||u&&"fileInput"===u.id)&&a[0].removeChild(u)}}},{key:"isPrimaryMenuVisible",value:function(){return!!(this.showBookmarkButton||this.showDownloadButton||this.showFindButton||this.showOpenFileButton||this.showPagingButtons||this.showPresentationModeButton||this.showPrintButton||this.showPropertiesButton||this.showSidebarButton||this.showZoomButtons)}},{key:"ngOnChanges",value:function(t){var n=this,i=window.PDFViewerApplication,r=window.PDFViewerApplicationOptions;if(e.ngxExtendedPdfViewerInitialized){if(("src"in t||"base64Src"in t)&&this._src){this.overrideDefaultSettings();var o={password:this.password,verbosity:this.logLevel};this._src.range&&(o.range=this._src.range),this.httpHeaders&&(o.httpHeaders=this.httpHeaders),this.authorization&&(o.withCredentials=!0,o.httpHeaders?o.httpHeaders.Authorization||(o.httpHeaders.Authorization=this.authorization):o.httpHeaders={Authorization:this.authorization}),i.open(this._src,o).then(function(){return n.pdfLoaded.emit({pagesCount:i.pagesCount})},function(e){return n.pdfLoadingFailed.emit(e)})}if("zoom"in t&&this.setZoom(),"maxZoom"in t&&r.set("maxZoom",this.maxZoom),"minZoom"in t&&r.set("minZoom",this.minZoom),"handTool"in t&&this.selectCursorTool(),"page"in t&&this.page&&this.page!=i.page&&(i.page=this.page),"pageLabel"in t&&this.pageLabel&&this.pageLabel!==i.pdfViewer.currentPageLabel&&(i.pdfViewer.currentPageLabel=this.pageLabel),"rotation"in t)if(this.rotation){var a=Number(this.rotation);0!==a&&90!==a&&180!==a&&270!==a||(i.pdfViewer.pagesRotation=a)}else i.pdfViewer.pagesRotation=0;"sidebarVisible"in t&&(this.sidebarVisible?i.pdfSidebar.open():i.pdfSidebar.close()),"filenameForDownload"in t&&(i.appConfig.filenameForDownload=this.filenameForDownload),"nameddest"in t&&this.nameddest&&i.pdfLinkService.navigateTo(this.nameddest),"spread"in t&&("even"===this.spread?(i.spreadModeOnLoad=2,i.pdfViewer.spreadMode=2,this.onSpreadChange("even")):"odd"===this.spread?(i.spreadModeOnLoad=1,i.pdfViewer.spreadMode=1,this.onSpreadChange("odd")):(i.spreadModeOnLoad=0,i.pdfViewer.spreadMode=0,this.onSpreadChange("off"))),"enablePinchOnMobile"in t&&(t.enablePinchOnMobile.isFirstChange()||t.enablePinchOnMobile.currentValue!==t.enablePinchOnMobile.previousValue&&(this.enablePinchOnMobile?this.pinchOnMobileSupport=new zD(this.ngZone):this.pinchOnMobileSupport&&(this.pinchOnMobileSupport.destroyPinchZoom(),this.pinchOnMobileSupport=void 0))),this.primaryMenuVisible=!0,this.showSecondaryToolbarButton&&!this.hideKebabMenuForSecondaryToolbar||this.isPrimaryMenuVisible()||(this.primaryMenuVisible=!1),this.calcViewerPositionTop()}if(this.onResize(),"printResolution"in t&&r&&r.set("printResolution",this.printResolution),"ignoreKeyboard"in t&&r&&this.overrideDefaultSettings(),"ignoreKeys"in t&&r&&this.overrideDefaultSettings(),"acceptKeys"in t&&r&&this.overrideDefaultSettings(),"showBorders"in t&&!t.showBorders.isFirstChange()&&r){this.overrideDefaultSettings();var s=document.getElementById("viewer");this.showBorders?s.classList.remove("removePageBorders"):s.classList.add("removePageBorders"),i.pdfViewer&&(i.pdfViewer.removePageBorders=!this.showBorders);var l={source:s,scale:(100|Number(this.zoom))/100,presetValue:this.zoom};i.eventBus.dispatch("scalechanging",l)}"showUnverifiedSignatures"in t&&i&&i.pdfDocument&&i.pdfDocument._transport.messageHandler.send("showUnverifiedSignatures",this.showUnverifiedSignatures),"enablePrint"in t&&(t.enablePrint.isFirstChange()||(i.enablePrint=this.enablePrint)),("customFindbar"in t&&!t.customFindbar.isFirstChange()||"customFindbarButtons"in t&&!t.customFindbarButtons.isFirstChange()||"customFindbarInputArea"in t&&!t.customFindbarInputArea.isFirstChange()||"customToolbar"in t&&!t.customToolbar.isFirstChange())&&this.dummyComponents&&this.dummyComponents.addMissingStandardWidgets()}},{key:"setZoom",value:function(){var e=this.zoom;String(e).endsWith("%")?e=Number(String(e).replace("%",""))/100:isNaN(Number(e))||(e=Number(e)/100),e||(e="auto");var t=window.PDFViewerApplication;t&&window.PDFViewerApplicationOptions.set("defaultZoomValue",e),t.pdfViewer&&(t.pdfViewer.currentScaleValue=e)}},{key:"onResize",value:function(){var e=document.getElementsByClassName("html");if(e&&e.length>0){var t=document.getElementById("outerContainer");t&&(this.toolbarWidthInPixels=t.clientWidth,this.secondaryToolbarComponent&&this.secondaryToolbarComponent.checkVisibility())}}},{key:"onContextMenu",value:function(){return this.contextMenuAllowed}},{key:"onSecondaryMenuIsEmpty",value:function(e){this.hideKebabMenuForSecondaryToolbar=e}}]),e}()).\u0275fac=function(e){return new(e||ND)(Ps(Zc),Ps(Mc),Ps(HO),Ps(Kd))},ND.\u0275cmp=Ft({type:ND,selectors:[["ngx-extended-pdf-viewer"]],viewQuery:function(e,t){var n;1&e&&(bc(jO,1),bc(sO,1),bc(lO,1),bc(uO,1)),2&e&&(yc(n=kc())&&(t.dummyComponents=n.first),yc(n=kc())&&(t.root=n.first),yc(n=kc())&&(t.secondaryToolbarComponent=n.first),yc(n=kc())&&(t.sidebarComponent=n.first))},hostBindings:function(e,t){1&e&&js("contextmenu",function(){return t.onContextMenu()})},inputs:{customFindbarButtons:"customFindbarButtons",authorization:"authorization",httpHeaders:"httpHeaders",contextMenuAllowed:"contextMenuAllowed",enablePrint:"enablePrint",delayFirstView:"delayFirstView",logLevel:"logLevel",enablePinchOnMobile:"enablePinchOnMobile",minifiedJSLibraries:"minifiedJSLibraries",printResolution:"printResolution",useBrowserLocale:"useBrowserLocale",backgroundColor:"backgroundColor",filenameForDownload:"filenameForDownload",ignoreKeyboard:"ignoreKeyboard",ignoreKeys:"ignoreKeys",acceptKeys:"acceptKeys",imageResourcesPath:"imageResourcesPath",language:"language",listenToURL:"listenToURL",nameddest:"nameddest",password:"password",showUnverifiedSignatures:"showUnverifiedSignatures",showSidebarOnLoad:"showSidebarOnLoad",sidebarVisible:"sidebarVisible",showFindButton:"showFindButton",showPagingButtons:"showPagingButtons",showZoomButtons:"showZoomButtons",showPresentationModeButton:"showPresentationModeButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showDownloadButton:"showDownloadButton",showBookmarkButton:"showBookmarkButton",theme:"theme",showSecondaryToolbarButton:"showSecondaryToolbarButton",showRotateButton:"showRotateButton",handTool:"handTool",showHandToolButton:"showHandToolButton",showScrollingButton:"showScrollingButton",showSpreadButton:"showSpreadButton",showPropertiesButton:"showPropertiesButton",showBorders:"showBorders",pageLabel:"pageLabel",textLayer:"textLayer",zoom:"zoom",zoomLevels:"zoomLevels",maxZoom:"maxZoom",minZoom:"minZoom",_mobileFriendlyZoom:"_mobileFriendlyZoom",src:"src",base64Src:"base64Src",height:"height",showSidebarButton:"showSidebarButton",page:"page",mobileFriendlyZoom:"mobileFriendlyZoom",mobileZoom:"mobileZoom",customFindbarInputArea:"customFindbarInputArea",customToolbar:"customToolbar",customFindbar:"customFindbar",customSecondaryToolbar:"customSecondaryToolbar",customSidebar:"customSidebar",customThumbnail:"customThumbnail",customFreeFloatingBar:"customFreeFloatingBar",rotation:"rotation",startTabindex:"startTabindex",spread:"spread"},outputs:{srcChange:"srcChange",afterPrint:"afterPrint",beforePrint:"beforePrint",currentZoomFactor:"currentZoomFactor",rotationChange:"rotationChange",sidebarVisibleChange:"sidebarVisibleChange",handToolChange:"handToolChange",spreadChange:"spreadChange",thumbnailDrawn:"thumbnailDrawn",pageChange:"pageChange",pageLabelChange:"pageLabelChange",pagesLoaded:"pagesLoaded",pageRendered:"pageRendered",pdfDownloaded:"pdfDownloaded",pdfLoaded:"pdfLoaded",pdfLoadingFailed:"pdfLoadingFailed",textlayerRendered:"textlayerRendered",textLayerRendered:"textLayerRendered",updateFindMatchesCount:"updateFindMatchesCount",updateFindState:"updateFindState",zoomChange:"zoomChange"},features:[tn],ngContentSelectors:aO,decls:66,vars:60,consts:[["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer",4,"ngIf"],[4,"ngIf"],[3,"zoom","width"],[1,"zoom"],["root",""],[1,"html"],[1,"loadingInProgress","body"],["id","outerContainer",3,"resize"],[1,"free-floating-bar"],[4,"ngTemplateOutlet"],[3,"sidebarPositionTop","sidebarVisible","showSidebarButton","customSidebar","customThumbnail","thumbnailDrawn"],["pdfsidebar",""],["id","mainContainer"],[3,"customToolbar","mobileFriendlyZoomScale","primaryMenuVisible","showBookmarkButton","showDownloadButton","showFindButton","showHandToolButton","showOpenFileButton","showPrintButton","showPagingButtons","showPresentationModeButton","showRotateButton","showSecondaryToolbarButton","showSidebarButton","showZoomButtons","textLayer","toolbarPaddingTop","toolbarWidth","zoomLevels"],[3,"customSecondaryToolbar","secondaryToolbarTop","mobileFriendlyZoomScale","showPresentationModeButton","showOpenFileButton","showPrintButton","showDownloadButton","showBookmarkButton","showPagingButtons","showRotateButton","showHandToolButton","showScrollingButton","showSpreadButton","showPropertiesButton","spreadChange","secondaryMenuIsEmpty"],["pdfSecondaryToolbarComponent",""],[3,"findbarLeft","findbarTop","mobileFriendlyZoomScale","showFindButton","customFindbarInputArea","customFindbarButtons"],["id","viewerContainer"],["id","viewer",1,"pdfViewer"],["id","errorWrapper","hidden","true"],["id","errorMessageLeft"],["id","errorMessage"],["type","button","id","errorShowMore","data-l10n-id","error_more_info"],["type","button","id","errorShowLess","data-l10n-id","error_less_info","hidden","true"],["id","errorMessageRight"],["type","button","id","errorClose","data-l10n-id","error_close"],[1,"clearBoth"],["id","errorMoreInfo","hidden","true","readonly","readonly"],["id","overlayContainer",1,"hidden"],["id","passwordOverlay",1,"container","hidden"],[1,"dialog"],[1,"row"],["id","passwordText","data-l10n-id","password_label"],["id","password",1,"toolbarField"],[1,"buttonRow"],["type","button","id","passwordCancel",1,"overlayButton"],["data-l10n-id","password_cancel"],["type","button","id","passwordSubmit",1,"overlayButton"],["data-l10n-id","password_ok"],["id","documentPropertiesOverlay",1,"container","hidden"],["id","printServiceOverlay",1,"container","hidden"],["data-l10n-id","print_progress_message"],["value","0","max","100"],["data-l10n-id","print_progress_percent","data-l10n-args",'{ "progress": 0 }',1,"relative-progress"],["type","button","id","printCancel",1,"overlayButton"],["data-l10n-id","print_progress_close"],["id","printContainer"],["defaultFreeFloatingBar",""],["rel","resource","type","application/l10n","href","assets/locale/locale.properties","origin","ngx-extended-pdf-viewer"]],template:function(e,t){if(1&e&&(Zs(),Ss(0,cO,1,0,"link",0),Ss(1,dO,1,0,"pdf-dark-theme",1),Ss(2,hO,1,0,"pdf-light-theme",1),Ms(3,"pdf-dynamic-css",2),Is(4,"div",3,4),Is(6,"div",5),Is(7,"div",6),Is(8,"div",7),js("resize",function(){return t.onResize()},!1,io),Is(9,"div",8),Ss(10,fO,1,0,"ng-content",9),Ts(),Is(11,"pdf-sidebar",10,11),js("thumbnailDrawn",function(e){return t.thumbnailDrawn.emit(e)}),Ts(),Is(13,"div",12),Ms(14,"pdf-dummy-components"),Ms(15,"pdf-toolbar",13),Is(16,"pdf-secondary-toolbar",14,15),js("spreadChange",function(e){return t.onSpreadChange(e)})("secondaryMenuIsEmpty",function(e){return t.onSecondaryMenuIsEmpty(e)}),Ts(),Ms(18,"pdf-findbar",16),Ms(19,"pdf-context-menu"),Is(20,"div",17),Ms(21,"div",18),Ts(),Is(22,"div",19),Is(23,"div",20),Ms(24,"span",21),Is(25,"button",22),bl(26," More Information "),Ts(),Is(27,"button",23),bl(28," Less Information "),Ts(),Ts(),Is(29,"div",24),Is(30,"button",25),bl(31,"Close"),Ts(),Ts(),Ms(32,"div",26),Ms(33,"textarea",27),Ts(),Ts(),Is(34,"div",28),Is(35,"div",29),Is(36,"div",30),Is(37,"div",31),Is(38,"p",32),bl(39," Enter the password to open this PDF file: "),Ts(),Ts(),Is(40,"div",31),Ms(41,"input",33),Ts(),Is(42,"div",34),Is(43,"button",35),Is(44,"span",36),bl(45,"Cancel"),Ts(),Ts(),Is(46,"button",37),Is(47,"span",38),bl(48,"OK"),Ts(),Ts(),Ts(),Ts(),Ts(),Ms(49,"pdf-document-properties-overlay",39),Is(50,"div",40),Is(51,"div",30),Is(52,"div",31),Is(53,"span",41),bl(54,"Preparing document for printing\u2026"),Ts(),Ts(),Is(55,"div",31),Ms(56,"progress",42),Is(57,"span",43),bl(58,"0%"),Ts(),Ts(),Is(59,"div",34),Is(60,"button",44),Is(61,"span",45),bl(62,"Cancel"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ms(63,"div",46),Ts(),Ts(),Ts(),Ss(64,pO,0,0,"ng-template",null,47,Cc)),2&e){var n=Es(65);Os("ngIf",t.useBrowserLocale),Yo(1),Os("ngIf","dark"===t.theme),Yo(1),Os("ngIf","light"===t.theme),Yo(1),Os("zoom",t.mobileFriendlyZoomScale)("width",t.toolbarWidthInPixels),Yo(1),ol("height",t.height)("min-height",t.minHeight),Yo(3),ol("background-color",t.backgroundColor),Yo(3),Os("ngTemplateOutlet",t.customFreeFloatingBar?t.customFreeFloatingBar:n),Yo(1),Os("sidebarPositionTop",t.sidebarPositionTop)("sidebarVisible",t.sidebarVisible)("showSidebarButton",t.showSidebarButton)("customSidebar",t.customSidebar)("customThumbnail",t.customThumbnail),Yo(4),Os("customToolbar",t.customToolbar)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("primaryMenuVisible",t.primaryMenuVisible)("showBookmarkButton",t.showBookmarkButton)("showDownloadButton",t.showDownloadButton)("showFindButton",t.showFindButton)("showHandToolButton",t.showHandToolButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showPagingButtons",t.showPagingButtons)("showPresentationModeButton",t.showPresentationModeButton)("showRotateButton",t.showRotateButton)("showSecondaryToolbarButton",t.showSecondaryToolbarButton&&!t.hideKebabMenuForSecondaryToolbar)("showSidebarButton",t.showSidebarButton)("showZoomButtons",t.showZoomButtons)("textLayer",t.textLayer)("toolbarPaddingTop",t.toolbarPaddingTop)("toolbarWidth",t.toolbarWidth)("zoomLevels",t.zoomLevels),Yo(1),Os("customSecondaryToolbar",t.customSecondaryToolbar)("secondaryToolbarTop",t.secondaryToolbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showPresentationModeButton",t.showPresentationModeButton)("showOpenFileButton",t.showOpenFileButton)("showPrintButton",t.showPrintButton&&t.enablePrint)("showDownloadButton",t.showDownloadButton)("showBookmarkButton",t.showBookmarkButton)("showPagingButtons",t.showPagingButtons)("showRotateButton",t.showRotateButton)("showHandToolButton",t.showHandToolButton)("showScrollingButton",t.showScrollingButton)("showSpreadButton",t.showSpreadButton)("showPropertiesButton",t.showPropertiesButton),Yo(2),Os("findbarLeft",t.findbarLeft)("findbarTop",t.findbarTop)("mobileFriendlyZoomScale",t.mobileFriendlyZoomScale)("showFindButton",t.showFindButton)("customFindbarInputArea",t.customFindbarInputArea)("customFindbarButtons",t.customFindbarButtons),Yo(2),ol("top",t.viewerPositionTop),Yo(1),ol("background-color",t.backgroundColor)}},directives:function(){return[jh,II,ef,jD,jO,CI,UO,KD,qD,YD,RI,BI]},encapsulation:2,changeDetection:0}),ND.ngxExtendedPdfViewerInitialized=!1,ND),UD=((FD=function(){function e(){Z(this,e)}return Y(e,[{key:"findMultiple",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},t,{findMultipleSearchTexts:!0});var n=e.join("\n")+"\n";return this.find(n,t)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(HD.ngxExtendedPdfViewerInitialized){var n=document.getElementById("findHighlightAll");n&&(n.checked=t.highlightAll||!1);var i=document.getElementById("findMatchCase");i&&(i.checked=t.matchCase||!1);var r=document.getElementById("findEntireWord");r&&(r.checked=t.wholeWords||!1);var o=document.getElementById("findIgnoreAccents");o&&(o.checked=t.ignoreAccents||!1);var a=t.findMultipleSearchTexts||e.includes("\n")||!1,s=document.getElementById("findMultipleSearchTexts");s&&(s.checked=a);var l=document.getElementById("individualWordsMode");l&&(l.checked=!1);var u=document.getElementById("findFuzzy");u&&(u.checked=t.fuzzySearch||!1);var c=a?document.getElementById("findInputMultiline"):document.getElementById("findInput");return c?(c instanceof HTMLTextAreaElement?(c.value=e,c.classList.remove("hidden"),document.getElementById("findInput").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.remove("hidden"),document.getElementById("individualWordsMode").classList.remove("hidden")):c instanceof HTMLInputElement&&(c.value=e,c.classList.remove("hidden"),document.getElementById("findInputMultiline").classList.add("hidden"),document.getElementById("individualWordsModeLabel").classList.add("hidden"),document.getElementById("individualWordsMode").classList.add("hidden")),c.dispatchEvent(new Event("input")),!0):(console.error("Unexpected error: the input field used to search isn't part of the DOM."),!1)}return console.error("The PDF viewer hasn't finished initializing. Please call find() later."),!1}},{key:"findNext",value:function(){if(HD.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findNext");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findNext() later."),!1}},{key:"findPrevious",value:function(){if(HD.ngxExtendedPdfViewerInitialized){var e=document.getElementById("findPrevious");return!!e&&(e.click(),!0)}return console.error("The PDF viewer hasn't finished initializing. Please call findPrevious() later."),!1}},{key:"print",value:function(e){var t=this,n=window.PDFViewerApplication,i=!!window.isInPDFPrintRange&&!e;i||(e||(e={}),this.setPrintRange(e)),window.printPDF(),i||n.eventBus.on("afterprint",function(){t.removePrintRange()})}},{key:"removePrintRange",value:function(){window.isInPDFPrintRange=void 0,window.filteredPageCount=void 0}},{key:"setPrintRange",value:function(e){var t=this,n=window.PDFViewerApplication;window.isInPDFPrintRange=function(n){return t.isInPDFPrintRange(n,e)},window.filteredPageCount=this.filteredPageCount(n.pagesCount,e)}},{key:"filteredPageCount",value:function(e,t){for(var n=0,i=1;i<=e;i++)this.isInPDFPrintRange(i,t)&&n++;return n}},{key:"isInPDFPrintRange",value:function(e,t){var n=e+1;return!(t.from&&n<t.from||t.to&&n>t.to||t.excluded&&t.excluded.some(function(e){return e===n})||t.included&&!t.included.some(function(e){return e===n}))}},{key:"getPageAsText_preview",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){e.getTextContent().then(function(e){return t(n.convertTextInfoToText(e))})})}},{key:"getPageAsText",value:function(e){var t=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(t,n){t(e.getTextContent())})}).then(function(e){return new Promise(function(n,i){n(t.convertTextInfoToText(e))})})}},{key:"convertTextInfoToText",value:function(e){return e?e.items.map(function(e){return e.str}).join(""):""}},{key:"getPageAsImage_preview",value:function(e,t,n,i){var r=this;window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){r.draw_preview(e,t,n,i)}).catch(function(e){i?i({message:"Unable to initialize PDF page service",reason:e}):console.error("Unable to initialize PDF page service",e)})}},{key:"getPageAsImage",value:function(e,t){var n=this;return window.PDFViewerApplication.pdfDocument.getPage(e).then(function(e){return new Promise(function(i,r){i(n.draw(e,t))})})}},{key:"draw",value:function(e,t){var n=1;t.scale?n=t.scale:t.width?n=t.width/e.getViewport({scale:1}).width:t.height&&(n=t.height/e.getViewport({scale:1}).height);var i=e.getViewport({scale:n}),r=this.getPageDrawContext(i.width,i.height),o=r.ctx,a=r.canvas,s=i.clone();return e.render({canvasContext:o,viewport:s}).promise.then(function(){return new Promise(function(e,t){e(a.toDataURL())})})}},{key:"draw_preview",value:function(e,t,n,i){var r=1;t.scale?r=t.scale:t.width?r=t.width/e.getViewport({scale:1}).width:t.height&&(r=t.height/e.getViewport({scale:1}).height);var o=e.getViewport({scale:r}),a=this.getPageDrawContext(o.width,o.height),s=a.ctx,l=a.canvas,u=o.clone();e.render({canvasContext:s,viewport:u}).promise.then(function(){var e=l.toDataURL();n(e)},function(e){i&&i(e)})}},{key:"getPageDrawContext",value:function(e,t){var n=document.createElement("canvas"),i=n.getContext("2d",{alpha:!1});if(!i)throw new Error("Couldn't create the 2d context");return n.width=e,n.height=t,n.style.width=e+"px",n.style.height=t+"px",{ctx:i,canvas:n}}}]),e}()).\u0275fac=function(e){return new(e||FD)},FD.\u0275prov=rt({token:FD,factory:FD.\u0275fac}),FD),WD=((LD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.showHandToolButton=!0,this.isSelected=!1;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===WO.HAND})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:WO.HAND})}}]),e}()).\u0275fac=function(e){return new(e||LD)(Ps(HO))},LD.\u0275cmp=Ft({type:LD,selectors:[["pdf-hand-tool"]],inputs:{showHandToolButton:"showHandToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorHandTool","title","Enable hand tool","data-l10n-id","cursor_hand_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"],["data-l10n-id","cursor_hand_tool_label"]],template:function(e,t){1&e&&(Is(0,"button",0),js("click",function(){return t.onClick()}),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Hand Tool"),Ts(),Ts()),2&e&&al("invisible",!t.showHandToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),LD),GD=((RD=Y(function e(){Z(this,e),this.showBookmarkButton=!0})).\u0275fac=function(e){return new(e||RD)},RD.\u0275cmp=Ft({type:RD,selectors:[["pdf-bookmark"]],inputs:{showBookmarkButton:"showBookmarkButton"},decls:5,vars:2,consts:[["href","#","id","viewBookmark","title","Current view (copy or open in new window)","data-l10n-id","bookmark",1,"toolbarButton","hiddenTinyView"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"],["data-l10n-id","bookmark_label"]],template:function(e,t){1&e&&(Is(0,"a",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Current View"),Ts(),Ts()),2&e&&al("invisible",!t.showBookmarkButton)},styles:["[_nghost-%COMP%]   a.toolbarButton[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-top:4px}[_nghost-%COMP%]:focus{outline:0}a[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),RD),qD=((BD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||BD)},BD.\u0275cmp=Ft({type:BD,selectors:[["pdf-context-menu"]],decls:5,vars:0,consts:[["type","context","id","viewerContextMenu",2,"display","none"],["id","contextFirstPage",2,"display","none"],["id","contextLastPage",2,"display","none"],["id","contextPageRotateCw",2,"display","none"],["id","contextPageRotateCcw",2,"display","none"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"div",1),Ms(2,"div",2),Ms(3,"div",3),Ms(4,"div",4),Ts())},styles:["[_nghost-%COMP%]{margin-top:4px}"]}),BD),YD=((MD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||MD)},MD.\u0275cmp=Ft({type:MD,selectors:[["pdf-document-properties-overlay"]],decls:77,vars:0,consts:[[1,"dialog"],[1,"row"],["data-l10n-id","document_properties_file_name"],["id","fileNameField"],["data-l10n-id","document_properties_file_size"],["id","fileSizeField"],["data-l10n-id","document_properties_title"],["id","titleField"],["data-l10n-id","document_properties_author"],["id","authorField"],["data-l10n-id","document_properties_subject"],["id","subjectField"],["data-l10n-id","document_properties_keywords"],["id","keywordsField"],["data-l10n-id","document_properties_creation_date"],["id","creationDateField"],["data-l10n-id","document_properties_modification_date"],["id","modificationDateField"],["data-l10n-id","document_properties_creator"],["id","creatorField"],["data-l10n-id","document_properties_producer"],["id","producerField"],["data-l10n-id","document_properties_version"],["id","versionField"],["data-l10n-id","document_properties_page_count"],["id","pageCountField"],["data-l10n-id","document_properties_page_size"],["id","pageSizeField"],[1,"separator"],["data-l10n-id","document_properties_linearized"],["id","linearizedField"],[1,"buttonRow"],["type","button","id","documentPropertiesClose",1,"overlayButton"],["data-l10n-id","document_properties_close"]],template:function(e,t){1&e&&(Is(0,"div"),Is(1,"div",0),Is(2,"div",1),Is(3,"span",2),bl(4,"File name:"),Ts(),Is(5,"p",3),bl(6,"-"),Ts(),Ts(),Is(7,"div",1),Is(8,"span",4),bl(9,"File size:"),Ts(),Is(10,"p",5),bl(11,"-"),Ts(),Ts(),Is(12,"div",1),Is(13,"span",6),bl(14,"Title:"),Ts(),Is(15,"p",7),bl(16,"-"),Ts(),Ts(),Is(17,"div",1),Is(18,"span",8),bl(19,"Author:"),Ts(),Is(20,"p",9),bl(21,"-"),Ts(),Ts(),Is(22,"div",1),Is(23,"span",10),bl(24,"Subject:"),Ts(),Is(25,"p",11),bl(26,"-"),Ts(),Ts(),Is(27,"div",1),Is(28,"span",12),bl(29,"Keywords:"),Ts(),Is(30,"p",13),bl(31,"-"),Ts(),Ts(),Is(32,"div",1),Is(33,"span",14),bl(34,"Creation Date:"),Ts(),Is(35,"p",15),bl(36,"-"),Ts(),Ts(),Is(37,"div",1),Is(38,"span",16),bl(39,"Modification Date:"),Ts(),Is(40,"p",17),bl(41,"-"),Ts(),Ts(),Is(42,"div",1),Is(43,"span",18),bl(44,"Creator:"),Ts(),Is(45,"p",19),bl(46,"-"),Ts(),Ts(),Is(47,"div",1),Is(48,"span",20),bl(49,"PDF Producer:"),Ts(),Is(50,"p",21),bl(51,"-"),Ts(),Ts(),Is(52,"div",1),Is(53,"span",22),bl(54,"PDF Version:"),Ts(),Is(55,"p",23),bl(56,"-"),Ts(),Ts(),Is(57,"div",1),Is(58,"span",24),bl(59,"Page Count:"),Ts(),Is(60,"p",25),bl(61,"-"),Ts(),Ts(),Is(62,"div",1),Is(63,"span",26),bl(64,"Page Size:"),Ts(),Is(65,"p",27),bl(66,"-"),Ts(),Ts(),Ms(67,"div",28),Is(68,"div",1),Is(69,"span",29),bl(70,"Fast Web View:"),Ts(),Is(71,"p",30),bl(72,"-"),Ts(),Ts(),Is(73,"div",31),Is(74,"button",32),Is(75,"span",33),bl(76,"Close"),Ts(),Ts(),Ts(),Ts(),Ts())},styles:[""]}),MD),ZD=((TD=Y(function e(){Z(this,e),this.showDownloadButton=!0})).\u0275fac=function(e){return new(e||TD)},TD.\u0275cmp=Ft({type:TD,selectors:[["pdf-download"]],inputs:{showDownloadButton:"showDownloadButton"},decls:5,vars:2,consts:[["type","button","id","download","title","Download","data-l10n-id","download",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,19L8,15H10.5V12H13.5V15H16L12,19Z"],["data-l10n-id","download_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Download"),Ts(),Ts()),2&e&&al("invisible",!t.showDownloadButton)},styles:[bO]}),TD),KD=((ID=Y(function e(){Z(this,e),this.showFindButton=!0})).\u0275fac=function(e){return new(e||ID)},ID.\u0275cmp=Ft({type:ID,selectors:[["pdf-findbar"]],inputs:{showFindButton:"showFindButton",mobileFriendlyZoomScale:"mobileFriendlyZoomScale",findbarLeft:"findbarLeft",findbarTop:"findbarTop",customFindbarInputArea:"customFindbarInputArea",customFindbar:"customFindbar",customFindbarButtons:"customFindbarButtons"},decls:5,vars:1,consts:[[3,"ngTemplateOutlet"],["defaultFindbar",""],["defaultFindbarButtons",""],["id","findbar",1,"findbar","hidden","doorHanger"],[3,"customFindbarInputArea"]],template:function(e,t){if(1&e&&(Ls(0,0),Ss(1,gO,2,11,"ng-template",null,1,Cc),Ss(3,vO,5,1,"ng-template",null,2,Cc)),2&e){var n=Es(2);Os("ngTemplateOutlet",t.customFindbar?t.customFindbar:n)}},directives:function(){return[ef,oI,XD,$D,JD,QD]},styles:[""]}),ID),QD=((DD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||DD)},DD.\u0275cmp=Ft({type:DD,selectors:[["pdf-findbar-message-container"]],decls:2,vars:0,consts:[["id","findbarMessageContainer"],["id","findMsg",1,"toolbarLabel"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"span",1),Ts())},styles:[""]}),DD),XD=((OD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||OD)},OD.\u0275cmp=Ft({type:OD,selectors:[["pdf-findbar-options-one-container"]],decls:3,vars:0,consts:[["id","findbarOptionsOneContainer"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-find-highlight-all"),Ms(2,"pdf-find-match-case"),Ts())},directives:function(){return[iI,aI]},styles:[""]}),OD),JD=((PD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||PD)},PD.\u0275cmp=Ft({type:PD,selectors:[["pdf-findbar-options-three-container"]],decls:4,vars:0,consts:[["id","findbarOptionsThreeContainer"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-find-ignore-accents"),Ms(2,"pdf-find-fuzzily"),Ms(3,"pdf-find-results-count"),Ts())},directives:function(){return[rI,nI,dI]},styles:[""]}),PD),$D=((ED=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||ED)},ED.\u0275cmp=Ft({type:ED,selectors:[["pdf-findbar-options-two-container"]],decls:3,vars:0,consts:[["id","findbarOptionsTwoContainer"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-find-entire-word"),Ms(2,"pdf-find-entire-phrase"),Ts())},directives:function(){return[tI,lI]},styles:[""]}),ED),eI=((SD=function(){function e(){Z(this,e),this.showFindButton=void 0,this.textLayer=void 0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||SD)},SD.\u0275cmp=Ft({type:SD,selectors:[["pdf-find-button"]],inputs:{showFindButton:"showFindButton",textLayer:"textLayer"},decls:5,vars:2,consts:[["type","button","id","viewFind","title","Find in Document","data-l10n-id","findbar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"],["data-l10n-id","findbar_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Find"),Ts(),Ts()),2&e&&al("invisible",!t.showFindButton||!t.textLayer)},styles:[_O]}),SD),tI=((CD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||CD)},CD.\u0275cmp=Ft({type:CD,selectors:[["pdf-find-entire-word"]],decls:3,vars:0,consts:[["type","checkbox","id","findEntireWord",1,"toolbarField"],["for","findEntireWord","data-l10n-id","find_entire_word_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Whole words\n"),Ts())},styles:[""]}),CD),nI=((AD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||AD)},AD.\u0275cmp=Ft({type:AD,selectors:[["pdf-find-fuzzily"]],decls:3,vars:0,consts:[["type","checkbox","id","findFuzzy",1,"toolbarField"],["for","findFuzzy","data-l10n-id","find_fuzzy",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Fuzzy search\n"),Ts())},styles:[""]}),AD),iI=((_D=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||_D)},_D.\u0275cmp=Ft({type:_D,selectors:[["pdf-find-highlight-all"]],decls:3,vars:0,consts:[["type","checkbox","id","findHighlightAll",1,"toolbarField"],["for","findHighlightAll","data-l10n-id","find_highlight",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Highlight all\n"),Ts())},styles:[""]}),_D),rI=((xD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||xD)},xD.\u0275cmp=Ft({type:xD,selectors:[["pdf-find-ignore-accents"]],decls:3,vars:0,consts:[["type","checkbox","id","findIgnoreAccents",1,"toolbarField"],["for","findIgnoreAccents","data-l10n-id","find_ignore_accents",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Ignore accents and diacritics\n"),Ts())},styles:[""]}),xD),oI=((kD=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||kD)},kD.\u0275cmp=Ft({type:kD,selectors:[["pdf-find-input-area"]],inputs:{customFindbarInputArea:"customFindbarInputArea"},decls:2,vars:2,consts:[["id","findbarInputContainer",4,"ngIf"],[3,"ngTemplateOutlet"],["id","findbarInputContainer"]],template:function(e,t){1&e&&(Ss(0,mO,4,0,"div",0),Ls(1,1)),2&e&&(Os("ngIf",!t.customFindbarInputArea),Yo(1),Os("ngTemplateOutlet",t.customFindbarInputArea))},directives:function(){return[jh,ef,xI,cI,uI]},styles:[""]}),kD),aI=((wD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||wD)},wD.\u0275cmp=Ft({type:wD,selectors:[["pdf-find-match-case"]],decls:3,vars:0,consts:[["type","checkbox","id","findMatchCase",1,"toolbarField"],["for","findMatchCase","data-l10n-id","find_match_case_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Ms(0,"input",0),Is(1,"label",1),bl(2," Match case\n"),Ts())},styles:[""]}),wD),sI=((bD=Y(function e(){Z(this,e),this.individualWordsMode=!0,this.multipleSearchTexts=!1})).\u0275fac=function(e){return new(e||bD)},bD.\u0275prov=rt({token:bD,factory:bD.\u0275fac,providedIn:"root"}),bD.ngInjectableDef=ot({factory:function(){return new bD},token:bD,providedIn:"root"}),bD),lI=((yD=function(){function e(t){Z(this,e),this.pdfFindbarService=t}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||yD)(Ps(sI))},yD.\u0275cmp=Ft({type:yD,selectors:[["pdf-find-entire-phrase"]],decls:6,vars:6,consts:[["type","checkbox","id","findMultipleSearchTexts",1,"toolbarField",3,"ngModel","ngModelChange"],["for","findMultipleSearchTexts","data-l10n-id","find_multiple_texts_label",1,"toolbarLabel"],["type","checkbox","id","individualWordsMode",1,"toolbarField",3,"ngModel","ngModelChange"],["for","individualWordsMode","id","individualWordsModeLabel","data-l10n-id","find_individual_words_label",1,"toolbarLabel"]],template:function(e,t){1&e&&(Is(0,"input",0),js("ngModelChange",function(e){return t.pdfFindbarService.multipleSearchTexts=e}),Ts(),Is(1,"label",1),bl(2," multiple search texts\n"),Ts(),Is(3,"input",2),js("ngModelChange",function(e){return t.pdfFindbarService.individualWordsMode=e}),Ts(),Is(4,"label",3),bl(5," separated by word boundaries\n"),Ts()),2&e&&(Os("ngModel",t.pdfFindbarService.multipleSearchTexts),Yo(3),al("hidden",!t.pdfFindbarService.multipleSearchTexts),Os("ngModel",t.pdfFindbarService.individualWordsMode),Yo(1),al("hidden",!t.pdfFindbarService.multipleSearchTexts))},directives:[tm,Lm,my],styles:[""]}),yD),uI=((mD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||mD)},mD.\u0275cmp=Ft({type:mD,selectors:[["pdf-find-next"]],decls:5,vars:0,consts:[["type","button","id","findNext","title","Find the next occurrence of the phrase","data-l10n-id","find_next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","find_next_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Next"),Ts(),Ts())},styles:["button.toolbarButton#findNext[_ngcontent-%COMP%]{margin-top:0}"]}),mD),cI=((vD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||vD)},vD.\u0275cmp=Ft({type:vD,selectors:[["pdf-find-previous"]],decls:5,vars:0,consts:[["type","button","id","findPrevious","title","Find the previous occurrence of the phrase","data-l10n-id","find_previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","find_previous_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Previous"),Ts(),Ts())},styles:["button.toolbarButton#findPrevious[_ngcontent-%COMP%]{margin-top:0}"]}),vD),dI=((gD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||gD)},gD.\u0275cmp=Ft({type:gD,selectors:[["pdf-find-results-count"]],decls:1,vars:0,consts:[["id","findResultsCount",1,"toolbarLabel","hidden"]],template:function(e,t){1&e&&Ms(0,"span",0)},styles:[""]}),gD),hI=((pD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.disableFirstPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableFirstPage=e.pageNumber<=1,this.button.nativeElement.disabled=this.disableFirstPage}}]),e}()).\u0275fac=function(e){return new(e||pD)(Ps(HO))},pD.\u0275cmp=Ft({type:pD,selectors:[["pdf-first-page"]],viewQuery:function(e,t){var n;1&e&&bc(yO,1),2&e&&yc(n=kc())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","First page","id","primaryFirstPage","data-l10n-id","first_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z"],["data-l10n-id","first_page_label"]],template:function(e,t){1&e&&(Is(0,"button",0,1),js("click",function(){return t.firstPage()}),ei(),Is(2,"svg",2),Ms(3,"path",3),Ts(),ti(),Is(4,"span",4),bl(5,"First page"),Ts(),Ts()),2&e&&Os("disabled",t.disableFirstPage)},styles:[""]}),pD),fI=((fD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.disableLastPage=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"firstPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("firstpage")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableLastPage=e.pageNumber===e.pagesCount,this.button.nativeElement.disabled=this.disableLastPage}},{key:"lastPage",value:function(){window.PDFViewerApplication.eventBus.dispatch("lastpage")}}]),e}()).\u0275fac=function(e){return new(e||fD)(Ps(HO))},fD.\u0275cmp=Ft({type:fD,selectors:[["pdf-last-page"]],viewQuery:function(e,t){var n;1&e&&bc(yO,1),2&e&&yc(n=kc())&&(t.button=n.first)},decls:6,vars:1,consts:[["type","button","title","Last page","id","primaryLastPage","data-l10n-id","last_page",1,"toolbarButton","hiddenLargeView",3,"disabled","click"],["button",""],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z"],["data-l10n-id","last_page_label"]],template:function(e,t){1&e&&(Is(0,"button",0,1),js("click",function(){return t.lastPage()}),ei(),Is(2,"svg",2),Ms(3,"path",3),Ts(),ti(),Is(4,"span",4),bl(5,"Last page"),Ts(),Ts()),2&e&&Os("disabled",t.disableLastPage)},styles:[""]}),fD),pI=((hD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||hD)},hD.\u0275cmp=Ft({type:hD,selectors:[["pdf-next-page"]],decls:5,vars:0,consts:[["type","button","title","Next Page","id","next","data-l10n-id","next",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"],["data-l10n-id","next_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Next"),Ts(),Ts())},styles:[""]}),hD),gI=((dD=Y(function e(){Z(this,e),this.showOpenFileButton=!0})).\u0275fac=function(e){return new(e||dD)},dD.\u0275cmp=Ft({type:dD,selectors:[["pdf-open-file"]],inputs:{showOpenFileButton:"showOpenFileButton"},decls:5,vars:2,consts:[["type","button","id","openFile","title","Open File","data-l10n-id","open_file",1,"toolbarButton","hiddenMediumView"],["viewBox","0 0 24 24",2,"width","24px","height","20px"],["fill","currentColor","d","M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M12,12L16,16H13.5V19H10.5V16H8L12,12Z"],["data-l10n-id","open_file_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Open"),Ts(),Ts()),2&e&&al("invisible",!t.showOpenFileButton)},styles:[bO]}),dD),vI=((cD=function(){function e(){Z(this,e),this.showPagingButtons=!0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||cD)},cD.\u0275cmp=Ft({type:cD,selectors:[["pdf-page-number"]],inputs:{showPagingButtons:"showPagingButtons"},decls:2,vars:4,consts:[["type","number","id","pageNumber","title","Page","value","1","size","4","min","1","data-l10n-id","page",1,"toolbarField","pageNumber"],["id","numPages",1,"toolbarLabel","hiddenXLView"]],template:function(e,t){1&e&&(Ms(0,"input",0),Ms(1,"span",1)),2&e&&(al("invisible",!t.showPagingButtons),Yo(1),al("invisible",!t.showPagingButtons))},styles:[""]}),cD),mI=((uD=Y(function e(){Z(this,e),this.showPagingButtons=!0})).\u0275fac=function(e){return new(e||uD)},uD.\u0275cmp=Ft({type:uD,selectors:[["pdf-paging-area"]],inputs:{showPagingButtons:"showPagingButtons"},decls:7,vars:5,consts:[[1,"paging-left","hiddenTinyView"],[2,"margin-right","-3px"],[2,"margin-left","-3px"],[3,"showPagingButtons"],[1,"paging-right","hiddenTinyView"],[2,"margin-right","-3px","margin-left","-3px"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-first-page",1),Ms(2,"pdf-previous-page",2),Ts(),Ms(3,"pdf-page-number",3),Is(4,"div",4),Ms(5,"pdf-next-page",5),Ms(6,"pdf-last-page",2),Ts()),2&e&&(al("invisible",!t.showPagingButtons),Yo(3),Os("showPagingButtons",t.showPagingButtons),Yo(1),al("invisible",!t.showPagingButtons))},directives:function(){return[hI,bI,vI,pI,fI]},styles:[".paging-right[_ngcontent-%COMP%]{float:right;display:block;margin-top:-2px}.paging-left[_ngcontent-%COMP%]{float:left;display:block;margin-top:-2px}"]}),uD),yI=((lD=Y(function e(){Z(this,e),this.showPresentationModeButton=!0})).\u0275fac=function(e){return new(e||lD)},lD.\u0275cmp=Ft({type:lD,selectors:[["pdf-presentation-mode"]],inputs:{showPresentationModeButton:"showPresentationModeButton"},decls:5,vars:2,consts:[["type","button","id","presentationMode","title","Switch to Presentation Mode","data-l10n-id","presentation_mode",1,"toolbarButton","hiddenLargeView"],["viewBox","0 0 24 24",2,"width","27px","height","27px"],["fill","currentColor","d","M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"],["data-l10n-id","presentation_mode_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Presentation Mode"),Ts(),Ts()),2&e&&al("invisible",!t.showPresentationModeButton)},styles:["[_nghost-%COMP%]   button.toolbarButton[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),lD),bI=((sD=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||sD)},sD.\u0275cmp=Ft({type:sD,selectors:[["pdf-previous-page"]],decls:5,vars:0,consts:[["type","button","title","Previous Page","id","previous","data-l10n-id","previous",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"],["data-l10n-id","previous_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Previous"),Ts(),Ts())},styles:[""]}),sD),wI=((aD=Y(function e(){Z(this,e),this.showPrintButton=!0})).\u0275fac=function(e){return new(e||aD)},aD.\u0275cmp=Ft({type:aD,selectors:[["pdf-print"]],inputs:{showPrintButton:"showPrintButton"},decls:5,vars:2,consts:[["type","button","id","print","title","Print","data-l10n-id","print",1,"toolbarButton","hiddenSmallView"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"],["data-l10n-id","print_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Print"),Ts(),Ts()),2&e&&al("invisible",!t.showPrintButton)},styles:[xO]}),aD),kI=((oD=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.showRotateButton=!0,this.disableRotate=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"rotateCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotatecw")}},{key:"rotateCCW",value:function(){window.PDFViewerApplication.eventBus.dispatch("rotateccw")}},{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("updateuistate",function(t){return e.updateUIState(t)})}},{key:"updateUIState",value:function(e){this.disableRotate=0===e.pagesCount,this.button1.nativeElement.disabled=this.disableRotate,this.button2.nativeElement.disabled=this.disableRotate}}]),e}()).\u0275fac=function(e){return new(e||oD)(Ps(HO))},oD.\u0275cmp=Ft({type:oD,selectors:[["pdf-rotate-page"]],viewQuery:function(e,t){var n;1&e&&(bc(wO,1),bc(kO,1)),2&e&&(yc(n=kc())&&(t.button1=n.first),yc(n=kc())&&(t.button2=n.first))},inputs:{showRotateButton:"showRotateButton"},decls:8,vars:6,consts:[["type","button","id","primaryPageRotateCw","title","Rotate Clockwise","data-l10n-id","page_rotate_cw",1,"toolbarButton","hiddenXLView","rotateCw",3,"disabled","click"],["button1",""],["viewBox","0 0 24 24",2,"width","23px","height","23px"],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12S7.03 21 12 21C14 21 15.92 20.34 17.5 19.14L16.06 17.7C14.87 18.54 13.45 19 12 19C8.13 19 5 15.87 5 12S8.13 5 12 5 19 8.13 19 12H16L20 16L24 12H21C21 7.03 16.97 3 12 3"],["type","button","id","primaryPageRotateCcw","title","Rotate Counterclockwise","data-l10n-id","page_rotate_ccw",1,"toolbarButton","hiddenXLView","rotateCcw",3,"disabled","click"],["button2",""],["fill","currentColor","d","M12 3C7.03 3 3 7.03 3 12H0L4 16L8 12H5C5 8.13 8.13 5 12 5S19 8.13 19 12 15.87 19 12 19C10.55 19 9.13 18.54 7.94 17.7L6.5 19.14C8.08 20.34 10 21 12 21C16.97 21 21 16.97 21 12S16.97 3 12 3"]],template:function(e,t){1&e&&(Is(0,"button",0,1),js("click",function(){return t.rotateCW()}),ei(),Is(2,"svg",2),Ms(3,"path",3),Ts(),Ts(),ti(),Is(4,"button",4,5),js("click",function(){return t.rotateCCW()}),ei(),Is(6,"svg",2),Ms(7,"path",6),Ts(),Ts()),2&e&&(al("invisible",!t.showRotateButton),Os("disabled",t.disableRotate),Yo(4),al("invisible",!t.showRotateButton),Os("disabled",t.disableRotate))},styles:[xO]}),oD),xI=((rD=Y(function e(t){Z(this,e),this.pdfFindbarService=t})).\u0275fac=function(e){return new(e||rD)(Ps(sI))},rD.\u0275cmp=Ft({type:rD,selectors:[["pdf-search-input-field"]],decls:2,vars:5,consts:[["autocomplete","search-input-field","id","findInput","title","Find","data-l10n-id","find_input","name","search-input-field",1,"toolbarField",3,"placeholder"],["id","findInputMultiline","type","checkbox","placeholder","Multiple search terms. Each line is a search term.","data-l10n-id","find_input_line_by_line","lines","3",1,"toolbarField"]],template:function(e,t){1&e&&(Ms(0,"input",0),Ms(1,"textarea",1)),2&e&&(al("hidden",!t.pdfFindbarService.individualWordsMode),Os("placeholder","Find in document\u2026"),Yo(1),al("hidden",t.pdfFindbarService.individualWordsMode))},styles:["textarea[_ngcontent-%COMP%]{width:200px;height:3.5em}textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#bfbfbf}textarea[_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]:-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::-ms-input-placeholder{font-style:italic}textarea[_ngcontent-%COMP%]::placeholder{font-style:italic}"]}),rD),_I=((iD=function(){function e(){Z(this,e),this.showSecondaryToolbarButton=!0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||iD)},iD.\u0275cmp=Ft({type:iD,selectors:[["pdf-toggle-secondary-toolbar"]],inputs:{showSecondaryToolbarButton:"showSecondaryToolbarButton"},decls:5,vars:2,consts:[["type","button","id","secondaryToolbarToggle","title","Tools","data-l10n-id","tools",1,"toolbarButton"],["viewBox","0 0 24 24","onclick","event.preventDefault(); return false;",2,"width","27px","height","27px"],["fill","currentColor","d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["data-l10n-id","tools_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Tools"),Ts(),Ts()),2&e&&al("invisible",!t.showSecondaryToolbarButton)},styles:["svg[_ngcontent-%COMP%]{margin-top:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}"]}),iD),AI=((nD=function(){function e(){Z(this,e),this.showSidebarButton=!0}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||nD)},nD.\u0275cmp=Ft({type:nD,selectors:[["pdf-toggle-sidebar"]],inputs:{showSidebarButton:"showSidebarButton"},decls:5,vars:2,consts:[["type","button","id","sidebarToggle","title","Toggle Sidebar","data-l10n-id","toggle_sidebar",1,"toolbarButton"],["viewBox","0 0 24 24",2,"width","24px","height","24px"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["data-l10n-id","toggle_sidebar_label"]],template:function(e,t){1&e&&(Is(0,"button",0),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Toggle Sidebar"),Ts(),Ts()),2&e&&al("invisible",!t.showSidebarButton)},styles:[_O]}),nD),CI=((tD=Y(function e(){Z(this,e),this.mobileFriendlyZoomScale=1,this.primaryMenuVisible=!0,this.showBookmarkButton=!0,this.showDownloadButton=!0,this.showFindButton=void 0,this.showHandToolButton=!0,this.showOpenFileButton=!0,this.showPrintButton=!0,this.showPagingButtons=!0,this.showPresentationModeButton=!1,this.showRotateButton=!0,this.showSecondaryToolbarButton=!0,this.showSidebarButton=!0,this.showZoomButtons=!0,this.textLayer=void 0,this.toolbarPaddingTop="0px",this.toolbarWidth="100%",this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]})).\u0275fac=function(e){return new(e||tD)},tD.\u0275cmp=Ft({type:tD,selectors:[["pdf-toolbar"]],inputs:{mobileFriendlyZoomScale:"mobileFriendlyZoomScale",primaryMenuVisible:"primaryMenuVisible",showBookmarkButton:"showBookmarkButton",showDownloadButton:"showDownloadButton",showFindButton:"showFindButton",showHandToolButton:"showHandToolButton",showOpenFileButton:"showOpenFileButton",showPrintButton:"showPrintButton",showPagingButtons:"showPagingButtons",showPresentationModeButton:"showPresentationModeButton",showRotateButton:"showRotateButton",showSecondaryToolbarButton:"showSecondaryToolbarButton",showSidebarButton:"showSidebarButton",showZoomButtons:"showZoomButtons",textLayer:"textLayer",toolbarPaddingTop:"toolbarPaddingTop",toolbarWidth:"toolbarWidth",zoomLevels:"zoomLevels",customToolbar:"customToolbar"},ngContentSelectors:aO,decls:8,vars:11,consts:[[1,"toolbar"],["id","toolbarContainer"],[4,"ngTemplateOutlet"],["id","loadingBar"],[1,"progress"],[1,"glimmer"],["defaultToolbar",""],["id","toolbarViewer"],["id","toolbarViewerLeft"],[3,"showSidebarButton"],[3,"showFindButton","textLayer"],[3,"showPagingButtons"],[3,"showZoomButtons","zoomLevels"],["id","toolbarViewerRight"],[3,"showHandToolButton"],[3,"showSelectToolButton"],[3,"showRotateButton"],[3,"showPresentationModeButton"],[3,"showOpenFileButton"],[3,"showPrintButton"],[3,"showDownloadButton"],[3,"showBookmarkButton"],[3,"showSecondaryToolbarButton"]],template:function(e,t){if(1&e&&(Zs(),Is(0,"div",0),Is(1,"div",1),Ss(2,AO,1,0,"ng-content",2),Is(3,"div",3),Is(4,"div",4),Ms(5,"div",5),Ts(),Ts(),Ts(),Ts(),Ss(6,CO,16,15,"ng-template",null,6,Cc)),2&e){var n=Es(7);al("invisible",!t.primaryMenuVisible),Yo(1),ol("transform","scale("+t.mobileFriendlyZoomScale+")")("transform-origin","left center")("width",t.toolbarWidth)("padding-top",t.toolbarPaddingTop),Yo(1),Os("ngTemplateOutlet",t.customToolbar?t.customToolbar:n)}},directives:function(){return[ef,AI,eI,mI,OI,WD,DI,kI,yI,gI,wI,ZD,GD,_I]},styles:[""]}),tD),SI=((eD=function(){function e(){Z(this,e),this._zoomLevels=[]}return Y(e,[{key:"zoomLevels",set:function(e){var t=this;this._zoomLevels=e.map(function(e){return t.valueToZoomLevel(e)})}},{key:"ngOnInit",value:function(){}},{key:"valueToZoomLevel",value:function(e){e.toString().endsWith("%")&&(e=e.toString().replace("%",""),e=Number(e)/100);var t=Number(e);if(!t){var n=String(e);return{id:this.snakeToCamel(e+"Option"),value:n,dataL10nId:"page_scale_"+n.replace("page-",""),dataL10nArgs:void 0,displayValue:n}}var i=Math.round(100*t);return{id:"scale_"+i,value:String(t),dataL10nId:"page_scale_percent",dataL10nArgs:'{ "scale": '.concat(i," }"),displayValue:String(i)+"%"}}},{key:"snakeToCamel",value:function(e){return e.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace("-","").replace("_","")})}}]),e}()).\u0275fac=function(e){return new(e||eD)},eD.\u0275cmp=Ft({type:eD,selectors:[["pdf-zoom-dropdown"]],viewQuery:function(e,t){var n;1&e&&bc(SO,1),2&e&&yc(n=kc())&&(t.sizeSelector=n.first)},inputs:{zoomLevels:"zoomLevels"},decls:5,vars:1,consts:[["id","scaleSelectContainer",1,"dropdownToolbarButton"],["id","scaleSelect","title","Zoom","data-l10n-id","zoom"],["sizeSelector",""],[3,"id",4,"ngFor","ngForOf"],["id","customScaleOption","title","","value","custom","disabled","disabled","hidden","true"],[3,"id"]],template:function(e,t){1&e&&(Is(0,"span",0),Is(1,"select",1,2),Ss(3,EO,2,5,"option",3),Ms(4,"option",4),Ts(),Ts()),2&e&&(Yo(3),Os("ngForOf",t._zoomLevels))},directives:[Vh,Ty,Gy],styles:[".dropdownToolbarButton[_ngcontent-%COMP%]{display:table-cell;-webkit-appearance:none;width:150px;max-width:150px}.dropdownToolbarButton[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{width:170px}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.dropdownToolbarButton[_ngcontent-%COMP%]::after{top:-1px}}"]}),eD),EI=(($O=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||$O)},$O.\u0275cmp=Ft({type:$O,selectors:[["pdf-zoom-in"]],decls:4,vars:0,consts:[["type","button","id","zoomIn","title","Zoom In","data-l10n-id","zoom_in",1,"toolbarButton","zoomIn"],["data-l10n-id","zoom_in_label"]],template:function(e,t){1&e&&(Is(0,"button",0),bl(1," + "),Is(2,"span",1),bl(3,"Zoom In"),Ts(),Ts())},styles:[""]}),$O),PI=((JO=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||JO)},JO.\u0275cmp=Ft({type:JO,selectors:[["pdf-zoom-out"]],decls:4,vars:0,consts:[["type","button","id","zoomOut","title","Zoom Out","data-l10n-id","zoom_out",1,"toolbarButton","zoomOut",2,"margin-top","2px"],["data-l10n-id","zoom_out_label"]],template:function(e,t){1&e&&(Is(0,"button",0),bl(1," - "),Is(2,"span",1),bl(3,"Zoom Out"),Ts(),Ts())},styles:[""]}),JO),OI=((XO=Y(function e(){Z(this,e),this.showZoomButtons=!0,this.zoomLevels=["auto","page-actual","page-fit","page-width",.5,.75,1,1.25,1.5,2,3,4]})).\u0275fac=function(e){return new(e||XO)},XO.\u0275cmp=Ft({type:XO,selectors:[["pdf-zoom-toolbar"]],inputs:{showZoomButtons:"showZoomButtons",zoomLevels:"zoomLevels"},decls:4,vars:3,consts:[["id","toolbarViewerMiddle"],[2,"width","unset","max-width","unset","padding-top","3px",3,"zoomLevels"]],template:function(e,t){1&e&&(Is(0,"div",0),Ms(1,"pdf-zoom-out"),Ms(2,"pdf-zoom-in"),Ms(3,"pdf-zoom-dropdown",1),Ts()),2&e&&(al("invisible",!t.showZoomButtons),Yo(3),Os("zoomLevels",t.zoomLevels))},directives:[PI,EI,SI],styles:[""]}),XO),DI=((QO=function(){function e(t){var n=this;Z(this,e),this.notificationService=t,this.showSelectToolButton=!0,this.isSelected=!0;var i=this.notificationService.onPDFJSInit.subscribe(function(){n.onPdfJsInit(),i.unsubscribe()})}return Y(e,[{key:"onPdfJsInit",value:function(){var e=this;window.PDFViewerApplication.eventBus.on("cursortoolchanged",function(t){var n=t.tool;return e.isSelected=n===WO.SELECT})}},{key:"onClick",value:function(){window.PDFViewerApplication.eventBus.dispatch("switchcursortool",{tool:WO.SELECT})}}]),e}()).\u0275fac=function(e){return new(e||QO)(Ps(HO))},QO.\u0275cmp=Ft({type:QO,selectors:[["pdf-select-tool"]],inputs:{showSelectToolButton:"showSelectToolButton"},decls:5,vars:4,consts:[["type","button","id","primaryCursorSelectTool","title","Enable text selection tool","data-l10n-id","cursor_text_select_tool",1,"toolbarButton","hiddenXXLView",3,"click"],["viewBox","0 0 24 24",2,"width","22px","height","22px"],["fill","currentColor","d","M2 4C2 2.89 2.9 2 4 2H7V4H4V7H2V4M22 4V7H20V4H17V2H20C21.1 2 22 2.89 22 4M2 20V17H4V20H7V22H4C2.9 22 2 21.11 2 20M10 2H14V4H10V2M10 20H14V22H10V20M2 10H4V14H2V10M18.5 13C20.4 13 22 14.6 22 16.5C22 19.1 18.5 23 18.5 23C18.5 23 15 19.1 15 16.5C15 14.6 16.6 13 18.5 13M18.5 17.8C19.2 17.8 19.8 17.2 19.7 16.6C19.7 16 19.1 15.4 18.5 15.4C17.9 15.4 17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8M20 10H22V12.34C21.42 11.84 20.74 11.45 20 11.23V10Z"],["data-l10n-id","cursor_text_select_tool_label"]],template:function(e,t){1&e&&(Is(0,"button",0),js("click",function(){return t.onClick()}),ei(),Is(1,"svg",1),Ms(2,"path",2),Ts(),ti(),Is(3,"span",3),bl(4,"Text selection tool"),Ts(),Ts()),2&e&&al("invisible",!t.showSelectToolButton)("toggled",t.isSelected)},styles:["[_nghost-%COMP%]{margin-top:0;margin-right:-3px}[_nghost-%COMP%]:focus{outline:0}button[_ngcontent-%COMP%]:focus, svg[_ngcontent-%COMP%]:focus{outline:0}.toggled[_ngcontent-%COMP%]{background-color:#646464;border-color:rgba(0,0,0,.4) rgba(0,0,0,.45) rgba(0,0,0,.5);box-shadow:0 1px 1px rgba(0,0,0,.1) inset,0 0 1px rgba(0,0,0,.2) inset,0 1px 0 rgba(255,255,255,.05)}"]}),QO),II=((KO=function(){function e(t,n){Z(this,e),this.renderer=t,this.document=n,this.zoom=1,this.width=100,this.xs=490,this.sm=560,this.md=610,this.lg=660,this.xl=740,this.xxl=830}return Y(e,[{key:"style",get:function(){return"\n@media all and (max-width: ".concat(this.xl,"px) {\n  #toolbarViewerMiddle {\n    display: table;\n    margin: auto;\n    left: auto;\n    position: inherit;\n    transform: none;\n  }\n}\n\n@media all and (max-width: 840px) {\n  #sidebarContent {\n    background-color: rgba(0, 0, 0, 0.7);\n  }\n\n  html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {\n    left: 0px !important;\n  }\n  html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {\n    right: 0px !important;\n  }\n\n  #outerContainer .hiddenLargeView,\n  #outerContainer .hiddenMediumView {\n    display: inherit;\n  }\n  #outerContainer .visibleLargeView,\n  #outerContainer .visibleMediumView {\n    display: none;\n  }\n}\n\n@media all and (max-width: ").concat(this.lg,"px) {\n  .toolbarButtonSpacer {\n    width: 15px;\n  }\n\n  #outerContainer .hiddenLargeView {\n    display: none;\n  }\n  #outerContainer .visibleLargeView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  .toolbarButtonSpacer {\n    display: none;\n  }\n  #outerContainer .hiddenMediumView {\n    display: none;\n  }\n  #outerContainer .visibleMediumView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.sm,"px) {\n  .hiddenSmallView,\n  .hiddenSmallView * {\n    display: none;\n  }\n  .visibleSmallView {\n    display: inherit;\n  }\n  .toolbarButtonSpacer {\n    width: 0;\n  }\n  html[dir='ltr'] .findbar {\n    left: 38px;\n  }\n  html[dir='rtl'] .findbar {\n    right: 38px;\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  #scaleSelectContainer {\n    display: none;\n  }\n}\n\n.visibleXLView,\n.visibleXXLView,\n.visibleTinyView {\n  display: none;\n}\n\n.hiddenXLView,\n.hiddenXXLView {\n  display: unset;\n}\n\n@media all and (max-width: ").concat(this.xl,"px) {\n  #outerContainer .hiddenXLView {\n    display: none;\n  }\n  #outerContainer .visibleXLView {\n    display: inherit;\n  }\n\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-36%);\n    transform: translateX(-36%);\n    display: unset;\n    margin: unset;\n    left: 50%;\n    position: absolute;\n  }\n}\n\n@media all and (max-width: ").concat(this.xxl,"px) {\n  #outerContainer .hiddenXXLView {\n    display: none;\n  }\n  #outerContainer .visibleXXLView {\n    display: inherit;\n  }\n}\n\n@media all and (max-width: ").concat(this.md,"px) {\n  #toolbarViewerMiddle {\n    -webkit-transform: translateX(-26%);\n    transform: translateX(-26%);\n  }\n}\n\n@media all and (max-width: ").concat(this.xs,"px) {\n  .hiddenTinyView,\n  .hiddenTinyView * {\n    display: none;\n  }\n  .visibleTinyView {\n    display: inherit;\n  }\n}\n  ")}},{key:"ngOnInit",value:function(){this.injectStyle()}},{key:"ngOnChanges",value:function(){var e=this.document.body.clientWidth/this.width*(this.zoom?this.zoom:1);this.xs=490*e,this.sm=560*e,this.md=610*e,this.lg=660*e,this.xl=740*e,this.xxl=830*e;var t=this.document.getElementById("pdf-dynamic-css");t&&(t.innerHTML=this.style)}},{key:"injectStyle",value:function(){var e=this.document.createElement("STYLE");e.id="pdf-dynamic-css",e.innerHTML=this.style,this.renderer.appendChild(this.document.head,e)}},{key:"ngOnDestroy",value:function(){var e=this.document.getElementById("pdf-dynamic-css");e&&e.parentElement&&e.parentElement.removeChild(e)}}]),e}()).\u0275fac=function(e){return new(e||KO)(Ps(Jl),Ps(Od))},KO.\u0275cmp=Ft({type:KO,selectors:[["pdf-dynamic-css"]],inputs:{zoom:"zoom",width:"width"},features:[tn],decls:0,vars:0,template:function(e,t){},styles:[""]}),KO),TI=((ZO=function(){function e(){var t=this;Z(this,e),this.thumbnailDrawn=new ac,this.top="32px",this._hideSidebarToolbar=!1,window.pdfThumbnailGeneratorReady=function(){return t.pdfThumbnailGeneratorReady()},window.pdfThumbnailGenerator=function(e,n,i,r,o){return t.createThumbnail(e,n,i,r,o)}}return Y(e,[{key:"ngOnDestroy",value:function(){this.linkService=void 0}},{key:"pdfThumbnailGeneratorReady",value:function(){if(!this.thumbnailViewTemplate)return!1;var e=this.thumbnailViewTemplate.nativeElement;return!!e&&!!e.innerHTML&&e.innerHTML.length>0}},{key:"createThumbnail",value:function(e,t,n,i,r){this.linkService=t;var o=this.thumbnailViewTemplate.nativeElement.innerHTML.split(/_ng\w+-\w+-\w+=""/g).join("").split(/ng-\w+-\w+/g).join("").split(/<!--[\s\S]*?-->/g).join(""),a=e.canvasWidth+2+"px",s=e.canvasHeight+2+"px",l=o.split("WIDTH_OF_RING").join(a).split("HEIGHT_OF_RING").join(s).split("PAGE_NUMBER").join(n),u=this.createElementFromHTML(l);u.classList.remove("pdf-viewer-template");var c=u;c.href=t.getAnchorUrl("#page="+n),r.then(function(e){c.title=e}),c.onclick=function(){return t.page=n,!1},e.anchor=c;var d=u.getElementsByClassName("image-container")[0];e.ring=d,e.div=u.getElementsByClassName("thumbnail")[0],i.appendChild(u),this.thumbnailDrawn.emit({thumbnail:u,container:i,pageId:n})}},{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"onKeyDown",value:function(e){"ArrowDown"===e.code?this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=this.linkService.pagesCount:this.linkService.page<this.linkService.pagesCount&&(this.linkService.page=this.linkService.page+1),e.preventDefault()):"ArrowUp"===e.code&&this.linkService&&(e.ctrlKey||e.metaKey?this.linkService.page=1:this.linkService.page>1&&(this.linkService.page=this.linkService.page-1),e.preventDefault())}},{key:"hideSidebarToolbar",set:function(e){this._hideSidebarToolbar=e,this.top=this._hideSidebarToolbar?"0":"32px"}}]),e}()).\u0275fac=function(e){return new(e||ZO)},ZO.\u0275cmp=Ft({type:ZO,selectors:[["pdf-sidebar-content"]],viewQuery:function(e,t){var n;1&e&&bc(PO,1),2&e&&yc(n=kc())&&(t.thumbnailViewTemplate=n.first)},inputs:{hideSidebarToolbar:"hideSidebarToolbar",customThumbnail:"customThumbnail"},outputs:{thumbnailDrawn:"thumbnailDrawn"},ngContentSelectors:aO,decls:10,vars:3,consts:[["id","sidebarContent"],["thumbnailViewTemplate",""],[4,"ngTemplateOutlet"],["id","thumbnailView",3,"keydown"],["id","outlineView",1,"hidden"],["id","attachmentsView",1,"hidden"],["id","layersView",1,"hidden"],["defaultThumbnail",""],[1,"pdf-viewer-template"],["data-page-number","$page",1,"thumbnail"],[1,"thumbnailSelectionRing","image-container",2,"width","WIDTH_OF_RING","height","HEIGHT_OF_RING"]],template:function(e,t){if(1&e&&(Zs(),Is(0,"div",0),Is(1,"div",null,1),Ss(3,OO,1,0,"ng-content",2),Ts(),Is(4,"div",3),js("keydown",function(e){return t.onKeyDown(e)}),Ts(),Ms(5,"div",4),Ms(6,"div",5),Ms(7,"div",6),Ts(),Ss(8,DO,3,0,"ng-template",null,7,Cc)),2&e){var n=Es(9);ol("top",t.top),Yo(3),Os("ngTemplateOutlet",t.customThumbnail?t.customThumbnail:n)}},directives:[ef],styles:[""]}),ZO),MI=((YO=function(){function e(){Z(this,e)}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||YO)},YO.\u0275cmp=Ft({type:YO,selectors:[["pdf-sidebar-toolbar"]],decls:21,vars:0,consts:[["id","toolbarSidebar"],["type","button","id","viewThumbnail","title","Show Thumbnails","data-l10n-id","thumbs",1,"toolbarButton","toggled"],["data-l10n-id","thumbs_label"],["viewBox","0 0 24 24",2,"width","20px","height","20px"],["fill","currentColor","d","M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"],["type","button","id","viewOutline","title","Show Document Outline (double-click to expand/collapse all items)","data-l10n-id","document_outline","hidden","true",1,"toolbarButton"],["data-l10n-id","document_outline_label"],["fill","currentColor","d","M3,9H17V7H3V9M3,13H17V11H3V13M3,17H17V15H3V17M19,17H21V15H19V17M19,7V9H21V7H19M19,13H21V11H19V13Z"],["type","button","id","viewAttachments","title","Show Attachments","data-l10n-id","attachments","hidden","true",1,"toolbarButton"],["data-l10n-id","attachments_label"],["fill","currentColor","d","M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"],["id","viewLayers","title","Show Layers (double-click to reset all layers to the default state)","data-l10n-id","layers","hidden","true",1,"toolbarButton"],["data-l10n-id","layers_label"],["xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 4.233 4.233",2,"width","20px","height","20px"],["d","M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.198.265 0 .364l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363l-.694-.35c-1.14.56-2.546.001-2.546.001m-.264.53l.664-.332c.52.266 1.261.235 1.75.002l.659.33-1.537.768zM.15.877c-.198.099-.198.264 0 .363l1.604.802a.926.926 0 00.727 0l1.603-.802c.198-.099.198-.264 0-.363L2.481.075a.926.926 0 00-.727 0zm.43.182L2.117.29l1.538.769-1.538.768z"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"button",1),Is(2,"span",2),bl(3,"Thumbnails"),Ts(),ei(),Is(4,"svg",3),Ms(5,"path",4),Ts(),Ts(),ti(),Is(6,"button",5),Is(7,"span",6),bl(8,"Document Outline"),Ts(),ei(),Is(9,"svg",3),Ms(10,"path",7),Ts(),Ts(),ti(),Is(11,"button",8),Is(12,"span",9),bl(13,"Attachments"),Ts(),ei(),Is(14,"svg",3),Ms(15,"path",10),Ts(),Ts(),ti(),Is(16,"button",11),Is(17,"span",12),bl(18,"Layers"),Ts(),ei(),Is(19,"svg",13),Ms(20,"path",14),Ts(),Ts(),Ts())},styles:["button[_ngcontent-%COMP%]{margin-right:4px!important}div#toolbarSidebar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-left:4px!important}"]}),YO),BI=((qO=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||qO)},qO.\u0275cmp=Ft({type:qO,selectors:[["pdf-light-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(90, 90, 90)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#5a5a5a;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#5a5a5a;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:#fff!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#f9f9f9}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#f9f9f9;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:#e3e1e6}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid #ddd}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:var(#e3e1e6);color:#5a5a5a;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#f9f9f9}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#f9f9f9;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#5a5a5a;color:#f9f9f9;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#5a5a5a;margin:0;padding:3px 2px 2px;border:none;background-color:#fff}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#f9f9f9}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:#fff;background-clip:padding-box;color:#5a5a5a;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#5a5a5a;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#5a5a5a;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#f9f9f9;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#5a5a5a;font-size:12px;line-height:14px;background-color:#f9f9f9;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#f9f9f9;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),qO),RI=((GO=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||GO)},GO.\u0275cmp=Ft({type:GO,selectors:[["pdf-dark-theme"]],decls:0,vars:0,template:function(e,t){},styles:["ngx-extended-pdf-viewer .dropdownToolbarButton::after{content:url(\"data:image/svg+xml; utf8, <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='rgb(217, 217, 217)' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /></svg>\")}ngx-extended-pdf-viewer .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}ngx-extended-pdf-viewer .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;-webkit-transform-origin:0 0;transform-origin:0 0}ngx-extended-pdf-viewer .textLayer .highlight{margin:-1px;padding:1px;background-color:var(#b400aa);border-radius:4px}ngx-extended-pdf-viewer .textLayer .highlight.begin{border-radius:4px 0 0 4px}ngx-extended-pdf-viewer .textLayer .highlight.end{border-radius:0 4px 4px 0}ngx-extended-pdf-viewer .textLayer .highlight.middle{border-radius:0}ngx-extended-pdf-viewer .textLayer .highlight.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer ::-moz-selection{background:#00f}ngx-extended-pdf-viewer .textLayer ::selection{background:#00f}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .textLayer .endOfContent.active{top:0}ngx-extended-pdf-viewer .annotationLayer section{position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.pushButton>a,ngx-extended-pdf-viewer .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}ngx-extended-pdf-viewer .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input,ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input,ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);color:#474747;border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select option{padding:0}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],ngx-extended-pdf-viewer .annotationLayer .choiceWidgetAnnotation select[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input[disabled],ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#474747;content:'';display:block;position:absolute}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}ngx-extended-pdf-viewer .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.checkBox input,ngx-extended-pdf-viewer .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}ngx-extended-pdf-viewer .annotationLayer .popupWrapper{position:absolute;width:20em}ngx-extended-pdf-viewer .annotationLayer .popup{position:absolute;z-index:4;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}ngx-extended-pdf-viewer .annotationLayer .popup>*{font-size:9px}ngx-extended-pdf-viewer .annotationLayer .popup h1{display:inline-block}ngx-extended-pdf-viewer .annotationLayer .popup span{display:inline-block;margin-left:5px}ngx-extended-pdf-viewer .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}ngx-extended-pdf-viewer .annotationLayer .caretAnnotation,ngx-extended-pdf-viewer .annotationLayer .circleAnnotation svg ellipse,ngx-extended-pdf-viewer .annotationLayer .fileAttachmentAnnotation,ngx-extended-pdf-viewer .annotationLayer .freeTextAnnotation,ngx-extended-pdf-viewer .annotationLayer .highlightAnnotation,ngx-extended-pdf-viewer .annotationLayer .inkAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .lineAnnotation svg line,ngx-extended-pdf-viewer .annotationLayer .polygonAnnotation svg polygon,ngx-extended-pdf-viewer .annotationLayer .polylineAnnotation svg polyline,ngx-extended-pdf-viewer .annotationLayer .squareAnnotation svg rect,ngx-extended-pdf-viewer .annotationLayer .squigglyAnnotation,ngx-extended-pdf-viewer .annotationLayer .stampAnnotation,ngx-extended-pdf-viewer .annotationLayer .strikeoutAnnotation,ngx-extended-pdf-viewer .annotationLayer .underlineAnnotation{cursor:pointer}ngx-extended-pdf-viewer .pdfViewer .canvasWrapper{overflow:hidden}ngx-extended-pdf-viewer .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid transparent;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}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}ngx-extended-pdf-viewer .pdfViewer.singlePageView{display:inline-block}ngx-extended-pdf-viewer .pdfViewer.singlePageView .page{margin:0;border:none}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped,ngx-extended-pdf-viewer .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal,ngx-extended-pdf-viewer .spread{white-space:nowrap}ngx-extended-pdf-viewer .pdfViewer.removePageBorders,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .spread,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .spread,ngx-extended-pdf-viewer .spread .page{display:inline-block;vertical-align:middle}ngx-extended-pdf-viewer .pdfViewer.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.scrollWrapped .page,ngx-extended-pdf-viewer .spread .page{margin-left:-3.5px;margin-right:-3.5px}ngx-extended-pdf-viewer .pdfViewer.removePageBorders .spread .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollHorizontal .page,ngx-extended-pdf-viewer .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}ngx-extended-pdf-viewer .pdfViewer .page canvas{margin:0;display:block}ngx-extended-pdf-viewer .pdfViewer .page canvas[hidden]{display:none}ngx-extended-pdf-viewer .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}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .spread{display:block}ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer .page,ngx-extended-pdf-viewer .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}ngx-extended-pdf-viewer .html *{padding:0;margin:0}ngx-extended-pdf-viewer .html{height:100%;width:100%;font-size:10px}ngx-extended-pdf-viewer .body{height:100%;width:100%}ngx-extended-pdf-viewer .body,ngx-extended-pdf-viewer .pdf-viewer button,ngx-extended-pdf-viewer .pdf-viewer input,ngx-extended-pdf-viewer .pdf-viewer select{font:message-box;outline:0}ngx-extended-pdf-viewer select{background-color:rgba(255,255,255,.09)!important}ngx-extended-pdf-viewer .hidden,ngx-extended-pdf-viewer [hidden]{display:none!important}ngx-extended-pdf-viewer .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-moz-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-moz-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:-ms-fullscreen{border-top:2px solid transparent;background-color:#000;width:100%;height:100%;cursor:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}ngx-extended-pdf-viewer .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-moz-full-screen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,ngx-extended-pdf-viewer .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}ngx-extended-pdf-viewer #outerContainer{width:100%;height:100%;position:relative;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}ngx-extended-pdf-viewer #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;visibility:hidden;z-index:2;border-top:1px solid #333;transition-duration:.2s;transition-timing-function:ease}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - $sidebar-width)}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - $sidebar-width)}ngx-extended-pdf-viewer .loadingInProgress #sidebarContainer{top:36px}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outerContainer.sidebarMoving #sidebarContainer,ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #sidebarContainer{right:0}ngx-extended-pdf-viewer #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0;min-width:320px}ngx-extended-pdf-viewer #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%;background-color:rgba(0,0,0,.1)}html[dir=ltr] ngx-extended-pdf-viewer #sidebarContent{left:0}html[dir=rtl] ngx-extended-pdf-viewer #sidebarContent{right:0}ngx-extended-pdf-viewer #viewerContainer{-webkit-overflow-scrolling:touch;top:32px;right:0;bottom:0;left:0;outline:0}ngx-extended-pdf-viewer #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-timing-function:ease}ngx-extended-pdf-viewer #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px}html[dir=rtl] ngx-extended-pdf-viewer #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px}ngx-extended-pdf-viewer .toolbar{position:relative;left:0;right:0;z-index:7;cursor:default;border:1px solid rgba(0,0,0,.5)}ngx-extended-pdf-viewer #toolbarContainer{width:100%}ngx-extended-pdf-viewer #toolbarSidebar{width:100%;height:32px;background-color:#424242;color:#d9d9d9;border:none;padding-top:1px}ngx-extended-pdf-viewer #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:4;cursor:ew-resize}html[dir=ltr] ngx-extended-pdf-viewer #sidebarResizer{right:-6px}html[dir=rtl] ngx-extended-pdf-viewer #sidebarResizer{left:-6px}ngx-extended-pdf-viewer #toolbarContainer,ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{position:relative;height:32px;background-color:#474747}ngx-extended-pdf-viewer #toolbarViewer{height:32px}ngx-extended-pdf-viewer #loadingBar{position:relative;width:100%;height:4px;background-color:#333;border-bottom:1px solid #333}ngx-extended-pdf-viewer #loadingBar .progress{position:absolute;top:0;left:0;width:0%;height:100%;background-color:#ddd;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}@keyframes progressIndeterminate{0%{left:-142px}100%{left:0}}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate{background-color:#999;transition:none}ngx-extended-pdf-viewer #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);background:repeating-linear-gradient(135deg,#bbb 0,#999 5px,#999 45px,#ddd 55px,#ddd 95px,#bbb 100px);-webkit-animation:950ms linear infinite progressIndeterminate;animation:950ms linear infinite progressIndeterminate}ngx-extended-pdf-viewer .findbar,ngx-extended-pdf-viewer .secondaryToolbar{top:40px;position:absolute;z-index:7;height:auto;min-width:16px;padding:0 6px;margin:4px 2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;cursor:default}ngx-extended-pdf-viewer .findbar{min-width:300px}ngx-extended-pdf-viewer .findbar>div{height:32px}ngx-extended-pdf-viewer .findbar.wrapContainers>div{clear:both}ngx-extended-pdf-viewer .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] ngx-extended-pdf-viewer .findbar{left:34px}html[dir=rtl] ngx-extended-pdf-viewer .findbar{right:34px}ngx-extended-pdf-viewer .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #findInput{width:200px}ngx-extended-pdf-viewer #findInput::-webkit-input-placeholder{color:#bfbfbf}ngx-extended-pdf-viewer #findInput::-moz-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput:-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::-ms-input-placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput::placeholder{font-style:italic}ngx-extended-pdf-viewer #findInput[data-status=pending]{background-repeat:no-repeat;background-position:right}html[dir=rtl] ngx-extended-pdf-viewer #findInput[data-status=pending]{background-position:left}ngx-extended-pdf-viewer .secondaryToolbar{padding:6px;height:auto;z-index:8}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbar{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbar{left:4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,ngx-extended-pdf-viewer #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}ngx-extended-pdf-viewer .doorHanger,ngx-extended-pdf-viewer .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:after,ngx-extended-pdf-viewer .doorHangerRight:before{bottom:100%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}ngx-extended-pdf-viewer .doorHanger:after,ngx-extended-pdf-viewer .doorHangerRight:after{border-bottom-color:#474747;border-width:8px}ngx-extended-pdf-viewer .doorHanger:before,ngx-extended-pdf-viewer .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHanger:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:after,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] ngx-extended-pdf-viewer .doorHangerRight:before,html[dir=rtl] ngx-extended-pdf-viewer .doorHanger:before{right:13px;margin-right:-9px}ngx-extended-pdf-viewer #findResultsCount{background-color:#d9d9d9;color:#474747;text-align:center;padding:3px 4px}ngx-extended-pdf-viewer #findMsg{font-style:italic;color:#f66}ngx-extended-pdf-viewer #findMsg:empty{display:none}ngx-extended-pdf-viewer #findInput.notFound{background-color:#f66}ngx-extended-pdf-viewer #toolbarViewerMiddle{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight{float:left;margin-left:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft{float:right;margin-right:4px}html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=ltr] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=ltr] ngx-extended-pdf-viewer .findbar *{position:relative;float:left}html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerLeft>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerMiddle>*,html[dir=rtl] ngx-extended-pdf-viewer #toolbarViewerRight>*,html[dir=rtl] ngx-extended-pdf-viewer .findbar *{position:relative;float:right}ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{border:0;background:0 0;width:32px;height:25px}ngx-extended-pdf-viewer .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}ngx-extended-pdf-viewer .overlayButton[disabled],ngx-extended-pdf-viewer .secondaryToolbarButton[disabled],ngx-extended-pdf-viewer .toolbarButton[disabled]{opacity:.5}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{min-width:16px;padding:2px 6px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=rtl] ngx-extended-pdf-viewer .overlayButton,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px 2px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .secondaryToolbarButton.toggled,ngx-extended-pdf-viewer .toolbarButton.toggled{background-color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.4)}ngx-extended-pdf-viewer .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton::after{right:8px}html[dir=rtl] ngx-extended-pdf-viewer .dropdownToolbarButton::after{left:8px}ngx-extended-pdf-viewer .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;color:#d9d9d9;margin:0;padding:3px 2px 2px;border:none;background-color:rgba(255,255,255,.09)}ngx-extended-pdf-viewer .dropdownToolbarButton>select>option{background:#474747}ngx-extended-pdf-viewer #customScaleOption{display:none}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:first-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:last-child{margin-left:4px}ngx-extended-pdf-viewer .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}html[dir=ltr] ngx-extended-pdf-viewer #findPrevious,html[dir=rtl] ngx-extended-pdf-viewer #findNext{margin-left:3px}html[dir=ltr] ngx-extended-pdf-viewer #findNext,html[dir=rtl] ngx-extended-pdf-viewer #findPrevious{margin-right:3px}ngx-extended-pdf-viewer .secondaryToolbarButton::before,ngx-extended-pdf-viewer .toolbarButton::before{position:absolute;display:inline-block;top:4px;left:7px}ngx-extended-pdf-viewer .toolbarButton.zoomOut{font-size:30px}ngx-extended-pdf-viewer .toolbarButton.zoomIn{font-size:24px}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark,ngx-extended-pdf-viewer .toolbarButton.bookmark{box-sizing:border-box;outline:0;padding-top:4px;text-decoration:none}ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-top:5px}ngx-extended-pdf-viewer .bookmark[href='#']{opacity:.5;pointer-events:none}ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{position:absolute;display:inline-block;top:1px;content:'';background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{left:17px}html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton.pdfSidebarNotification::after{right:17px}ngx-extended-pdf-viewer .secondaryToolbarButton{position:relative;margin:0 0 4px;padding:3px 0 1px;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-left:24px;text-align:left}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton{padding-right:24px;text-align:right}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-left:27px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton.bookmark{padding-right:27px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-right:4px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton>span{padding-left:4px}ngx-extended-pdf-viewer .toolbarField{padding:3px 6px;margin:4px 0;border-radius:2px;background-color:rgba(255,255,255,.09);background-clip:padding-box;color:#d9d9d9;font-size:12px;line-height:14px;outline-style:none;border:1px solid rgba(0,0,0,.4)}ngx-extended-pdf-viewer .toolbarField[type=checkbox]{display:inline-block;margin:8px 0}ngx-extended-pdf-viewer .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-repeat:no-repeat;background-position:1px}ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-inner-spin-button,ngx-extended-pdf-viewer .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}ngx-extended-pdf-viewer .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;color:#d9d9d9;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}ngx-extended-pdf-viewer #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #thumbnailView>a:active{outline:0}ngx-extended-pdf-viewer .thumbnail{margin:0 10px 5px}html[dir=ltr] ngx-extended-pdf-viewer .thumbnail{float:left}html[dir=rtl] ngx-extended-pdf-viewer .thumbnail{float:right}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}ngx-extended-pdf-viewer #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}ngx-extended-pdf-viewer .thumbnail:not([data-loaded]){border:1px dashed rgba(255,0,0,.5);margin:-1px 9px 4px}ngx-extended-pdf-viewer .thumbnailImage{border:1px solid transparent;opacity:.8;z-index:1;background-color:#fff;background-clip:content-box}ngx-extended-pdf-viewer .thumbnailSelectionRing{border-radius:2px;padding:7px}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage{opacity:1}ngx-extended-pdf-viewer .thumbnail.selected>.thumbnailSelectionRing{background-color:rgba(255,255,255,.4);background-clip:padding-box;color:#fff}ngx-extended-pdf-viewer #attachmentsView,ngx-extended-pdf-viewer #layersView,ngx-extended-pdf-viewer #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ngx-extended-pdf-viewer #outlineView{padding:4px 4px 0}ngx-extended-pdf-viewer #attachmentsView{padding:3px 4px 0}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=ltr] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-left:20px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>.treeItems,html[dir=rtl] ngx-extended-pdf-viewer .treeWithDeepNesting>.treeItem{margin-right:20px}ngx-extended-pdf-viewer .treeItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;color:#424242;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer .treeItem>a{padding:2px 0 5px 4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItem>a{padding:2px 4px 5px 0}ngx-extended-pdf-viewer #layersView .treeItem>a>*{cursor:pointer}html[dir=ltr] ngx-extended-pdf-viewer #layersView .treeItem>a>label{padding-left:4px}html[dir=rtl] ngx-extended-pdf-viewer #layersView .treesItem>a>label{padding-right:4px}ngx-extended-pdf-viewer .treeItemToggler{position:relative;height:0;width:0}ngx-extended-pdf-viewer .treeItemToggler::before{content:url(assets/images/treeitem-expanded.svg);display:inline-block;position:absolute;max-width:16px}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{content:url(assets/images/treeitem-collapsed.svg);max-width:16px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden::before{-webkit-transform:scaleX(-1);transform:scaleX(-1)}ngx-extended-pdf-viewer .treeItemToggler.treeItemsHidden~.treeItems{display:none}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler{float:left}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler{float:right}html[dir=ltr] ngx-extended-pdf-viewer .treeItemToggler::before{right:4px}html[dir=rtl] ngx-extended-pdf-viewer .treeItemToggler::before{left:4px}ngx-extended-pdf-viewer .treeItem>a:hover,ngx-extended-pdf-viewer .treeItemToggler:hover,ngx-extended-pdf-viewer .treeItemToggler:hover+a,ngx-extended-pdf-viewer .treeItemToggler:hover~.treeItems{background-clip:padding-box;border-radius:2px}ngx-extended-pdf-viewer .treeItem.selected{background-clip:padding-box}ngx-extended-pdf-viewer ::-moz-selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer ::selection{background:rgba(0,0,255,.3)}ngx-extended-pdf-viewer #errorWrapper{background:#f66;color:#fff;left:0;position:absolute;right:0;z-index:5;padding:3px;font-size:.8em}ngx-extended-pdf-viewer .loadingInProgress #errorWrapper{top:37px}ngx-extended-pdf-viewer #errorMessageLeft{float:left}ngx-extended-pdf-viewer #errorMessageRight{float:right}ngx-extended-pdf-viewer #errorMoreInfo{background-color:#fff;color:#000;padding:3px;margin:3px;width:98%}ngx-extended-pdf-viewer .overlayButton{width:auto;margin:3px 4px 2px!important;padding:2px 6px 3px}ngx-extended-pdf-viewer #overlayContainer{display:table;position:absolute;width:100%;height:100%;background-color:rgba(0,0,0,.2);z-index:9}ngx-extended-pdf-viewer #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}ngx-extended-pdf-viewer #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}ngx-extended-pdf-viewer #overlayContainer>.container .dialog{display:inline-block;padding:15px;border-spacing:4px;color:#d9d9d9;font-size:12px;line-height:14px;background-color:#474747;border-radius:4px}ngx-extended-pdf-viewer .dialog>.row{display:table-row}ngx-extended-pdf-viewer .dialog>.row>*{display:table-cell}ngx-extended-pdf-viewer .dialog .toolbarField{margin:5px 0}ngx-extended-pdf-viewer .dialog .buttonRow{text-align:center;vertical-align:middle}ngx-extended-pdf-viewer .dialog :link{color:#fff}ngx-extended-pdf-viewer #passwordOverlay>.dialog{text-align:center}ngx-extended-pdf-viewer #passwordOverlay .toolbarField{width:200px}ngx-extended-pdf-viewer #documentPropertiesOverlay>.dialog{text-align:left}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] ngx-extended-pdf-viewer #documentPropertiesOverlay .row>*{text-align:right}.fileInput{background:#fff;color:#000;margin-top:5px;visibility:hidden;position:fixed;right:0;top:0}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}ngx-extended-pdf-viewer #documentPropertiesOverlay .buttonRow{margin-top:10px}ngx-extended-pdf-viewer .clearBoth{clear:both}ngx-extended-pdf-viewer .grab-to-pan-grab{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAB/+AAA7/gAAM/8AAAP7AAAG2wAABtkAAAzYAAAM2AAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//wAD//4AA//+AAH//yAB///AAf//wAH//4AL//+AD///yB////z///////////////////////////////////////8=),move!important;cursor:-webkit-grab!important;cursor:grab!important}ngx-extended-pdf-viewer .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}ngx-extended-pdf-viewer .grab-to-pan-grab:active,ngx-extended-pdf-viewer .grab-to-pan-grabbing{cursor:url(data:image/cur;base64,AAACAAEAICAAAA8ADwAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAB+AAAA/gAAAf8AAAP/AAAD/4AAAP+AAAD/gAAB/oAAAbYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////AP///wD///4A///8AH//+AB///gAP//8AD///gA///wAP//8AH///kn/////////////////////////////////////////////////////////////////8=),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:rgba(0,0,0,0);display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:10}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){ngx-extended-pdf-viewer .toolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-5px}ngx-extended-pdf-viewer .secondaryToolbarButton::before{-webkit-transform:scale(.5);transform:scale(.5);top:-4px}}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton::before,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton::before{left:-1px}html[dir=ltr] ngx-extended-pdf-viewer .secondaryToolbarButton::before{left:-2px}html[dir=rtl] ngx-extended-pdf-viewer .secondaryToolbarButton::before{right:4px;left:186px}ngx-extended-pdf-viewer #findInput[data-status=pending],ngx-extended-pdf-viewer .toolbarField.pageNumber.visiblePageIsLoading{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAACGFjVEwAAAAMAAAAAEy9LREAAAAaZmNUTAAAAAAAAAAgAAAAIgAAAAAAAAAAAGQD6AAA26DBZgAABPNJREFUeNq1l21MW1UYx2tgI+pghBHiNJCYKLiERMUvRvbB0S5ZygrI5toxKAItSwDHRBoIzk1SFT44oy4xfjEaY1PMRKNNyMInPxjfFjEiZsFNwpu1oy4LMFZ6uece/085F2/PiuBtPMkv5/ac8zzP/7yfWswmznktuAJ+A89ubWE+UDbYnaJ8AoS5xq8jv5aififYkV5wVW3SOP8BjsaANzmANqdpJEAjAVEp+CMqV73IW8C+dHr/FbgMfhIiHjTUzYI/AAn4y1C+CzSDVsbYSRWdMC0AxiE4+h78CH6Gw/cNgWY2EWDVgxO3bi3WmxYQCoV6MdTfAn0UfgFPJwnQ/hGA/D4KTugiurq6jpgWkJmZWbG0tPQp1sF3mOvEKIAQ1cE5iZnXuHZd07RrQkC1UcD4+DgNf8V25/sZMAQ+AA5wF4ofOHvm7El8fw0BicVIUPtgMNgHEVfA5PDw8DkxZS16zym32Wy15IPqVldXH0aZEzwH9snB7wFBBBlG/jn4kjP2LvLHUF0+OTl5Ad/fgMvhSPg9YXYQOAQ2MWVH9d4HAoETKNqP7wJQbRQGPGCHUcC9nLMAjQCG+yKG9DPwBQ33ysrKS1lZWY7BwcH2gYGBjoyMDLswKxAibOKbkr2ysrLWbrcfQbvD8/N/HjCuh41cTWzRnUnTPTQ0dBpD+BEaBFH5CbgoRiOE3tQaelsKNkuleru2tran9KBGYori7enpOUYxkwSASqvV6rx69ffX0fBjxjeEDIMy1OcJtkp5hLwjiEsjl9zFxcU1FEsWQKkI2IGju7u7aWFh4S1VZR+OjY35s7Oz95jYRHtoHSixmPdX7AaaFjE6dhErZboblIHDwGEgz4SAPMkH+XyCYsg74FHG+WvI3+aMvYOcuLB6+/b5/v7+JjGvZlNpXV1d7c2bS83SLiDqQSEJeAW8gcrzlAPk7E3khN+SZqJAxsCyCEt8LX4OH4MEo9zAWnzt5XQFqIrilgPrKIrSYOnr63MtLy+TiFeBnzPuR2P/4vLimV5frzNdAY2NjVXRaNQjB49EIh63210tn2gytjTjb8t/gdzI5TrhnJqa6lhbYy9C7cE05r+c7oeJiYlGsQ3l4AWywW5QDboBBX8BdIL7TQRPPohYIreCXZsZPA5Ogy5D4OdBO9j7XwXgDtkrvw0opxGJx+N33IZZFJwxEZjxU8g7YNQeCAQbcnJyEkcrsa2eA7KhkzD1DpAuI/qhKIyCgvVeY9484j53TE9PV6w74uSo/N/mXA8yMzNjJVvyQQ+TpO2nKl75xZyJU+/4yspyWzgcbu3s7HTqx6fH43mSXsQJ4/WeNItghaBeUJgokx4kZKsf66fa24/Nzc214IXlxdZPeRvapVW6H+TKzyw4qUtxwtVT2ezs7HH6rY+WqvIa8kG+JN/2zW7DQ+CA8RklLyKHw1FDdRuiRDmVUR27c84fojrhs0LEKNrms5y7jL0fHR1tEL2xGF84hDApHxkZcUuiXRazCWd1sx4opsS8JSUl1frVLB+t+hVMbWIxxauXq/BhWoDf76+BCOpJq8/nc4r73KKPgHEUDGZlvl6fkzEFq131kg9LGulQbm5uVX5+fhUtHONj4obhglmIRFqkR42dbMhWzLnpVAQqCXnhuFyuo9HoDU84HPHQd2o78fxKM2USW9xytk3t/rck/y8wmf4Gx4B9Xz6i1hAAAAAaZmNUTAAAAAEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQNMrsgAABQ5mZEFUAAAAAnjapZdtTFtVGMdrwKlkIYiETA37sGyQJXxiX1T2BVbN7FZANFARCi0tMDBF2BgGNcvEzC06EBMSEogi2Czz7ZPiBvFlohLFREKqET8g7y02A0YkLZd77/H/lHPN4dIJ9J7k13P6nPu8nOecnufWFGtjjJnBTfAVeHpHBQOOEsB+vVxV1S8g/5GpbFRV2S39/MrKyoOYTzTkXJbl0zDyIbgOntkamPrdZgDqKPpfdUHXqUz9C/0UeMnI6ruBF3zEg3hEmLtFAQAxAJIfAn+CWbCATE3FHIAkSe/ASD+4Bj4GFwRH34IfNgNQxwR5H5iG43n0fvS+mAPo7u4+w5jyAfDyDHwGjnFH31AAdAbQj3FZDpjEtkRWj7nF4eHhKzEHEB8fn7u4uHhVYUofU9g1rOYTGH6X5jY2Nj7H+Hvs9SjOyjAP4Eu+73NwHgiHw7+Qjd3u93HQqijsVfSPg3sgfrS6utqO8XugH0FcV3Ee6Pmurs56BHFzQ5K+7u3tPU8yrPwPPDeDQP3oFzs6OhrJBs0hmCOQFYMKcFTv/D7wOngTXAFvM0U5h/4wprNHRn56BeP3gXdiYuIiV3sSWDlmEiBbfXzvA36//1OIaFGpIB9UKYpSTT1wgXvFAO7H5MVIBhi7BC5j39/C96vLy8sVcXFx1oaGBkdjY6MTYwtXS+VBmPnYRHOdnV3nenp6zickJOTNzflzuEPunPey7MZ435btbm9vr1hfX7/AlEgm3gCXtGy0tbU9Jaw2E9ytZWrP1dbWPqE5FQlJkru5ubmIfG4JAJzKysoqHBn52UM/N7AZiKJcDjN2BPPJnJ1aMgHdA3rnNwZu2NPT0wvIlz4AageBBVhLyspsk5OTZ3HIXhsaGnoxMTERRvfcHvJ6vS9IoZD7t/Fxh8VieZZnx8J9RW0PgCxwGlgFYgkgWbTBbR6L+BAbC4cP8RQ1IN2N6Imz/9y5U19TU1PE9zXWlllSUlK4vLzqFA8ipxSkmfBRCTwC9Ywp9dRDocpksJEj0bE+CLrvKYC6aIRCktNoALIk2UXHIvBdZnI4HPlLS0skOIMtiIBxTSAYcNOc0QDKy8vzgsGgS+88EAi47HZ7vv5G02M26H9X9lP1D9FPxuf73Y4iQ9uTbWD/s8mGz+crJ5tRnKfqFfaDE6h+lCaRA3t2rr+IFADb5COqwvo6OyozuZIrGA5gbW3tYdLVn37KCK78bdVwH3BvKxygH7cZ3YQUBLGrlQPSoZsw+i9AV4yoNEoShMJD42PjDrPZXEj7NTU1lbtpiJGh7P/bc01/enr6BOmSjXFcxaJtSZbc5HNLMWppaSlaXV11z8/POz0eT5F2fbpcrsf+y87mSpzcWRoo5aRFZEivuGLS1a51T11d0ezsbCX5gK8o1ZAXIoHjIEl7mdCAkZIoN1wpyWZmZp6n71q2ZJkVkA2ypbNtuVs1PAlyxNco/bmwWq0FPADIAZeTjOaU7Xt+mOa4zVzuA7520bACm7j6wcHBMr4ak/iGQ3CV7IGBAbsuaJuR/wVOzVFICrkzMjLytdJMMhGtBNMzqCFuTS5LBupJa2trAYKglVQ1NTUV83pu0jIgZkFQy2p6ualYUSScdtlNNkwG2smkpKS8lJSUPDo44svEbaHA/B0IVOpeaiykQ7pkw0gAB8EpQn9wbDbbc8HgbdfCQsBF4+h6/PXLYIsndqhy5j3oGW9R/xfE2P4FtUR7pWscH34AAAAaZmNUTAAAAAMAAAAgAAAAIgAAAAAAAAAAAGQD6AAArUX4WwAABPlmZEFUAAAABHjatZddTJtVGMdrwOGSgQQJmUG4UnAJ8WJeaFJiFGqydHaQKR+r0LJ+YBDopkvVQEwWUYazi8qFSzDqnKJLxsX0oklJdRfLdGNMXFe98YaP0b6jWbo1YW1f3g//zzyveXtsBd/Gk/xyTs45z/95zkfP89ZktKiq+hT4FHwBmje3MO7oAbCd75dl+ST6v1UVdQbtr/PYVYAdRTnf2NgwQ2QcHAfPcg5Oy/cCUGbQPseN9SiqchH1z8BdzOrfBsfAByyIat3Yl+AbMAO+0/XXgfPYmcuqqlwFlwwHcPduxg+x98D74ISsyv06R6cKBBAAPymKegW7s6Aoyo+GAxgfH+9VVXlMdwwfgsd1AUzTHUD9ve5iXoDTy6ivYuxaKBQ6ajiA0tLSlsXFRT/O+l0ITuCynUD9Bo2l0+mTFADOeiabzZ5hAXwOLoIrYGF9fT1EGls97yfAq5IkeVA3gfvQXdvR0dGF9lF2FMcRRIDmj42NeRHEZ+D05OTkEPVh5T9gziXUv6COTExMDJMGaQEXmAd/gMO88/vJObb7EA2C10EPqMWwORgMDaD9Djg2Pz8/zMyeBzaGhTpWVlY+UhVavXJtaWnpFLqaYQOUMOoVsIrxONXgQX0A2ygAMITt9mGVFMRr4IggJGwlJSU2p9N5oK+vz462lZnVsCAsrG2isUAgMIwdOVxWVmbLZDKfQGMRl/EGdiWGtoB6Ddy8o96pyjnu0dHRroyYGYDzIUwcBj62G0cw9oxutU2gUGnS5gWDQQccLcP+BogrqnoT9RruTHxubu5j8pkTANjb0NDQHg6HnWw3Blkgh8AjGK9ibFaqCNi0sq0WyDFI3E7eDmMXXeSLD4BKPbACm9VqffH69d9c2MKBs2fOOpjofyrl5eUPxeJx+onGspnswtTU1JukzXzUF7LbDnaDF4BNw0gAZMNpkOaTzAdK7tPZA/r1pJJJl91u38/O1WhpIo1kMuUiTdyvVzR95rPOxBpskNVAm2QqspCG3jEfhCktpp1aB086LfYWG4Akig7esYYoQh+/7323EgkPPyisCW4aKzYA0kjk0xcEj8PhaONfNB5Lkf63pF/DT6KfYTT6uwN5wY1ozUWcv5k0otGokzTzOK/hDXaAVuR9/j7sNOB8Z46GDKBd8DMtm1V3SarkZgZFB4BU/DDZ8refdgTpexcf7Tbg5SfL4Kvp6ZcrKiqqKAhiSysHZDMN2/y/AMlLPnPSsSiiUzcp8mvkoMVi2U/nhY+Slr+EVBIy/9uZa/ZIx61kSxqRSOSgXluURC/5zElGIyMjnalUyru6uury+Xyd2vPp8Xie1naHPVAu7gUl6u71YXv1KyZb7Vn3DQ524nvBTT7IV75saOVuaTOohFCbPnqI2PkXTnsxl5eXD2jzaLckSW0nDdLitK2FsuEe8ByopQ5kw8f4e2Gz2UjU9HdQrJ/6aEz+55k/SmNMs4X5gK8tFKygW7/62dnZXrYakz53EMzETB8iXNDdJqMFb7VLc4Sc4W1sbGzTUjP/U9VSMM1BDvFq/RI0jPqnL992BEEr6ff7/V0sn5u0HdDvgs5st/8tf5csi7jtkpc0TEWUPZWVlfuqq6spKVn1HxP6BLYmCG7uo8ZKNmTLztxwqQd7Cf7idHd3v5RI3PLEYoKH2gXsrKxdVCklNslyloJ2/1vh/xcYLH8CCfCBoXIWl6IAAAAaZmNUTAAAAAUAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQI+KIQAABP9mZEFUAAAABnjatZdtTFtVGMdrQIkvMIKEYJbtk4IYjAl+mWFfxmpc7nZZA5PVMqhAO5RqdSQNhTnUodEYjcm+mcWpwQpMnAkfCGExIYs6jVtGSlFjDPIuLyME0qZwc8+9/h937nZ7bKXp1ZP8ck/Py/P8z3Ofe86pLdOi6/qjoBO8Bh7fabwVR3eDnCTtAfAWeJcx9maS/vvBfZacb29vl8NIG3gZPJHogL3B2C0B4H3B+TPgU9ALjlpZvQe8BPxcxC5T3+ughwv4wNReBM4jKiGIHAChjAVEo9FGGPNx568A2eSoO4UAP/gMAvrw/FJV1QsZC2hvb6+FkReBjxs+BfaYBJzV2R0BeD4GLoDPwYCuaZcGBgdPWUmDqomJiWZGecCYEYV66tjc3AySAIoAIvUOF3CGVg++0DV9cG1t7ePs7OyqdN93GXheVXUnng/z5t12u70Gv1+AAB/C6kfi+amjra2tfmNj48zGxvrZzs7OJmpD/0eUeJqmXdR0/euOjg4v2UDbXYDsXALfAHeyT60FnLyNqjooodBd2dsbqqdXwZCQly+PuPi0p4HMsVPD5ORkJwTSu/8K9ffQtF9RlAr8/gSCvkVUrqL+I/gB5JoF3AO8hnOspNWoz8//eSArK+uILEu1sizXYrjEpxVxEXZet2GcFAwGPd3d3a05OTlyPBanPBlDLnyHqJDTn8B1zi5zELKDwdPPbm3FyOk/8Pl8T5lWWw5SlXJjXF9f3zE4vaLp2vd81dfADbRdvzI29jb5TBAADpeUlDhGRkYbRAFRXS9GfwFnp1JAYN4+cJVWDac38BxfWV656HK5GsmXKIDKXh5eWZKk2vFwuCkeV7yhUKhecJxWyc3NfXBqauo8wn8tFo2Nnjv34as8OhL3lbTcCyrAESAbZCKA5gg2yOaT5EP8AvaAE2LYN9fXmxGuGv5eMy3l/f39Qca0MGxO41XM4EnMgglQY+POeebzJ69T339wmkY0TZ+H8wXUzSyCX2xxJe4mZ8lADjRYFqDpv8HWMnJhmZ4a1XXt7ydE/Wpzu93Va6urHtH50spSC/VZFTA0NHRaY9ofsHnTAKJuItK/o69L3NFE7Bb9p2W/SBxEn2Ek8nMjjlLanistvP9KshGJRNxkM4nzInHCA+Ag05mYD8UZOC9OsMEAbJOPFNcvvUzVVeNAsiwgFos9RHPF84UigqteGY3Z8TBioBc7YV5eXgGJINJaOaA5tIua7d1B9ZLPhONYUdBoGhQeDzfRXYDe1/T0dNUtQ3rrv+UE9RnzZ2ZmDtJcshHGtm62raiKl3wmHEZdXV11uOV4FxYWmv1+f52xfXo8nn1GdPgG1SzsoIBf0xBe84pprrGt+32+urm5uRbyQb6SnYaSkKX7QT5dq83qYcTFBZxgwo45Ozv7HP02ooXblYNskC3BtpTqNDwEDoDd1LC1tfWImBe4lDio77Yo3k5t1MeEd26+3oEq7gO+0ih0PzSvfnR0tIGvxmY+Owg+pXJ4eLhREO20ZVpwn2s2HOHM8JaWlh41jmbxUzWOYBpD9wijXYWNjAX09PQ4IIJWcjIQCBzn57nNiIA5CqZpFYFg4DhjCrJd9ZINm4VyKD8/v7qwsLCaEsd8mTAfYCtLSy3CpUaiOTSXbFgRsBccJsTEcTqdx1ZX1zyLi0seqqeYJ/G6pZJN7HDK2VPO+9+K+L8gw/IXI+58OxdsgRwAAAAaZmNUTAAAAAcAAAAgAAAAIgAAAAAAAAAAAGQD6AAArRlZyAAABTdmZEFUAAAACHjatZdrSFxHFMcnZJM+UGtTkUKohT60AT+lUFr0i7oN5SZrJOZhfUb3oVW6pYalYgvRGkTStBQr0tDSB9ZU2wSkglihFNvtE2milX4olPpMVt2NjbHsunvvnf5P9o6swz7ILj3w84z3zMw5c+65M7MsWeGc54B6YOWBwGOAJUPiTpzvAXsB24HK66BbuMad0A7AJO4F9wAWj7hGcABYgQ08JdleCgegUQCvSrZnONc6oN8EhakEcBo4DKwgLcLWBFqAHECmpmlvIDPnoHvw/7mkA7i1uVltOBeUCBscNIFoAZwAnZrGuxHA+a2trbOAxYLFM7a2vlJOjiUeBkwLZ6CZagC0AnL+KJyeBbTqHjy70NfXZwMsFiyeEVI8MzNTr3GtkWsgHMBRwHw+n40CgM3p9XoJCqABdIJucH55ebnTZDIVAxYL0RAFd1pVeQX0E4BB9pvN5mPkWAQAuxWwioqK42s3bzZ6vSvNVqu1AjCsvB19ukAPeNtms1XTHGjv4jxUBP0O+JBz1QIYQX/Ep2bdkWpVLYPOxgQFAwMDVeL56OjoccAgzwOLgRkwt/snG9JOq3/L7Xa78KgwEAjkca5RVj6FbRAMof05uD+yCPcCu3CiiXSDpaUbRbt37z6iWJRyRVHKMakCSLKNIMxGm6GfYrfbq5qbm2vRttz+5zbN8RGyN4CivIT2MNf5ZWgibTsAiKmt7fUTgcC/d5zKtLS0PBex2nwWW/JFP9SQgoV8ghr5jFasc/4l9BVV1698NTLyGvmMHGgCh3Nzc8vGxydq5AA2Ufmw7zOIK6IfxuWDQZ3rX5BjzvWRubmF9ywWSyX5kgMgyQEKsFCqr6H6/f6gfXBwsEo4vhtJT09/aHp6upvr+uVb6+sfd3R0NBnZUQxfUeU+cBAcARZBMgHQGGkOmvNp8iGfao+AajntG+vrDZWVlcfEO09S8i9e/MAZCqljmPM78D1wgx/AODjEyLmo/G1ttA0bS5GvdZ3/DE38gvav0GF0/RvmD/rryFk0UAM1gKUCnExirt+gr5LWOTTQ9Tt8y+rq6kp9a2s22bln1WMlG2CpMDw8fCYUCtGKZ8PopH8PBYM/Dg0Ntco7moyZpSyJ58+WO9FnODv7R62qqrQ9FwCWBLvA++Avv98/2d/f3xrFebb8RaSBEuxeUY/gu+QQWAE3wDLX+SL0JfB41AvJ1hY/oHKsWDhNPQAF+MAa3vsK18OBgL/By4AlPIw0MICdMCMjY58RRMJARD8a4/F4RowgvGAVeMIZ0ZegH4wMYE8wqG4HQMxcm6mnuwC9r7m5ueJwYLwxQU0UiPHz8/MlNLa3t/cMbldXRTZ0BIJPkTLxwI7TsL29/eTGxoYdt5gGp9N5UmyfuFQ8K7JjbFANIHIHJajNOIo2MoM0Vmzrk5OTF/A5/olvf2lqaurdaKehIlVpIcg0rmAOweLiYiVg5FiTdsyFhYUXRT/KlqryMpoDFEpzK7FOwxdAEdgPGG4zT8p1geO0DDDxPGLbZmTTpAtN5PUOFJMPw1diMe6HDsHExESNsRoWeXYYMEjB2NhYrRR0RdK/C4LBYINwhDPDnpeXd1QczfRMgpGN+tA9QjxXMQdgsWDxjF1dXWUIglbicLlcp4zznIkMSFlgBOSgq811StOCjqCq2mkOwGLB4hrxvjIzM0uzsrJKqXAiLxORB9iqx2MFjDD6KDSGxtIcLAXJAYcJqXDCvwvWfLbr1z02agMmEOOk61fSYiISnHLmmOP+N5F/FyQp/wHjxqv8BBis8gAAABpmY1RMAAAACQAAACAAAAAiAAAAAAAAAAAAZAPoAABAamiUAAAFIWZkQVQAAAAKeAG1l2tMHFUUx6+hVE14WQkxVPGLQhvhCxqj0BgLa2KnLIXyECkIy77agpg0wSAIbQHF+EExAV8RbIJ8kfCJEAmQxkdVRNc2pJHEL2JZ6LobQktWdllm5vq/5Yysk32ku/Ekv5w7c+aec+beO/fcYbEK5/wRUCegNosFakQkEezX35dluR7aJhBtwIKhPonxJnAYmIEFHNLZbIqi2IUmWBCHZC5boQVPxJNAY1AAM0gKTkAHI5JAE7CDMxyJABYOFsl42+ut0wUpjp6AeAbXCj8Nfdbr9ZoACweLZDx37rWKEIEeCpcA2dBW7rw9pqilo6OjGrBwsEhGSNHi4qJJEQ735vsEYB7PukUL7na7zYCRDfd2335packmfIDoQguuUZZ5DfRjgEEOGgyGk8KplgDsZsBqamoqPR6Pxe12mUUbiNVvpgTOgJZjx0oqhQ/ynwfOgjbwtH4RJgLqTMhyGXQG+haOjo6e0u5PTk5WAgZ5ARgJA2DCRnPfPDEx0YhbR7a2tg4isQbc64CtC/o8cW9wAvuBFdj0n5fTefNoQkJCiWSUKiRJqoBTCQjJoCQM1BYiGY3GivLy8ir0MbpcrhIEbYefTvjshr6A616MZi/a9/2bAGRfe3tnld//952gepqbm58NettcEE5ytec6OzufQ9A30P9NcF7hvAe6b3tn+62hoSGriMk0oYvj2dnZZdPTM/X6BLxY3bAfICILPefz+R5F3y4Evgj60H7b4bj6ekFBQaWIpU9ASBaQgFEM9TWsfp8vYB0bGztFTu9KkpOTH5ydnX11Z2enz3nD2WW32+todCSKFVLuB/mgBBg1YklA9NH5KAFPUoyQVc0WzObGRlNtbe1JmtdYJbe7+6LJ7w+8B58fYU18Ai34FLwPnmIUnFY+aWqTjcXJAHyOQI9gQ/scWuMSGGS+gK9BBAsF1kA9YPGgyDLeVhnjCuB8TAHiWmjsDx+zhoaG0nXsaPrgLuxwwgZYPAwODtq2fb4v4HNcoKqq0F/iK7k0MDBg1e9oegwgXonqP0P/kPgMr1//7RXa2wsBi4F7QBeYvr1xe7Snp+d0iOAZ+i8iCRRjsYQuwXcFElfVeegr4BtwGbwDHg55Itre5odlTtUMxJsANqDnoX8FC5yrP3KVXwHf4noWvAxY1GKkgFHshCkpKQcoCRB12IsFmZmZ6cvLyyNoXwW/gJ/ADzQiX4OU/5TjQECmBABYvLZoEmcBMV9wVLSbGLdHWROfgVWw7PP7PhR9+/v7W3C6+gr3HOBnMK9y9Tua7r1qKI5Om5ub1tXV1abW1tZqbfu0WCzPaKNDG1QTCPdfsIZhdmHunWj/MT4+XiN8iNI8NTV1IRAIXJZV9fu5ubmeUNVQ0q3SIyBNO2ZprKys1AImAiu6HRPzvgD9FyVyA3o2NTX1AeFL51sKVw1fBEe1Y5Tf739cvy5w4CgDe4dSug/Y8PBwG4bXg0XnwrUT/AlMgJHPIoqRBaILnQ9tGjMzM/X0Niy4dhAMUnjr1q2ZvVFQV6AXYv4xwZw1aYFQM6w5OTknqMyGPJYLmwmC7XZN3R2FVSTxO2DhYJGMvb29ZUhCvKWtra3tJarnTBsB3SgwASR/fn7+A0zDTZXzFYfD8S5g4WARjZivtLS00vT09FK0peDDRHABc7tcZsAE9IyUn59fnZeXV0VzHrNkgeMC3cKh/4J1y9qayyLagBHB/SRqxyX7iEhVzhC53/8j+v+CmOQfnaCvAsiMZ2EAAAAaZmNUTAAAAAsAAAAgAAAAIgAAAAAAAAAAAGQD6AAArfy7fQAABPFmZEFUAAAADHjatVdtTJtVFK5hM8EQQIbEhMxfDmgC/th+TGV/BjVZXlbKh9DKYB2lLV1JmNaQVRiEjMyPv8TE6JQZK1KRf8RkYUkzg84laELI5pIZFQPESm2WQgld+374nHLf7eVa7PZWT/Lk3Jzbc85zzz3vvbcGvaIoykGgk+Fgdg/9ifYDT/J2URS7YHcTaMzPkw/55prcCPQATqCKm3NLktSrkuDmqkRFdDFfYy4EzqgJWLACLQEtNPYCwKESRHW6dROIxeOdXKL6RyBQryYnxOOxTt0EfL5zrXwi4Nm9CNCc1kYEfD5fqyEHqVtaWuqWFOz1w/220EQkEnWqidbX13sYAYuWAPlSjMdpuDOiqNign2fmcpPJ1ELBVAKYTyez2WyvRiIR5/p6uIfG7Mvo0TYn+VIMmkskEodgs7K+Mmb61NLODyCKTdBlmK4NBAKnVPvs7CwlI3kFMDOYyEBz6u8mJydPwXSMYgAWDTG1kvv5b9ZFE/zntbr6x/G8vLyTglloFQSB9lNgbmWMhImNSYSGhoYW+h35kC8X0wOcxfgsf7bs8/uH2hKJrfSPefT19b2kWW01sJdUq7/zer0vaxbSKyExtDeRTHpHR0dtlHMXAaChoqKi6erVuS6eQHyn80sYskkJQfNFeCQkhu4LXQs5jEZjM+XiCZA8x8prphIuooO3t5MutpcI+thyYGpqqiuZSHjv3rnjbm5ubmPVEViujJIPHAZOAmYVOgmUcDEo5hHKkfFW48u+ce+eo6Ojo4Xtq16p9ng87bFY/A3EPA/4gbcYzgEVBpacdSnTbExz/8Ft+rokKRegL+BAG4ZWMQK8adhObtspWSagB7pyJSClJFr1RSzqImk0JLSU1qlU6rzBbrc3RnGi8cnDOOFoLlcCw8PDHZubm2OI+S7wDsPbsVhs1O/3v8afaDxMQI6SPX4Z/yP6DG/d+uk0O9trde79E4ADeD8cDl/CYWbPkLyMdyoA6tEs/7iCdRB4AQgAV4CPgQ8BL/BMRof79xUjnlGaCylnAkeAaeAL4DN8XZ9CfwL9AZoPFYdku4wkIICTsLCwMH20Eh6h7C8CR8vLyw/gPfAexl8hThB6koiwilwGntp1HSeTomvXY2JxqZvd5+bl5eW6HWJK77/1BOvw74HrW1tbI+Q7MDDgjEajH8H2JVUDZD7HAolE/q7LaHBwsH1jY8O1trbm6O/vb1ePT6fTSStyaR4lDpasXZHln6FvA007NvkHWVYWYP8OttDE5QkLxcDVbMabwhePx69goYHp6WlfpttQ4Lr0GFDMP7NWVlY6yAFJfpUV+U/YVoFF9ur5GuMfgZuKrMxjtRNFRUVPUywutrDXbXgCOK59RvF9YTab2WqVv4AwiKxB/0a28fHxflmWF1GJBdhuAN+o1WEx6ygHy5Vd2PvQrWJubq6LVsMqkCYgEwFZWWYutXigBh9WQf4WesagV5LJpENdOe4MV2VlpUW9mmGLEAG2BSqBEqvVehqkFrA91AtoSPmabgJjY2NNIEHld6Obren7nAmSRIA0AejfNW6HQ6HQJQUkYL8xPz8/ZMhBThQXFzeWlpY2ssbJf0BAkn6R5Z0K4GBZ4h41Qk1NTduhqqpWtue6hZqlgcA3zszMzAgqczeVkm4Hg8GhPfwENs5J9hGy3HKmLH7/g/D/C3TK3/RJfVWiL971AAAAGmZjVEwAAAANAAAAIAAAACIAAAAAAAAAAABkA+gAAEA2yQcAAATpZmRBVAAAAA542rWXW0xcRRjH14AaEy6RJsTEtCRGSEGe4ElpTEq3ph5Yy0UostyXUxUqpphKpQZLNRpSHkx4oBgNabfE2oSElKRBfQFj4MELiOiLGFIBS3ddsASyu2fPOeP/287Uw7C46dn4Jb/M8M18l/3mdnDYFcbYflDH2R/fwn6gh8Ejsl7X9XroTxLUl8fJhmwTDZ4LPKAVHJTGThqG8apIQho7qDNd5ba5iSTQJAJwZynWBKxY9CmgRSSI6jTbTuDu1ladFOhI3AQwRwQntrbu1tlOoLPzzUo5EHhirwRozKqjBDo7OysdCUjx/Px8s8Gw1v+u93Ea8PsDrSKQz+fzkI7GrAmQLfl4kA3XpOusBu3TXP2k0+msIGciAYxHg9XU1Lzs9/tbfb41D/X5yfBYNyfZkg8aC4VC2dCdoBgUK9ZRixrfR9fL0GZiuMjr9bqFfnx8nIKRHAUujpMUNCbmjYyMuKE6RD7AcenUtFJM+cyqNCgfr5WV24eTkpJKFZdSqSgKrafCzTJ5Ek7eJ1FKSkoqaB7ZkK3sM9rquirfLclnz56rCoW2afIu2tvbn7X82nywl+SLeW1tbc+JoFaCmqZ2dXVVU8wdCYCSnJycsomJr+plo617Oz+DE08yCPlEEBM3JxooBsWSEyA5wMvrohLOYQcHg5rK1xJOH1j2ka0WDKq/wBf55NVReKyY8hgoAKXAJbCZQIbkg3wWUoyYr5pcrs2NjZba2toKvq52JZ98bGxstsib+/4rSp1duxSISY4EhXxYAsM/o76g3hHUgo1iUAZ7oD7RBDRNa4av12MRDAabHI2NjS8FcKPJwddww9FYogmoqlq+vr7eBp9vgFMC3KKveTyeMvlGk3GCBCW+/0x5Eh2ZhYVfG/jdXmRz7R8CCtb/zOLi4qmqqqoTMYJnykYp4Ahev11PsI0EngK9oMdg7F2074BykB7TIBxmuTrTLQ9SwgnkgI/AB6hCL3iPIRG0XWgLaU7cx8gAXtxmaWlpdLW+CF6g0sYp+zMgLzU1dd/U1NRbOHZ98PchM9j70J8HPeAceHTHc6xpurrjY2Juvpm/565wOHyFMfMv02R34OzSfyTQgTvkKtpPA38HVLLFSXIvLy/3iGqAC4YR6REJCEnu7u6u3tzcVFdXV1s6OjqqxfU5NjbWgMl+cIeZ7E+0v/FgpWASfAmK7+nM60jwGv6+DD7p6+s7Sj7wNLv6+/tbA4HA+WA4fGFgYMAT6zVUpF16KD09/XE4mgY+cBss42KZjAYzzWmTmT9Ch5bdIN329vYl/H0dXEXJh1H+HvJBviTfyl6v4TFwWHxG8RvLB9bAKrg1ODh4mo/9DH5AIjNoo0n19vaqSGaUV+EK+Aw8T2PcZzHF4LHiC0q+QKUHVPpl3Gg36NfwCsxD9z32xQz6U9ykaGlp6WNehREkchl74qLDrsDxLV76FZT7d7fb3SieZuh+ogT4EokEMnCJvaLrxhfQfQ68hqEP2U5gdnb2Ipz8YaL009PT9EsKLTt+zjTNaAJov7GYFYyOjr7NmHENFfBiE7c7EpBjeXl5VQUFBXQqFOvHhB6JfIvg36EyMzimN6WPGiU7O7siKyurnK+5bTkASgh54wwPD5+JRCKToZD29dDQ0Ok97BTeT0iSiTivnDOO3f8g8v8FNuUfG4CCnr3IRI0AAAAaZmNUTAAAAA8AAAAgAAAAIgAAAAAAAAAAAGQD6AAAraAa7gAABPlmZEFUAAAAEHjatVdtTFtVGMaAJiYEIhowKOgPS7ZAYjL9o7AYtpost8Py6ZDxsUHLoEUXMITpRDIxKyNion9Q4tSFdCYYmZNEiMFo4ghDpwhiwg9/CdLabmm2wC5t74fPS8/B64HCdhtP8uTevue87/Pc97znvrdJZoeu6zlALUPO7h7mie4F7hPtiqLUwd5MoHtxnnzIN1HyvUAT4AD2CHPNqqqe4CKEuT2KrjiZ795EBBzjBCxYqlGAEQZ7KtDIBSI7x00LuLm6WisQHbwDAQc5OWF19WataQEdHScrRCLg4XgCaM5oIwEdHR0ViZTBgfn5+eOqjr3+d7/tNBEM3nBwokAg0MQE2I0CyJdi3E3BHVMUvRrXJ5j5EavVWk7BuADMb5BVV1dXBoNBRyDgb6J7djKajMVJvhSD5tbX1y2wHSEO4truqG04b0JRSnHNxHTh8PDwUW4fGxurZG7PAyUMVjLQHF/n9XqPwlREMQC7cGocxCmeWSdNisdredlXnJycfFgqkSokSaL9lJhbJhNhZfc0JJvNVk7ryId8xZh0xcM5xXdLyqlTp6vW19do8Ra43e5nDE9bAMQbBXydy+V6lpMaIUcizq6urheJ8z8CAFteXl7pxMQ3daLTaqzyMxh2HHydeCIIE19P1BMHcYkCaOSy9JZQCn9FBctyxMn2EkHvejxIvhFZdv6OWGz7ShhHbjyn+4F9wGFazGFSQIYQg2I+RRzbdjUxXbdCocaamppytq9mRwHFCIVuNYrFvdlF6WZLlQJ8UcLdFDGMxKKIJDkiN3CDCNRAXaIClEikXiTmiEQQv6Gh4YUbeKOJk3684WguUQEUI7hdfL/fUV9fbxffaCKsCfLfUfxMcdHQ0FBXOBy+pmmaH2rPA/eY3P9C6g8LCwsN7BiK5JmigwW4pOnadVyDQEDTdRJhNUGejWJ24doSa2ZA7FshNZ7Dq8AKkQJ/Q4Sf/V6KRqNmBDwKvAy4gVYIaAFOUEaQ3S3d8AHAT8S6pnPiZU3T/1xaWrqYnZ39EH4XA/t32g6aAx4HHktLS8sYHR2l8/8K0IZsxIToKmWEN6NNx3SQLeua5sP9X8CSfPv2lf7+/pO0X+jl78P2G8T9gqfo3UFAFdALdK+srJSSL7pj1eLiYoshGy46kuIXc8rMzMy7KLo/kO7ZycnJs2inG6/PkZGRI0QOzELgT7qufRcjiz6Hp7oA+wfA02TD73MI7sHvM8Dp9vb2/fy13tnZ+ZLP52tdW1tzdXd3V2/XDSWhSovS09Npay6jEOdwvQZMy7J8kZF9hjr5Ahnxwv4e2a6HQm/g/hzwNtADNFIMiiXEluJ1w0NAMf+MUnS9To+R/wzMAD/09fW1snR/BXwOISTgY7K1tbXVRlX1HZaFt4A3gSdpjsU8QByMa/eBuvgW+z6LID9ie6aRwvPsaZJgv0wCVGQAIj5hLoVzc3OvqSwLEHKG9j7J7ADpVZb6q0j392VlZZvfBrB9CYwAXoALyCgqKqoKh6Mk4CyE9apq9HXTAqampnpAPI1gV8bHx3tYP+cVfwkFuSEAT/qpwW3f4IeDqHLVE4UAvFUTamiHLBZLRX5+fiUVjvFjIoxipAyouupFZQ8KHzVSTk5OaVZWlp3tuemRC9gIYuEMDAy4w3L4Asg/8ng8zXH8JHaf0Egh7NLlrHH9/rch/i8wOf4BRvqEvL0rz4oAAAAaZmNUTAAAABEAAAAgAAAAIgAAAAAAAAAAAGQD6AAAQaGt/gAABQFmZEFUAAAAEnjatZdbTBxVHMbXgCYmCEgbsCGFhFgCCQkJfagKL+2uSTOUu6WEO2UXKlvauiSyIlZSN6FRi0lDjA8kRgmKqeUiKmjS9IU+mHql4A1pgrQVWHXDdoFlmDPj99+e0fGElbITT/LLmT1n/uf7zn3WEmnSNG0vqObs3TbAhNCD4CGxXFGUGpQ3EfQs1lMMxZoVzwSNwA4yhLomxlizbkKoy1A0xcFjM80YqNcFeGMxRgNGDOUx4LhuEKPTELGBlUCgWhCy3ocBqy5OBAIr1REbcLlOl4lC4LFwBqjOWEYGXC5XmcVEOjQ1NdXANMz1P/NdRBVe7x92XWh5ebmRGygyGqBYamMnC65eUbQK5I/z4mSbzVZKjekGUB8Sq6ioeMbr9dqXlxcb6ZnvjEbj4qRYaoPqgsHgPpQdIw3S2mqrhYL/RlGKkSeiOre/v79KLx8bGyMxSk+DAo6NCqhOf29gYKAKRXnUBigSdo2dNMU966BKcXvduvXbwaioqCNSgVQmSRLNp8TDErkJG3+mJOXn55fSexRDsWKblKNzDvFsiXa7XzwaDK6GXhZxOp1PGnqbBcKlLP29lpaWp3RRI+uy7Ghvby8nzX8ZAPnp6enFExOf14hBgXsrP4GzXUogxB1BTHw6UUsapCUaoJQCJHJPQ/gtVvD6uuzgc4lGd5x2Uay8vu6YQVt8+gq4Rkq4oIdBDjgCCnQiNJAgtEFt7icNcQeUg5vgT46PUBn7dWRk5Cyf10hTVmVlZanP5z8uLm79FiUDvwCvqqm/Uw6Q66g3LSYTCRmFRRMWVdN+1lRtCT+WVKBxVELVfjRrQJHlWlFYR5blGsvw8PALqPwJBXc0Vb2D/DZG4zbKZoaGhtxmDdTV1RXSiSmKLy4u2mtra4vEE03EZlL/vtpPFF/q7e11ra2tXcEUTMNtD3ggwvnPpfthenq6jm9DUTxRDEgDb4MfwPeADHwH8nYsLh5ELJRbQUy4gGYuNgNuqPeevwbXNzc3c3dqYHV1dQ8Ji6ufRmRjYyNTFI8HU9gNN8gEhv4b5F/CxBezs7NvJicn78LvA2D/dtOB+j1EbGxsAp2EW+8A4TLCj0dUVaXekvBXMHDd7/ePdHV1naD5urt692WUj8PgKPLW/xC3Uj14dn5+3kqx9E1AHyZGA7IiO8Qv5ugrV696MDzXgsGNz0ZHRztxnYaOz76+vmISB2PgMniHi+UAD3gJZPCyM+jtGU1jJ/F8wm63P6Ef66eczvKFhYVGdMzR0dGx5W0oCas0Ly4u7lE09Bb4GAyDD/wB/wUu9irT2BvIz4PnqWxpaYl6+BxoxaJzIi9BcTzIE9qWwt2Gh8FBkMxFCsEnYATH8ofI33O73fW8rhf0cAPnqAzn/lGmaW00Cig7CVrAPqrjbR4iDa61fUIv3kUDH4HLDL2fm5s7z3tjgQgMsB7GYICxV3hI7uTkZDMfhVOMYSoUpcoSaVJV9FoNDf0lNNZvtVqP6Vczyi6CC3wEdAMJ2dnZJcGgTAZOowOtjMlNERsYHx93KapyCb1/f3Bw0MXvcwsfgYsgZAC5xxCW4/F4amgaZMZau7u7Tf0vOJyamlqSlpZWSgvH+DGxFgi8BvHXyYDP5zsrfNRISUlJRfG7dxdSG2YMpIB8Qlw4nZ2dDQF/oNvnWznX1tZWEyZO4s+mUjSxzS1nCxv3vyXxf0GE6S+R9YNYr/xWtAAAABpmY1RMAAAAEwAAACAAAAAiAAAAAAAAAAAAZAPoAACsN34XAAAFF2ZkQVQAAAAUeNq1l1tMXEUcxmmgJkZuAtkoWHyxXCKJpvJgpD60rNocWCCgFOmyUHa36hKgLqE0vFXQVCymioYXE8LVeCONpIQHEo0xYhtCE6SpvgnULOzCrpCFhbPn4vdf59Dj2BV6Nk7yyxxmdub7ZuY/F+KMJlVVjwAr48j+LYwLHQYP8eWSJNWh/BxB33w9taG2sYrnAztwgDyu7pwsy29oJri6PEmVnKxtfiwGGjQB1lmi3oAeXXkiaNQMYnbOGjawEQxaOaHiAxgo1sSJYHDDatiA291axQuBx6IZoDp9GRlwu91VsYTByfn5+bOyirW+t97lVOHzrTs0Ia/Xa2cGyvUGqC31cdD1bgPLiqreQe5ixVlms7mSOtMMSJIaEaupqXnV5/M5vN4VO32znWHXBye1pT6obmdn5yjKTrO4yufFU8AfqqL4kK+BdXzfRG5CddHw8PAZbVQTExMkRuklYGGYqYDqtN+Njo6eQdFx6gOUc7vGAQ7rDTxKBsAKZsCLHEaUdeR+cVccjo+PLxUsQpUgCLSeAmtmYibM7JuSUFJSUkm/ozZ373pO6ONhL5ckJ3+2JMzM3OhVVGURFR6IryL3stnwT09P23WjLQDRUoH2O5fL9YImqickis6Ojo5q0vyHAVBSV1fX4Pf7r7PZ8Ch/G/GBV1CfxtgvpRH8jiCmJqdsOTk5FaTFG6CUDQRg6e/vb9ve3v5JUdTfPR7Pl0lJSekGdlA6xYEYCjlvYzew5bMwjexojR4Gx0ApsOhIM2AgjeujFDxHGvwOKAU/gzuI/F+RE7/J4fDc2NjYRbauRlNBbW1tZSCw2cjfHdotSgZ+ROT/QqgALDBuIxhn4mJMJKQX5k3ESYr0g6qotwiYuIXCOQ3EwHexGpBE0cYLa4iiWBc3NDR0PhwOf4+Cm1iCCIj+G2JYnB4cHGyN1UB9fX0ZnZi8+MrKisNms5XzJxqPOUb9A/Vv4n/U3d3tCgQ2RrAEdCZcAIcMrn8R3Q8LCwv1bBvy4ia+wRPgPSzBFPJJMAGugWcfWJw/iORIXgwSozWoBt+C66qyJ/wN+ALB8syDGtja2nqchPnopxnZ3d3N58WTSJxxTVGUceRfgc/n5uYuZWVlpeP7aZAHDu07cpCcnJxGJ+H9dwB3GeGPRxQlMloIK1/TqNfW1j5pbm5uoPXy/+mnDj5FR1cxgtf+a801kcXFxWJqS28CepjoDYiS6ORfzAnj4+PtqBgNBoOfDQwMtOI6jRyfPT09L5M4+AiPkivILzGxo+AtYA+FQk9GyrgHicPheF471luamqqXl5ftm5ubzs7OzvvehgIXpcdTUlLondAJPga94LJv3edmBprxVGtDcLXgCd5AZUtLS6/fW3MVL2KVbr5U6ovrW4h2G54CJ0AWE3kR9IEPMaoPkL9rt9trqA7CHfjbrapyi/aEs1gsFfK/1/wp7XkHTjINaO2fSOQddHAVXMFoL8/OzrrZaFAnX4C4W8YMQLCJNSmanJy0cZEPwwYTG3UveD8sh7sKCwurtKsZZe3gbbA3A1SXm5tbHgqJTs0E7oJGwwZGRkYaIdwj43Dq6+uz032uMwcDcsQAZqFJ1+xY+8X207IsItolZ1dXF+LAeDplMpkqMjMzqRNB/5jYCATO0wzIMLC6uvom96gRMjIyylJTU8vYmhtO2aCE4APH6XTW4KyA+JrLarVWR2knsO+YUgKxzy1njtruf0v8/wUG019dDISlQm+mHQAAABpmY1RMAAAAFQAAACAAAAAhAAAAAAAAAAAAZAPoAABQgGYUAAAFD2ZkQVQAAAAWeAGl13tIW9cDB/BTTCtCdbYV2SjKGJ12zL+6f7bpBnUZG1cTQyzVn49Y42266NRNVuqEPXzgqpvsD53stzHcKGHdBttEkCBM6CjdoxsrQoUhSH2kZorYlkaTcO89+570XHd7SC4xOfDxHO/jvO85JyTVQCktgAZFURp5mqQimYcegUNABA2qqp5D7GFpIIIDsD/dCnTAEgTgTeGeR0AMjoNMFUVG/FQ6FfgbVuE2j59MogIHwc16h0H6TMoVwPheR7xMqRagGg0i/X0SFXhJv8YqcPf+/QYgiRCzm7Ozs33I6JZG6QrrBU3T/kH8ikkFHhWvd3V1VQNJhJjdtFgs5dvb21di80DTAtqDXrgGZHNzQ9YLWV9fbwGCdJXechbPzc01E0LKk/2smuEqzEA97MPlo0NDQ2wiLsKyYS6Q2traUxsbG3IQhbM0YMhoi7H1VqvVyfLg+R+jCq2FM8aJaZw4V+E3+AMt/QvxD/Ac3i1dWlm6pFHtFnphFYV+DQThZbBxViBTU1On9B7w+Xz1uFSG//OhSu+VB3Hs69hvrEAO/My791e4Dn/CjXA4/HFmZqZtfHy8a2xsrCsjI0MCgpDPK2HlaRakiooKpyRJ1XimcnV19aRKVWGugKKcRXxgtwIIFr/f/w5m+izviWt6b6DVNyYnJ+sNrS2BRKFEf661o/V5sWAmHAp7LlzoOc3KJIZggQq73V4fCAQ+x4NXeEV+gd+hDPcPc+aBP2f8IvTu98/MNBYVFTlYWWIFWCgECWyD/YPeO3fvXFY07aeFhYVPsrOzjwDZC4QjbB6EQiHPzbmbzWxoeO9IvKy4IQtOQCXYdOYtN+0Jm0ElPANZ4udXCl9hkWGznvkRJhUlehmTro2Pa6qhpK6uzrm1teUWhwMaoIBgln6BxDeYgN8i1n3HTQBJU4OxYCO2lRP8+Qz/+GJUFagPlQJQ1E+BpCOqRF16gaLozk4jGRkZce/s7PwfF76ECQaFT2DyjGMVbAaSDpfLVWVctnXB20G5qanJLq5oIiukE5LKP198qL293bW2ttaLmn4INbAPSApK2f4wPz/vYqtjnMLzxS8iD2QYwTB8hHgIBuGJvRcubM0q4KwABxMdSF5UVXoR8TBmbKxgldIBXGM98TiQvcAceizOpwdKC+LjYgWy4CI3CAP4IvoQvzc9Pe1lKyHShXA0qZZDTk7OYd8lX3282a9QYTOCTJUVCtAH7y8uLr7ldDpr2HgFg8FKdihFpToQv2A25nqLsROWs3fZmYAdTB6uAH14O0awjI6OtkQikXdxsnm7t3egCdtpbPns7OwsY4VDB7SBDAQK0JJGfUUDAm7jmMuy/Ky+rLe1tZ3GRue+dy90tqcn/m4oCbO0DA6hkDpk2Amvg3dlZaUOdlc4itbyNFkOLP/PcBr2QBXyyIUyIW8p0W74KpzUj1GRCH0ambwB7ciUtf41h8PmAGI84XDEZrM52DVh8h0DwvMs52UUJn9OVHe73otDi4u3Ju6pGKHUP+NvFK7Xpvy7AC3w8q5vxdHsXHFxcZW+NRu7mqcJu8eeCYVD/6330agbSCLE7Obw8AfVqhptRdrb3d1dw/dzkqgHGIQT3efP1+AdTxj6+/sdQBIhpjcxXrm5ufa8vDw70pLxMMGO5Kzl+sYChOHPSOwd9i4f85RDIVQw4sSJ/S7Y3JTXDb8LOON7Ek+nFSyc2S5nNX3PJPwLu02sWzaoOecAAAATdEVYdFNvZnR3YXJlAEphcG5nIHIxMTkn6LNhAAAAAElFTkSuQmCC);background-size:16px 17px}ngx-extended-pdf-viewer .dropdownToolbarButton::after{width:24px;height:24px;display:inline-block;position:absolute;margin-top:5px}@media print{body{background:rgba(0,0,0,0)}#errorWrapper,#loadingBox,#secondaryToolbar,#sidebarContainer,.textLayer,.toolbar{display:none}#viewerContainer{overflow:visible}#mainContainer,#viewerContainer,.page,.page canvas{position:static;padding:0;margin:0}.page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.page[data-loaded]{display:block}.fileInput,body[data-pdfjsprinting] #outerContainer{display:none}#printContainer canvas,#printContainer img,body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}}ngx-extended-pdf-viewer .visibleLargeView,ngx-extended-pdf-viewer .visibleMediumView,ngx-extended-pdf-viewer .visibleSmallView{display:none}ngx-extended-pdf-viewer #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute}ngx-extended-pdf-viewer .invisible{display:none!important}body[data-pdfjsprinting] #printContainer,body[data-pdfjsprinting] #printContainer *{padding:0;margin:0;font:message-box;outline:0}#printContainer canvas,#printContainer img{display:block!important}@media print{body[data-pdfjsprinting]>*{display:none!important}body[data-pdfjsprinting] #printContainer{display:block!important}body[data-pdfjsprinting] #printContainer div img{height:100vh!important}body,html{overflow-y:visible!important}html.cdk-global-scrollblock{width:initial;position:initial}}ngx-extended-pdf-viewer .textLayer .highlight.color0{background-color:rgba(180,0,170,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color0.selected{background-color:#b400aa}ngx-extended-pdf-viewer .textLayer .highlight.color1{background-color:rgba(0,100,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color1.selected{background-color:#006400}ngx-extended-pdf-viewer .textLayer .highlight.color2{background-color:rgba(0,0,255,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color2.selected{background-color:#00f}ngx-extended-pdf-viewer .textLayer .highlight.color3{background-color:rgba(255,0,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color3.selected{background-color:red}ngx-extended-pdf-viewer textLayer .highlight.color4{background-color:rgba(255,94,0,.4)}ngx-extended-pdf-viewer .textLayer .highlight.color4.selected{background-color:#ff5e00}html[dir=ltr] ngx-extended-pdf-viewer .dropdownToolbarButton,html[dir=ltr] ngx-extended-pdf-viewer .overlayButton,html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton{margin:3px 0 4px}html[dir=ltr] ngx-extended-pdf-viewer .toolbarButton:last-child,html[dir=rtl] ngx-extended-pdf-viewer .toolbarButton:first-child{margin-right:0;margin-left:0}html[dir=ltr] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:4px;margin-left:0}html[dir=rtl] ngx-extended-pdf-viewer #secondaryToolbarToggle{margin-right:0;margin-left:4px}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .overlayButton,ngx-extended-pdf-viewer .secondaryToolbarButton,ngx-extended-pdf-viewer .toolbarButton{padding-left:0;padding-right:0}ngx-extended-pdf-viewer .offscreen{position:fixed!important;left:-9999px!important;display:block!important;width:3000px!important}ngx-extended-pdf-viewer .offscreen #sidebarContainer{top:1000px!important}ngx-extended-pdf-viewer .dropdownToolbarButton,ngx-extended-pdf-viewer .toolbarButton{margin-left:-1px!important;margin-right:-2px!important}ngx-extended-pdf-viewer #numPages{padding-right:0}ngx-extended-pdf-viewer .pdf-viewer-template,ngx-extended-pdf-viewer .pdf-viewer-template *{display:none}ngx-extended-pdf-viewer a:focus,ngx-extended-pdf-viewer button:focus,ngx-extended-pdf-viewer input:focus,ngx-extended-pdf-viewer select:focus{outline:0;border:1px solid #00f}ngx-extended-pdf-viewer input[type=checkbox]:focus{outline:#00f solid 1px}"],encapsulation:2}),GO);function LI(e,t,n){return!e||e.some(function(e){return function(e,t,n){var i,r=0;return(e=e.toLowerCase()).includes("ctrl+")&&(r|=1,e=e.replace("ctrl+","")),e.includes("cmd+")&&(r|=8,e=e.replace("cmd+","")),e.includes("alt+")&&(r|=2,e=e.replace("alt+","")),e.includes("shift+")&&(r|=4,e=e.replace("shift+","")),e.includes("meta+")&&(r|=8,e=e.replace("meta+","")),i="up"===e?38:"down"===e?40:"+"===e||'"+"'===e?171:"-"===e||'"-"'===e?173:"esc"===e?27:"enter"===e?13:"space"===e?32:"f4"===e?115:"backspace"===e?8:"home"===e?36:"end"===e?35:"left"===e?37:"right"===e?39:"pagedown"===e?34:"pageup"===e?33:e.toUpperCase().charCodeAt(0),"WHEEL"===n?"wheel"===e&&t===r:i===n&&t===r}(e,t,n)})}Promise.allSettled||window.Zone&&!window["__zone_symbol__Promise.allSettled"]&&console.error("Please update zone.js to version 0.10.3 or higher. Otherwise, you'll run the slow ECMAScript 5 version even on modern browser that can run the fast ESMAScript 2015 version."),"undefined"!=typeof window&&(window.isKeyIgnored=function(e,t){var n=window.PDFViewerApplicationOptions,i=n.get("ignoreKeys"),r=n.get("acceptKeys");return"WHEEL"===t?!!LI(i,e,"WHEEL")||!!(r&&r.length>0)&&!LI(r,e,"WHEEL"):16===t||17===t||18===t||224===t||!!n.get("ignoreKeyboard")||!!(i&&i.length>0&&LI(i,e,t))||!!(r&&r.length>0)&&!LI(r,e,t)});var FI,NI,VI,zI,jI,HI,UI,WI=((FI=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||FI)},FI.\u0275mod=jt({type:FI}),FI.\u0275inj=at({providers:[UD,HO,Kd,{provide:jd,useClass:Yd}],imports:[[bf,$y]]}),FI),GI=["contentRef"],qI=["*"],YI=((zI=function(){function e(t){Z(this,e),this.display="inline-block",this._dragDisabled=!1,this._elementRef=t}return Y(e,[{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}}]),e}()).\u0275fac=function(e){return new(e||zI)(Ps(Kl))},zI.\u0275dir=Ut({type:zI,selectors:[["","drag-scroll-item",""]],hostVars:2,hostBindings:function(e,t){2&e&&ol("display",t.display)},inputs:{dragDisabled:["drag-disabled","dragDisabled"]}}),zI=z_([j_(0,cr(Kl)),H_("design:paramtypes",[Kl])],zI)),ZI=((VI=function(){function e(t,n,i){Z(this,e),this._elementRef=t,this._renderer=n,this._document=i,this._index=0,this._scrollbarHidden=!1,this._disabled=!1,this._xDisabled=!1,this._xWheelEnabled=!1,this._yDisabled=!1,this._dragDisabled=!1,this._snapDisabled=!1,this._snapOffset=0,this._snapDuration=500,this._isDragging=!1,this.isPressed=!1,this.isScrolling=!1,this.scrollTimer=-1,this.scrollToTimer=-1,this.downX=0,this.downY=0,this.displayType="block",this.elWidth=null,this.elHeight=null,this._pointerEvents="auto",this.scrollbarWidth=null,this.isAnimating=!1,this.prevChildrenLength=0,this.indexBound=0,this.dsInitialized=new ac,this.indexChanged=new ac,this.reachesLeftBound=new ac,this.reachesRightBound=new ac,this.snapAnimationFinished=new ac,this.dragStart=new ac,this.dragEnd=new ac,this.scrollbarWidth=this.getScrollbarWidth()+"px"}return Y(e,[{key:"isDragging",get:function(){return this._isDragging}},{key:"currIndex",get:function(){return this._index},set:function(e){e!==this._index&&(this._index=e,this.indexChanged.emit(e))}},{key:"scrollbarHidden",get:function(){return this._scrollbarHidden},set:function(e){this._scrollbarHidden=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"xDisabled",get:function(){return this._xDisabled},set:function(e){this._xDisabled=e}},{key:"yDisabled",get:function(){return this._yDisabled},set:function(e){this._yDisabled=e}},{key:"xWheelEnabled",get:function(){return this._xWheelEnabled},set:function(e){this._xWheelEnabled=e}},{key:"dragDisabled",get:function(){return this._dragDisabled},set:function(e){this._dragDisabled=e}},{key:"snapDisabled",get:function(){return this._snapDisabled},set:function(e){this._snapDisabled=e}},{key:"snapOffset",get:function(){return this._snapOffset},set:function(e){this._snapOffset=e}},{key:"snapDuration",get:function(){return this._snapDuration},set:function(e){this._snapDuration=e}},{key:"ngOnChanges",value:function(){this.setScrollBar(),this.xDisabled||this.disabled||this._scrollbarHidden?this.disableScroll("x"):this.enableScroll("x"),this.yDisabled||this.disabled?this.disableScroll("y"):this.enableScroll("y")}},{key:"ngAfterViewInit",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","true"),this.displayType="undefined"!=typeof window?window.getComputedStyle(this._elementRef.nativeElement).display:"block",this._renderer.setStyle(this._contentRef.nativeElement,"display",this.displayType),this._renderer.setStyle(this._contentRef.nativeElement,"whiteSpace","noWrap"),this.markElDimension(),this._renderer.setStyle(this._contentRef.nativeElement,"width",this.elWidth),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.elHeight),this.wrapper&&this.checkScrollbar(),this._onMouseDownListener=this._renderer.listen(this._contentRef.nativeElement,"mousedown",this.onMouseDownHandler.bind(this)),this._onScrollListener=this._renderer.listen(this._contentRef.nativeElement,"scroll",this.onScrollHandler.bind(this)),this._onDragStartListener=this._renderer.listen("document","dragstart",function(e){e.preventDefault()}),this.checkNavStatus(),this.dsInitialized.emit(),this.adjustMarginToLastChild()}},{key:"ngAfterViewChecked",value:function(){this._children.length!==this.prevChildrenLength&&(this.markElDimension(),this.checkScrollbar(),this.prevChildrenLength=this._children.length,this.checkNavStatus())}},{key:"ngOnDestroy",value:function(){this._renderer.setAttribute(this._contentRef.nativeElement,"drag-scroll","false"),this._onMouseDownListener&&(this._onMouseDownListener=this._onMouseDownListener()),this._onScrollListener&&(this._onScrollListener=this._onScrollListener()),this._onDragStartListener&&(this._onDragStartListener=this._onDragStartListener())}},{key:"onMouseMoveHandler",value:function(e){this.onMouseMove(e)}},{key:"onMouseMove",value:function(e){if(this.isPressed&&!this.disabled){if(!e.buttons&&!e.which)return this.onMouseUpHandler(e);if(this._pointerEvents="none",this._setIsDragging(!0),!this.xDisabled&&!this.dragDisabled){var t=e.clientX;this._contentRef.nativeElement.scrollLeft=this._contentRef.nativeElement.scrollLeft-t+this.downX,this.downX=t}if(!this.yDisabled&&!this.dragDisabled){var n=e.clientY;this._contentRef.nativeElement.scrollTop=this._contentRef.nativeElement.scrollTop-n+this.downY,this.downY=n}}}},{key:"onMouseDownHandler",value:function(e){var t=this.locateDragScrollItem(e.target);if(!t||!t.dragDisabled){this._startGlobalListening("touchstart"===e.type),this.isPressed=!0;var n=e;this.downX=n.clientX,this.downY=n.clientY,clearTimeout(this.scrollToTimer)}}},{key:"onScrollHandler",value:function(){var e=this;this.checkNavStatus(),this.isPressed||this.isAnimating||this.snapDisabled?this.locateCurrentIndex():(this.isScrolling=!0,clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(function(){e.isScrolling=!1,e.locateCurrentIndex(!0)},500))}},{key:"onMouseUpHandler",value:function(e){this.isPressed&&(this.isPressed=!1,this._pointerEvents="auto",this._setIsDragging(!1),this.snapDisabled?this.locateCurrentIndex():this.locateCurrentIndex(!0),this._stopGlobalListening())}},{key:"moveLeft",value:function(){(0!==this.currIndex||this.snapDisabled)&&(this.currIndex--,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveRight",value:function(){var e=this.wrapper||this.parentNode,t=e?e.clientWidth:0;!this.isScrollReachesRightEnd()&&this.currIndex<this.maximumIndex(t,this._children.toArray())&&(this.currIndex++,clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"moveTo",value:function(e){var t=this.wrapper||this.parentNode,n=t?t.clientWidth:0;e>=0&&e!==this.currIndex&&this.currIndex<=this.maximumIndex(n,this._children.toArray())&&(this.currIndex=Math.min(e,this.maximumIndex(n,this._children.toArray())),clearTimeout(this.scrollToTimer),this.scrollTo(this._contentRef.nativeElement,this.toChildrenLocation(),this.snapDuration))}},{key:"checkNavStatus",value:function(){var e=this;setTimeout(function(){var t=Boolean(e._children.length<=1),n=Boolean(e._contentRef.nativeElement.scrollWidth<=e._contentRef.nativeElement.clientWidth);t||n?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!0)):e.isScrollReachesRightEnd()?(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!0)):0===e._contentRef.nativeElement.scrollLeft&&e._contentRef.nativeElement.scrollWidth>e._contentRef.nativeElement.clientWidth?(e.reachesLeftBound.emit(!0),e.reachesRightBound.emit(!1)):(e.reachesLeftBound.emit(!1),e.reachesRightBound.emit(!1))},0)}},{key:"onWheel",value:function(e){this._xWheelEnabled&&(e.preventDefault(),this._snapDisabled?this._contentRef.nativeElement.scrollBy(e.deltaY,0):e.deltaY<0?this.moveLeft():e.deltaY>0&&this.moveRight())}},{key:"onWindowResize",value:function(){this.refreshWrapperDimensions(),this.checkNavStatus()}},{key:"_setIsDragging",value:function(e){this._isDragging!==e&&(this._isDragging=e,e?this.dragStart.emit():this.dragEnd.emit())}},{key:"_startGlobalListening",value:function(e){this._onMouseMoveListener||(this._onMouseMoveListener=this._renderer.listen("document",e?"touchmove":"mousemove",this.onMouseMoveHandler.bind(this))),this._onMouseUpListener||(this._onMouseUpListener=this._renderer.listen("document",e?"touchend":"mouseup",this.onMouseUpHandler.bind(this)))}},{key:"_stopGlobalListening",value:function(){this._onMouseMoveListener&&(this._onMouseMoveListener=this._onMouseMoveListener()),this._onMouseUpListener&&(this._onMouseUpListener=this._onMouseUpListener())}},{key:"disableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"hidden")}},{key:"enableScroll",value:function(e){this._renderer.setStyle(this._contentRef.nativeElement,"overflow-"+e,"auto")}},{key:"hideScrollbar",value:function(){"none"===this._contentRef.nativeElement.style.display||this.wrapper||(this.parentNode=this._contentRef.nativeElement.parentNode,this.wrapper=this._renderer.createElement("div"),this._renderer.setAttribute(this.wrapper,"class","drag-scroll-wrapper"),this._renderer.addClass(this.wrapper,"drag-scroll-container"),this.refreshWrapperDimensions(),this._renderer.setStyle(this.wrapper,"overflow","hidden"),this._renderer.setStyle(this._contentRef.nativeElement,"width","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"height","calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.appendChild(this._elementRef.nativeElement,this.wrapper),this._renderer.appendChild(this.wrapper,this._contentRef.nativeElement),this.adjustMarginToLastChild())}},{key:"showScrollbar",value:function(){this.wrapper&&(this._renderer.setStyle(this._contentRef.nativeElement,"width","100%"),this._renderer.setStyle(this._contentRef.nativeElement,"height",this.wrapper.style.height),null!==this.parentNode&&(this.parentNode.removeChild(this.wrapper),this.parentNode.appendChild(this._contentRef.nativeElement)),this.wrapper=null,this.adjustMarginToLastChild())}},{key:"checkScrollbar",value:function(){this._renderer.setStyle(this._contentRef.nativeElement,"height",this._contentRef.nativeElement.scrollWidth<=this._contentRef.nativeElement.clientWidth?"100%":"calc(100% + ".concat(this.scrollbarWidth,")")),this._renderer.setStyle(this._contentRef.nativeElement,"width",this._contentRef.nativeElement.scrollHeight<=this._contentRef.nativeElement.clientHeight?"100%":"calc(100% + ".concat(this.scrollbarWidth,")"))}},{key:"setScrollBar",value:function(){this.scrollbarHidden?this.hideScrollbar():this.showScrollbar()}},{key:"getScrollbarWidth",value:function(){var e=this._renderer.createElement("div");this._renderer.setStyle(e,"visibility","hidden"),this._renderer.setStyle(e,"width","100px"),this._renderer.setStyle(e,"msOverflowStyle","scrollbar"),this._renderer.appendChild(this._document.body,e);var t=e.offsetWidth;this._renderer.setStyle(e,"overflow","scroll");var n=this._renderer.createElement("div");this._renderer.setStyle(n,"width","100%"),this._renderer.appendChild(e,n);var i=n.offsetWidth;return this._renderer.removeChild(this._document.body,e),t-i||20}},{key:"refreshWrapperDimensions",value:function(){this.wrapper&&(this._renderer.setStyle(this.wrapper,"width","100%"),this._renderer.setStyle(this.wrapper,"height",this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px"))}},{key:"scrollTo",value:function(e,t,n){var i=this;i.isAnimating=!0;var r=e.scrollLeft,o=t-r-this.snapOffset,a=0;!function t(){var s,l,u;a+=20,e.scrollLeft=(s=a,l=r,u=o,(s/=n/2)<1?u/2*s*s+l:-u/2*(--s*(s-2)-1)+l),a<n?i.scrollToTimer=setTimeout(t,20):setTimeout(function(){i.isAnimating=!1,i.snapAnimationFinished.emit(i.currIndex)},20)}()}},{key:"locateCurrentIndex",value:function(e){var t=this;this.currentChildWidth(function(n,i,r,o,a){t._contentRef.nativeElement.scrollLeft>=r&&t._contentRef.nativeElement.scrollLeft<=i?(i-t._contentRef.nativeElement.scrollLeft>n/2&&!t.isScrollReachesRightEnd()?(t.isAnimating||(t.currIndex=o),e&&t.scrollTo(t._contentRef.nativeElement,r,t.snapDuration)):0!==t._contentRef.nativeElement.scrollLeft&&(t.isAnimating||(t.currIndex=o+1),e&&t.scrollTo(t._contentRef.nativeElement,r+n,t.snapDuration)),a()):o+1===t._children.length-1&&(t.isAnimating||(t.currIndex=o+1),a())})}},{key:"currentChildWidth",value:function(e){for(var t=0,n=!1,i=function(){n=!0},r=this._children.toArray(),o=0;o<r.length&&o!==r.length-1&&!n;o++){var a=r[o]._elementRef.nativeElement.clientWidth;e(a,t+r[o+1]._elementRef.nativeElement.clientWidth,t,o,i),t+=a}}},{key:"toChildrenLocation",value:function(){for(var e=0,t=this._children.toArray(),n=0;n<this.currIndex;n++)e+=t[n]._elementRef.nativeElement.clientWidth;return e}},{key:"locateDragScrollItem",value:function(e){for(var t=null,n=this._children.toArray(),i=0;i<n.length;i++)e===n[i]._elementRef.nativeElement&&(t=n[i]);return t}},{key:"markElDimension",value:function(){this.wrapper?(this.elWidth=this.wrapper.style.width,this.elHeight=this.wrapper.style.height):(this.elWidth=this._elementRef.nativeElement.style.width||this._elementRef.nativeElement.offsetWidth+"px",this.elHeight=this._elementRef.nativeElement.style.height||this._elementRef.nativeElement.offsetHeight+"px");var e=this.wrapper||this.parentNode;this._children.length>1&&(this.indexBound=this.maximumIndex(e?e.clientWidth:0,this._children.toArray()))}},{key:"maximumIndex",value:function(e,t){for(var n=0,i=0,r=0;r<=t.length;r++){var o=t[t.length-1-r];if(!o)break;var a=o._elementRef.nativeElement,s=a.clientWidth;if(0===s&&a.firstElementChild&&(s=o._elementRef.nativeElement.firstElementChild.clientWidth),!((i+=s)<e))break;n++}return t.length-n}},{key:"isScrollReachesRightEnd",value:function(){return this._contentRef.nativeElement.scrollLeft+this._contentRef.nativeElement.offsetWidth>=this._contentRef.nativeElement.scrollWidth}},{key:"adjustMarginToLastChild",value:function(){if(this._children&&this._children.length>0&&this.hideScrollbar){var e=this._children.toArray();this._renderer.setStyle(e[e.length-1]._elementRef.nativeElement,"margin-right",this.wrapper&&e.length>1?this.scrollbarWidth:0)}}}]),e}()).\u0275fac=function(e){return new(e||VI)(Ps(Kl),Ps(Jl),Ps(Od))},VI.\u0275cmp=Ft({type:VI,selectors:[["drag-scroll"]],contentQueries:function(e,t,n){var i;1&e&&wc(n,YI,0),2&e&&yc(i=kc())&&(t._children=i)},viewQuery:function(e,t){var n;1&e&&bc(GI,3),2&e&&yc(n=kc())&&(t._contentRef=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&js("wheel",function(e){return t.onWheel(e)})("resize",function(){return t.onWindowResize()},!1,io),2&e&&ol("pointer-events",t._pointerEvents)},inputs:{scrollbarHidden:["scrollbar-hidden","scrollbarHidden"],disabled:["drag-scroll-disabled","disabled"],xDisabled:["drag-scroll-x-disabled","xDisabled"],yDisabled:["drag-scroll-y-disabled","yDisabled"],xWheelEnabled:["scroll-x-wheel-enabled","xWheelEnabled"],dragDisabled:["drag-disabled","dragDisabled"],snapDisabled:["snap-disabled","snapDisabled"],snapOffset:["snap-offset","snapOffset"],snapDuration:["snap-duration","snapDuration"]},outputs:{dsInitialized:"dsInitialized",indexChanged:"indexChanged",reachesLeftBound:"reachesLeftBound",reachesRightBound:"reachesRightBound",snapAnimationFinished:"snapAnimationFinished",dragStart:"dragStart",dragEnd:"dragEnd"},features:[tn],ngContentSelectors:qI,decls:3,vars:0,consts:[[1,"drag-scroll-content"],["contentRef",""]],template:function(e,t){1&e&&(Zs(),Is(0,"div",0,1),Ks(2),Ts())},styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      display: block;\n    }\n    .drag-scroll-content[_ngcontent-%COMP%] {\n      height: 100%;\n      overflow: auto;\n      white-space: nowrap;\n    }"]}),VI=z_([j_(0,cr(Kl)),j_(1,cr(Jl)),j_(2,cr(Od)),H_("design:paramtypes",[Kl,Jl,Object])],VI)),KI=((NI=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||NI)},NI.\u0275mod=jt({type:NI}),NI.\u0275inj=at({}),NI),QI=function(){function e(t,n){Z(this,e),this.x=t,this.y=n}return Y(e,[{key:"value",get:function(){return{x:this.x,y:this.y}}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"subtract",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"multiply",value:function(e){this.x*=e,this.y*=e}},{key:"divide",value:function(e){this.x/=e,this.y/=e}},{key:"reset",value:function(){return this.x=0,this.y=0,this}},{key:"set",value:function(e){return this.x=e.x,this.y=e.y,this}}],[{key:"fromEvent",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isMouseEvent(t))return new e(t.clientX,t.clientY);if(null===n||1===t.changedTouches.length)return new e(t.changedTouches[0].clientX,t.changedTouches[0].clientY);for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].target===n)return new e(t.changedTouches[i].clientX,t.changedTouches[i].clientY)}},{key:"isMouseEvent",value:function(e){return 8===Object.prototype.toString.apply(e).indexOf("MouseEvent")}},{key:"isIPosition",value:function(e){return!!e&&"x"in e&&"y"in e}},{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);if(i){var r=parseInt(i.getPropertyValue("left"),10),o=parseInt(i.getPropertyValue("top"),10);n.x=isNaN(r)?0:r,n.y=isNaN(o)?0:o}return n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),XI=function(){function e(t,n){Z(this,e),this.parent=t,this.renderer=n,this._added=!1;var i=n.createElement("div");n.setStyle(i,"position","absolute"),n.setStyle(i,"width","100%"),n.setStyle(i,"height","100%"),n.setStyle(i,"background-color","transparent"),n.setStyle(i,"top","0"),n.setStyle(i,"left","0"),this._helper=i}return Y(e,[{key:"add",value:function(){this.parent&&!this._added&&(this.parent.appendChild(this._helper),this._added=!0)}},{key:"remove",value:function(){this.parent&&this._added&&(this.parent.removeChild(this._helper),this._added=!1)}},{key:"dispose",value:function(){this._helper=null,this._added=!1}},{key:"el",get:function(){return this._helper}}]),e}(),JI=((jI=function(){function e(t,n){Z(this,e),this.el=t,this.renderer=n,this.allowDrag=!0,this.moving=!1,this.orignal=null,this.oldTrans=new QI(0,0),this.tempTrans=new QI(0,0),this.currTrans=new QI(0,0),this.oldZIndex="",this._zIndex="",this.needTransform=!1,this.draggingSub=null,this._helperBlock=null,this.started=new ac,this.stopped=new ac,this.edge=new ac,this.outOfBounds={top:!1,right:!1,bottom:!1,left:!1},this.gridSize=1,this.inBounds=!1,this.trackPosition=!0,this.scale=1,this.preventDefaultEvent=!1,this.position={x:0,y:0},this.lockAxis=null,this.movingOffset=new ac,this.endOffset=new ac,this._helperBlock=new XI(t.nativeElement,n)}return Y(e,[{key:"zIndex",set:function(e){this.renderer.setStyle(this.el.nativeElement,"z-index",e),this._zIndex=e}},{key:"ngDraggable",set:function(e){if(null!=e&&""!==e){this.allowDrag=!!e;var t=this.getDragEl();this.allowDrag?this.renderer.addClass(t,"ng-draggable"):(this.putBack(),this.renderer.removeClass(t,"ng-draggable"))}}},{key:"ngOnInit",value:function(){if(this.allowDrag){var e=this.getDragEl();this.renderer.addClass(e,"ng-draggable")}this.resetPosition()}},{key:"ngOnDestroy",value:function(){this.bounds=null,this.handle=null,this.orignal=null,this.oldTrans=null,this.tempTrans=null,this.currTrans=null,this._helperBlock.dispose(),this._helperBlock=null,this.draggingSub&&this.draggingSub.unsubscribe()}},{key:"ngOnChanges",value:function(e){if(e.position&&!e.position.isFirstChange()){var t=e.position.currentValue;this.moving?this.needTransform=!0:(QI.isIPosition(t)?this.oldTrans.set(t):this.oldTrans.reset(),this.transform())}}},{key:"ngAfterViewInit",value:function(){this.inBounds&&(this.boundsCheck(),this.oldTrans.add(this.tempTrans),this.tempTrans.reset())}},{key:"getDragEl",value:function(){return this.handle?this.handle:this.el.nativeElement}},{key:"resetPosition",value:function(){QI.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.tempTrans.reset(),this.transform()}},{key:"moveTo",value:function(e){this.orignal&&(e.subtract(this.orignal),this.tempTrans.set(e),this.tempTrans.divide(this.scale),this.transform(),this.bounds&&this.edge.emit(this.boundsCheck()),this.movingOffset.emit(this.currTrans.value))}},{key:"transform",value:function(){var e=this.tempTrans.x+this.oldTrans.x,t=this.tempTrans.y+this.oldTrans.y;"x"===this.lockAxis?(e=this.oldTrans.x,this.tempTrans.x=0):"y"===this.lockAxis&&(t=this.oldTrans.y,this.tempTrans.y=0),this.gridSize>1&&(e=Math.round(e/this.gridSize)*this.gridSize,t=Math.round(t/this.gridSize)*this.gridSize);var n="translate(".concat(Math.round(e),"px, ").concat(Math.round(t),"px)");this.renderer.setStyle(this.el.nativeElement,"transform",n),this.renderer.setStyle(this.el.nativeElement,"-webkit-transform",n),this.renderer.setStyle(this.el.nativeElement,"-ms-transform",n),this.renderer.setStyle(this.el.nativeElement,"-moz-transform",n),this.renderer.setStyle(this.el.nativeElement,"-o-transform",n),this.currTrans.x=e,this.currTrans.y=t}},{key:"pickUp",value:function(){if(this.oldZIndex=this.el.nativeElement.style.zIndex?this.el.nativeElement.style.zIndex:"",window&&(this.oldZIndex=window.getComputedStyle(this.el.nativeElement,null).getPropertyValue("z-index")),this.zIndexMoving&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.zIndexMoving),!this.moving){this.started.emit(this.el.nativeElement),this.moving=!0;var e=this.getDragEl();this.renderer.addClass(e,"ng-dragging"),this.subscribeEvents()}}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Q_(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Q_(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Q_(document,"mouseup",{passive:!1}).subscribe(function(){return e.putBack()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Q_(document,"mouseleave",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Q_(document,"touchend",{passive:!1}).subscribe(function(){return e.putBack()})),this.draggingSub.add(Q_(document,"touchcancel",{passive:!1}).subscribe(function(){return e.putBack()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"boundsCheck",value:function(){if(this.bounds){var e=this.bounds.getBoundingClientRect(),t=this.el.nativeElement.getBoundingClientRect(),n={top:!!this.outOfBounds.top||e.top<t.top,right:!!this.outOfBounds.right||e.right>t.right,bottom:!!this.outOfBounds.bottom||e.bottom>t.bottom,left:!!this.outOfBounds.left||e.left<t.left};return this.inBounds&&(n.top||(this.tempTrans.y-=(t.top-e.top)/this.scale),n.bottom||(this.tempTrans.y-=(t.bottom-e.bottom)/this.scale),n.right||(this.tempTrans.x-=(t.right-e.right)/this.scale),n.left||(this.tempTrans.x-=(t.left-e.left)/this.scale),this.transform()),n}}},{key:"getCurrentOffset",value:function(){return this.currTrans.value}},{key:"putBack",value:function(){if(this._zIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this._zIndex):this.zIndexMoving&&(this.oldZIndex?this.renderer.setStyle(this.el.nativeElement,"z-index",this.oldZIndex):this.el.nativeElement.style.removeProperty("z-index")),this.moving){this.stopped.emit(this.el.nativeElement),this._helperBlock.remove(),this.needTransform&&(QI.isIPosition(this.position)?this.oldTrans.set(this.position):this.oldTrans.reset(),this.transform(),this.needTransform=!1),this.bounds&&this.edge.emit(this.boundsCheck()),this.moving=!1,this.endOffset.emit(this.currTrans.value),this.trackPosition&&this.oldTrans.add(this.tempTrans),this.tempTrans.reset(),this.trackPosition||this.transform();var e=this.getDragEl();this.renderer.removeClass(e,"ng-dragging"),this.unsubscribeEvents()}}},{key:"checkHandleTarget",value:function(e,t){if("BUTTON"===t.tagName)return!1;if(t===e)return!0;for(var n in t.children)if(t.children.hasOwnProperty(n)&&this.checkHandleTarget(e,t.children[n]))return!0;return!1}},{key:"onMouseDown",value:function(e){e instanceof MouseEvent&&2===e.button||(void 0===this.handle||this.checkHandleTarget(e.target||e.srcElement,this.handle))&&!1!==this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this.orignal=QI.fromEvent(e,this.getDragEl()),this.pickUp())}},{key:"onMouseMove",value:function(e){this.moving&&this.allowDrag&&(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._helperBlock.add(),this.moveTo(QI.fromEvent(e,this.getDragEl())))}}]),e}()).\u0275fac=function(e){return new(e||jI)(Ps(Kl),Ps(Jl))},jI.\u0275dir=Ut({type:jI,selectors:[["","ngDraggable",""]],hostBindings:function(e,t){1&e&&js("mousedown",function(e){return t.onMouseDown(e)})("touchstart",function(e){return t.onMouseDown(e)})},inputs:{outOfBounds:"outOfBounds",gridSize:"gridSize",inBounds:"inBounds",trackPosition:"trackPosition",scale:"scale",preventDefaultEvent:"preventDefaultEvent",position:"position",lockAxis:"lockAxis",zIndex:"zIndex",ngDraggable:"ngDraggable",bounds:"bounds",handle:"handle",zIndexMoving:"zIndexMoving"},outputs:{started:"started",stopped:"stopped",edge:"edge",movingOffset:"movingOffset",endOffset:"endOffset"},exportAs:["ngDraggable"],features:[tn]}),jI),$I=function(){function e(t,n,i,r,o){var a=this;Z(this,e),this.parent=t,this.renderer=n,this.type=i,this.css=r,this.onMouseDown=o;var s=n.createElement("div");n.addClass(s,"ng-resizable-handle"),n.addClass(s,r),"se"===i&&n.addClass(s,"ng-resizable-diagonal"),this.parent&&t.appendChild(s),this._onResize=function(e){o(e,a)},s.addEventListener("mousedown",this._onResize,{passive:!1}),s.addEventListener("touchstart",this._onResize,{passive:!1}),this._handle=s}return Y(e,[{key:"dispose",value:function(){this._handle.removeEventListener("mousedown",this._onResize),this._handle.removeEventListener("touchstart",this._onResize),this.parent&&this.parent.removeChild(this._handle),this._handle=null,this._onResize=null}},{key:"el",get:function(){return this._handle}}]),e}(),eT=function(){function e(t,n){Z(this,e),this.width=t,this.height=n}return Y(e,[{key:"set",value:function(e){return this.width=e.width,this.height=e.height,this}}],[{key:"getCurrent",value:function(t){var n=new e(0,0);if(window){var i=window.getComputedStyle(t);return i&&(n.width=parseInt(i.getPropertyValue("width"),10),n.height=parseInt(i.getPropertyValue("height"),10)),n}return console.error("Not Supported!"),null}},{key:"copy",value:function(t){return new e(0,0).set(t)}}]),e}(),tT=((UI=function(){function e(t,n){Z(this,e),this.el=t,this.renderer=n,this._resizable=!0,this._handles={},this._handleType=[],this._handleResizing=null,this._direction=null,this._directionChanged=null,this._aspectRatio=0,this._containment=null,this._origMousePos=null,this._origSize=null,this._origPos=null,this._currSize=null,this._currPos=null,this._initSize=null,this._initPos=null,this._gridSize=null,this._bounding=null,this._helperBlock=null,this.draggingSub=null,this._adjusted=!1,this.rzHandles="e,s,se",this.rzAspectRatio=!1,this.rzContainment=null,this.rzGrid=null,this.rzMinWidth=null,this.rzMinHeight=null,this.rzMaxWidth=null,this.rzMaxHeight=null,this.preventDefaultEvent=!0,this.rzStart=new ac,this.rzResizing=new ac,this.rzStop=new ac,this._helperBlock=new XI(t.nativeElement,n)}return Y(e,[{key:"ngResizable",set:function(e){null!=e&&""!==e&&(this._resizable=!!e,this.updateResizable())}},{key:"ngOnChanges",value:function(e){e.rzHandles&&!e.rzHandles.isFirstChange()&&this.updateResizable(),e.rzAspectRatio&&!e.rzAspectRatio.isFirstChange()&&this.updateAspectRatio(),e.rzContainment&&!e.rzContainment.isFirstChange()&&this.updateContainment()}},{key:"ngOnInit",value:function(){this.updateResizable()}},{key:"ngOnDestroy",value:function(){this.removeHandles(),this._containment=null,this._helperBlock.dispose(),this._helperBlock=null}},{key:"ngAfterViewInit",value:function(){var e=this.el.nativeElement;this._initSize=eT.getCurrent(e),this._initPos=QI.getCurrent(e),this._currSize=eT.copy(this._initSize),this._currPos=QI.copy(this._initPos),this.updateAspectRatio(),this.updateContainment()}},{key:"resetSize",value:function(){this._currSize=eT.copy(this._initSize),this._currPos=QI.copy(this._initPos),this.doResize()}},{key:"getStatus",value:function(){return this._currPos&&this._currSize?{size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x}}:null}},{key:"updateResizable",value:function(){var e=this.el.nativeElement;this.renderer.removeClass(e,"ng-resizable"),this.removeHandles(),this._resizable&&(this.renderer.addClass(e,"ng-resizable"),this.createHandles())}},{key:"updateAspectRatio",value:function(){if("boolean"==typeof this.rzAspectRatio)this._aspectRatio=this.rzAspectRatio&&this._currSize.height?this._currSize.width/this._currSize.height:0;else{var e=Number(this.rzAspectRatio);this._aspectRatio=isNaN(e)?0:e}}},{key:"updateContainment",value:function(){this._containment=this.rzContainment?"string"==typeof this.rzContainment?"parent"===this.rzContainment?this.el.nativeElement.parentElement:document.querySelector(this.rzContainment):this.rzContainment:null}},{key:"createHandles",value:function(){if(this.rzHandles)if("string"==typeof this.rzHandles){var e,t=R("all"===this.rzHandles?["n","e","s","w","ne","se","nw","sw"]:this.rzHandles.replace(/ /g,"").toLowerCase().split(","));try{for(t.s();!(e=t.n()).done;){var n=e.value,i=this.createHandleByType(n,"ng-resizable-"+n);i&&(this._handleType.push(n),this._handles[n]=i)}}catch(l){t.e(l)}finally{t.f()}}else{var r,o=R(Object.keys(this.rzHandles));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.createHandleByType(a,this.rzHandles[a]);s&&(this._handleType.push(a),this._handles[a]=s)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"createHandleByType",value:function(e,t){var n=this.el.nativeElement;return e.match(/^(se|sw|ne|nw|n|e|s|w)$/)?new $I(n,this.renderer,e,t,this.onMouseDown.bind(this)):(console.error("Invalid handle type:",e),null)}},{key:"removeHandles",value:function(){var e,t=R(this._handleType);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._handles[n].dispose()}}catch(i){t.e(i)}finally{t.f()}this._handleType=[],this._handles={}}},{key:"onMouseDown",value:function(e,t){e instanceof MouseEvent&&2===e.button||(this.preventDefaultEvent&&(e.stopPropagation(),e.preventDefault()),this._handleResizing||(this._origMousePos=QI.fromEvent(e),this.startResize(t),this.subscribeEvents()))}},{key:"subscribeEvents",value:function(){var e=this;this.draggingSub=Q_(document,"mousemove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)}),this.draggingSub.add(Q_(document,"touchmove",{passive:!1}).subscribe(function(t){return e.onMouseMove(t)})),this.draggingSub.add(Q_(document,"mouseup",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),/msie\s|trident\//i.test(window.navigator.userAgent)||this.draggingSub.add(Q_(document,"mouseleave",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Q_(document,"touchend",{passive:!1}).subscribe(function(){return e.onMouseLeave()})),this.draggingSub.add(Q_(document,"touchcancel",{passive:!1}).subscribe(function(){return e.onMouseLeave()}))}},{key:"unsubscribeEvents",value:function(){this.draggingSub.unsubscribe(),this.draggingSub=null}},{key:"onMouseLeave",value:function(){this._handleResizing&&(this.stopResize(),this._origMousePos=null,this.unsubscribeEvents())}},{key:"onMouseMove",value:function(e){this._handleResizing&&this._resizable&&this._origMousePos&&this._origPos&&this._origSize&&(this.resizeTo(QI.fromEvent(e)),this.onResizing())}},{key:"startResize",value:function(e){var t=this.el.nativeElement;this._origSize=eT.getCurrent(t),this._origPos=QI.getCurrent(t),this._currSize=eT.copy(this._origSize),this._currPos=QI.copy(this._origPos),this._containment&&this.getBounding(),this.getGridSize(),this._helperBlock.add(),this._handleResizing=e,this.updateDirection(),this.rzStart.emit(this.getResizingEvent())}},{key:"stopResize",value:function(){this._helperBlock.remove(),this.rzStop.emit(this.getResizingEvent()),this._handleResizing=null,this._direction=null,this._origSize=null,this._origPos=null,this._containment&&this.resetBounding()}},{key:"onResizing",value:function(){this.rzResizing.emit(this.getResizingEvent())}},{key:"getResizingEvent",value:function(){return{host:this.el.nativeElement,handle:this._handleResizing?this._handleResizing.el:null,size:{width:this._currSize.width,height:this._currSize.height},position:{top:this._currPos.y,left:this._currPos.x},direction:Object.assign({},this._directionChanged)}}},{key:"updateDirection",value:function(){this._direction={n:!!this._handleResizing.type.match(/n/),s:!!this._handleResizing.type.match(/s/),w:!!this._handleResizing.type.match(/w/),e:!!this._handleResizing.type.match(/e/)},this._directionChanged=Object.assign({},this._direction),this.rzAspectRatio&&(this._directionChanged.n&&!this._directionChanged.e&&(this._directionChanged.w=!0),this._directionChanged.s&&!this._directionChanged.w&&(this._directionChanged.e=!0),this._directionChanged.e&&!this._directionChanged.n&&(this._directionChanged.s=!0),this._directionChanged.w&&!this._directionChanged.n&&(this._directionChanged.s=!0))}},{key:"resizeTo",value:function(e){e.subtract(this._origMousePos);var t=Math.round(e.x/this._gridSize.x)*this._gridSize.x,n=Math.round(e.y/this._gridSize.y)*this._gridSize.y;this._direction.n?(this._currPos.y=this._origPos.y+n,this._currSize.height=this._origSize.height-n):this._direction.s&&(this._currSize.height=this._origSize.height+n),this._direction.e?this._currSize.width=this._origSize.width+t:this._direction.w&&(this._currSize.width=this._origSize.width-t,this._currPos.x=this._origPos.x+t),this.checkBounds(),this.checkSize(),this.adjustByRatio(),this.doResize()}},{key:"doResize",value:function(){var e=this.el.nativeElement;(!this._direction||this._direction.n||this._direction.s||this._aspectRatio)&&this.renderer.setStyle(e,"height",this._currSize.height+"px"),(!this._direction||this._direction.w||this._direction.e||this._aspectRatio)&&this.renderer.setStyle(e,"width",this._currSize.width+"px"),this.renderer.setStyle(e,"left",this._currPos.x+"px"),this.renderer.setStyle(e,"top",this._currPos.y+"px")}},{key:"adjustByRatio",value:function(){if(this._aspectRatio&&!this._adjusted)if(this._direction.e||this._direction.w){var e=Math.floor(this._currSize.width/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-e),this._currSize.height=e}else{var t=Math.floor(this._aspectRatio*this._currSize.height);this._direction.n&&(this._currPos.x+=this._currSize.width-t),this._currSize.width=t}}},{key:"checkBounds",value:function(){if(this._containment){var e=this._bounding.width-this._bounding.pr-this._bounding.deltaL-this._bounding.translateX-this._currPos.x,t=this._bounding.height-this._bounding.pb-this._bounding.deltaT-this._bounding.translateY-this._currPos.y;if(this._direction.n&&this._currPos.y+this._bounding.translateY<0&&(this._currPos.y=-this._bounding.translateY,this._currSize.height=this._origSize.height+this._origPos.y+this._bounding.translateY),this._direction.w&&this._currPos.x+this._bounding.translateX<0&&(this._currPos.x=-this._bounding.translateX,this._currSize.width=this._origSize.width+this._origPos.x+this._bounding.translateX),this._currSize.width>e&&(this._currSize.width=e),this._currSize.height>t&&(this._currSize.height=t),this._aspectRatio){if(this._adjusted=!1,(this._direction.w||this._direction.e)&&this._currSize.width/this._aspectRatio>=t){var n=Math.floor(t*this._aspectRatio);this._direction.w&&(this._currPos.x+=this._currSize.width-n),this._currSize.width=n,this._currSize.height=t,this._adjusted=!0}if((this._direction.n||this._direction.s)&&this._currSize.height*this._aspectRatio>=e){var i=Math.floor(e/this._aspectRatio);this._direction.n&&(this._currPos.y+=this._currSize.height-i),this._currSize.width=e,this._currSize.height=i,this._adjusted=!0}}}}},{key:"checkSize",value:function(){var e=this.rzMinHeight?this.rzMinHeight:1,t=this.rzMinWidth?this.rzMinWidth:1;this._currSize.height<e&&(this._currSize.height=e,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-e))),this._currSize.width<t&&(this._currSize.width=t,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-t))),this.rzMaxHeight&&this._currSize.height>this.rzMaxHeight&&(this._currSize.height=this.rzMaxHeight,this._direction.n&&(this._currPos.y=this._origPos.y+(this._origSize.height-this.rzMaxHeight))),this.rzMaxWidth&&this._currSize.width>this.rzMaxWidth&&(this._currSize.width=this.rzMaxWidth,this._direction.w&&(this._currPos.x=this._origPos.x+(this._origSize.width-this.rzMaxWidth)))}},{key:"getBounding",value:function(){var e=this._containment,t=window.getComputedStyle(e);if(t){var n=t.getPropertyValue("position"),i=window.getComputedStyle(this.el.nativeElement).getPropertyValue("transform").replace(/[^-\d,]/g,"").split(",");this._bounding={},this._bounding.width=e.clientWidth,this._bounding.height=e.clientHeight,this._bounding.pr=parseInt(t.getPropertyValue("padding-right"),10),this._bounding.pb=parseInt(t.getPropertyValue("padding-bottom"),10),this._bounding.deltaL=this.el.nativeElement.offsetLeft-this._currPos.x,this._bounding.deltaT=this.el.nativeElement.offsetTop-this._currPos.y,i.length>=6?(this._bounding.translateX=parseInt(i[4],10),this._bounding.translateY=parseInt(i[5],10)):(this._bounding.translateX=0,this._bounding.translateY=0),this._bounding.position=t.getPropertyValue("position"),"static"===n&&this.renderer.setStyle(e,"position","relative")}}},{key:"resetBounding",value:function(){this._bounding&&"static"===this._bounding.position&&this.renderer.setStyle(this._containment,"position","relative"),this._bounding=null}},{key:"getGridSize",value:function(){this._gridSize={x:1,y:1},this.rzGrid&&("number"==typeof this.rzGrid?this._gridSize={x:this.rzGrid,y:this.rzGrid}:Array.isArray(this.rzGrid)&&(this._gridSize={x:this.rzGrid[0],y:this.rzGrid[1]}))}}]),e}()).\u0275fac=function(e){return new(e||UI)(Ps(Kl),Ps(Jl))},UI.\u0275dir=Ut({type:UI,selectors:[["","ngResizable",""]],inputs:{rzHandles:"rzHandles",rzAspectRatio:"rzAspectRatio",rzContainment:"rzContainment",rzGrid:"rzGrid",rzMinWidth:"rzMinWidth",rzMinHeight:"rzMinHeight",rzMaxWidth:"rzMaxWidth",rzMaxHeight:"rzMaxHeight",preventDefaultEvent:"preventDefaultEvent",ngResizable:"ngResizable"},outputs:{rzStart:"rzStart",rzResizing:"rzResizing",rzStop:"rzStop"},exportAs:["ngResizable"],features:[tn]}),UI),nT=((HI=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||HI)},HI.\u0275mod=jt({type:HI}),HI.\u0275inj=at({imports:[[]]}),HI);function iT(e,t){return function(n,i){t(n,i,e)}}var rT,oT=((rT=function(){function e(t,n){Z(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=wf(this.platformId)}return Y(e,[{key:"check",value:function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}},{key:"get",value:function(e){if(!this.documentIsAccessible||!this.check(e))return"";e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);try{return decodeURIComponent(t[1])}catch(n){return t[1]}}},{key:"getAll",value:function(){if(!this.documentIsAccessible)return{};var e={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(function(t){var n=L(t.split("="),2),i=n[0],r=n[1];e[decodeURIComponent(i.replace(/^ /,""))]=decodeURIComponent(r)}),e}},{key:"set",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"Lax";if(this.documentIsAccessible){var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(s+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),i&&(s+="path="+i+";"),r&&(s+="domain="+r+";"),!1===o&&"None"===a&&(o=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),o&&(s+="secure;"),s+="sameSite="+a+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,i,r)}},{key:"deleteAll",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var r=this.getAll();for(var o in r)r.hasOwnProperty(o)&&this.delete(o,e,t,n,i)}}},{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}}]),e}()).\u0275fac=function(e){return new(e||rT)(rr(Od),rr(Mc))},rT.\u0275prov=rt({factory:function(){return new rT(rr(Od),rr(Mc))},token:rT,providedIn:"root"}),rT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([iT(0,cr(Od)),iT(1,cr(Mc))],rT));function aT(e){return"string"==typeof e}var sT,lT,uT,cT,dT,hT,fT,pT,gT,vT,mT=((vT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||vT)},vT.\u0275mod=jt({type:vT}),vT.\u0275inj=at({imports:[[]]}),vT),yT=((gT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gT)},gT.\u0275mod=jt({type:gT}),gT.\u0275inj=at({imports:[[]]}),gT),bT=((pT=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!aT(e))return e;if(e.length>t){if(i)return e.slice(0,t)+n;if(~e.indexOf(" ",t))return e.slice(0,e.indexOf(" ",t))+n}return e}}]),e}()).\u0275fac=function(e){return new(e||pT)},pT.\u0275pipe=Wt({name:"shorten",type:pT,pure:!0}),pT),wT=((fT=function(){function e(){Z(this,e)}return Y(e,[{key:"transform",value:function(e){return aT(e)?function(e){var t,n=e.split(/\s/g),i=N(t=n)||j(t)||z(t)||F(),r=i[0],o=i.slice(1);return[r.toLowerCase().split(/(?=['|-])/g).map(function(e){return e.indexOf("-")+e.indexOf("'")>-2?e.slice(0,2).toUpperCase()+e.slice(2):e.slice(0,1).toUpperCase()+e.slice(1)}).join("")].concat(V(o)).join(" ")}(e):e}}]),e}()).\u0275fac=function(e){return new(e||fT)},fT.\u0275pipe=Wt({name:"ucfirst",type:fT,pure:!0}),fT),kT=((hT=function(){function e(){Z(this,e),this.latinMap={"\xc1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\xc2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\xc4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\xc0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\xc5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\xc3":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\xc9":"E","\u0114":"E","\u011a":"E","\u0228":"E","\u1e1c":"E","\xca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\xcb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\xc8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\xcd":"I","\u012c":"I","\u01cf":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\xcc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u1e3a":"L","\u013f":"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\xd1":"N","\u01ca":"NJ","\xd3":"O","\u014e":"O","\u01d1":"O","\xd4":"O","\u1ed0":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\xd6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\xd2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\xd5":"O","\u1e4c":"O","\u1e4e":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u1e9e":"SS","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\xda":"U","\u016c":"U","\u01d3":"U","\xdb":"U","\u1e76":"U","\xdc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\xd9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u1e8c":"X","\u1e8a":"X","\xdd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u1ef6":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\xe1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\xe2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\xe4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\xe0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\xe5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\xe3":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\xe9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\xea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\xeb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\xe8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\ua76b":"et","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\xed":"i","\u012d":"i","\u01d0":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u1ecb":"i","\u0209":"i","\xec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\xf1":"n","\u01cc":"nj","\xf3":"o","\u014f":"o","\u01d2":"o","\xf4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\xf6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\xf2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\xf5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\xdf":"ss","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\xfa":"u","\u016d":"u","\u01d4":"u","\xfb":"u","\u1e77":"u","\xfc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\xf9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\xfd":"y","\u0177":"y","\xff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"}}return Y(e,[{key:"transform",value:function(e){var t=this;return aT(e)?e.replace(/[^A-Za-z0-9]/g,function(e){return t.latinMap[e]||e}):e}}]),e}()).\u0275fac=function(e){return new(e||hT)},hT.\u0275pipe=Wt({name:"latinise",type:hT,pure:!0}),hT),xT=((dT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||dT)},dT.\u0275mod=jt({type:dT}),dT.\u0275inj=at({imports:[[]]}),dT),_T=((cT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||cT)},cT.\u0275mod=jt({type:cT}),cT.\u0275inj=at({imports:[[]]}),cT),AT=((uT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||uT)},uT.\u0275mod=jt({type:uT}),uT.\u0275inj=at({imports:[[]]}),uT),CT=((lT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||lT)},lT.\u0275mod=jt({type:lT}),lT.\u0275inj=at({imports:[[]]}),lT),ST=((sT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||sT)},sT.\u0275mod=jt({type:sT}),sT.\u0275inj=at({imports:[mT,xT,_T,AT,yT,CT]}),sT);function ET(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var PT=new KE(qE);function OT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return function(n){return n.lift(new IT(e,t))}}var DT,IT=function(){function e(t,n){Z(this,e),this.dueTime=t,this.scheduler=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new TT(e,this.dueTime,this.scheduler))}}]),e}(),TT=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return Y(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(MT,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(re);function MT(e){e.debouncedNext()}function BT(e){return null!=e&&""+e!="false"}function RT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function LT(e){return Array.isArray(e)?e:[e]}function FT(e){return null==e?"":"string"==typeof e?e:e+"px"}function NT(e){return e instanceof Kl?e.nativeElement:e}try{DT="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V4){DT=!1}var VT,zT,jT,HT,UT=function(){var e=Y(function e(t){Z(this,e),this._platformId=t,this.isBrowser=this._platformId?wf(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!DT)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return e.\u0275fac=function(t){return new(t||e)(rr(Mc))},e.\u0275prov=rt({factory:function(){return new e(rr(Mc))},token:e,providedIn:"root"}),e}(),WT=((HT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||HT)},HT.\u0275mod=jt({type:HT}),HT.\u0275inj=at({}),HT);function GT(e){return function(){if(null==VT&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return VT=!0}}))}finally{VT=VT||!1}return VT}()?e:!!e.capture}function qT(e){if(function(){if(null==jT){var e="undefined"!=typeof document?document.head:null;jT=!(!e||!e.createShadowRoot&&!e.attachShadow)}return jT}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var YT,ZT,KT,QT,XT=((QT=function(){function e(){Z(this,e)}return Y(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||QT)},QT.\u0275prov=rt({factory:function(){return new QT},token:QT,providedIn:"root"}),QT),JT=((KT=function(){function e(t){Z(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return Y(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=NT(e);return new ue(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new ge,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||KT)(rr(XT))},KT.\u0275prov=rt({factory:function(){return new KT(rr(XT))},token:KT,providedIn:"root"}),KT),$T=((ZT=function(){function e(t,n,i){Z(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new ac,this._disabled=!1,this._currentSubscription=null}return Y(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=BT(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=RT(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(OT(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ZT)(Ps(JT),Ps(Kl),Ps(Zc))},ZT.\u0275dir=Ut({type:ZT,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),ZT),eM=((YT=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||YT)},YT.\u0275mod=jt({type:YT}),YT.\u0275inj=at({providers:[XT]}),YT);function tM(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var nM,iM=0,rM=new Map,oM=null,aM=((nM=function(){function e(t){Z(this,e),this._document=t}return Y(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=sM(t,n);"string"!=typeof t?(lM(t),rM.set(i,{messageElement:t,referenceCount:0})):rM.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=sM(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=rM.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}oM&&0===oM.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");oM&&this._deleteMessagesContainer(),rM.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");lM(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),oM.appendChild(n),rM.set(sM(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=rM.get(e),n=t&&t.messageElement;oM&&n&&oM.removeChild(n),rM.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!oM){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),(oM=this._document.createElement("div")).id="cdk-describedby-message-container",oM.style.visibility="hidden",oM.classList.add("cdk-visually-hidden"),this._document.body.appendChild(oM)}}},{key:"_deleteMessagesContainer",value:function(){oM&&oM.parentNode&&(oM.parentNode.removeChild(oM),oM=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=tM(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o,a=rM.get(t);n=e,i="aria-describedby",r=a.messageElement.id,(o=tM(n,i)).some(function(e){return e.trim()==r.trim()})||(o.push(r.trim()),n.setAttribute(i,o.join(" "))),e.setAttribute("cdk-describedby-host",""),a.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=rM.get(t);a.referenceCount--,n=e,i="aria-describedby",r=a.messageElement.id,(o=tM(n,i).filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=tM(e,"aria-describedby"),i=rM.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":(""+t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||nM)(rr(Od))},nM.\u0275prov=rt({factory:function(){return new nM(rr(Od))},token:nM,providedIn:"root"}),nM);function sM(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function lM(e){e.id||(e.id="cdk-describedby-message-"+iM++)}var uM,cM=function(){function e(t){var n=this;Z(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ge,this._typeaheadSubscription=te.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new ge,this.change=new ge,t instanceof lc&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return Y(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Mw(function(t){return e._pressedLetters.push(t)}),OT(t),rb(function(){return e._pressedLetters.length>0}),ye(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||ET(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof lc?this._items.toArray():this._items}}]),e}(),dM=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),C(M(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(cM),hM=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._origin="program",e}return Y(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){C(M(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(cM),fM=((uM=function(){function e(t){Z(this,e),this._platform=t}return Y(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(V4){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===gM(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=gM(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||pM(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||uM)(rr(UT))},uM.\u0275prov=rt({factory:function(){return new uM(rr(UT))},token:uM,providedIn:"root"}),uM);function pM(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function gM(e){if(!pM(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var vM,mM=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return Y(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(dw(1)).subscribe(e)}}]),e}(),yM=((vM=function(){function e(t,n,i){Z(this,e),this._checker=t,this._ngZone=n,this._document=i}return Y(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new mM(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||vM)(rr(fM),rr(Zc),rr(Od))},vM.\u0275prov=rt({factory:function(){return new vM(rr(fM),rr(Zc),rr(Od))},token:vM,providedIn:"root"}),vM);"undefined"!=typeof Element&&Element;var bM,wM=new ji("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),kM=new ji("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xM=((bM=function(){function e(t,n,i,r){Z(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return Y(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(t=L(s,2))[0],i=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=o&&o.politeness?o.politeness:"polite"),null==i&&o&&(i=o.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=e,t(),"number"==typeof i&&(r._previousTimeout=setTimeout(function(){return r.clear()},i))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||bM)(rr(wM,8),rr(Zc),rr(Od),rr(kM,8))},bM.\u0275prov=rt({factory:function(){return new bM(rr(wM,8),rr(Zc),rr(Od),rr(kM,8))},token:bM,providedIn:"root"}),bM);function _M(e){return 0===e.buttons}function AM(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var CM,SM=new ji("cdk-focus-monitor-default-options"),EM=GT({passive:!0,capture:!0}),PM=((CM=function(){function e(t,n,i,r){var o=this;Z(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=_M(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){AM(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=OM(e),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650))},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=OM(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return Y(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=NT(e);if(!this._platform.isBrowser||1!==n.nodeType)return nb(null);var i=qT(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new ge,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=NT(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=NT(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=L(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=OM(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===OM(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,EM),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,EM)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,EM),e.addEventListener("mousedown",t._documentMousedownListener,EM),e.addEventListener("touchstart",t._documentTouchstartListener,EM),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,EM),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,EM),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,EM),i.removeEventListener("mousedown",this._documentMousedownListener,EM),i.removeEventListener("touchstart",this._documentTouchstartListener,EM),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||CM)(rr(Zc),rr(UT),rr(Od,8),rr(SM,8))},CM.\u0275prov=rt({factory:function(){return new CM(rr(Zc),rr(UT),rr(Od,8),rr(SM,8))},token:CM,providedIn:"root"}),CM);function OM(e){return e.composedPath?e.composedPath()[0]:e.target}var DM,IM,TM,MM,BM=((IM=function(){function e(t,n){Z(this,e),this._platform=t,this._document=n}return Y(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||IM)(rr(UT),rr(Od))},IM.\u0275prov=rt({factory:function(){return new IM(rr(UT),rr(Od))},token:IM,providedIn:"root"}),IM),RM=((DM=Y(function e(t){Z(this,e),t._applyBodyHighContrastModeCssClasses()})).\u0275fac=function(e){return new(e||DM)(rr(BM))},DM.\u0275mod=jt({type:DM}),DM.\u0275inj=at({imports:[[WT,eM]]}),DM),LM=new ji("cdk-dir-doc",{providedIn:"root",factory:function(){return or(Od)}}),FM=((MM=function(){function e(t){if(Z(this,e),this.value="ltr",this.change=new ac,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return Y(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||MM)(rr(LM,8))},MM.\u0275prov=rt({factory:function(){return new MM(rr(LM,8))},token:MM,providedIn:"root"}),MM),NM=((TM=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||TM)},TM.\u0275mod=jt({type:TM}),TM.\u0275inj=at({}),TM),VM=new tu("11.2.5");function zM(e,t){if(1&e&&Ms(0,"mat-pseudo-checkbox",4),2&e){var n=qs();Os("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function jM(e,t){if(1&e&&(Is(0,"span",5),bl(1),Ts()),2&e){var n=qs();Yo(1),kl("(",n.group.label,")")}}var HM,UM=["*"],WM=function(){var e=Y(function e(){Z(this,e)});return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),GM=function(){var e=Y(function e(){Z(this,e)});return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),qM=new tu("11.2.5"),YM=new ji("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ZM=((HM=function(){function e(t,n,i){Z(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return Y(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return sd()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qM.full!==VM.full&&console.warn("The Angular Material version ("+qM.full+") does not match the Angular CDK version ("+VM.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||HM)(rr(BM),rr(YM,8),rr(Od))},HM.\u0275mod=jt({type:HM}),HM.\u0275inj=at({imports:[[NM],NM]}),HM);function KM(e){return function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return Y(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=BT(e)}}]),n}(e)}function QM(e,t){return function(e){E(i,e);var n=O(i);function i(){var e;Z(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return Y(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}]),i}(e)}function XM(e){return function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return Y(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=BT(e)}}]),n}(e)}function JM(e){return function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new ue(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return Y(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}try{"undefined"!=typeof Intl}catch(V4){!1}var $M,eB,tB,nB,iB,rB,oB,aB,sB,lB=((eB=function(){function e(){Z(this,e)}return Y(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||eB)},eB.\u0275prov=rt({factory:function(){return new eB},token:eB,providedIn:"root"}),eB),uB=(($M=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||$M)},$M.\u0275mod=jt({type:$M}),$M.\u0275inj=at({imports:[[ZM],ZM]}),$M),cB=function(){function e(t,n,i){Z(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return Y(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),dB={enterDuration:450,exitDuration:400},hB=GT({passive:!0}),fB=["mousedown","touchstart"],pB=["mouseup","mouseleave","touchend","touchcancel"],gB=function(){function e(t,n,i,r){Z(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=NT(i))}return Y(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},dB),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=l-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=u+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var d=new cB(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},u),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},dB),e.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=NT(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(fB))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pB),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=_M(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!AM(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,hB)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(fB.forEach(function(t){e._triggerElement.removeEventListener(t,e,hB)}),this._pointerUpEventsRegistered&&pB.forEach(function(t){e._triggerElement.removeEventListener(t,e,hB)}))}}]),e}(),vB=new ji("mat-ripple-global-options"),mB=((rB=function(){function e(t,n,i,r,o){Z(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new gB(this,n,t,i)}return Y(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||rB)(Ps(Kl),Ps(Zc),Ps(UT),Ps(vB,8),Ps(Gv,8))},rB.\u0275dir=Ut({type:rB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&al("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),rB),yB=((iB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||iB)},iB.\u0275mod=jt({type:iB}),iB.\u0275inj=at({imports:[[ZM,WT],ZM]}),iB),bB=((nB=Y(function e(t){Z(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1})).\u0275fac=function(e){return new(e||nB)(Ps(Gv,8))},nB.\u0275cmp=Ft({type:nB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&al("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),nB),wB=((tB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||tB)},tB.\u0275mod=jt({type:tB}),tB.\u0275inj=at({imports:[[ZM]]}),tB),kB=new ji("MAT_OPTION_PARENT_COMPONENT"),xB=KM(Y(function e(){Z(this,e)})),_B=0,AB=((oB=function(e){E(n,e);var t=O(n);function n(e){var i,r;return Z(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+_B++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return Y(n)}(xB)).\u0275fac=function(e){return new(e||oB)(Ps(kB,8))},oB.\u0275dir=Ut({type:oB,inputs:{label:"label"},features:[ls]}),oB),CB=new ji("MatOptgroup"),SB=0,EB=Y(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Z(this,e),this.source=t,this.isUserInput=n}),PB=((sB=function(){function e(t,n,i,r){Z(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+SB++,this.onSelectionChange=new ac,this._stateChanges=new ge}return Y(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=BT(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||ET(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new EB(this,e))}}]),e}()).\u0275fac=function(e){return new(e||sB)(Ps(Kl),Ps(ku),Ps(void 0),Ps(AB))},sB.\u0275dir=Ut({type:sB,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),sB),OB=((aB=function(e){E(n,e);var t=O(n);function n(e,i,r,o){return Z(this,n),t.call(this,e,i,r,o)}return Y(n)}(PB)).\u0275fac=function(e){return new(e||aB)(Ps(Kl),Ps(ku),Ps(kB,8),Ps(CB,8))},aB.\u0275cmp=Ft({type:aB,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&js("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Sl("id",t.id),_s("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),al("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[ls],ngContentSelectors:UM,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Zs(),Ss(0,zM,1,2,"mat-pseudo-checkbox",0),Is(1,"span",1),Ks(2),Ts(),Ss(3,jM,2,1,"span",2),Ms(4,"div",3)),2&e&&(Os("ngIf",t.multiple),Yo(3),Os("ngIf",t.group&&t.group._inert),Yo(1),Os("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[jh,mB,bB],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),aB);function DB(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var IB,TB=((IB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||IB)},IB.\u0275mod=jt({type:IB}),IB.\u0275inj=at({imports:[[yB,bf,ZM,wB]]}),IB),MB=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return Y(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?C(M(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return C(M(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(qE),BB=new(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(KE))(MB),RB=1,LB=Promise.resolve(),FB={};function NB(e){return e in FB&&(delete FB[e],!0)}var VB=function(e){var t=RB++;return FB[t]=!0,LB.then(function(){return NB(t)&&e()}),t},zB=function(e){NB(e)},jB=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return Y(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?C(M(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=VB(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return C(M(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(zB(t),e.scheduled=void 0)}}]),n}(qE),HB=new(function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(KE))(jB),UB=function(){function e(t){Z(this,e),this.durationSelector=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new WB(e,this.durationSelector))}}]),e}(),WB=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return Y(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=De(t,new Pe(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(Oe);function GB(e){return!Q(e)&&e-parseFloat(e)+1>=0}function qB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return GB(t)?i=Number(t)<1?1:Number(t):me(t)&&(n=t),me(n)||(n=PT),new ue(function(t){var r=GB(e)?e:+e-n.now();return n.schedule(YB,r,{index:0,period:i,subscriber:t})})}function YB(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function ZB(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return t=function(){return qB(e,n)},function(e){return e.lift(new UB(t))}}function KB(e){return function(t){return t.lift(new eR(e))}}var QB,XB,JB,$B,eR=function(){function e(t){Z(this,e),this.notifier=t}return Y(e,[{key:"call",value:function(e,t){var n=new tR(e),i=De(this.notifier,new Pe(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),tR=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e)).seenValue=!1,i}return Y(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Oe),nR=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Z(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ge,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return Y(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),iR=(($B=function(){function e(t,n,i){Z(this,e),this._ngZone=t,this._platform=n,this._scrolled=new ge,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return Y(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ue(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(ZB(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):nb()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(rb(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=NT(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Q_(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||$B)(rr(Zc),rr(UT),rr(Od,8))},$B.\u0275prov=rt({factory:function(){return new $B(rr(Zc),rr(UT),rr(Od,8))},token:$B,providedIn:"root"}),$B),rR=((JB=function(){function e(t,n,i){var r=this;Z(this,e),this._platform=t,this._change=new ge,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return Y(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(ZB(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||JB)(rr(UT),rr(Zc),rr(Od,8))},JB.\u0275prov=rt({factory:function(){return new JB(rr(UT),rr(Zc),rr(Od,8))},token:JB,providedIn:"root"}),JB),oR=((XB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||XB)},XB.\u0275mod=jt({type:XB}),XB.\u0275inj=at({}),XB),aR=((QB=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||QB)},QB.\u0275mod=jt({type:QB}),QB.\u0275inj=at({imports:[[NM,WT,oR],NM,oR]}),QB),sR=function(){function e(t,n){Z(this,e),this.predicate=t,this.inclusive=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new lR(e,this.predicate,this.inclusive))}}]),e}(),lR=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return Y(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(re),uR=function(){if(null==zT){if("object"!=typeof document||!document)return zT=!1;if("scrollBehavior"in document.documentElement.style)zT=!0;else{var e=Element.prototype.scrollTo;zT=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return zT}(),cR=function(){function e(t,n){Z(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return Y(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=FT(-this._previousScrollPosition.left),e.style.top=FT(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),uR&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),uR&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),dR=function(){function e(t,n,i,r){var o=this;Z(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return Y(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),hR=function(){function e(){Z(this,e)}return Y(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function fR(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function pR(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var gR,vR,mR,yR,bR,wR=function(){function e(t,n,i,r){Z(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return Y(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;fR(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),kR=((gR=Y(function e(t,n,i,r){var o=this;Z(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new hR},this.close=function(e){return new dR(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new cR(o._viewportRuler,o._document)},this.reposition=function(e){return new wR(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r})).\u0275fac=function(e){return new(e||gR)(rr(iR),rr(rR),rr(Zc),rr(Od))},gR.\u0275prov=rt({factory:function(){return new gR(rr(iR),rr(rR),rr(Zc),rr(Od))},token:gR,providedIn:"root"}),gR),xR=Y(function e(t){if(Z(this,e),this.scrollStrategy=new hR,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}}),_R=Y(function e(t,n,i,r,o){Z(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY}),AR=Y(function e(t,n){Z(this,e),this.connectionPair=t,this.scrollableViewProperties=n}),CR=((yR=function(){function e(t){Z(this,e),this._attachedOverlays=[],this._document=t}return Y(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||yR)(rr(Od))},yR.\u0275prov=rt({factory:function(){return new yR(rr(Od))},token:yR,providedIn:"root"}),yR),SR=((mR=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return Y(n,[{key:"add",value:function(e){C(M(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(CR)).\u0275fac=function(e){return new(e||mR)(rr(Od))},mR.\u0275prov=rt({factory:function(){return new mR(rr(Od))},token:mR,providedIn:"root"}),mR),ER=((vR=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return Y(n,[{key:"add",value:function(e){C(M(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(CR)).\u0275fac=function(e){return new(e||vR)(rr(Od),rr(UT))},vR.\u0275prov=rt({factory:function(){return new vR(rr(Od),rr(UT))},token:vR,providedIn:"root"}),vR),PR=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),OR=((bR=function(){function e(t,n){Z(this,e),this._platform=n,this._document=t}return Y(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||PR)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),PR?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),e}()).\u0275fac=function(e){return new(e||bR)(rr(Od),rr(UT))},bR.\u0275prov=rt({factory:function(){return new bR(rr(Od),rr(UT))},token:bR,providedIn:"root"}),bR),DR=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;Z(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new ge,this._attachments=new ge,this._detachments=new ge,this._locationChanges=te.EMPTY,this._backdropClickHandler=function(e){return c._backdropClick.next(e)},this._keydownEvents=new ge,this._outsidePointerEvents=new ge,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return Y(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(dw(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=FT(this._config.width),e.height=FT(this._config.height),e.minWidth=FT(this._config.minWidth),e.minHeight=FT(this._config.minHeight),e.maxWidth=FT(this._config.maxWidth),e.maxHeight=FT(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;LT(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(KB(Le(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),IR=/([A-Za-z%]+)$/,TR=function(){function e(t,n,i,r,o){Z(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ge,this._resizeSubscription=te.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return Y(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=R(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),u=this._getOverlayPoint(l,i,s),c=this._getOverlayFit(u,i,r,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,r)?o.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:i})}}catch(m){a.e(m)}finally{a.f()}if(o.length){var d,h=null,f=-1,p=R(o);try{for(p.s();!(d=p.n()).done;){var g=d.value,v=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);v>f&&(f=v,h=g)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&MR(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=RR(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,d=this._subtractOverflows(r.width,0-o,o+r.width-n.width),h=this._subtractOverflows(r.height,u,c),f=d*h;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=BR(this._overlayRef.getConfig().minHeight),a=BR(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=RR(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),l=Math.max(e.y+o.height-a.height,0),u=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,r=o.height<=a.height?u||-l:e.y<this._viewportMargin?a.top-n.top-e.y:0,this._previousPushAmount={x:i,y:r},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new AR(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)r=l.height-e.y+2*this._viewportMargin,n=l.height-r+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;n=2*c,i=e.y-c,n>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;o=2*h,a=e.x-h,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=FT(n.height),i.top=FT(n.top),i.bottom=FT(n.bottom),i.width=FT(n.width),i.left=FT(n.left),i.right=FT(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=FT(r)),o&&(i.maxWidth=FT(o))}this._lastBoundingBoxSize=n,MR(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){MR(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){MR(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();MR(n,this._getExactOverlayY(t,e,a)),MR(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=FT(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=FT(o.maxWidth):r&&(n.maxWidth="")),MR(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=FT(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=FT(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:pR(e,n),isOriginOutsideView:fR(e,n),isOverlayClipped:pR(t,n),isOverlayOutsideView:fR(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&LT(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Kl)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function MR(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function BR(e){if("number"!=typeof e&&null!=e){var t=L(e.split(IR),2),n=t[0],i=t[1];return i&&"px"!==i?null:parseFloat(n)}return e||null}function RR(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var LR,FR,NR,VR,zR,jR=function(){function e(t,n,i,r,o,a,s){Z(this,e),this._preferredPositions=[],this._positionStrategy=new TR(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return Y(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new _R(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),HR=function(){function e(){Z(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return Y(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),UR=((FR=function(){function e(t,n,i,r){Z(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return Y(e,[{key:"global",value:function(){return new HR}},{key:"connectedTo",value:function(e,t,n){return new jR(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new TR(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||FR)(rr(rR),rr(Od),rr(UT),rr(OR))},FR.\u0275prov=rt({factory:function(){return new FR(rr(rR),rr(Od),rr(UT),rr(OR))},token:FR,providedIn:"root"}),FR),WR=0,GR=((LR=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=d}return Y(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new xR(e);return r.direction=r.direction||this._directionality.value,new DR(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+WR++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(gd)),new QP(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||LR)(rr(kR),rr(OR),rr(Gl),rr(UR),rr(SR),rr(as),rr(Zc),rr(Od),rr(FM),rr(Kd),rr(ER))},LR.\u0275prov=rt({token:LR,factory:LR.\u0275fac}),LR),qR=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],YR=new ji("cdk-connected-overlay-scroll-strategy"),ZR=((VR=Y(function e(t){Z(this,e),this.elementRef=t})).\u0275fac=function(e){return new(e||VR)(Ps(Kl))},VR.\u0275dir=Ut({type:VR,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),VR),KR=((NR=function(){function e(t,n,i,r,o){Z(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=te.EMPTY,this._attachSubscription=te.EMPTY,this._detachSubscription=te.EMPTY,this._positionSubscription=te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ac,this.positionChange=new ac,this.attach=new ac,this.detach=new ac,this.overlayKeydown=new ac,this.overlayOutsideClick=new ac,this._templatePortal=new YP(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return Y(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=BT(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=BT(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=BT(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=BT(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=BT(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=qR);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||ET(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new xR({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new sR(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||NR)(Ps(GR),Ps(Eu),Ps(Mu),Ps(YR),Ps(FM,8))},NR.\u0275dir=Ut({type:NR,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[tn]}),NR),QR={provide:YR,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},XR=((zR=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zR)},zR.\u0275mod=jt({type:zR}),zR.\u0275inj=at({providers:[GR,QR],imports:[[NM,JP,aR],aR]}),zR),JR=["underline"],$R=["connectionContainer"],eL=["inputContainer"],tL=["label"];function nL(e,t){1&e&&(Bs(0),Is(1,"div",14),Ms(2,"div",15),Ms(3,"div",16),Ms(4,"div",17),Ts(),Is(5,"div",18),Ms(6,"div",15),Ms(7,"div",16),Ms(8,"div",17),Ts(),Rs())}function iL(e,t){1&e&&(Is(0,"div",19),Ks(1,1),Ts())}function rL(e,t){if(1&e&&(Bs(0),Ks(1,2),Is(2,"span"),bl(3),Ts(),Rs()),2&e){var n=qs(2);Yo(3),wl(n._control.placeholder)}}function oL(e,t){1&e&&Ks(0,3,["*ngSwitchCase","true"])}function aL(e,t){1&e&&(Is(0,"span",23),bl(1," *"),Ts())}function sL(e,t){if(1&e){var n=Fs();Is(0,"label",20,21),js("cdkObserveContent",function(){return En(n),qs().updateOutlineGap()}),Ss(2,rL,4,1,"ng-container",12),Ss(3,oL,1,0,"ng-content",12),Ss(4,aL,2,0,"span",22),Ts()}if(2&e){var i=qs();al("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Os("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),_s("for",i._control.id)("aria-owns",i._control.id),Yo(2),Os("ngSwitchCase",!1),Yo(1),Os("ngSwitchCase",!0),Yo(1),Os("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function lL(e,t){1&e&&(Is(0,"div",24),Ks(1,4),Ts())}function uL(e,t){if(1&e&&(Is(0,"div",25,26),Ms(2,"span",27),Ts()),2&e){var n=qs();Yo(2),al("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function cL(e,t){1&e&&(Is(0,"div"),Ks(1,5),Ts()),2&e&&Os("@transitionMessages",qs()._subscriptAnimationState)}function dL(e,t){if(1&e&&(Is(0,"div",31),bl(1),Ts()),2&e){var n=qs(2);Os("id",n._hintLabelId),Yo(1),wl(n.hintLabel)}}function hL(e,t){if(1&e&&(Is(0,"div",28),Ss(1,dL,2,2,"div",29),Ks(2,6),Ms(3,"div",30),Ks(4,7),Ts()),2&e){var n=qs();Os("@transitionMessages",n._subscriptAnimationState),Yo(1),Os("ngIf",n.hintLabel)}}var fL,pL,gL,vL,mL,yL=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bL=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],wL=new ji("MatError"),kL={transitionMessages:wp("transitionMessages",[Ap("enter",_p({opacity:1,transform:"translateY(0%)"})),Sp("void => enter",[_p({opacity:0,transform:"translateY(-5px)"}),kp("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xL=((fL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||fL)},fL.\u0275dir=Ut({type:fL}),fL),_L=new ji("MatHint"),AL=((gL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gL)},gL.\u0275dir=Ut({type:gL,selectors:[["mat-label"]]}),gL),CL=((pL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||pL)},pL.\u0275dir=Ut({type:pL,selectors:[["mat-placeholder"]]}),pL),SL=new ji("MatPrefix"),EL=new ji("MatSuffix"),PL=0,OL=QM(Y(function e(t){Z(this,e),this._elementRef=t}),"primary"),DL=new ji("MAT_FORM_FIELD_DEFAULT_OPTIONS"),IL=new ji("MatFormField"),TL=((mL=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s,l,u){var c;return Z(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=i,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new ge,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+PL++,c._labelId="mat-form-field-label-"+PL++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return Y(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=BT(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(pw(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(KB(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(KB(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Le(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(pw(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(pw(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(KB(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Q_(this._label.nativeElement,"transitionend").pipe(dw(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,V(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,V(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,d=0;d<l.length;d++)c+=l[d].offsetWidth;t=Math.abs(u-s)-5,n=c>0?.75*c+10:0}for(var h=0;h<r.length;h++)r[h].style.width=t+"px";for(var f=0;f<o.length;f++)o[f].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(OL)).\u0275fac=function(e){return new(e||mL)(Ps(Kl),Ps(ku),Ps(Kl),Ps(FM,8),Ps(DL,8),Ps(UT),Ps(Zc),Ps(Gv,8))},mL.\u0275cmp=Ft({type:mL,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,xL,1),wc(n,xL,3),wc(n,AL,1),wc(n,AL,3),wc(n,CL,1),wc(n,wL,1),wc(n,_L,1),wc(n,SL,1),wc(n,EL,1)),2&e&&(yc(i=kc())&&(t._controlNonStatic=i.first),yc(i=kc())&&(t._controlStatic=i.first),yc(i=kc())&&(t._labelChildNonStatic=i.first),yc(i=kc())&&(t._labelChildStatic=i.first),yc(i=kc())&&(t._placeholderChild=i.first),yc(i=kc())&&(t._errorChildren=i),yc(i=kc())&&(t._hintChildren=i),yc(i=kc())&&(t._prefixChildren=i),yc(i=kc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(bc(JR,1),bc($R,3),bc(eL,1),bc(tL,1)),2&e&&(yc(n=kc())&&(t.underlineRef=n.first),yc(n=kc())&&(t._connectionContainerRef=n.first),yc(n=kc())&&(t._inputContainerRef=n.first),yc(n=kc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&al("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Hl([{provide:IL,useExisting:mL}]),ls],ngContentSelectors:bL,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(Zs(yL),Is(0,"div",0),Is(1,"div",1,2),js("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),Ss(3,nL,9,0,"ng-container",3),Ss(4,iL,2,0,"div",4),Is(5,"div",5,6),Ks(7),Is(8,"span",7),Ss(9,sL,5,16,"label",8),Ts(),Ts(),Ss(10,lL,2,0,"div",9),Ts(),Ss(11,uL,3,4,"div",10),Is(12,"div",11),Ss(13,cL,2,1,"div",12),Ss(14,hL,5,2,"div",13),Ts(),Ts()),2&e&&(Yo(3),Os("ngIf","outline"==t.appearance),Yo(1),Os("ngIf",t._prefixChildren.length),Yo(5),Os("ngIf",t._hasFloatingLabel()),Yo(1),Os("ngIf",t._suffixChildren.length),Yo(1),Os("ngIf","outline"!=t.appearance),Yo(1),Os("ngSwitch",t._getDisplayedMessages()),Yo(1),Os("ngSwitchCase","error"),Yo(1),Os("ngSwitchCase","hint"))},directives:[jh,Qh,Xh,$T],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[kL.transitionMessages]},changeDetection:0}),mL),ML=((vL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||vL)},vL.\u0275mod=jt({type:vL}),vL.\u0275inj=at({imports:[[bf,ZM,eM],ZM]}),vL);function BL(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new VL(i,n))}}var RL,LL,FL,NL,VL=function(){function e(t,n){Z(this,e),this.delay=t,this.scheduler=n}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new zL(e,this.delay,this.scheduler))}}]),e}(),zL=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return Y(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new jL(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(eP.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(eP.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(re),jL=Y(function e(t,n){Z(this,e),this.time=t,this.notification=n}),HL={provide:new ji("mat-autocomplete-scroll-strategy"),deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},UL=((LL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||LL)},LL.\u0275mod=jt({type:LL}),LL.\u0275inj=at({providers:[HL],imports:[[XR,TB,ZM,bf],oR,TB,ZM]}),LL),WL=((RL=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||RL)},RL.\u0275mod=jt({type:RL}),RL.\u0275inj=at({imports:[[RM,ZM],ZM]}),RL),GL=function(){function e(t){Z(this,e),this.total=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new qL(e,this.total))}}]),e}(),qL=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Y(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(re),YL=new Set,ZL=((NL=function(){function e(t){Z(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):KL}return Y(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!YL.has(e))try{FL||((FL=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(FL)),FL.sheet&&(FL.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),YL.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||NL)(rr(UT))},NL.\u0275prov=rt({factory:function(){return new NL(rr(UT))},token:NL,providedIn:"root"}),NL);function KL(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var QL,XL=((QL=function(){function e(t,n){Z(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new ge}return Y(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return JL(LT(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=$b(JL(LT(e)).map(function(e){return t._registerQuery(e).observable}));return(n=iw(n.pipe(dw(1)),n.pipe(function(e){return e.lift(new GL(1))},OT(0)))).pipe(ye(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new ue(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(pw(n),ye(function(t){var n=t.matches;return{query:e,matches:n}}),KB(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||QL)(rr(ZL),rr(Zc))},QL.\u0275prov=rt({factory:function(){return new QL(rr(ZL),rr(Zc))},token:QL,providedIn:"root"}),QL);function JL(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}function $L(e,t){}var eF,tF,nF,iF,rF,oF,aF,sF,lF=new ji("MatBottomSheetData"),uF=Y(function e(){Z(this,e),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}),cF={bottomSheetState:wp("state",[Ap("void, hidden",_p({transform:"translateY(100%)"})),Ap("visible",_p({transform:"translateY(0%)"})),Sp("visible => void, visible => hidden",kp("".concat(GM.COMPLEX," ").concat(WM.ACCELERATION_CURVE))),Sp("void => visible",kp("".concat(GM.EXITING," ").concat(WM.DECELERATION_CURVE)))])},dF=((tF=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l;return Z(this,n),(l=t.call(this))._elementRef=e,l._changeDetectorRef=i,l._focusTrapFactory=r,l.bottomSheetConfig=s,l._animationState="void",l._animationStateChanged=new ac,l._elementFocusedBeforeOpened=null,l.attachDomPortal=function(e){return l._validatePortalAttached(),l._setPanelClass(),l._savePreviouslyFocusedElement(),l._portalOutlet.attachDomPortal(e)},l._document=a,l._breakpointSubscription=o.observe(["(min-width: 960px) and (max-width: 1279.98px)","(min-width: 1280px) and (max-width: 1919.98px)","(min-width: 1920px)"]).subscribe(function(){l._toggleClass("mat-bottom-sheet-container-medium",o.isMatched("(min-width: 960px) and (max-width: 1279.98px)")),l._toggleClass("mat-bottom-sheet-container-large",o.isMatched("(min-width: 1280px) and (max-width: 1919.98px)")),l._toggleClass("mat-bottom-sheet-container-xlarge",o.isMatched("(min-width: 1920px)"))}),l}return Y(n,[{key:"attachComponentPortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(e){"hidden"===e.toState?this._restoreFocus():"visible"===e.toState&&this._trapFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_toggleClass",value:function(e,t){var n=this._elementRef.nativeElement.classList;t?n.add(e):n.remove(e)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var e=this._elementRef.nativeElement,t=this.bottomSheetConfig.panelClass;Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):t&&e.classList.add(t)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._getActiveElement();t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._elementFocusedBeforeOpened=this._getActiveElement(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()})}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(KP)).\u0275fac=function(e){return new(e||tF)(Ps(Kl),Ps(ku),Ps(yM),Ps(XL),Ps(Od,8),Ps(uF))},tF.\u0275cmp=Ft({type:tF,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(e,t){var n;1&e&&bc(XP,3),2&e&&yc(n=kc())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(e,t){1&e&&Hs("@state.start",function(e){return t._onAnimationStart(e)})("@state.done",function(e){return t._onAnimationDone(e)}),2&e&&(_s("aria-label",null==t.bottomSheetConfig?null:t.bottomSheetConfig.ariaLabel),El("@state",t._animationState))},features:[ls],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Ss(0,$L,0,0,"ng-template",0)},directives:[XP],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[cF.bottomSheetState]}}),tF),hF=((eF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||eF)},eF.\u0275mod=jt({type:eF}),eF.\u0275inj=at({imports:[[XR,ZM,JP],ZM]}),eF),fF=function(){function e(t,n){var i=this;Z(this,e),this._overlayRef=n,this._afterDismissed=new ge,this._afterOpened=new ge,this.containerInstance=t,this.disableClose=t.bottomSheetConfig.disableClose,t._animationStateChanged.pipe(rb(function(e){return"done"===e.phaseName&&"visible"===e.toState}),dw(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe(rb(function(e){return"done"===e.phaseName&&"hidden"===e.toState}),dw(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),n.dispose()}),n.detachments().pipe(dw(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),Le(n.backdropClick(),n.keydownEvents().pipe(rb(function(e){return 27===e.keyCode}))).subscribe(function(e){i.disableClose||"keydown"===e.type&&ET(e)||(e.preventDefault(),i.dismiss())})}return Y(e,[{key:"dismiss",value:function(e){var t=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe(rb(function(e){return"start"===e.phaseName}),dw(1)).subscribe(function(e){t._closeFallbackTimeout=setTimeout(function(){t._overlayRef.dispose()},e.totalTime+100),t._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),e}(),pF=new ji("mat-bottom-sheet-default-options"),gF=((nF=function(){function e(t,n,i,r){Z(this,e),this._overlay=t,this._injector=n,this._parentBottomSheet=i,this._defaultOptions=r,this._bottomSheetRefAtThisLevel=null}return Y(e,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,t){var n=this,i=function(e,t){return Object.assign(Object.assign({},e),t)}(this._defaultOptions||new uF,t),r=this._createOverlay(i),o=this._attachContainer(r,i),a=new fF(o,r);if(e instanceof Eu)o.attachTemplatePortal(new YP(e,null,{$implicit:i.data,bottomSheetRef:a}));else{var s=new qP(e,void 0,this._createInjector(i,a)),l=o.attachComponentPortal(s);a.instance=l.instance}return a.afterDismissed().subscribe(function(){n._openedBottomSheetRef==a&&(n._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return a.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,t){var n=as.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:uF,useValue:t}]}),i=new qP(dF,t.viewContainerRef,n);return e.attach(i).instance}},{key:"_createOverlay",value:function(e){var t=new xR({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(t.backdropClass=e.backdropClass),this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:fF,useValue:t},{provide:lF,useValue:e.data}];return!e.direction||n&&n.get(FM,null)||i.push({provide:FM,useValue:{value:e.direction,change:nb()}}),as.create({parent:n||this._injector,providers:i})}}]),e}()).\u0275fac=function(e){return new(e||nF)(rr(GR),rr(as),rr(nF,12),rr(pF,8))},nF.\u0275prov=rt({factory:function(){return new nF(rr(GR),rr(Wa),rr(nF,12),rr(pF,8))},token:nF,providedIn:hF}),nF),vF=["mat-button",""],mF=["*"],yF=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],bF=QM(KM(XM(Y(function e(t){Z(this,e),this._elementRef=t})))),wF=((sF=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;Z(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=R(yF);try{for(s.s();!(a=s.n()).done;){var l=a.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return Y(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(bF)).\u0275fac=function(e){return new(e||sF)(Ps(Kl),Ps(PM),Ps(Gv,8))},sF.\u0275cmp=Ft({type:sF,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&bc(mB,1),2&e&&yc(n=kc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(_s("disabled",t.disabled||null),al("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ls],attrs:vF,ngContentSelectors:mF,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(Zs(),Is(0,"span",0),Ks(1),Ts(),Ms(2,"span",1),Ms(3,"span",2)),2&e&&(Yo(2),al("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Os("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[mB],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),sF),kF=((aF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||aF)},aF.\u0275mod=jt({type:aF}),aF.\u0275inj=at({imports:[[yB,ZM],ZM]}),aF),xF=((oF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||oF)},oF.\u0275mod=jt({type:oF}),oF.\u0275inj=at({imports:[[ZM],ZM]}),oF),_F=((rF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||rF)},rF.\u0275mod=jt({type:rF}),rF.\u0275inj=at({}),rF),AF=((iF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||iF)},iF.\u0275mod=jt({type:iF}),iF.\u0275inj=at({imports:[[yB,ZM,eM,_F],ZM,_F]}),iF);function CF(e,t){}var SF,EF,PF=Y(function e(){Z(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}),OF={dialogContainer:wp("dialogContainer",[Ap("void, exit",_p({opacity:0,transform:"scale(0.7)"})),Ap("enter",_p({transform:"none"})),Sp("* => enter",kp("150ms cubic-bezier(0, 0, 0.2, 1)",_p({transform:"none",opacity:1}))),Sp("* => void, * => exit",kp("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",_p({opacity:0})))])},DF=((EF=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l;return Z(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=a,l._focusMonitor=s,l._animationStateChanged=new ac,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=a.ariaLabelledBy||null,l._document=o,l}return Y(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(KP)).\u0275fac=function(e){return new(e||EF)(Ps(Kl),Ps(yM),Ps(ku),Ps(Od,8),Ps(PF),Ps(PM))},EF.\u0275dir=Ut({type:EF,viewQuery:function(e,t){var n;1&e&&bc(XP,3),2&e&&yc(n=kc())&&(t._portalOutlet=n.first)},features:[ls]}),EF),IF=((SF=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._state="enter",e}return Y(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(DF)).\u0275fac=function(e){return TF(e||SF)},SF.\u0275cmp=Ft({type:SF,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&Hs("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Sl("id",t._id),_s("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),El("@dialogContainer",t._state))},features:[ls],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Ss(0,CF,0,0,"ng-template",0)},directives:[XP],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[OF.dialogContainer]}}),SF),TF=Li(IF),MF=0,BF=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+MF++;Z(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ge,this._afterClosed=new ge,this._beforeClosed=new ge,this._state=0,n._id=r,n._animationStateChanged.pipe(rb(function(e){return"opened"===e.state}),dw(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(rb(function(e){return"closed"===e.state}),dw(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(rb(function(e){return 27===e.keyCode&&!i.disableClose&&!ET(e)})).subscribe(function(e){e.preventDefault(),RF(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():RF(i,"mouse")})}return Y(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(rb(function(e){return"closing"===e.state}),dw(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function RF(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var LF,FF,NF,VF,zF,jF,HF,UF,WF=new ji("MatDialogData"),GF=new ji("mat-dialog-default-options"),qF=new ji("mat-dialog-scroll-strategy"),YF={provide:qF,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},ZF=((UF=function(){function e(t,n,i,r,o,a,s,l,u){var c=this;Z(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ge,this._afterOpenedAtThisLevel=new ge,this._ariaHiddenElements=new Map,this.afterAllClosed=aw(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(pw(void 0))}),this._scrollStrategy=a}return Y(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new PF)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new xR({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=as.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:PF,useValue:t}]}),i=new qP(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof Eu)t.attachTemplatePortal(new YP(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new qP(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(FM,null)||r.push({provide:FM,useValue:{value:e.direction,change:nb()}}),as.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||UF)(Ps(GR),Ps(as),Ps(void 0),Ps(void 0),Ps(OR),Ps(void 0),Ps(Ui),Ps(Ui),Ps(ji))},UF.\u0275dir=Ut({type:UF}),UF),KF=((HF=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s,l){return Z(this,n),t.call(this,e,i,o,s,l,a,BF,IF,WF)}return Y(n)}(ZF)).\u0275fac=function(e){return new(e||HF)(rr(GR),rr(as),rr(Kd,8),rr(GF,8),rr(qF),rr(HF,12),rr(OR))},HF.\u0275prov=rt({token:HF,factory:HF.\u0275fac}),HF),QF=0,XF=((jF=function(){function e(t,n,i){Z(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+QF++}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||jF)(Ps(BF,8),Ps(Kl),Ps(KF))},jF.\u0275dir=Ut({type:jF,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Sl("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),jF),JF=((zF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||zF)},zF.\u0275dir=Ut({type:zF,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),zF),$F=((VF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||VF)},VF.\u0275dir=Ut({type:VF,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),VF),eN=((NF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||NF)},NF.\u0275mod=jt({type:NF}),NF.\u0275inj=at({providers:[KF,YF],imports:[[XR,JP,ZM],ZM]}),NF),tN=((FF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||FF)},FF.\u0275mod=jt({type:FF}),FF.\u0275inj=at({}),FF),nN=((LF=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||LF)},LF.\u0275mod=jt({type:LF}),LF.\u0275inj=at({imports:[[bf,ZM,tN,JP]]}),LF),iN=["*"];function rN(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function oN(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function aN(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var sN,lN=Y(function e(t,n,i){Z(this,e),this.url=t,this.svgText=n,this.options=i}),uN=((sN=function(){function e(t,n,i,r){Z(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return Y(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new lN(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Yr.HTML,n);if(!r)throw aN(n);return this._addSvgIconConfig(e,t,new lN("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new lN(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Yr.HTML,t);if(!i)throw aN(t);return this._addSvgIconSetConfig(e,new lN("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Yr.RESOURCE_URL,e);if(!n)throw oN(e);var i=this._cachedIconsByUrl.get(n);return i?nb(cN(i)):this._loadSvgIconFromConfig(new lN(e,null)).pipe(Mw(function(e){return t._cachedIconsByUrl.set(n,e)}),ye(function(e){return cN(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=dN(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):XE(rN(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?nb(cN(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ye(function(e){return cN(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?nb(i):Zv(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(yw(function(t){var i=n._sanitizer.sanitize(Yr.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),nb(null)}))})).pipe(ye(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw rN(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Mw(function(t){return e.svgText=t}),ye(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?nb(null):this._fetchIcon(e).pipe(Mw(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name,a=r.value;"id"!==o&&t.setAttribute(o,a)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Yr.RESOURCE_URL,i);if(!a)throw oN(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Lw(function(){return n._inProgressUrlFetches.delete(a)}),Ge());return this._inProgressUrlFetches.set(a,l),l}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(dN(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new lN(i.url,null,i.options):new lN(i,null)}var r}}]),e}()).\u0275fac=function(e){return new(e||sN)(rr(Tb,8),rr(pp),rr(Od,8),rr(eo))},sN.\u0275prov=rt({factory:function(){return new sN(rr(Tb,8),rr(pp),rr(Od,8),rr(eo))},token:sN,providedIn:"root"}),sN);function cN(e){return e.cloneNode(!0)}function dN(e,t){return e+":"+t}var hN,fN,pN,gN,vN,mN,yN=QM(Y(function e(t){Z(this,e),this._elementRef=t})),bN=new ji("mat-icon-location",{providedIn:"root",factory:function(){var e=or(Od),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),wN=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],kN=wN.map(function(e){return"[".concat(e,"]")}).join(", "),xN=/^url\(['"]?#(.*?)['"]?\)$/,_N=((mN=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a){var s;return Z(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=te.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return Y(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=BT(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(kN),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){wN.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(xN):null;if(a){var s=n.get(r);s||(s=[],n.set(r,s)),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=L(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(dw(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){t._errorHandler.handleError(new Error("Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message)))})}}}]),n}(yN)).\u0275fac=function(e){return new(e||mN)(Ps(Kl),Ps(uN),Ni("aria-hidden"),Ps(bN),Ps(eo))},mN.\u0275cmp=Ft({type:mN,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(_s("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),al("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ls],ngContentSelectors:iN,decls:1,vars:0,template:function(e,t){1&e&&(Zs(),Ks(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),mN),AN=((vN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||vN)},vN.\u0275mod=jt({type:vN}),vN.\u0275inj=at({imports:[[ZM],ZM]}),vN),CN=((gN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gN)},gN.\u0275mod=jt({type:gN}),gN.\u0275inj=at({imports:[[WT]]}),gN),SN=((pN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||pN)},pN.\u0275mod=jt({type:pN}),pN.\u0275inj=at({providers:[lB],imports:[[CN,ML,ZM],CN,ML]}),pN),EN=((fN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||fN)},fN.\u0275mod=jt({type:fN}),fN.\u0275inj=at({imports:[[ZM],ZM]}),fN),PN=((hN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||hN)},hN.\u0275mod=jt({type:hN}),hN.\u0275inj=at({imports:[[uB,yB,ZM,wB,bf],uB,ZM,wB,EN]}),hN),ON=["trigger"],DN=["panel"];function IN(e,t){if(1&e&&(Is(0,"span",8),bl(1),Ts()),2&e){var n=qs();Yo(1),wl(n.placeholder)}}function TN(e,t){if(1&e&&(Is(0,"span",12),bl(1),Ts()),2&e){var n=qs(2);Yo(1),wl(n.triggerValue)}}function MN(e,t){1&e&&Ks(0,0,["*ngSwitchCase","true"])}function BN(e,t){1&e&&(Is(0,"span",9),Ss(1,TN,2,1,"span",10),Ss(2,MN,1,0,"ng-content",11),Ts()),2&e&&(Os("ngSwitch",!!qs().customTrigger),Yo(2),Os("ngSwitchCase",!0))}function RN(e,t){if(1&e){var n=Fs();Is(0,"div",13),Is(1,"div",14,15),js("@transformPanel.done",function(e){return En(n),qs()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return En(n),qs()._handleKeydown(e)}),Ks(3,1),Ts(),Ts()}if(2&e){var i=qs();Os("@transformPanelWrap",void 0),Yo(1),Cl("mat-select-panel ",i._getPanelTheme(),""),ol("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),Os("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),_s("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var LN,FN,NN,VN,zN,jN,HN=[[["mat-select-trigger"]],"*"],UN=["mat-select-trigger","*"],WN={transformPanelWrap:wp("transformPanelWrap",[Sp("* => void",Pp("@transformPanel",[Ep()],{optional:!0}))]),transformPanel:wp("transformPanel",[Ap("void",_p({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Ap("showing",_p({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Ap("showing-multiple",_p({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Sp("void => *",kp("120ms cubic-bezier(0, 0, 0.2, 1)")),Sp("* => void",kp("100ms 25ms linear",_p({opacity:0})))])},GN=0,qN=new ji("mat-select-scroll-strategy"),YN=new ji("MAT_SELECT_CONFIG"),ZN={provide:qN,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},KN=Y(function e(t,n){Z(this,e),this.source=t,this.value=n}),QN=XM(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){E(i,e);var n=O(i);function i(){var e;Z(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return Y(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?RT(e):this.defaultTabIndex}}]),i}(e)}(KM(function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new ge,e}return Y(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(Y(function e(t,n,i,r,o){Z(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}))))),XN=new ji("MatSelectTrigger"),JN=((FN=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s,l,u,c,d,h,f,p,g){var v,m,y,b;return Z(this,n),(v=t.call(this,a,o,l,u,d))._viewportRuler=e,v._changeDetectorRef=i,v._ngZone=r,v._dir=s,v._parentFormField=c,v.ngControl=d,v._liveAnnouncer=p,v._defaultOptions=g,v._panelOpen=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-"+GN++,v._triggerAriaLabelledBy=null,v._destroy=new ge,v._onChange=function(){},v._onTouched=function(){},v._valueId="mat-select-value-"+GN++,v._panelDoneAnimatingStream=new ge,v._overlayPanelClass=(null===(m=v._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",v._focused=!1,v.controlType="mat-select",v._required=!1,v._multiple=!1,v._disableOptionCentering=null!==(b=null===(y=v._defaultOptions)||void 0===y?void 0:y.disableOptionCentering)&&void 0!==b&&b,v.ariaLabel="",v.optionSelectionChanges=aw(function(){var e=v.options;return e?e.changes.pipe(pw(e),sw(function(){return Le.apply(void 0,V(e.map(function(e){return e.onSelectionChange})))})):v._ngZone.onStable.pipe(dw(1),sw(function(){return v.optionSelectionChanges}))}),v.openedChange=new ac,v._openedStream=v.openedChange.pipe(rb(function(e){return e}),ye(function(){})),v._closedStream=v.openedChange.pipe(rb(function(e){return!e}),ye(function(){})),v.selectionChange=new ac,v.valueChange=new ac,v.ngControl&&(v.ngControl.valueAccessor=I(v)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(v._typeaheadDebounceInterval=g.typeaheadDebounceInterval),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(h)||0,v.id=v.id,v}return Y(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=BT(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=BT(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=BT(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=RT(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new nR(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(J_(),KB(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(KB(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(pw(null),KB(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!ET(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||ET(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(dw(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-"+this._parentFormField.color:""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new dM(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(KB(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(KB(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=Le(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(KB(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Le.apply(void 0,V(this.options.map(function(e){return e._stateChanges}))).pipe(KB(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(QN)).\u0275fac=function(e){return new(e||FN)(Ps(rR),Ps(ku),Ps(Zc),Ps(lB),Ps(Kl),Ps(FM,8),Ps(py,8),Ps(Ay,8),Ps(IL,8),Ps(Bm,10),Ni("tabindex"),Ps(qN),Ps(xM),Ps(YN,8))},FN.\u0275dir=Ut({type:FN,viewQuery:function(e,t){var n;1&e&&(bc(ON,1),bc(DN,1),bc(KR,1)),2&e&&(yc(n=kc())&&(t.trigger=n.first),yc(n=kc())&&(t.panel=n.first),yc(n=kc())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ls,tn]}),FN),$N=((LN=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return Y(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;C(M(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(KB(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;C(M(n.prototype),"_canOpen",this).call(this)&&(C(M(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(dw(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize=e._triggerFontSize+"px")}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=DB(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),C(M(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new KN(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=DB(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(JN)).\u0275fac=function(e){return eV(e||LN)},LN.\u0275cmp=Ft({type:LN,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,XN,1),wc(n,OB,1),wc(n,CB,1)),2&e&&(yc(i=kc())&&(t.customTrigger=i.first),yc(i=kc())&&(t.options=i),yc(i=kc())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&js("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(_s("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),al("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Hl([{provide:xL,useExisting:LN},{provide:kB,useExisting:LN}]),ls],ngContentSelectors:UN,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Zs(HN),Is(0,"div",0,1),js("click",function(){return t.toggle()}),Is(3,"div",2),Ss(4,IN,2,1,"span",3),Ss(5,BN,3,2,"span",4),Ts(),Is(6,"div",5),Ms(7,"div",6),Ts(),Ts(),Ss(8,RN,4,14,"ng-template",7),js("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=Es(1);_s("aria-owns",t.panelOpen?t.id+"-panel":null),Yo(3),Os("ngSwitch",t.empty),_s("id",t._valueId),Yo(1),Os("ngSwitchCase",!0),Yo(1),Os("ngSwitchCase",!1),Yo(3),Os("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[ZR,Qh,Xh,KR,Jh,Fh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[WN.transformPanelWrap,WN.transformPanel]},changeDetection:0}),LN),eV=Li($N),tV=((NN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||NN)},NN.\u0275mod=jt({type:NN}),NN.\u0275inj=at({providers:[ZN],imports:[[bf,XR,TB,ZM],oR,ML,TB,ZM]}),NN),nV={tooltipState:wp("state",[Ap("initial, void, hidden",_p({opacity:0,transform:"scale(0)"})),Ap("visible",_p({transform:"scale(1)"})),Sp("* => visible",kp("200ms cubic-bezier(0, 0, 0.2, 1)",Cp([_p({opacity:0,transform:"scale(0)",offset:0}),_p({opacity:.5,transform:"scale(0.99)",offset:.5}),_p({opacity:1,transform:"scale(1)",offset:1})]))),Sp("* => hidden",kp("100ms cubic-bezier(0, 0, 0.2, 1)",_p({opacity:0})))])},iV=GT({passive:!0}),rV=new ji("mat-tooltip-scroll-strategy"),oV={provide:rV,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},aV=new ji("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),sV=((jN=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){var f=this;Z(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ge,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!ET(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return Y(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=BT(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(KB(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=L(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,iV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new qP(lV,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(KB(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(KB(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(KB(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(dw(1),KB(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=L(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,iV)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||jN)(Ps(GR),Ps(Kl),Ps(iR),Ps(Mu),Ps(Zc),Ps(UT),Ps(aM),Ps(PM),Ps(rV),Ps(FM,8),Ps(aV,8),Ps(Od))},jN.\u0275dir=Ut({type:jN,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),jN),lV=((zN=function(){function e(t,n){Z(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ge,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return Y(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||zN)(Ps(ku),Ps(XL))},zN.\u0275cmp=Ft({type:zN,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&js("click",function(){return t._handleBodyInteraction()},!1,ro)("auxclick",function(){return t._handleBodyInteraction()},!1,ro),2&e&&ol("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(Is(0,"div",0),js("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),$u(1,"async"),bl(2),Ts()),2&e)&&(al("mat-tooltip-handset",null==(n=ec(1,5,t._isHandset))?null:n.matches),Os("ngClass",t.tooltipClass)("@state",t._visibility),Yo(2),wl(t.message))},directives:[Fh],pipes:[df],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[nV.tooltipState]},changeDetection:0}),zN),uV=((VN=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||VN)},VN.\u0275mod=jt({type:VN}),VN.\u0275inj=at({providers:[oV],imports:[[RM,bf,XR,ZM],ZM,oR]}),VN);function cV(e,t){if(1&e&&(Is(0,"mat-option",19),bl(1),Ts()),2&e){var n=t.$implicit;Os("value",n),Yo(1),kl(" ",n," ")}}function dV(e,t){if(1&e){var n=Fs();Is(0,"mat-form-field",16),Is(1,"mat-select",17),js("selectionChange",function(e){return En(n),qs(2)._changePageSize(e.value)}),Ss(2,cV,2,2,"mat-option",18),Ts(),Ts()}if(2&e){var i=qs(2);Os("appearance",i._formFieldAppearance)("color",i.color),Yo(1),Os("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Yo(1),Os("ngForOf",i._displayedPageSizeOptions)}}function hV(e,t){if(1&e&&(Is(0,"div",20),bl(1),Ts()),2&e){var n=qs(2);Yo(1),wl(n.pageSize)}}function fV(e,t){if(1&e&&(Is(0,"div",12),Is(1,"div",13),bl(2),Ts(),Ss(3,dV,3,6,"mat-form-field",14),Ss(4,hV,2,1,"div",15),Ts()),2&e){var n=qs();Yo(2),kl(" ",n._intl.itemsPerPageLabel," "),Yo(1),Os("ngIf",n._displayedPageSizeOptions.length>1),Yo(1),Os("ngIf",n._displayedPageSizeOptions.length<=1)}}function pV(e,t){if(1&e){var n=Fs();Is(0,"button",21),js("click",function(){return En(n),qs().firstPage()}),ei(),Is(1,"svg",7),Ms(2,"path",22),Ts(),Ts()}if(2&e){var i=qs();Os("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),_s("aria-label",i._intl.firstPageLabel)}}function gV(e,t){if(1&e){var n=Fs();ei(),ti(),Is(0,"button",23),js("click",function(){return En(n),qs().lastPage()}),ei(),Is(1,"svg",7),Ms(2,"path",24),Ts(),Ts()}if(2&e){var i=qs();Os("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),_s("aria-label",i._intl.lastPageLabel)}}var vV,mV,yV,bV,wV,kV,xV,_V,AV,CV,SV=((vV=Y(function e(){Z(this,e),this.changes=new ge,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of "+n;var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}})).\u0275fac=function(e){return new(e||vV)},vV.\u0275prov=rt({factory:function(){return new vV},token:vV,providedIn:"root"}),vV),EV={provide:SV,deps:[[new dr,new hr,SV]],useFactory:function(e){return e||new SV}},PV=new ji("MAT_PAGINATOR_DEFAULT_OPTIONS"),OV=KM(JM(Y(function e(){Z(this,e)}))),DV=((CV=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;if(Z(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new ac,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,s=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=s&&(o._pageSizeOptions=s),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return D(o)}return Y(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(RT(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=RT(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(RT(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return RT(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=BT(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=BT(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(e,t){return e-t}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),n}(OV)).\u0275fac=function(e){return new(e||CV)(Ps(SV),Ps(ku),Ps(void 0))},CV.\u0275dir=Ut({type:CV,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[ls]}),CV),IV=((AV=function(e){E(n,e);var t=O(n);function n(e,i,r){var o;return Z(this,n),o=t.call(this,e,i,r),r&&null!=r.formFieldAppearance&&(o._formFieldAppearance=r.formFieldAppearance),o}return Y(n)}(DV)).\u0275fac=function(e){return new(e||AV)(Ps(SV),Ps(ku),Ps(PV,8))},AV.\u0275cmp=Ft({type:AV,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ls],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"div",1),Ss(2,fV,5,3,"div",2),Is(3,"div",3),Is(4,"div",4),bl(5),Ts(),Ss(6,pV,3,5,"button",5),Is(7,"button",6),js("click",function(){return t.previousPage()}),ei(),Is(8,"svg",7),Ms(9,"path",8),Ts(),Ts(),ti(),Is(10,"button",9),js("click",function(){return t.nextPage()}),ei(),Is(11,"svg",7),Ms(12,"path",10),Ts(),Ts(),Ss(13,gV,3,5,"button",11),Ts(),Ts(),Ts()),2&e&&(Yo(2),Os("ngIf",!t.hidePageSize),Yo(3),kl(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),Yo(1),Os("ngIf",t.showFirstLastButtons),Yo(1),Os("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),_s("aria-label",t._intl.previousPageLabel),Yo(3),Os("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),_s("aria-label",t._intl.nextPageLabel),Yo(3),Os("ngIf",t.showFirstLastButtons))},directives:[jh,wF,sV,TL,$N,Vh,OB],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),AV),TV=((_V=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||_V)},_V.\u0275mod=jt({type:_V}),_V.\u0275inj=at({providers:[EV],imports:[[bf,kF,tV,uV,ZM]]}),_V),MV=((xV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||xV)},xV.\u0275mod=jt({type:xV}),xV.\u0275inj=at({imports:[[ZM,bf],ZM]}),xV),BV=((kV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||kV)},kV.\u0275mod=jt({type:kV}),kV.\u0275inj=at({imports:[[bf,ZM,WT,oR],oR,ZM]}),kV),RV=((wV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||wV)},wV.\u0275mod=jt({type:wV}),wV.\u0275inj=at({}),wV),LV=((bV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||bV)},bV.\u0275mod=jt({type:bV}),bV.\u0275inj=at({imports:[[RV,yB,ZM,eM],RV,ZM]}),bV),FV=((yV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yV)},yV.\u0275mod=jt({type:yV}),yV.\u0275inj=at({imports:[[bf,ZM],ZM]}),yV),NV=((mV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||mV)},mV.\u0275mod=jt({type:mV}),mV.\u0275inj=at({imports:[[XR,JP,bf,kF,ZM],ZM]}),mV),VV=["mat-sort-header",""];function zV(e,t){if(1&e){var n=Fs();Is(0,"div",3),js("@arrowPosition.start",function(){return En(n),qs()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return En(n),qs()._disableViewStateAnimation=!1}),Ms(1,"div",4),Is(2,"div",5),Ms(3,"div",6),Ms(4,"div",7),Ms(5,"div",8),Ts(),Ts()}if(2&e){var i=qs();Os("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),Yo(2),Os("@indicator",i._getArrowDirectionState()),Yo(1),Os("@leftPointer",i._getArrowDirectionState()),Yo(1),Os("@rightPointer",i._getArrowDirectionState())}}var jV,HV,UV,WV,GV,qV,YV,ZV=["*"],KV=new ji("MAT_SORT_DEFAULT_OPTIONS"),QV=JM(KM(Y(function e(){Z(this,e)}))),XV=((jV=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new ge,i.start="asc",i._direction="",i.sortChange=new ac,i}return Y(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=BT(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),o=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(QV)).\u0275fac=function(e){return new(e||jV)(Ps(KV,8))},jV.\u0275dir=Ut({type:jV,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ls,tn]}),jV),JV=GM.ENTERING+" "+WM.STANDARD_CURVE,$V={indicator:wp("indicator",[Ap("active-asc, asc",_p({transform:"translateY(0px)"})),Ap("active-desc, desc",_p({transform:"translateY(10px)"})),Sp("active-asc <=> active-desc",kp(JV))]),leftPointer:wp("leftPointer",[Ap("active-asc, asc",_p({transform:"rotate(-45deg)"})),Ap("active-desc, desc",_p({transform:"rotate(45deg)"})),Sp("active-asc <=> active-desc",kp(JV))]),rightPointer:wp("rightPointer",[Ap("active-asc, asc",_p({transform:"rotate(45deg)"})),Ap("active-desc, desc",_p({transform:"rotate(-45deg)"})),Sp("active-asc <=> active-desc",kp(JV))]),arrowOpacity:wp("arrowOpacity",[Ap("desc-to-active, asc-to-active, active",_p({opacity:1})),Ap("desc-to-hint, asc-to-hint, hint",_p({opacity:.54})),Ap("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_p({opacity:0})),Sp("* => asc, * => desc, * => active, * => hint, * => void",kp("0ms")),Sp("* <=> *",kp(JV))]),arrowPosition:wp("arrowPosition",[Sp("* => desc-to-hint, * => desc-to-active",kp(JV,Cp([_p({transform:"translateY(-25%)"}),_p({transform:"translateY(0)"})]))),Sp("* => hint-to-desc, * => active-to-desc",kp(JV,Cp([_p({transform:"translateY(0)"}),_p({transform:"translateY(25%)"})]))),Sp("* => asc-to-hint, * => asc-to-active",kp(JV,Cp([_p({transform:"translateY(25%)"}),_p({transform:"translateY(0)"})]))),Sp("* => hint-to-asc, * => active-to-asc",kp(JV,Cp([_p({transform:"translateY(0)"}),_p({transform:"translateY(-25%)"})]))),Ap("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_p({transform:"translateY(0)"})),Ap("hint-to-desc, active-to-desc, desc",_p({transform:"translateY(-25%)"})),Ap("hint-to-asc, active-to-asc, asc",_p({transform:"translateY(25%)"}))]),allowChildren:wp("allowChildren",[Sp("* <=> *",[Pp("@*",Ep(),{optional:!0})])])},ez=((HV=Y(function e(){Z(this,e),this.changes=new ge,this.sortButtonLabel=function(e){return"Change sorting for "+e}})).\u0275fac=function(e){return new(e||HV)},HV.\u0275prov=rt({factory:function(){return new HV},token:HV,providedIn:"root"}),HV),tz={provide:ez,deps:[[new dr,new hr,ez]],useFactory:function(e){return e||new ez}},nz=KM(Y(function e(){Z(this,e)})),iz=((YV=function(e){E(n,e);var t=O(n);function n(e,i,r,o,a,s){var l;return Z(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=o,l._focusMonitor=a,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return Y(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=BT(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?e+"-to-":"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=Le(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(nz)).\u0275fac=function(e){return new(e||YV)(Ps(ez),Ps(ku),Ps(XV,8),Ps("MAT_SORT_HEADER_COLUMN_DEF",8),Ps(PM),Ps(Kl))},YV.\u0275cmp=Ft({type:YV,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&js("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(_s("aria-sort",t._getAriaSortAttribute()),al("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[ls],attrs:VV,ngContentSelectors:ZV,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(Zs(),Is(0,"div",0),Is(1,"div",1),Ks(2),Ts(),Ss(3,zV,6,6,"div",2),Ts()),2&e&&(al("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),_s("tabindex",t._isDisabled()?null:0),Yo(3),Os("ngIf",t._renderArrow()))},directives:[jh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[$V.indicator,$V.leftPointer,$V.rightPointer,$V.arrowOpacity,$V.arrowPosition,$V.allowChildren]},changeDetection:0}),YV),rz=((qV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||qV)},qV.\u0275mod=jt({type:qV}),qV.\u0275inj=at({providers:[tz],imports:[[bf,ZM]]}),qV),oz=((GV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||GV)},GV.\u0275mod=jt({type:GV}),GV.\u0275inj=at({imports:[[aR]]}),GV),az=((WV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||WV)},WV.\u0275mod=jt({type:WV}),WV.\u0275inj=at({imports:[[oz,ZM],ZM]}),WV),sz=((UV=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||UV)},UV.\u0275mod=jt({type:UV}),UV.\u0275inj=at({imports:[[bf,ZM,JP,yB,eM,RM],ZM]}),UV),lz=["mat-menu-item",""],uz=["*"];function cz(e,t){if(1&e){var n=Fs();Is(0,"div",0),js("keydown",function(e){return En(n),qs()._handleKeydown(e)})("click",function(){return En(n),qs().closed.emit("click")})("@transformMenu.start",function(e){return En(n),qs()._onAnimationStart(e)})("@transformMenu.done",function(e){return En(n),qs()._onAnimationDone(e)}),Is(1,"div",1),Ks(2),Ts(),Ts()}if(2&e){var i=qs();Os("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),_s("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var dz,hz,fz,pz,gz,vz,mz={transformMenu:wp("transformMenu",[Ap("void",_p({opacity:0,transform:"scale(0.8)"})),Sp("void => enter",kp("120ms cubic-bezier(0, 0, 0.2, 1)",_p({opacity:1,transform:"scale(1)"}))),Sp("* => void",kp("100ms 25ms linear",_p({opacity:0})))]),fadeInItems:wp("fadeInItems",[Ap("showing",_p({opacity:1})),Sp("void => *",[_p({opacity:0}),kp("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yz=new ji("MatMenuContent"),bz=new ji("MAT_MENU_PANEL"),wz=XM(KM(Y(function e(){Z(this,e)}))),kz=((dz=function(e){E(n,e);var t=O(n);function n(e,i,r,o){var a;return Z(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new ge,a._focused=new ge,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(I(a)),a}return Y(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(wz)).\u0275fac=function(e){return new(e||dz)(Ps(Kl),Ps(Od),Ps(PM),Ps(bz,8))},dz.\u0275cmp=Ft({type:dz,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&js("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(_s("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),al("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[ls],attrs:lz,ngContentSelectors:uz,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(Zs(),Ks(0),Ms(1,"div",0)),2&e&&(Yo(1),Os("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[mB],encapsulation:2,changeDetection:0}),dz),xz=new ji("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),_z=0,Az=((fz=function(){function e(t,n,i){Z(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new lc,this._tabSubscription=te.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new ge,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ac,this.close=this.closed,this.panelId="mat-menu-panel-"+_z++}return Y(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=BT(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=BT(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new hM(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(pw(this._directDescendantItems),sw(function(e){return Le.apply(void 0,V(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(pw(this._directDescendantItems),sw(function(e){return Le.apply(void 0,V(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case 27:ET(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(dw(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z"+Math.min(4+e,24),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(pw(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||fz)(Ps(Kl),Ps(Zc),Ps(xz))},fz.\u0275dir=Ut({type:fz,contentQueries:function(e,t,n){var i;1&e&&(wc(n,yz,1),wc(n,kz,1),wc(n,kz,0)),2&e&&(yc(i=kc())&&(t.lazyContent=i.first),yc(i=kc())&&(t._allItems=i),yc(i=kc())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&bc(Eu,1),2&e&&yc(n=kc())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),fz),Cz=((hz=function(e){E(n,e);var t=O(n);function n(e,i,r){return Z(this,n),t.call(this,e,i,r)}return Y(n)}(Az)).\u0275fac=function(e){return new(e||hz)(Ps(Kl),Ps(Zc),Ps(xz))},hz.\u0275cmp=Ft({type:hz,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&_s("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Hl([{provide:bz,useExisting:hz}]),ls],ngContentSelectors:uz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(Zs(),Ss(0,cz,3,6,"ng-template"))},directives:[Fh],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[mz.transformMenu,mz.fadeInItems]},changeDetection:0}),hz),Sz=new ji("mat-menu-scroll-strategy"),Ez={provide:Sz,deps:[GR],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Pz=GT({passive:!0}),Oz=((vz=function(){function e(t,n,i,r,o,a,s,l){var u=this;Z(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=te.EMPTY,this._hoverSubscription=te.EMPTY,this._menuCloseSubscription=te.EMPTY,this._handleTouchStart=function(e){AM(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ac,this.onMenuOpen=this.menuOpened,this.menuClosed=new ac,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Az?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pz),a&&(a._triggersSubmenu=this.triggersSubmenu())}return Y(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pz),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Az&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Az?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(rb(function(e){return"void"===e.toState}),dw(1),KB(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new xR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=L("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=L("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,d=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:d},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:d},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-d},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Le(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:nb(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(rb(function(t){return t!==e._menuItemInstance}),rb(function(){return e._menuOpen})):nb(),n)}},{key:"_handleMousedown",value:function(e){_M(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(rb(function(t){return t===e._menuItemInstance&&!t.disabled}),BL(0,HB)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Az&&e.menu._isAnimating?e.menu._animationDone.pipe(dw(1),BL(0,HB),KB(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new YP(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||vz)(Ps(GR),Ps(Kl),Ps(Mu),Ps(Sz),Ps(bz,8),Ps(kz,10),Ps(FM,8),Ps(PM))},vz.\u0275dir=Ut({type:vz,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&js("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&_s("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),vz),Dz=((gz=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||gz)},gz.\u0275mod=jt({type:gz}),gz.\u0275inj=at({providers:[Ez],imports:[ZM]}),gz),Iz=((pz=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||pz)},pz.\u0275mod=jt({type:pz}),pz.\u0275inj=at({providers:[Ez],imports:[[bf,ZM,yB,XR,Dz],oR,ZM,Dz]}),pz);function Tz(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function Mz(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Bz(e,t){var n=t?"":"none";Mz(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function Rz(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function Lz(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function Fz(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function Nz(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function Vz(e,t,n){var i=e.top,r=e.bottom,o=e.left,a=e.right;return n>=i&&n<=r&&t>=o&&t<=a}function zz(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function jz(e,t,n,i){var r=e.top,o=e.right,a=e.bottom,s=e.left,l=e.width*t,u=e.height*t;return i>r-u&&i<a+u&&n>s-l&&n<o+l}var Hz=function(){function e(t,n){Z(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}return Y(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Nz(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,r,o=t===this._document?t.documentElement:t,a=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,r=s.left}else i=t.scrollTop,r=t.scrollLeft;var l=a.top-i,u=a.left-r;return this.positions.forEach(function(e,n){e.clientRect&&t!==n&&o.contains(n)&&zz(e.clientRect,l,u)}),a.top=i,a.left=r,{top:l,left:u}}}]),e}();function Uz(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(var r=0;r<n.length;r++)n[r].removeAttribute("id");return"canvas"===i?Yz(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||qz(e,t),Wz("canvas",e,t,Yz),Wz("input, textarea, select",e,t,qz),t}function Wz(e,t,n,i){var r=t.querySelectorAll(e);if(r.length)for(var o=n.querySelectorAll(e),a=0;a<r.length;a++)i(r[a],o[a])}var Gz=0;function qz(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(Gz++))}function Yz(e,t){var n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(V4){}}var Zz=GT({passive:!0}),Kz=GT({passive:!1}),Qz=function(){function e(t,n,i,r,o,a){var s=this;Z(this,e),this._config=n,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new ge,this._pointerMoveSubscription=te.EMPTY,this._pointerUpSubscription=te.EMPTY,this._scrollSubscription=te.EMPTY,this._resizeSubscription=te.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new ge,this.started=new ge,this.released=new ge,this.ended=new ge,this.entered=new ge,this.exited=new ge,this.dropped=new ge,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find(function(t){var n=e.target;return!!n&&(n===t||t.contains(n))});!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect())),e.preventDefault();var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n,t);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})})}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),o=s._dropContainer;if(!r)return void s._endDragSequence(e);o&&(o.isDragging()||o.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new Hz(i,o),a.registerDragItem(this)}return Y(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=BT(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return Bz(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return NT(e)}),this._handles.forEach(function(e){return Bz(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=NT(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,Kz),n.addEventListener("touchstart",t._pointerDown,Zz)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?NT(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&$z(this._rootElement),$z(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),Bz(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),Bz(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&$z(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&$z(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){ej(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._preview=this._createPreviewElement(),o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();i.insertBefore(a,n),Rz(n,!1),this._document.body.appendChild(i.replaceChild(o,n)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,s).appendChild(r),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=ej(t),o=!r&&0!==t.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=Nz(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;Rz(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),o=t._getDragDistance(t._getPointerPositionOnPage(e)),a=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:o}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:a,distance:o}),n.drop(t,i,t._initialIndex,t._initialContainer,a,o),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,o=t.x,a=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=Xz(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),e=tj(o,this._document),this._previewRef=o,t.matchSize?nj(e,r):e.style.transform=Xz(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;nj(e=Uz(a),a.getBoundingClientRect())}return Mz(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),Bz(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=Xz(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=Fz(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),o=Fz(t,"transition-duration"),a=Fz(t,"transition-delay");return Lz(o[r])+Lz(a[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=tj(this._placeholderRef,this._document)):e=Uz(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,o=ej(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:r.left-n.left+(o.pageX-r.left-a.left),y:r.top-n.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=ej(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=r,a.matrixTransform(o.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,l=this._boundaryRect,u=this._previewRect,c=l.top+s,d=l.bottom-(u.height-s);i=Jz(i,l.left+a,l.right-(u.width-a)),r=Jz(r,c,d)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(n-r.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,Bz(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,Kz),e.removeEventListener("touchstart",this._pointerDown,Zz)}},{key:"_applyRootElementTransform",value:function(e,t){var n=Xz(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var o=i.left-r.left,a=r.right-i.right,s=i.top-r.top,l=r.bottom-i.bottom;i.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,i.height>r.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:ej(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&zz(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=qT(this._rootElement)),this._cachedShadowRoot}}]),e}();function Xz(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function Jz(e,t,n){return Math.max(t,Math.min(n,e))}function $z(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ej(e){return"t"===e.type[0]}function tj(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function nj(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=Xz(t.left,t.top)}function ij(e,t){return Math.max(0,Math.min(t,e))}var rj=function(){function e(t,n,i,r,o){var a=this;Z(this,e),this._dragDropRegistry=n,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new ge,this.entered=new ge,this.exited=new ge,this.dropped=new ge,this.sorted=new ge,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=te.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ge,this._cachedShadowRoot=null,this._startScrollInterval=function(){a._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return(!GB(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=PT),new ue(function(n){return n.add(t.schedule(Tz,e,{subscriber:n,counter:0,period:e})),n})}(0,BB).pipe(KB(a._stopScrollTimers)).subscribe(function(){var e=a._scrollNode,t=a.autoScrollStep;1===a._verticalScrollDirection?aj(e,-t):2===a._verticalScrollDirection&&aj(e,t),1===a._horizontalScrollDirection?sj(e,-t):2===a._horizontalScrollDirection&&sj(e,t)})},this.element=NT(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new Hz(i,o)}return Y(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var o=this._activeDraggables,a=o.indexOf(e),s=e.getPlaceholderElement(),l=o[r];if(l===e&&(l=o[r+1]),a>-1&&o.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var u=l.getRootElement();u.parentElement.insertBefore(s,u),o.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var c=o[0].getRootElement();c.parentNode.insertBefore(s,c),o.unshift(e)}else NT(this.element).appendChild(s),o.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=NT(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(V(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?oj("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&jz(this._clientRect,.05,t,n)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=oj(r,function(t){return t.drag===e}),l=r[o],u=l.clientRect,c=s>o?1:-1,d=this._getItemOffsetPx(r[s].clientRect,u,c),h=this._getSiblingOffsetPx(s,r,c),f=r.slice();!function(e,t,n){var i=ij(t,e.length-1),r=ij(n,e.length-1);if(i!==r){for(var o=e[i],a=r<i?-1:1,s=i;s!==r;s+=a)e[s]=e[s+a];e[r]=o}}(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?d:h,o=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,a?(o.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),zz(t.clientRect,0,r)):(o.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),zz(t.clientRect,r,0))}}),this._previousSwap.overlaps=Vz(u,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){var l;s!==n._document&&a.clientRect&&!i&&jz(a.clientRect,.05,e,t)&&(l=L(function(e,t,n,i){var r=lj(t,i),o=uj(t,n),a=0,s=0;if(r){var l=e.scrollTop;1===r?l>0&&(a=1):e.scrollHeight-l>e.clientHeight&&(a=2)}if(o){var u=e.scrollLeft;1===o?u>0&&(s=1):e.scrollWidth-u>e.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,e,t),2),r=l[0],o=l[1],(r||o)&&(i=s))}),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,l=a.height,u={width:s,height:l,top:0,right:s,bottom:l,left:0};r=lj(u,t),o=uj(u,e),i=window}!i||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=NT(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=NT(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:Nz(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=NT(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,o=t[e+-1*n],a=r[i?"width":"height"]*n;if(o){var s=i?"left":"top",l=i?"right":"bottom";-1===n?a-=o.clientRect[s]-r[l]:a+=r[s]-o.clientRect[l]}return a}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var o=n[0].clientRect;return i?e<=o.left:t<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,o="horizontal"===this._orientation,a=oj(this._itemPositions,function(a,s,l){var u=a.drag,c=a.clientRect;if(u===e)return l.length<2;if(i){var d=o?i.x:i.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&d===r._previousSwap.delta)return!1}return o?t>=Math.floor(c.left)&&t<Math.floor(c.right):n>=Math.floor(c.top)&&n<Math.floor(c.bottom)});return-1!==a&&this.sortPredicate(a,e,this)?a:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return null!=this._clientRect&&Vz(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find(function(i){return i._canReceive(e,t,n)})}},{key:"_canReceive",value:function(e,t,n){if(!this._clientRect||!Vz(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var r=NT(this.element);return i===r||r.contains(i)}},{key:"_startReceiving",value:function(e,t){var n=this,i=this._activeSiblings;!i.has(e)&&t.every(function(e){return n.enterPredicate(e,n)||n._draggables.indexOf(e)>-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){zz(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=qT(NT(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function oj(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function aj(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function sj(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function lj(e,t){var n=e.top,i=e.bottom,r=.05*e.height;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function uj(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var cj,dj,hj,fj=GT({passive:!1,capture:!0}),pj=((cj=function(){function e(t,n){var i=this;Z(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new ge,this.pointerUp=new ge,this.scroll=new ge,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return Y(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,fj)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,fj)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fj}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:fj}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||cj)(rr(Zc),rr(Od))},cj.\u0275prov=rt({factory:function(){return new cj(rr(Zc),rr(Od))},token:cj,providedIn:"root"}),cj),gj={dragStartThreshold:5,pointerDirectionChangeThreshold:5},vj=((dj=function(){function e(t,n,i,r){Z(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return Y(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gj;return new Qz(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new rj(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||dj)(rr(Od),rr(Zc),rr(rR),rr(pj))},dj.\u0275prov=rt({factory:function(){return new dj(rr(Od),rr(Zc),rr(rR),rr(pj))},token:dj,providedIn:"root"}),dj),mj=new ji("CDK_DRAG_PARENT"),yj=new ji("CDK_DRAG_CONFIG"),bj=new ji("CdkDropList"),wj=new ji("CdkDragHandle"),kj=new ji("CdkDragPlaceholder"),xj=new ji("CdkDragPreview"),_j=((hj=function(){function e(t,n,i,r,o,a,s,l,u,c,d){var h=this;Z(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=s,this._changeDetectorRef=u,this._selfHandle=c,this._parentDrag=d,this._destroyed=new ge,this.started=new ac,this.released=new ac,this.ended=new ac,this.entered=new ac,this.exited=new ac,this.dropped=new ac,this.moved=new ue(function(e){var t=h._dragRef.moved.pipe(ye(function(e){return{source:h,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return Y(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=BT(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(dw(1),KB(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(pw(e._handles),Mw(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),sw(function(e){return Le.apply(void 0,V(e.map(function(e){return e._stateChanges.pipe(pw(e))})))}),KB(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?Aj(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?Aj(this.element.nativeElement,e):NT(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,o=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:RT(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(dw(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var o=n.element.nativeElement.parentElement;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,o=e.boundaryElement,a=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=a&&a,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s)}}]),e}()).\u0275fac=function(e){return new(e||hj)(Ps(Kl),Ps(bj,12),Ps(Od),Ps(Zc),Ps(Mu),Ps(yj,8),Ps(FM,8),Ps(vj),Ps(ku),Ps(wj,10),Ps(mj,12))},hj.\u0275dir=Ut({type:hj,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;1&e&&(wc(n,xj,1),wc(n,kj,1),wc(n,wj,1)),2&e&&(yc(i=kc())&&(t._previewTemplate=i.first),yc(i=kc())&&(t._placeholderTemplate=i.first),yc(i=kc())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&al("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Hl([{provide:mj,useExisting:hj}]),tn]}),hj._dragInstances=[],hj);function Aj(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var Cj,Sj=((Cj=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Cj)},Cj.\u0275mod=jt({type:Cj}),Cj.\u0275inj=at({providers:[vj],imports:[oR]}),Cj),Ej=function(e,t,n){if(0===n||0===t)return"";var i=e*t;return i<(n=Math.max(n,0))&&Math.min(i+t,n),"".concat(e+1," / ").concat(Math.ceil(n/t))};var Pj,Oj,Dj,Ij,Tj=((Ij=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||Ij)},Ij.\u0275mod=jt({type:Ij}),Ij.\u0275inj=at({providers:[{provide:SV,useValue:(Dj=new SV,Dj.itemsPerPageLabel="Afficher:",Dj.nextPageLabel="Page suivante",Dj.previousPageLabel="Page pr\xe9c\xe9dente",Dj.getRangeLabel=Ej,Dj)}],imports:[[BV,PN,eN,hF,yB,Sj,NV,kF,AN,MV,xF,SN,nN,Iz,sz,FV,tV,LV,WL,az,TV,rz,UL,AF],BV,PN,eN,hF,yB,Sj,NV,kF,AN,MV,xF,SN,nN,Iz,sz,FV,tV,LV,WL,az,TV,rz,UL,AF]}),Ij),Mj=((Oj=Y(function e(t,n,i){Z(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.mode&&(this.data.mode=""),null===this.data.msg&&(this.data.msg="")})).\u0275fac=function(e){return new(e||Oj)(Ps(zP),Ps(WF),Ps(BF))},Oj.\u0275cmp=Ft({type:Oj,selectors:[["ng-component"]],decls:10,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","red",3,"click"]],template:function(e,t){1&e&&(Is(0,"div"),Is(1,"h1",0),bl(2),$u(3,"translate"),Ts(),Ms(4,"div",1),$u(5,"translate"),Is(6,"div",2),Is(7,"button",3),js("click",function(){return t.dialogRef.close()}),bl(8),$u(9,"translate"),Ts(),Ts(),Ts()),2&e&&(Cl("modalContent ",t.data.mode,""),Yo(2),wl(ec(3,6,t.data.title)),Yo(2),Os("innerHTML",ec(5,8,t.data.msg),Zr),Yo(4),wl(ec(9,10,"lang.ok")))},directives:[XF,JF,$F,wF],pipes:[jP],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),Oj),Bj=((Pj=function(){function e(t,n,i,r,o,a,s,l,u){Z(this,e),this.translate=t,this.http=n,this.router=i,this.signaturesService=r,this.cookieService=o,this.authService=a,this.localStorage=s,this.dialog=l,this.menu=u}return Y(e,[{key:"canActivate",value:function(e,t){var n=this;if("login"===e.url.join("/"))return this.authService.isAuth()?(this.router.navigate(["/home"]),!1):this.http.get("../rest/authenticationInformations").pipe(ye(function(e){return n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.authService.authUri=e.authUri,n.localStorage.setAppSession(e.instanceId),!0}));if(!this.authService.authFailed){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu");var i=this.authService.getToken();if(null===i||this.authService.authFailed)return this.http.get("../rest/authenticationInformations").pipe(ye(function(e){return n.authService.authMode=e.connection,n.authService.changeKey=e.changeKey,n.authService.coreUrl=e.coreUrl,n.authService.authUri=e.authUri,n.localStorage.setAppSession(e.instanceId),null!==(i=n.authService.getToken())?(n.authService.user=JSON.parse(atob(i.split(".")[1])).user,n.translate.use(n.authService.user.preferences.lang),n.cookieService.set("maarchParapheurLang",n.authService.user.preferences.lang),n.setData(),n.authService.changeKey&&n.dialog.open(Mj,{autoFocus:!1,disableClose:!0,data:{mode:"warning",title:"lang.warnPrivateKeyTitle",msg:"lang.warnPrivateKey"}}),!0):(n.authService.setCachedUrl(t.url.replace(/^\//g,"")),n.authService.logout(),!1)}));if(void 0===this.authService.user.id){var r=JSON.parse(atob(i.split(".")[1]));this.authService.user=r.user,this.authService.authMode=r.connection,this.translate.use(this.authService.user.preferences.lang),this.cookieService.set("maarchParapheurLang",this.authService.user.preferences.lang),this.setData()}return!0}}},{key:"setData",value:function(){var e=this;0===this.authService.signatureRoles.length&&this.http.get("../rest/signatureModes").subscribe(function(t){e.authService.signatureRoles=[{id:"visa",type:"visa",color:"#135F7F"}],e.authService.signatureRoles=e.authService.signatureRoles.concat(t.map(function(e){return Object.assign(Object.assign({},e),{type:"sign"})}))}),0===this.signaturesService.signaturesList.length&&this.http.get("../rest/users/"+this.authService.user.id+"/signatures").subscribe(function(t){e.signaturesService.signaturesList=t.signatures}),void 0===this.authService.user.picture&&this.http.get("../rest/users/"+this.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture})}}]),e}()).\u0275fac=function(e){return new(e||Pj)(rr(zP),rr(Tb),rr(h_),rr($P),rr(oT),rr(tO),rr(eO),rr(KF),rr(RE))},Pj.\u0275prov=rt({token:Pj,factory:Pj.\u0275fac,providedIn:"root"}),Pj);function Rj(e,t){if(1&e&&(Is(0,"ion-col"),Is(1,"ion-button",7),Is(2,"div",8),Ms(3,"ion-icon",9),Is(4,"ion-label",10),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-note",11),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Ts()),2&e){var n=t.$implicit;Yo(1),Os("routerLink",n.route),Yo(2),Os("name",n.icon),Yo(2),wl(ec(6,4,"lang."+n.id)),Yo(3),kl(" ",ec(9,6,"lang."+n.id+"Desc"),"")}}var Lj,Fj=function(e){return[e]},Nj=((Lj=function(){function e(t,n,i){Z(this,e),this.signaturesService=t,this.authService=n,this.menu=i}return Y(e,[{key:"ngOnInit",value:function(){this.menu.enable(!1,"right-menu")}}]),e}()).\u0275fac=function(e){return new(e||Lj)(Ps($P),Ps(tO),Ps(RE))},Lj.\u0275cmp=Ft({type:Lj,selectors:[["app-administration"]],decls:12,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],[3,"ngClass"],[4,"ngFor","ngForOf"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content",null,4),Is(9,"ion-grid"),Is(10,"ion-row",5),Ss(11,Rj,10,8,"ion-col",6),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,4,"lang.administration")),Yo(5),Os("ngClass",Zu(6,Fj,t.signaturesService.mobileMode?"repeatRowsMobile":"repeatRows")),Yo(1),Os("ngForOf",t.authService.user.administrativePrivileges))},directives:[kS,tE,aS,RS,$S,pS,wS,US,Fh,Vh,fS,oS,CE,f_,xS,IS,FS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".container[_ngcontent-%COMP%]{flex:1;overflow:auto}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px;text-align:center;width:100%;display:inline-block}@media (min-width:768px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]{width:33%}}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{border-color:#f99830;padding:10px;width:90%;height:160px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:50px}.container[_ngcontent-%COMP%]   .admin-item[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]    .mat-button-wrapper{display:flex;flex-direction:column}.admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.repeatRows[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.repeatRowsMobile[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));-ms-grid-row-align:10px}"]}),Lj);function Vj(e,t){if(1&e&&(Is(0,"div",15),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function zj(e,t){if(1&e&&(Bs(0),Ss(1,Vj,3,4,"div",14),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function jj(e,t){if(1&e){var n=Fs();Is(0,"div",16),Is(1,"ion-searchbar",17),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(2,"translate"),Ts(),Ts()}2&e&&(Yo(1),Os("placeholder",ec(2,1,"lang.filter")))}function Hj(e,t){if(1&e&&(Is(0,"div",16),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function Uj(e,t){if(1&e){var n=Fs();Is(0,"ion-item",7),Is(1,"ion-label",18),Ss(2,Hj,2,1,"div",19),Ts(),Is(3,"ion-button",20),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.delete(i)}),$u(4,"translate"),Ms(5,"ion-icon",21),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Xs("routerLink","/administration/users/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,4,"lang.delete")),Os("disabled",i.id===r.authService.user.id)}}var Wj,Gj=((Wj=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.userList=[],this.loading=!0,this.displayedColumns=this.signaturesService.mobileMode?["firstname","lastname","email"]:["firstname","lastname","email","actions"]}return Y(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.userList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(ye(function(e){return e.users}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.userList=t,e.sortedData=e.userList.slice()}})}},{key:"delete",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/users/"+e.id).pipe(Lw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.userList.findIndex(function(t){return t.id===e.id});i.userList.splice(n,1),i.sortedData=i.userList.slice(),i.notificationService.success("lang.userDeleted")},error:function(e){i.notificationService.handleErrors(e)}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.userList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||Wj)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps($P),Ps(WP),Ps(tO),Ps(ME))},Wj.\u0275cmp=Ft({type:Wj,selectors:[["app-administration-users-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/users/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"disabled","title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),$u(8,"translate"),Ts(),Ts(),Is(9,"ion-toolbar",1),Is(10,"ion-buttons",2),Is(11,"ion-button",4),bl(12),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-title",5),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Is(17,"ion-content",null,6),Is(19,"ion-list"),Is(20,"ion-item",7),Is(21,"ion-label",8),js("matSortChange",function(e){return t.sortData(e)}),Ss(22,zj,2,1,"ng-container",9),Ss(23,jj,3,3,"div",10),Ts(),Is(24,"ion-button",11),Ms(25,"ion-icon"),Ts(),Ts(),Is(26,"ion-virtual-scroll",12),Ss(27,Uj,6,6,"ion-item",13),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),xl("",ec(7,10,"lang.administration")," ",ec(8,12,"lang.manage_usersAlt"),""),Yo(6),kl(" ",ec(13,14,"lang.userCreation")," "),Yo(3),xl("",t.userList.length," ",ec(16,16,"lang.manage_usersAlt"),""),Yo(6),Os("matSortActive",t.displayedColumns[1]),Yo(1),Os("ngForOf",t.displayedColumns),Yo(1),Os("ngIf",t.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",t.sortedData))},directives:[kS,tE,aS,RS,iS,AE,$S,oS,CE,f_,pS,TS,ES,IS,XV,Vh,jh,xS,OE,PE,iz,WS,SA],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),Wj);function qj(e,t){1&e&&(Ms(0,"div",5),$u(1,"translate")),2&e&&Os("innerHTML",ec(1,1,qs().data.msg),Zr)}var Yj,Zj=((Yj=Y(function e(t,n,i){Z(this,e),this.translate=t,this.data=n,this.dialogRef=i,null===this.data.msg&&(this.data.msg="")})).\u0275fac=function(e){return new(e||Yj)(Ps(zP),Ps(WF),Ps(BF))},Yj.\u0275cmp=Ft({type:Yj,selectors:[["ng-component"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"actions","btn","blue",3,"click"],["mat-button","",1,"actions","btn","red",3,"click"],["mat-dialog-content","",3,"innerHTML"]],template:function(e,t){1&e&&(Is(0,"div"),Is(1,"h1",0),bl(2),$u(3,"translate"),Ts(),Ss(4,qj,2,3,"div",1),Is(5,"div",2),Is(6,"button",3),js("click",function(){return t.dialogRef.close("yes")}),bl(7),$u(8,"translate"),Ts(),Is(9,"button",4),js("click",function(){return t.dialogRef.close("no")}),bl(10),$u(11,"translate"),Ts(),Ts(),Ts()),2&e&&(Cl("modalContent ",t.data.mode,""),Yo(2),wl(ec(3,7,t.data.title)),Yo(2),Os("ngIf",null!==t.data.msg),Yo(3),wl(ec(8,9,"lang.yes")),Yo(3),wl(ec(11,11,"lang.no")))},directives:[XF,jh,$F,wF,JF],pipes:[jP],styles:[".modalContent[_ngcontent-%COMP%]{position:relative}.mat-dialog-content[_ngcontent-%COMP%], .mat-dialog-title[_ngcontent-%COMP%]{text-align:center!important;color:#666}.mat-dialog-title[_ngcontent-%COMP%]{font-weight:700}.actions[_ngcontent-%COMP%]{width:100%;margin:10px}.close[_ngcontent-%COMP%]{position:absolute;top:-15px;right:-15px;width:40px;height:40px;font-size:20px;color:#666}.warning[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{color:#e74c3c}"]}),Yj);function Kj(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Is(4,"ion-checkbox",27),js("ionChange",function(e){En(n);var t=qs().$implicit;return qs(2).toggleSignMode(t,e.detail.checked)}),Ts(),Ts()}if(2&e){var i=qs().$implicit,r=qs(2);Yo(1),ol("color",i.color),Yo(1),wl(ec(3,5,"lang."+i.id)),Yo(2),Os("checked",r.user.signatureModes.indexOf(i.id)>-1)("disabled","stamp"===i.id)}}function Qj(e,t){if(1&e&&(Bs(0),Ss(1,Kj,5,7,"ion-item",11),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","visa"!==n.id)}}function Xj(e,t){if(1&e&&(Is(0,"ion-note",33),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(3);Yo(1),kl(" ",ec(2,1,n.handlePassword.errorMsg),"")}}function Jj(e,t){if(1&e){var n=Fs();Is(0,"ion-item",28),Is(1,"ion-button",29),js("click",function(){En(n);var e=qs(2);return e.hideNewPassword=!e.hideNewPassword}),Ms(2,"ion-icon",30),Ts(),Is(3,"ion-label",14),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-input",31),js("ngModelChange",function(e){return En(n),qs(2).passwordRest.newPassword=e})("ionChange",function(){En(n);var e=qs(2);return e.checkPasswordValidity(e.passwordRest.newPassword)}),Ts(),Ss(7,Xj,3,3,"ion-note",32),Ts()}if(2&e){var i=qs(2);Yo(2),Os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),Yo(2),wl(ec(5,5,"lang.newPassword")),Yo(2),Os("type",i.hideNewPassword?"password":"text")("ngModel",i.passwordRest.newPassword),Yo(1),Os("ngIf",i.handlePassword.error&&i.passwordRest.newPassword.length>0)}}function $j(e,t){1&e&&(Is(0,"ion-note",33),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.passwordNotMatch"),""))}function eH(e,t){1&e&&(Is(0,"ion-note",36),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.samePassword"),""))}function tH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",28),Is(1,"ion-button",29),js("click",function(){En(n);var e=qs(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),Ms(2,"ion-icon",30),Ts(),Is(3,"ion-label",14),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-input",34),js("ngModelChange",function(e){return En(n),qs(2).passwordRest.passwordConfirmation=e}),Ts(),Ss(7,$j,3,3,"ion-note",32),Ss(8,eH,3,3,"ion-note",35),Ts()}if(2&e){var i=qs(2);Yo(2),Os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),Yo(2),wl(ec(5,6,"lang.passwordConfirmation")),Yo(2),Os("type",i.hideNewPasswordConfirm?"password":"text")("ngModel",i.passwordRest.passwordConfirmation),Yo(1),Os("ngIf",i.passwordRest.passwordConfirmation!==i.passwordRest.newPassword&&i.passwordRest.passwordConfirmation.length>0),Yo(1),Os("ngIf",i.passwordRest.passwordConfirmation===i.passwordRest.newPassword&&i.passwordRest.newPassword.length>0&&i.passwordRest.passwordConfirmation.length>0&&!i.handlePassword.error)}}function nH(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"form",12,13),js("ngSubmit",function(){return En(n),qs().onSubmit()}),Is(3,"ion-content"),Is(4,"ion-item"),Is(5,"ion-label",14),bl(6),$u(7,"translate"),Ts(),Is(8,"ion-input",15),js("ngModelChange",function(e){return En(n),qs().user.login=e}),Ts(),Ts(),Is(9,"ion-item"),Is(10,"ion-label",14),bl(11),$u(12,"translate"),Ts(),Is(13,"ion-input",16),js("ngModelChange",function(e){return En(n),qs().user.firstname=e}),Ts(),Ts(),Is(14,"ion-item"),Is(15,"ion-label",14),bl(16),$u(17,"translate"),Ts(),Is(18,"ion-input",17),js("ngModelChange",function(e){return En(n),qs().user.lastname=e}),Ts(),Ts(),Is(19,"ion-item"),Is(20,"ion-label",14),bl(21),$u(22,"translate"),Ts(),Is(23,"ion-input",18),js("ngModelChange",function(e){return En(n),qs().user.email=e}),Ts(),Ts(),Is(24,"ion-item"),Is(25,"ion-label"),bl(26),$u(27,"translate"),Ts(),Is(28,"ion-toggle",19),js("ngModelChange",function(e){return En(n),qs().user.isRest=e})("ionChange",function(e){return En(n),qs().getPassRules(e)}),Ts(),Ts(),Is(29,"ion-list"),Is(30,"ion-list-header"),Is(31,"ion-label",20),bl(32),$u(33,"translate"),Ts(),Ts(),Ss(34,Qj,2,1,"ng-container",21),Ts(),Ss(35,Jj,8,7,"ion-item",22),Ss(36,tH,9,8,"ion-item",22),Is(37,"ion-item",23),Is(38,"div",24),Is(39,"ion-button",25),Is(40,"ion-label",26),bl(41),$u(42,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Rs()}if(2&e){var i=Es(2),r=qs();Yo(6),kl("",ec(7,23,"lang.login")," *"),Yo(2),Os("maxlength",128)("readonly",!r.creationMode)("ngModel",r.user.login),Yo(3),kl("",ec(12,25,"lang.firstname")," *"),Yo(2),Os("maxlength",128)("ngModel",r.user.firstname),Yo(3),kl("",ec(17,27,"lang.lastname")," *"),Yo(2),Os("maxlength",128)("ngModel",r.user.lastname),Yo(3),kl("",ec(22,29,"lang.email")," *"),Yo(2),Os("maxlength",128)("ngModel",r.user.email),Yo(3),wl(ec(27,31,"lang.restUser")),Yo(2),Os("disabled",!r.creationMode)("ngModel",r.user.isRest)("checked",r.user.isRest),Yo(4),wl(ec(33,33,"lang.signatureModes")),Yo(2),Os("ngForOf",r.authService.signatureRoles),Yo(1),Os("ngIf",r.user.isRest),Yo(1),Os("ngIf",r.user.isRest),Yo(3),Os("disabled",!i.form.valid||!r.canValidate()),Yo(2),wl(ec(42,35,"lang.validate"))}}function iH(e,t){if(1&e&&(Is(0,"ion-item"),Is(1,"ion-label"),bl(2),Ts(),Ts()),2&e){var n=t.$implicit;Yo(2),wl(n.label)}}function rH(e,t){if(1&e&&(Is(0,"ion-list"),Ss(1,iH,3,1,"ion-item",21),Ts()),2&e){var n=qs(2);Yo(1),Os("ngForOf",n.user.groups)}}function oH(e,t){1&e&&(Is(0,"ion-list",38),Is(1,"ion-item",39),Is(2,"ion-label",40),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.noAssociatedGroup")))}function aH(e,t){if(1&e&&(Bs(0),Is(1,"ion-content"),Ss(2,rH,2,1,"ion-list",11),Ss(3,oH,5,3,"ion-list",37),Ts(),Rs()),2&e){var n=qs();Yo(2),Os("ngIf",n.user.groups.length>0),Yo(1),Os("ngIf",0===n.user.groups.length)}}var sH,lH=((sH=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.creationMode=!0,this.loading=!0,this.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",isRest:!1,signatureModes:["stamp"]},this.title="",this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.currentTool="info",this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordRest={newPassword:"",passwordConfirmation:""},this.ruleText="",this.otherRuleText="",this.showPassword=!1,this.handlePassword={error:!1,errorMsg:""}}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.userCreation"),e.user={id:"",firstname:"",lastname:"",login:"",email:"",picture:"",signatureModes:["stamp"],isRest:!1},e.loading=!1):(e.creationMode=!1,e.http.get("../rest/users/"+t.id).pipe(ye(function(e){return e.user}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.user=t,e.userClone=JSON.parse(JSON.stringify(e.user)),e.title=e.user.firstname+" "+e.user.lastname,e.user.isRest&&e.getPassRules({detail:{checked:!0}})}}))})}},{key:"canValidate",value:function(){return!(this.user.isRest&&""!==this.passwordRest.newPassword&&(this.handlePassword.error||this.passwordRest.passwordConfirmation!==this.passwordRest.newPassword)||JSON.stringify(this.user)===JSON.stringify(this.userClone)&&""===this.passwordRest.newPassword)}},{key:"onSubmit",value:function(){this.creationMode?this.createUser():this.modifyUser()}},{key:"modifyUser",value:function(){var e=this;this.loading=!0,this.http.put("../rest/users/"+this.user.id,this.user).pipe(Lw(function(){return e.loading=!1}),Mw(function(){e.authService.user.id===e.user.id&&e.authService.updateUserInfoWithTokenRefresh(),""!==e.passwordRest.newPassword&&e.updateRestUser(),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userUpdated")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"updateRestUser",value:function(){var e=this,t=new ub({Authorization:"Bearer "+this.authService.getToken()});this.http.put("../rest/users/"+this.user.id+"/password",this.passwordRest,{headers:t}).subscribe(function(){e.passwordRest.newPassword="",e.passwordRest.passwordConfirmation=""},function(t){e.notificationService.handleErrors(t)})}},{key:"createUser",value:function(){var e=this;this.loading=!0,this.http.post("../rest/users",this.user).pipe(Lw(function(){return e.loading=!1}),Mw(function(t){e.user.isRest&&(e.user.id=t.id,e.updateRestUser()),e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userAdded")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"delete",value:function(){var e=this;this.dialog.open(Zj,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/users/"+e.user.id).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/users"]),e.notificationService.success("lang.userDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/users"])}},{key:"getPassRules",value:function(e){var t=this;e.detail.checked&&(this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(e){var n=[],i=[];e.rules.forEach(function(e){"minLength"===e.label?(t.passwordRules.minLength.enabled=e.enabled,t.passwordRules.minLength.value=e.value,e.enabled&&t.translate.get("lang.minLengthChar",{charLength:e.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===e.label?(t.passwordRules.complexityUpper.enabled=e.enabled,t.passwordRules.complexityUpper.value=e.value,e.enabled&&n.push("lang.upperRequired")):"complexityNumber"===e.label?(t.passwordRules.complexityNumber.enabled=e.enabled,t.passwordRules.complexityNumber.value=e.value,e.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===e.label?(t.passwordRules.complexitySpecial.enabled=e.enabled,t.passwordRules.complexitySpecial.value=e.value,e.enabled&&n.push("lang.specialCharRequired")):"renewal"===e.label?(t.passwordRules.renewal.enabled=e.enabled,t.passwordRules.renewal.value=e.value,e.enabled&&t.translate.get("lang.renewalInfo",{time:e.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===e.label&&(t.passwordRules.historyLastUse.enabled=e.enabled,t.passwordRules.historyLastUse.value=e.value,e.enabled&&t.translate.get("lang.historyUseInfo",{countPwd:e.value}).subscribe(function(e){i.push(e)}))}),t.ruleText=n.join(", "),t.otherRuleText=i.join("<br/>")},function(e){t.notificationService.handleErrors(e)}))}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"toggleSignMode",value:function(e,t){t?-1===this.user.signatureModes.indexOf(e.id)&&this.user.signatureModes.push(e.id):this.user.signatureModes=this.user.signatureModes.filter(function(t){return t!==e.id})}},{key:"initTab",value:function(e){this.currentTool=e}}]),e}()).\u0275fac=function(e){return new(e||sH)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO))},sH.\u0275cmp=Ft({type:sH,selectors:[["app-administration-user"]],decls:24,vars:13,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end"],[3,"src"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","groups",3,"disabled"],["name","people-sharp"],[4,"ngIf"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","login","required","","pattern","^[\\w.@-]*$",3,"maxlength","readonly","ngModel","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","ngModelChange"],["type","email","name","email","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"maxlength","ngModel","ngModelChange"],["slot","start","color","primary","name","isRest",3,"disabled","ngModel","checked","ngModelChange","ionChange"],["color","secondary"],[4,"ngFor","ngForOf"],["style","align-items: center;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["slot","start",3,"checked","disabled","ionChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","newPasswordRest",3,"type","ngModel","ngModelChange","ionChange"],["color","danger",4,"ngIf"],["color","danger"],["name","passwordConfirmation",3,"type","ngModel","ngModelChange"],["color","success",4,"ngIf"],["color","success"],["class","no-result",4,"ngIf"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Is(7,"ion-avatar",4),Ms(8,"img",5),Ts(),Ts(),Ts(),Is(9,"ion-header"),Is(10,"ion-toolbar"),Is(11,"ion-segment",6),js("ionChange",function(e){return t.initTab(e.detail.value)}),Is(12,"ion-segment-button",7),Is(13,"ion-label"),bl(14),$u(15,"translate"),Ts(),Ms(16,"ion-icon",8),Ts(),Is(17,"ion-segment-button",9),Is(18,"ion-label"),bl(19),$u(20,"translate"),Ts(),Ms(21,"ion-icon",10),Ts(),Ts(),Ts(),Ts(),Ss(22,nH,43,37,"ng-container",11),Ss(23,aH,4,2,"ng-container",11)),2&e&&(Os("translucent",!0),Yo(6),wl(t.title),Yo(2),Os("src",t.user.picture,Kr),Yo(3),Os("value",t.currentTool),Yo(3),wl(ec(15,9,"lang.informations")),Yo(3),Os("disabled",t.creationMode),Yo(2),wl(ec(20,11,"lang.manage_groups")),Yo(3),Os("ngIf","info"===t.currentTool),Yo(1),Os("ngIf","groups"===t.currentTool))},directives:[kS,tE,aS,RS,iS,AE,$S,nS,GS,CA,qS,IS,xS,jh,yy,Fm,py,pS,ES,SS,SA,Yy,Xy,Ky,Lm,my,eE,xA,TS,MS,Vh,oS,dS,FS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:30px}"]}),sH);function uH(e,t){if(1&e&&(Is(0,"div",15),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function cH(e,t){if(1&e&&(Bs(0),Ss(1,uH,3,4,"div",14),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function dH(e,t){if(1&e){var n=Fs();Is(0,"div",16),Is(1,"ion-searchbar",17),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(2,"translate"),Ts(),Ts()}2&e&&(Yo(1),Os("placeholder",ec(2,1,"lang.filter")))}function hH(e,t){if(1&e&&(Is(0,"div",16),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function fH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",7),Is(1,"ion-label",18),Ss(2,hH,2,1,"div",19),Ts(),Is(3,"ion-button",20),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.delete(i)}),$u(4,"translate"),Ms(5,"ion-icon",21),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Xs("routerLink","/administration/groups/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,3,"lang.delete"))}}var pH,gH=((pH=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.alertController=s,this.groupList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return Y(e,[{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.groupList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/groups").pipe(ye(function(e){return e.groups}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.groupList=t,e.sortedData=e.groupList.slice()}})}},{key:"delete",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/groups/"+e.id).pipe(Lw(function(){return i.loading=!1})).subscribe({next:function(t){var n=i.groupList.findIndex(function(t){return t.id===e.id});i.groupList.splice(n,1),i.sortedData=i.groupList.slice(),i.notificationService.success("lang.groupDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.groupList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||pH)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps($P),Ps(WP),Ps(ME))},pH.\u0275cmp=Ft({type:pH,selectors:[["app-administration-groups-list"]],viewQuery:function(e,t){var n;1&e&&(bc(IV,3),bc(XV,3)),2&e&&(yc(n=kc())&&(t.paginator=n.first),yc(n=kc())&&(t.sort=n.first))},decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/groups/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),$u(8,"translate"),Ts(),Ts(),Is(9,"ion-toolbar",1),Is(10,"ion-buttons",2),Is(11,"ion-button",4),bl(12),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-title",5),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Is(17,"ion-content",null,6),Is(19,"ion-list"),Is(20,"ion-item",7),Is(21,"ion-label",8),js("matSortChange",function(e){return t.sortData(e)}),Ss(22,cH,2,1,"ng-container",9),Ss(23,dH,3,3,"div",10),Ts(),Is(24,"ion-button",11),Ms(25,"ion-icon"),Ts(),Ts(),Is(26,"ion-virtual-scroll",12),Ss(27,fH,6,5,"ion-item",13),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),xl("",ec(7,10,"lang.administration")," ",ec(8,12,"lang.manage_groupsAlt"),""),Yo(6),kl(" ",ec(13,14,"lang.groupCreation")," "),Yo(3),xl("",t.groupList.length," ",ec(16,16,"lang.manage_groupsAlt"),""),Yo(6),Os("matSortActive",t.displayedColumns[0]),Yo(1),Os("ngForOf",t.displayedColumns),Yo(1),Os("ngIf",t.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",t.sortedData))},directives:[kS,tE,aS,RS,iS,AE,$S,oS,CE,f_,pS,TS,ES,IS,XV,Vh,jh,xS,OE,PE,iz,WS,SA],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),pH);function vH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",6),js("click",function(){En(n);var e=t.$implicit;return qs(2).selectUser(e)}),Is(1,"ion-label"),bl(2),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),xl(" ",i.firstname," ",i.lastname," ")}}function mH(e,t){if(1&e&&(Is(0,"ion-list"),Is(1,"ion-virtual-scroll",4),Ss(2,vH,3,2,"ion-item",5),Ts(),Ts()),2&e){var n=qs();Yo(1),Os("items",n.usersList)}}function yH(e,t){1&e&&(Is(0,"ion-item",7),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.emptyUsers")))}var bH,wH=((bH=function(){function e(t,n){Z(this,e),this.http=t,this.modalController=n,this.usersList=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/users?mode=all").pipe(ye(function(e){return e.users})).subscribe({next:function(t){e.usersList=t.filter(function(t){return-1===e.users.findIndex(function(e){return e.id===t.id})})}})}},{key:"selectUser",value:function(e){this.modalController.dismiss(e)}}]),e}()).\u0275fac=function(e){return new(e||bH)(Ps(Tb),Ps(LE))},bH.\u0275cmp=Ft({type:bH,selectors:[["app-users"]],inputs:{users:"users"},decls:8,vars:6,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 35%;",4,"ngIf"],["approxItemHeight","50px",2,"height","450px",3,"items"],["button","",3,"click",4,"virtualItem"],["button","",3,"click"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","35%"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Ts(),Ts(),Is(5,"ion-content"),Ss(6,mH,3,1,"ion-list",2),Ss(7,yH,4,3,"ion-item",3),Ts()),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,4,"lang.users")),Yo(3),Os("ngIf",t.usersList.length>0),Yo(1),Os("ngIf",0===t.usersList.length))},directives:[kS,tE,$S,pS,jh,TS,OE,PE,ES,IS],pipes:[jP],encapsulation:2}),bH),kH=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function xH(e,t){1&e&&(Is(0,"ion-item",18),Is(1,"ion-label",19),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),kl("",ec(3,1,"lang.privileges")," :"))}function _H(e,t){if(1&e){var n=Fs();Is(0,"ion-item",20),Is(1,"ion-toggle",21),js("ngModelChange",function(e){return t.$implicit.checked=e})("click",function(){En(n);var e=t.$implicit;return qs().togglePrivilege(e,!0)}),Ts(),Is(2,"ion-label",22),js("click",function(){En(n);var e=t.$implicit;return qs().togglePrivilege(e,!1)}),bl(3),$u(4,"translate"),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("name",i.id)("checked",i.checked)("ngModel",i.checked),Yo(2),wl(ec(4,4,"lang."+i.id+"Admin"))}}function AH(e,t){1&e&&(Is(0,"ion-item",18),Is(1,"ion-label",19),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),kl("",ec(3,1,"lang.linkedUsers")," :"))}function CH(e,t){if(1&e&&(Is(0,"div",34),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function SH(e,t){if(1&e&&(Bs(0),Ss(1,CH,3,4,"div",33),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function EH(e,t){if(1&e){var n=Fs();Is(0,"div",35),Is(1,"ion-button",36),js("click",function(){return En(n),qs(2).openUserList()}),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),kl(" ",ec(3,1,"lang.add")," "))}function PH(e,t){if(1&e&&(Is(0,"div",42),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function OH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",37),Is(1,"ion-label",38),Ss(2,PH,2,1,"div",39),Ts(),Is(3,"ion-button",40),js("click",function(e){En(n);var i=t.$implicit,r=qs(2);return e.stopPropagation(),r.unlinkUser(i)}),$u(4,"translate"),Ms(5,"ion-icon",41),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs(2);Yo(1),Xs("routerLink","/administration/users/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,3,"lang.unlinkUser"))}}function DH(e,t){if(1&e){var n=Fs();Is(0,"ion-infinite-scroll",43),js("ionInfinite",function(e){return En(n),qs(2).loadData(e)}),Ms(1,"ion-infinite-scroll-content",44),$u(2,"translate"),Ts()}2&e&&(Yo(1),Os("loadingText",ec(2,1,"lang.loadingMoreData")))}function IH(e,t){1&e&&(Is(0,"ion-item",45),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.emptyGroupUsers")))}function TH(e,t){if(1&e){var n=Fs();Is(0,"ion-content",23),Is(1,"ion-list"),Is(2,"ion-item",24),Bs(3,14),Is(4,"ion-label",25),js("matSortChange",function(e){return En(n),qs().sortData(e)}),Ss(5,SH,2,1,"ng-container",26),Ss(6,EH,4,3,"div",27),Ts(),Rs(),Is(7,"ion-button",28),Ms(8,"ion-icon"),Ts(),Ts(),Is(9,"ion-virtual-scroll",29),Ss(10,OH,6,5,"ion-item",30),Ts(),Ss(11,DH,3,3,"ion-infinite-scroll",31),Ts(),Ss(12,IH,4,3,"ion-item",32),Ts()}if(2&e){var i=qs();Yo(4),Os("matSortActive",i.displayedColumns[1]),Yo(1),Os("ngForOf",i.displayedColumns),Yo(1),Os("ngIf",i.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",i.sortedData),Yo(2),Os("ngIf",i.group.users.length>7),Yo(1),Os("ngIf",0===i.group.users.length)}}function MH(e,t){if(1&e){var n=Fs();Is(0,"ion-button",46),js("click",function(){return En(n),qs().deleteGroup()}),Is(1,"ion-label",16),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),wl(ec(3,1,"lang.delete")))}var BH,RH=((BH=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.popoverController=u,this.modalController=c,this.alertController=d,this.latinisePipe=h,this.creationMode=!0,this.loading=!0,this.title="",this.displayedColumns=["firstname","lastname","actions"],this.group={id:"",label:"",users:[],privileges:[]},this.groupClone=JSON.parse(JSON.stringify(this.group))}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.groupCreation"),e.loading=!1,e.groupClone=JSON.parse(JSON.stringify(e.group))):(e.creationMode=!1,e.usersList=[],e.http.get("../rest/groups/"+t.id).pipe(ye(function(e){return e.group}),Lw(function(){e.loading=!1})).subscribe({next:function(t){e.group=t,e.groupClone=JSON.parse(JSON.stringify(e.group)),e.title=e.group.label,e.updateDataTable()}}),e.http.get("../rest/users?mode=all").pipe(ye(function(e){return e.users})).subscribe({next:function(t){e.usersList=t}}))})}},{key:"updateDataTable",value:function(){this.sortedData=this.group.users.slice()}},{key:"openUserList",value:function(e){return kH(this,void 0,void 0,U().mark(function e(){var t,n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:wH,componentProps:{users:this.group.users}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,void 0!==(i=n.data)&&this.linkUser(i);case 10:case"end":return e.stop()}},e,this)}))}},{key:"canValidate",value:function(){return this.group.label!==this.groupClone.label}},{key:"onSubmit",value:function(){this.creationMode?this.createGroup():this.modifyGroup()}},{key:"linkUser",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/users",{userId:e.id}).subscribe({next:function(){t.group.users.push(e),t.updateDataTable(),t.notificationService.success("lang.userAdded")}})}},{key:"unlinkUser",value:function(e){return kH(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!==this.authService.user.id){t.next=8;break}return t.next=3,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.deleteUser(e)}}]});case 3:return n=t.sent,t.next=6,n.present();case 6:t.next=9;break;case 8:this.deleteUser(e);case 9:case"end":return t.stop()}},t,this)}))}},{key:"deleteUser",value:function(e){var t=this;this.http.delete("../rest/groups/"+this.group.id+"/users/"+e.id,{}).subscribe({next:function(){var n=t.group.users.findIndex(function(t){return t.id===e.id});t.group.users.splice(n,1),t.updateDataTable(),t.notificationService.success("lang.userDeleted")}})}},{key:"modifyGroup",value:function(){var e=this;this.loading=!0,this.http.put("../rest/groups/"+this.group.id,this.group).subscribe({next:function(){e.router.navigate(["/administration/groups"]),e.notificationService.success("lang.groupUpdated")}})}},{key:"createGroup",value:function(){var e=this;this.loading=!0,this.http.post("../rest/groups",this.group).subscribe({next:function(t){e.router.navigate(["/administration/groups/"+t.id]),e.notificationService.success("lang.groupAdded")}})}},{key:"deleteGroup",value:function(){return kH(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){n.http.delete("../rest/groups/"+n.group.id).subscribe({next:function(){n.router.navigate(["/administration/groups"]),n.notificationService.success("lang.groupDeleted")}})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"togglePrivilege",value:function(e,t){return kH(this,void 0,void 0,U().mark(function n(){var i,r=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("manage_groups"!==e.id||!e.checked){n.next=9;break}return t||(e.checked=!e.checked),n.next=4,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),message:this.translate.instant("lang.groupWarnMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){e.checked=!e.checked}},{text:this.translate.instant("lang.yes"),handler:function(){r.updatePrivilege(e)}}]});case 4:return i=n.sent,n.next=7,i.present();case 7:n.next=10;break;case 9:t||(e.checked=!e.checked),setTimeout(function(){r.updatePrivilege(e)},200);case 10:case"end":return n.stop()}},n,this)}))}},{key:"updatePrivilege",value:function(e){var t=this;this.http.put("../rest/groups/"+this.group.id+"/privilege/"+e.id,{checked:e.checked}).subscribe({next:function(){t.notificationService.success("lang.privilegeUpdated"),t.authService.updateUserInfoWithTokenRefresh()}})}},{key:"cancel",value:function(){this.router.navigate(["/administration/groups"])}},{key:"sortData",value:function(e){var t=this.group.users.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}},{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.group.users.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"loadData",value:function(e){var t=this;this.http.get("../rest/groups/"+this.group.id).pipe(Mw(function(n){t.group.users=n.group.users,e.target.complete(),e.target.disabled=!0})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||BH)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(FE),Ps(LE),Ps(ME),Ps(kT))},BH.\u0275cmp=Ft({type:BH,selectors:[["app-administration-group"]],viewQuery:function(e,t){var n;1&e&&(bc(IV,1),bc(XV,1)),2&e&&(yc(n=kc())&&(t.paginator=n.first),yc(n=kc())&&(t.sort=n.first))},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"maxlength","ngModel","ngModelChange"],["lines","none",4,"ngIf"],[2,"display","grid","grid-gap","10px"],["style","cursor: pointer",4,"ngFor","ngForOf"],[2,"margin-left","4x","display","flex","width","50%",3,"placeholder","ionChange"],["style","height: 400px; overflow-y: auto;",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click",4,"ngIf"],["lines","none"],["color","secondary"],[2,"cursor","pointer"],["slot","start","color","primary",3,"name","checked","ngModel","ngModelChange","click"],[3,"click"],[2,"height","400px","overflow-y","auto"],[2,"position","sticky","top","0px","z-index","1"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1;text-align: right;",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none","style","text-align: center; font-size: 20px; color: gray; margin-top: 5px;",4,"ngIf"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1","text-align","right"],["slot","end","color","primary","fille","outline","shape","round",3,"click"],[2,"display","flex"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","close-outline"],[2,"flex","1"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","none",2,"text-align","center","font-size","20px","color","gray","margin-top","5px"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"click"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Is(7,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-content"),Is(10,"ion-item"),Is(11,"ion-label",6),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",7),js("ngModelChange",function(e){return t.group.label=e}),Ts(),Ts(),Ss(15,xH,4,3,"ion-item",8),Is(16,"div",9),Ss(17,_H,5,6,"ion-item",10),Ts(),Ss(18,AH,4,3,"ion-item",8),Is(19,"ion-searchbar",11),js("ionChange",function(e){return t.applyFilter(e.detail.value)}),$u(20,"translate"),Ts(),Ss(21,TH,13,6,"ion-content",12),Is(22,"ion-item",13),Is(23,"div",14),Is(24,"ion-button",15),Is(25,"ion-label",16),bl(26),$u(27,"translate"),Ts(),Ts(),Ss(28,MH,4,3,"ion-button",17),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(6),wl(t.title),Yo(6),kl("",ec(13,17,"lang.label")," *"),Yo(2),Os("maxlength",128)("ngModel",t.group.label),Yo(1),Os("ngIf",!t.creationMode),Yo(1),al("grid-2-col",t.signaturesService.mobileMode)("grid-3-col",!t.signaturesService.mobileMode),Yo(1),Os("ngForOf",t.group.privileges),Yo(1),Os("ngIf",!t.creationMode),Yo(1),Os("placeholder",ec(20,19,"lang.filter")),Yo(2),Os("ngIf",!t.creationMode),Yo(3),Os("disabled",!n.form.valid||!t.canValidate()),Yo(2),wl(ec(27,21,"lang.validate")),Yo(2),Os("ngIf",!t.creationMode)}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Ky,Lm,my,jh,Vh,WS,oS,eE,xA,TS,XV,xS,OE,PE,iz,CE,f_,AS,CS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".privilegesList[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px;display:inline-block;width:100%}@media (min-width:768px){.privilegesList[_ngcontent-%COMP%]{width:50%}}@media (min-width:992px){.privilegesList[_ngcontent-%COMP%]{width:33%}}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center;margin-top:30px}legend[_ngcontent-%COMP%]{color:#f99830}.grid-2-col[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.grid-3-col[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}"]}),BH);function LH(e,t){if(1&e&&(Is(0,"ion-select-option",10),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n.id)("disabled",!n.allowed),Yo(1),kl(" ",ec(2,3,"lang."+n.id+"Connection"),"")}}function FH(e,t){if(1&e){var n=Fs();Is(0,"ion-select",8),js("ionChange",function(e){return En(n),qs().changeConnection(e.detail.value)}),$u(1,"translate"),Ss(2,LH,3,5,"ion-select-option",9),Ts()}if(2&e){var i=qs();Qs("cancelText",ec(1,3,"lang.cancel")),Os("value",i.currentConnection.id),Yo(2),Os("ngForOf",i.connectionList)}}function NH(e,t){if(1&e&&(Is(0,"ion-col"),Is(1,"ion-button",11),Is(2,"div",12),Ms(3,"ion-icon",13),Is(4,"ion-label",14),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-note",15),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Ts()),2&e){var n=t.$implicit;Yo(1),Os("routerLink",n.route),Yo(2),Os("name",n.icon),Yo(2),kl("",ec(6,4,"lang."+n.id)," "),Yo(3),kl(" ",ec(9,6,"lang."+n.id+"Desc"),"")}}var VH,zH=((VH=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.alertController=r,this.authService=o,this.loading=!0,this.privileges=[{id:"manage_ldap_configurations",icon:"server-sharp",route:"/administration/connections/ldaps"},{id:"manage_cas_configuration",icon:"server-sharp",route:"/administration/connections/cas"}],this.id=0,this.label="",this.connectionList=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/configurations",{params:{identifier:"connection"}}).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.label=t.configurations.label,e.id=t.configurations.id,e.connectionList=t.configurations.availableConnections;var n=e.connectionList.findIndex(function(e){return e.id===t.configurations.value});e.currentConnection=void 0!==e.connectionList[n]?e.connectionList[n]:e.connectionList[0]}})}},{key:"changeConnection",value:function(e){return t=this,i=U().mark(function t(){var n=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.http.patch("../rest/configurations/"+this.id,{label:this.label,value:e}).pipe(Lw(function(){return n.loading=!1})).subscribe({next:function(){n.authService.updateUserInfoWithTokenRefresh(),n.notificationService.success("lang.connectionModeUpdated"),n.authService.authMode=e}});case 1:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||VH)(Ps(Tb),Ps($P),Ps(WP),Ps(ME),Ps(tO))},VH.\u0275cmp=Ft({type:VH,selectors:[["app-administration-connection"]],decls:18,vars:9,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["mainContent",""],["color","secondary"],[3,"value","cancelText","ionChange",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"value","cancelText","ionChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["expand","block","size","large","fill","outline","color","secondary",2,"height","200px",3,"routerLink"],[1,"admin-content"],["color","primary",2,"font-size","70px",3,"name"],["color","primary",2,"white-space","normal"],[2,"font-size","8px","white-space","normal","padding","10px"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"ion-content",null,4),Is(10,"ion-item"),Is(11,"ion-label",5),bl(12),$u(13,"translate"),Ts(),Ss(14,FH,3,5,"ion-select",6),Ts(),Is(15,"ion-grid"),Is(16,"ion-row"),Ss(17,NH,10,8,"ion-col",7),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,5,"lang.manage_connections")),Yo(6),wl(ec(13,7,"lang.connectionMode")),Yo(2),Os("ngIf",t.currentConnection),Yo(3),Os("ngForOf",t.privileges))},directives:[kS,tE,aS,RS,iS,AE,$S,pS,ES,IS,jh,wS,US,Vh,YS,CA,ZS,fS,oS,CE,f_,xS,FS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",".admin-desc[_ngcontent-%COMP%]{white-space:normal;font-size:10px;line-height:15px;text-align:justify;color:grey;height:60px;overflow:auto}.admin-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),VH);function jH(e,t){if(1&e&&(Is(0,"div",15),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Os("mat-sort-header",n),Yo(1),kl(" ",ec(2,2,"lang."+n)," ")}}function HH(e,t){if(1&e&&(Bs(0),Ss(1,jH,3,4,"div",14),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","actions"!==n)}}function UH(e,t){if(1&e){var n=Fs();Is(0,"div",16),Is(1,"ion-searchbar",17),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(2,"translate"),Ts(),Ts()}2&e&&(Yo(1),Os("placeholder",ec(2,1,"lang.filter")))}function WH(e,t){if(1&e&&(Is(0,"div",16),bl(1),Ts()),2&e){var n=t.$implicit,i=qs().$implicit;Yo(1),kl(" ",i[n]," ")}}function GH(e,t){if(1&e){var n=Fs();Is(0,"ion-item",7),Is(1,"ion-label",18),Ss(2,WH,2,1,"div",19),Ts(),Is(3,"ion-button",20),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.delete(i)}),$u(4,"translate"),Ms(5,"ion-icon",21),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Xs("routerLink","/administration/connections/ldaps/",i.id,""),Yo(1),Os("ngForOf",r.displayedColumns),Yo(1),Qs("title",ec(4,3,"lang.delete"))}}var qH,YH=((qH=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.signaturesService=o,this.notificationService=a,this.authService=s,this.alertController=l,this.ldapList=[],this.loading=!0,this.displayedColumns=["label","actions"]}return Y(e,[{key:"updateDataTable",value:function(){this.sortedData=this.ldapList.slice()}},{key:"applyFilter",value:function(e){var t=this;e=this.latinisePipe.transform(e.toLowerCase()),this.sortedData=this.ldapList.filter(function(n){var i=!1;return t.displayedColumns.forEach(function(r){n[r]&&t.latinisePipe.transform(n[r].toLowerCase()).includes(e)&&(i=!0)}),i})}},{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){var e=this;this.http.get("../rest/configurations",{params:{identifier:"ldapServer"}}).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldapList=t.configurations,e.updateDataTable()}})}},{key:"delete",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/configurations/"+e.id).pipe(Lw(function(){return i.loading=!1})).subscribe({next:function(){var t=i.ldapList.findIndex(function(t){return t.id===e.id});i.ldapList.splice(t,1),i.updateDataTable(),i.notificationService.success("lang.ldapDeleted")}})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"sortData",value:function(e){var t=this.ldapList.slice();this.sortedData=e.active&&""!==e.direction?t.sort(function(t,n){return function(e,t,n){return(e<t?-1:1)*(n?1:-1)}(t[e.active],n[e.active],"asc"===e.direction)}):t}}]),e}()).\u0275fac=function(e){return new(e||qH)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps($P),Ps(WP),Ps(tO),Ps(ME))},qH.\u0275cmp=Ft({type:qH,selectors:[["app-administration-ldap-list"]],decls:28,vars:18,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["fill","outline","shape","round","routerLink","/administration/connections/ldaps/new"],["slot","end","color","secondary"],["mainContent",""],[2,"display","flex"],["color","primary","matSort","","matSortDirection","asc",2,"display","flex","font-size","12px","align-items","center",3,"matSortActive","matSortChange"],[4,"ngFor","ngForOf"],["style","flex: 1",4,"ngIf"],["slot","end","fill","clear","shape","round","disabled",""],["approxItemHeight","50px",3,"items"],["style","display: flex;",4,"virtualItem"],["disableClear","","style","flex: 1",3,"mat-sort-header",4,"ngIf"],["disableClear","",2,"flex","1",3,"mat-sort-header"],[2,"flex","1"],[2,"padding","1px",3,"placeholder","ionChange"],[2,"display","flex","cursor","pointer",3,"routerLink"],["style","flex: 1",4,"ngFor","ngForOf"],["slot","end","fill","clear","shape","round",3,"title","click"],["color","danger","slot","icon-only","name","trash"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),$u(8,"translate"),Ts(),Ts(),Is(9,"ion-toolbar",1),Is(10,"ion-buttons",2),Is(11,"ion-button",4),bl(12),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-title",5),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Is(17,"ion-content",null,6),Is(19,"ion-list"),Is(20,"ion-item",7),Is(21,"ion-label",8),js("matSortChange",function(e){return t.sortData(e)}),Ss(22,HH,2,1,"ng-container",9),Ss(23,UH,3,3,"div",10),Ts(),Is(24,"ion-button",11),Ms(25,"ion-icon"),Ts(),Ts(),Is(26,"ion-virtual-scroll",12),Ss(27,GH,6,5,"ion-item",13),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),xl("",ec(7,10,"lang.administration")," ",ec(8,12,"lang.manage_ldap_configurationsAlt")," "),Yo(6),kl(" ",ec(13,14,"lang.ldapCreation")," "),Yo(3),xl("",t.ldapList.length," ",ec(16,16,"lang.manage_ldap_configurationsAlt"),""),Yo(6),Os("matSortActive",t.displayedColumns[0]),Yo(1),Os("ngForOf",t.displayedColumns),Yo(1),Os("ngIf",t.displayedColumns.indexOf("actions")>-1),Yo(3),Os("items",t.sortedData))},directives:[kS,tE,aS,RS,iS,AE,$S,oS,CE,f_,pS,TS,ES,IS,XV,Vh,jh,xS,OE,PE,iz,WS,SA],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),qH);function ZH(e,t){return t?function(n){return n.pipe(ZH(function(n,i){return Ee(e(n,i)).pipe(ye(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new KH(e))}}var KH=function(){function e(t){Z(this,e),this.project=t}return Y(e,[{key:"call",value:function(e,t){return t.subscribe(new QH(e,this.project))}}]),e}(),QH=function(e){E(n,e);var t=O(n);function n(e,i){var r;return Z(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return Y(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new Pe(this),n=this.destination;n.add(t);var i=De(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(Oe);function XH(e,t){1&e&&(Bs(0),bl(1),$u(2,"translate"),Rs()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.connectionInProgress"),"... "))}function JH(e,t){if(1&e&&(Bs(0),bl(1),Rs()),2&e){var n=qs(2);Yo(1),kl(" ",n.ldapTest.result," ")}}function $H(e,t){if(1&e&&(Is(0,"div",16),Ss(1,XH,3,3,"ng-container",17),Ss(2,JH,2,1,"ng-container",17),Ts()),2&e){var n=qs();Yo(1),Os("ngIf",n.loadingTest),Yo(1),Os("ngIf",""!==n.ldapTest.result)}}var eU,tU=((eU=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.translate=n,this.latinisePipe=i,this.dialog=r,this.notificationService=o,this.alertController=a,this.loadingTest=!1}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"testLdap",value:function(){var e=this;this.loadingTest=!0,this.ldapTest.result="",this.canValidate?this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Mw(function(){e.notificationService.success("lang.ldapUpdated")}),ZH(function(){return e.http.get("../rest/configurations/"+e.ldap.id+"/connection",{params:{login:e.ldapTest.login,password:e.ldapTest.password}})}),Mw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),Lw(function(){return e.loadingTest=!1}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe():this.http.get("../rest/configurations/"+this.ldap.id+"/connection",{params:{login:this.ldapTest.login,password:this.ldapTest.password}}).pipe(Mw(function(t){e.ldapTest.result=t.informations,t.connection&&e.notificationService.success("lang.ldapConnectionSucceeded")}),Lw(function(){return e.loadingTest=!1}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||eU)(Ps(Tb),Ps(zP),Ps(kT),Ps(KF),Ps(WP),Ps(ME))},eU.\u0275cmp=Ft({type:eU,selectors:[["app-check-connection"]],inputs:{ldapTest:"ldapTest",ldap:"ldap",canValidate:"canValidate"},decls:45,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","login","required","",3,"ngModel","ngModelChange"],["name","password","required","",3,"ngModel","ngModelChange"],["color","secondary"],["name","uri","readonly","",3,"ngModel","ngModelChange"],["name","pathLogin","readonly","",3,"value"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],[1,"bash"],[4,"ngIf"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"form",3,4),js("ngSubmit",function(){return t.testLdap()}),Is(9,"ion-content",null,5),Is(11,"ion-item"),Is(12,"ion-label",6),bl(13),$u(14,"translate"),Ts(),Is(15,"ion-input",7),js("ngModelChange",function(e){return t.ldapTest.login=e}),Ts(),Ts(),Is(16,"ion-item"),Is(17,"ion-label",6),bl(18),$u(19,"translate"),Ts(),Is(20,"ion-input",8),js("ngModelChange",function(e){return t.ldapTest.password=e}),Ts(),Ts(),Is(21,"ion-card"),Is(22,"ion-card-header"),Is(23,"ion-card-subtitle",9),bl(24),$u(25,"translate"),Ts(),Ts(),Is(26,"ion-card-content"),Is(27,"ion-item"),Is(28,"ion-label",1),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-input",10),js("ngModelChange",function(e){return t.ldap.value.uri=e}),Ts(),Ts(),Is(32,"ion-item"),Is(33,"ion-label",1),bl(34),$u(35,"translate"),Ts(),Ms(36,"ion-input",11),Ts(),Ss(37,$H,3,2,"div",12),Ts(),Ts(),Ts(),Is(38,"ion-footer",13),Is(39,"ion-toolbar"),Is(40,"ion-buttons",14),Is(41,"ion-button",15),Is(42,"ion-label"),bl(43),$u(44,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(5),wl(ec(6,14,"lang.connectionTest")),Yo(8),kl("",ec(14,16,"lang.login")," *"),Yo(2),Os("ngModel",t.ldapTest.login),Yo(3),kl("",ec(19,18,"lang.password")," *"),Yo(2),Os("ngModel",t.ldapTest.password),Yo(4),kl("",ec(25,20,"lang.ldapInformations")," :"),Yo(5),kl("",ec(30,22,"lang.uri")," :"),Yo(2),Os("ngModel",t.ldap.value.uri),Yo(3),kl("",ec(35,24,"lang.login")," :"),Yo(2),Os("value",t.ldap.value.prefix?t.ldap.value.prefix+"\\"+t.ldapTest.login+t.ldap.value.suffix:t.ldapTest.login+t.ldap.value.suffix),Yo(1),Os("ngIf",""!==t.ldapTest.result||t.loadingTest),Yo(4),Os("disabled",!n.form.valid||t.loadingTest),Yo(2),wl(ec(44,26,"lang.connectionTest"))}},directives:[kS,tE,aS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Lm,my,sS,uS,cS,lS,jh,bS,oS],pipes:[jP],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),eU);function nU(e,t){if(1&e){var n=Fs();Is(0,"ion-button",18),js("click",function(){return En(n),qs().checkConnection()}),Is(1,"ion-label",15),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),wl(ec(3,1,"lang.connectionTest")))}function iU(e,t){if(1&e){var n=Fs();Is(0,"ion-button",19),js("click",function(){return En(n),qs().delete()}),Is(1,"ion-label",15),bl(2),$u(3,"translate"),Ts(),Ts()}if(2&e){var i=qs();Os("disabled","ldap"===i.authService.authMode&&1===i.ldap.count),Yo(2),wl(ec(3,2,"lang.delete"))}}var rU,oU=((rU=function(){function e(t,n,i,r,o,a,s,l,u){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.modalController=u,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.ldapTest={login:"",password:"",result:""},this.ldap={id:0,label:"",identifier:"ldapServer",value:{uri:"",ssl:!1,prefix:"",suffix:"",baseDN:""}},this.title=""}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.ldapTest.login=this.authService.user.login,this.route.params.subscribe(function(t){void 0===t.id?(e.creationMode=!0,e.title=e.translate.instant("lang.ldapCreation"),e.loading=!1):(e.creationMode=!1,e.http.get("../rest/configurations/"+t.id).pipe(ye(function(e){return e.configuration}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.ldap=t,e.ldapClone=JSON.parse(JSON.stringify(e.ldap)),e.title=e.ldap.label}}))})}},{key:"canValidate",value:function(){return JSON.stringify(this.ldap)!==JSON.stringify(this.ldapClone)}},{key:"onSubmit",value:function(){this.creationMode?this.createLdap():this.modifyLdap()}},{key:"modifyLdap",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/"+this.ldap.id,this.ldap).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapUpdated")}})}},{key:"createLdap",value:function(){var e=this;this.loading=!0,this.http.post("../rest/configurations",this.ldap).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapAdded")}})}},{key:"delete",value:function(){var e=this;this.dialog.open(Zj,{autoFocus:!1,data:{mode:"",title:"lang.confirmMsg",msg:""}}).afterClosed().subscribe(function(t){"yes"===t&&(e.loading=!0,e.http.delete("../rest/configurations/"+e.ldap.id).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.router.navigate(["/administration/connections/ldaps"]),e.notificationService.success("lang.ldapDeleted")}}))})}},{key:"cancel",value:function(){this.router.navigate(["/administration/connections/ldaps"])}},{key:"checkConnection",value:function(e){return t=this,i=U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:tU,componentProps:{ldapTest:this.ldapTest,ldap:this.ldap,canValidate:this.canValidate()}});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||rU)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(LE))},rU.\u0275cmp=Ft({type:rU,selectors:[["app-administration-ldap"]],decls:49,vars:28,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["name","uri","required","",3,"ngModel","ngModelChange"],["name","baseDN",3,"ngModel","ngModelChange"],["name","prefix",3,"ngModel","ngModelChange"],["name","suffix",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click",4,"ngIf"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],["type","button","shape","round","size","large","fill","outline","color","danger",3,"disabled","click"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Is(7,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-content"),Is(10,"ion-item"),Is(11,"ion-label",6),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",7),js("ngModelChange",function(e){return t.ldap.label=e}),Ts(),Ts(),Is(15,"ion-item"),Is(16,"ion-label",6),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-input",8),js("ngModelChange",function(e){return t.ldap.value.uri=e}),Ts(),Ts(),Is(20,"ion-item"),Is(21,"ion-label",6),bl(22),$u(23,"translate"),Ts(),Is(24,"ion-input",9),js("ngModelChange",function(e){return t.ldap.value.baseDN=e}),Ts(),Is(25,"ion-note"),bl(26,"ex: dc=maarch,dc=com"),Ts(),Ts(),Is(27,"ion-item"),Is(28,"ion-label",6),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-input",10),js("ngModelChange",function(e){return t.ldap.value.prefix=e}),Ts(),Is(32,"ion-note"),bl(33,"ex: MAARCH"),Ts(),Ts(),Is(34,"ion-item"),Is(35,"ion-label",6),bl(36),$u(37,"translate"),Ts(),Is(38,"ion-input",11),js("ngModelChange",function(e){return t.ldap.value.suffix=e}),Ts(),Is(39,"ion-note"),bl(40,"ex: @maarch.com"),Ts(),Ts(),Is(41,"ion-item",12),Is(42,"div",13),Is(43,"ion-button",14),Is(44,"ion-label",15),bl(45),$u(46,"translate"),Ts(),Ts(),Ss(47,nU,4,3,"ion-button",16),Ss(48,iU,4,4,"ion-button",17),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(6),wl(t.title),Yo(6),kl("",ec(13,16,"lang.label")," *"),Yo(2),Os("ngModel",t.ldap.label),Yo(3),kl("",ec(18,18,"lang.uri")," *"),Yo(2),Os("ngModel",t.ldap.value.uri),Yo(3),wl(ec(23,20,"lang.baseDN")),Yo(2),Os("ngModel",t.ldap.value.baseDN),Yo(5),wl(ec(30,22,"lang.prefix")),Yo(2),Os("ngModel",t.ldap.value.prefix),Yo(5),wl(ec(37,24,"lang.suffix")),Yo(2),Os("ngModel",t.ldap.value.suffix),Yo(5),Os("disabled",!n.form.valid||!t.canValidate()),Yo(2),wl(ec(46,26,"lang.validate")),Yo(2),Os("ngIf",!t.creationMode),Yo(1),Os("ngIf",!t.creationMode)}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Lm,my,FS,oS,jh],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),rU);function aU(e,t){if(1&e&&(Is(0,"ion-item"),Ms(1,"ion-icon",13),Is(2,"ion-label",14),bl(3),$u(4,"translate"),Ts(),Ts()),2&e){var n=qs();Yo(1),Os("color","close-outline"===n.emailSendResult.icon?"danger":"primary")("name",n.emailSendResult.icon),Yo(1),Os("color","close-outline"===n.emailSendResult.icon?"danger":"primary"),Yo(1),wl(ec(4,4,n.emailSendResult.msg))}}function sU(e,t){if(1&e&&(Is(0,"div",15),bl(1),Ts()),2&e){var n=qs();Yo(1),kl(" ",n.emailSendResult.debug," ")}}var lU,uU=((lU=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.translate=n,this.dialog=i,this.notificationService=r,this.alertController=o,this.emailSendLoading=!1,this.emailSendResult={icon:"",msg:"",debug:"",error:!1}}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"testEmailSend",value:function(){var e=this;this.emailSendResult={icon:"paper-plane-outline",msg:"lang.emailSendInProgress",debug:"",error:!1};var t={sender:this.sendmailFrom,recipients:[this.recipientTest],subject:"["+this.translate.instant("lang.doNotReply")+"] "+this.translate.instant("lang.emailSendTest"),status:"EXPRESS",body:this.translate.instant("lang.emailSendTest"),isHtml:!1};this.emailSendLoading=!0,this.http.post("../rest/emails",t).pipe(Mw(function(t){e.emailSendResult=t.isSent?{icon:"checkmark-outline",msg:"lang.emailSendSuccess",debug:"",error:!1}:{icon:"close-outline",msg:"lang.emailSendFailed",debug:t.informations,error:!0}}),Lw(function(){return e.emailSendLoading=!1})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||lU)(Ps(Tb),Ps(zP),Ps(KF),Ps(WP),Ps(ME))},lU.\u0275cmp=Ft({type:lU,selectors:[["app-check-email-connection"]],inputs:{profileInfo:"profileInfo",sendmailFrom:"sendmailFrom",recipientTest:"recipientTest"},decls:25,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],[2,"display","contents",3,"ngSubmit"],["adminTestForm","ngForm"],["mainContent",""],["color","secondary","position","floating"],["name","recipientTest","required","","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],[4,"ngIf"],["class","bash",4,"ngIf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled"],["slot","start",3,"color","name"],[3,"color"],[1,"bash"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"form",3,4),js("ngSubmit",function(){return t.testEmailSend()}),Is(9,"ion-content",null,5),Is(11,"ion-item"),Is(12,"ion-label",6),bl(13),$u(14,"translate"),Ts(),Is(15,"ion-input",7),js("ngModelChange",function(e){return t.recipientTest=e}),Ts(),Ts(),Ss(16,aU,5,6,"ion-item",8),Ss(17,sU,2,1,"div",9),Ts(),Is(18,"ion-footer",10),Is(19,"ion-toolbar"),Is(20,"ion-buttons",11),Is(21,"ion-button",12),Is(22,"ion-label"),bl(23),$u(24,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(5),wl(ec(6,9,"lang.emailSendTest")),Yo(8),kl("",ec(14,11,"lang.mailTo")," *"),Yo(2),Os("ngModel",t.recipientTest)("disabled",t.emailSendLoading),Yo(1),Os("ngIf",""!=t.emailSendResult.msg),Yo(1),Os("ngIf",t.emailSendResult.error),Yo(4),Os("disabled",!n.form.valid||t.emailSendLoading),Yo(2),wl(ec(24,13,"lang.connectionTest"))}},directives:[kS,tE,aS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Xy,Lm,my,jh,bS,oS,xS],pipes:[jP],styles:[".bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px}"]}),lU);function cU(e,t){if(1&e&&(Is(0,"ion-select-option",27),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n.id),Yo(1),kl("",ec(2,2,n.label)," ")}}function dU(e,t){if(1&e&&(Is(0,"ion-select-option",27),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n.id),Yo(1),kl(" ",ec(2,2,n.label)," ")}}function hU(e,t){if(1&e){var n=Fs();Is(0,"form",5,6),js("ngSubmit",function(){return En(n),qs().onSubmit()}),Is(2,"ion-content"),Is(3,"ion-item"),Is(4,"ion-label",7),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-select",8),js("ngModelChange",function(e){return En(n),qs().sendmail.type=e}),Ss(8,cU,3,4,"ion-select-option",9),Ts(),Ts(),Is(9,"ion-grid"),Is(10,"ion-row"),Is(11,"ion-col",10),Is(12,"ion-item"),Is(13,"ion-label",7),bl(14),$u(15,"translate"),Ts(),Is(16,"ion-select",11),js("ngModelChange",function(e){return En(n),qs().sendmail.secure=e}),Ss(17,dU,3,4,"ion-select-option",9),Ts(),Ts(),Ts(),Is(18,"ion-col",12),Is(19,"ion-item"),Is(20,"ion-label",7),bl(21),$u(22,"translate"),Ts(),Is(23,"ion-input",13),js("ngModelChange",function(e){return En(n),qs().sendmail.host=e}),Ts(),Ts(),Ts(),Is(24,"ion-col",10),Is(25,"ion-item"),Is(26,"ion-label",7),bl(27),$u(28,"translate"),Ts(),Is(29,"ion-input",14),js("ngModelChange",function(e){return En(n),qs().sendmail.port=e}),Ts(),Ts(),Ts(),Ts(),Ts(),Is(30,"ion-item"),Is(31,"ion-toggle",15),js("ngModelChange",function(e){return En(n),qs().sendmail.auth=e})("ngModelChange",function(){return En(n),qs().cleanAuthInfo()}),Ts(),Is(32,"ion-label"),bl(33),$u(34,"translate"),Ts(),Ts(),Is(35,"ion-item"),Is(36,"ion-label",7),bl(37),$u(38,"translate"),Ts(),Is(39,"ion-input",16),js("ngModelChange",function(e){return En(n),qs().sendmail.user=e}),Ts(),Ts(),Is(40,"ion-item",17),Is(41,"ion-button",18),js("click",function(){En(n);var e=qs();return e.hidePassword=!e.hidePassword}),Ms(42,"ion-icon",19),Ts(),Is(43,"ion-label",7),bl(44),Ts(),Is(45,"ion-input",20),js("ngModelChange",function(e){return En(n),qs().sendmail.password=e}),Ts(),Ts(),Is(46,"ion-item"),Is(47,"ion-label",7),bl(48),$u(49,"translate"),Ts(),Is(50,"ion-input",21),js("ngModelChange",function(e){return En(n),qs().sendmail.from=e}),Ts(),Ts(),Is(51,"ion-item",22),Is(52,"div",23),Is(53,"ion-button",24),js("click",function(){return En(n),qs().checkConnection()}),Is(54,"ion-label",25),bl(55),$u(56,"translate"),Ts(),Ts(),Is(57,"ion-button",26),Is(58,"ion-label",25),bl(59),$u(60,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=Es(1),r=qs();Yo(5),kl("",ec(6,34,"lang.configurationType")," *"),Yo(2),Os("ngModel",r.sendmail.type),Yo(1),Os("ngForOf",r.smtpTypeList),Yo(6),kl("",ec(15,36,"lang.smtpAuth")," * "),Yo(2),Os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.secure)("value",r.sendmail.secure),Yo(1),Os("ngForOf",r.smtpSecList),Yo(4),kl("",ec(22,38,"lang.host")," *"),Yo(2),Os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.host),Yo(4),kl("",ec(28,40,"lang.port")," *"),Yo(2),Os("disabled","smtp"!=r.sendmail.type)("ngModel",r.sendmail.port),Yo(2),Os("ngModel",r.sendmail.auth)("checked",r.sendmail.auth)("disabled","smtp"!=r.sendmail.type),Yo(2),wl(ec(34,42,"lang.enableAuth")),Yo(4),kl("",ec(38,44,"lang.id")," *"),Yo(2),Os("ngModel",r.sendmail.user)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type),Yo(3),Os("name",r.hidePassword?"eye-outline":"eye-off-outline"),Yo(2),xl("",r.passwordLanguage," ",r.sendmail.passwordAlreadyExists?"":"*",""),Yo(1),Os("type",r.hidePassword?"password":"text")("ngModel",r.sendmail.password)("disabled",!r.sendmail.auth||"smtp"!=r.sendmail.type)("required",!r.sendmail.passwordAlreadyExists),Yo(3),wl(ec(49,46,"lang.mailFrom")),Yo(2),Os("ngModel",r.sendmail.from)("disabled","smtp"!=r.sendmail.type),Yo(5),wl(ec(56,48,"lang.connectionTest")),Yo(2),Os("disabled",!i.form.valid||!r.canValidate()),Yo(2),wl(ec(60,50,"lang.validate"))}}var fU,pU=((fU=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.http=t,this.translate=n,this.route=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.authService=s,this.modalController=l,this.loading=!0,this.title="",this.passwordLanguage="",this.hidePassword=!0,this.smtpTypeList=[{id:"smtp",label:"lang.smtpclient"},{id:"sendmail",label:"lang.smtprelay"},{id:"qmail",label:"lang.qmail"},{id:"mail",label:"lang.phpmail"}],this.smtpSecList=[{id:"",label:"lang.none"},{id:"ssl",label:"ssl"},{id:"tls",label:"tls"}]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(){e.http.get("../rest/configurations/1").pipe(ye(function(e){return e.configuration}),Lw(function(){return e.loading=!1})).subscribe({next:function(t){e.sendmail=t.value,e.sendmailLabel=t.label,e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.title=e.translate.instant("lang.manage_email_configuration"),e.passwordLanguage=e.translate.instant(e.sendmail.passwordAlreadyExists?"lang.passwordModification":"lang.password")}})})}},{key:"canValidate",value:function(){return JSON.stringify(this.sendmail)!==JSON.stringify(this.sendmailClone)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.http.patch("../rest/configurations/1",{value:this.sendmail,label:this.sendmailLabel}).pipe(Lw(function(){return e.loading=!1})).subscribe({next:function(){e.sendmailClone=JSON.parse(JSON.stringify(e.sendmail)),e.notificationService.success("lang.emailConfigurationUpdated")}})}},{key:"cleanAuthInfo",value:function(){this.sendmail.passwordAlreadyExists=!1,this.sendmail.user="",this.sendmail.password=""}},{key:"checkConnection",value:function(e){return t=this,i=U().mark(function e(){var t,n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(this.authService.user)),JSON.stringify(this.sendmailClone)!==JSON.stringify(this.sendmail)&&this.onSubmit(),e.next=4,this.modalController.create({component:uU,componentProps:{sendmailFrom:this.sendmail.from,recipientTest:t.email}});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||fU)(Ps(Tb),Ps(zP),Ps(Uk),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(LE))},fU.\u0275cmp=Ft({type:fU,selectors:[["app-administration-sendmail"]],decls:8,vars:3,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","sendmailForm",3,"ngSubmit",4,"ngIf"],["id","sendmailForm",2,"display","contents",3,"ngSubmit"],["sendmailForm","ngForm"],["color","secondary","position","floating"],["name","smtpType","interface","popover","required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["size","2"],["name","SMTPSecure","interface","popover","required","",3,"disabled","ngModel","value","ngModelChange"],["size","8"],["name","host","required","",3,"disabled","ngModel","ngModelChange"],["type","number","name","port","required","",3,"disabled","ngModel","ngModelChange"],["name","SMTPAuth",3,"ngModel","checked","disabled","ngModelChange"],["name","user","required","",3,"ngModel","disabled","ngModelChange"],[2,"align-items","center"],["slot","end","fill","clear","color","primary",3,"click"],["color","primary",3,"name"],["name","password",3,"type","ngModel","disabled","required","ngModelChange"],["name","mailFrom","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)",3,"ngModel","disabled","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","button","shape","round","size","large","fill","outline","color","medium",3,"click"],[2,"font-size","13px"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[3,"value"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Ss(7,hU,61,52,"form",4)),2&e&&(Os("translucent",!0),Yo(6),wl(t.title),Yo(1),Os("ngIf",!t.loading))},directives:[kS,tE,aS,RS,iS,AE,$S,jh,yy,Fm,py,pS,ES,IS,YS,CA,Yy,Lm,my,Vh,wS,US,fS,SS,SA,_A,eE,xA,oS,xS,Xy,ZS],pipes:[jP],styles:[".testSendTo[_ngcontent-%COMP%]{width:95%;margin-top:10px;margin-left:10px}.bash[_ngcontent-%COMP%]{background:#34495e;height:310px;border-radius:5px;top:40px;display:absolute;color:#fff;padding:10px;margin:10px;word-wrap:break-word}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:25px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.cancel[_ngcontent-%COMP%]{position:absolute;top:10px;left:0;height:65px;width:65px;font-size:35px;color:#fff}.auth-container[_ngcontent-%COMP%]{display:flex}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100px;padding-right:10px}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:50px;padding-left:10px}@media (max-width:360px){.auth-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.auth-container[_ngcontent-%COMP%]   .auth-1[_ngcontent-%COMP%]{width:100%;padding-right:0}.auth-container[_ngcontent-%COMP%]   .auth-2[_ngcontent-%COMP%]{width:100%;flex:1}.auth-container[_ngcontent-%COMP%]   .auth-3[_ngcontent-%COMP%]{width:100%;padding-left:0}}"]}),fU);function gU(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function vU(e,t,n,i){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=i}function mU(e,t){var n=this,i=t||{};this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this._strokeMoveUpdate=this.throttle?function(e,t,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(i,r),a||(i=r=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return i=this,r=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}}(mU.prototype._strokeUpdate,this.throttle):mU.prototype._strokeUpdate,this.dotSize=i.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.onBegin=i.onBegin,this.onEnd=i.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){1===e.targetTouches.length&&n._strokeBegin(e.changedTouches[0])},this._handleTouchMove=function(e){e.preventDefault(),n._strokeMoveUpdate(e.targetTouches[0])},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}gU.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},gU.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},gU.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},vU.prototype.length=function(){for(var e=0,t=void 0,n=void 0,i=0;i<=10;i+=1){var r=i/10,o=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var s=o-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=o,n=a}return e},vU.prototype._point=function(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e},mU.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},mU.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Image,r=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/r,a=n.height||this._canvas.height/r;this._reset(),i.src=e,i.onload=function(){t._ctx.drawImage(i,0,0,o,a)},this._isEmpty=!1},mU.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(i))}},mU.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},mU.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},mU.prototype.isEmpty=function(){return this._isEmpty},mU.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},mU.prototype._strokeUpdate=function(e){var t=this._createPoint(e.clientX,e.clientY),n=this._data[this._data.length-1],i=n&&n[n.length-1],r=i&&t.distanceTo(i)<this.minDistance;if(!i||!r){var o=this._addPoint(t),a=o.curve,s=o.widths;a&&s&&this._drawCurve(a,s.start,s.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}},mU.prototype._strokeEnd=function(e){var t=this.points[0];if(!(this.points.length>2)&&t&&this._drawDot(t),t){var n=this._data[this._data.length-1];t.equals(n[n.length-1])||n.push({x:t.x,y:t.y,time:t.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},mU.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},mU.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},mU.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},mU.prototype._createPoint=function(e,t,n){var i=this._canvas.getBoundingClientRect();return new gU(e-i.left,t-i.top,n||(new Date).getTime())},mU.prototype._addPoint=function(e){var t=this.points,n=void 0;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var i=(n=this._calculateCurveControlPoints(t[0],t[1],t[2])).c2;n=this._calculateCurveControlPoints(t[1],t[2],t[3]);var r=new vU(t[1],i,n.c1,t[2]),o=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:o}}return{}},mU.prototype._calculateCurveControlPoints=function(e,t,n){var i=e.x-t.x,r=e.y-t.y,o=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,d=Math.sqrt(i*i+r*r),h=Math.sqrt(o*o+a*a),f=h/(d+h),p=t.x-(u+(s-u)*f),g=t.y-(c+(l-c)*f);return{c1:new gU(s+p,l+g),c2:new gU(u+p,c+g)}},mU.prototype._calculateCurveWidths=function(e){var t={start:null,end:null},n=this.velocityFilterWeight*e.endPoint.velocityFrom(e.startPoint)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(n);return t.start=this._lastWidth,t.end=i,this._lastVelocity=n,this._lastWidth=i,t},mU.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},mU.prototype._drawPoint=function(e,t,n){var i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},mU.prototype._drawCurve=function(e,t,n){var i=this._ctx,r=n-t,o=Math.floor(e.length());i.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,d=c*c,h=d*c,f=h*e.startPoint.x;f+=3*d*s*e.control1.x,f+=3*c*l*e.control2.x;var p=h*e.startPoint.y;p+=3*d*s*e.control1.y,p+=3*c*l*e.control2.y,this._drawPoint(f+=u*e.endPoint.x,p+=u*e.endPoint.y,t+u*r)}i.closePath(),i.fill()},mU.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},mU.prototype._fromData=function(e,t,n){for(var i=0;i<e.length;i+=1){var r=e[i];if(r.length>1)for(var o=0;o<r.length;o+=1){var a=r[o],s=new gU(a.x,a.y,a.time),l=a.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(s);else if(o!==r.length-1){var u=this._addPoint(s),c=u.curve,d=u.widths;c&&d&&t(c,d,l)}}else this._reset(),n(r[0])}},mU.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,i=Math.max(window.devicePixelRatio||1,1),r=n.width/i,o=n.height/i,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,function(e,t,n){var i=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);i.setAttribute("d",r),i.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),i.setAttribute("stroke",n),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}},function(t){var n=document.createElement("circle"),i="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",i),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)});var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+o+'" width="'+r+'" height="'+o+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var d=0;d<c.length;d+=1)u.appendChild(c[d].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},mU.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,n){return t._drawCurve(e,n.start,n.end)},function(e){return t._drawDot(e)}),this._data=e},mU.prototype.toData=function(){return this._data};var yU,bU,wU=mU,kU=((bU=function(){function e(t){Z(this,e),this.elementRef=t,this.options=this.options||{},this.onBeginEvent=new ac,this.onEndEvent=new ac}return Y(e,[{key:"ngAfterContentInit",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");this.options.canvasHeight&&(e.height=this.options.canvasHeight),this.options.canvasWidth&&(e.width=this.options.canvasWidth),this.signaturePad=new wU(e,this.options),this.signaturePad.onBegin=this.onBegin.bind(this),this.signaturePad.onEnd=this.onEnd.bind(this)}},{key:"ngOnDestroy",value:function(){var e=this.elementRef.nativeElement.querySelector("canvas");e.width=0,e.height=0}},{key:"resizeCanvas",value:function(){var e=Math.max(window.devicePixelRatio||1,1),t=this.signaturePad.canvas;t.width=t.offsetWidth*e,t.height=t.offsetHeight*e,t.getContext("2d").scale(e,e),this.signaturePad.clear()}},{key:"toData",value:function(){return this.signaturePad?this.signaturePad.toData():[]}},{key:"fromData",value:function(e){this.signaturePad.fromData(e)}},{key:"toDataURL",value:function(e,t){return this.signaturePad.toDataURL(e,t)}},{key:"fromDataURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!t.hasOwnProperty("height")&&this.options.canvasHeight&&(t.height=this.options.canvasHeight),!t.hasOwnProperty("width")&&this.options.canvasWidth&&(t.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,t)}},{key:"clear",value:function(){this.signaturePad.clear()}},{key:"isEmpty",value:function(){return this.signaturePad.isEmpty()}},{key:"off",value:function(){this.signaturePad.off()}},{key:"on",value:function(){this.signaturePad.on()}},{key:"set",value:function(e,t){switch(e){case"canvasHeight":this.signaturePad.canvas.height=t;break;case"canvasWidth":this.signaturePad.canvas.width=t;break;default:this.signaturePad[e]=t}}},{key:"onBegin",value:function(){this.onBeginEvent.emit(!0)}},{key:"onEnd",value:function(){this.onEndEvent.emit(!0)}},{key:"queryPad",value:function(){return this.signaturePad}}]),e}()).\u0275fac=function(e){return new(e||bU)(Ps(Kl))},bU.\u0275cmp=Ft({type:bU,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{onBeginEvent:"onBeginEvent",onEndEvent:"onEndEvent"},decls:1,vars:0,template:function(e,t){1&e&&Ms(0,"canvas")},encapsulation:2}),bU),xU=((yU=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||yU)},yU.\u0275mod=jt({type:yU}),yU.\u0275inj=at({imports:[[]]}),yU),_U=["signaturePad"],AU=function(e,t){return{"border-color":e,"background-color":t}};function CU(e,t){if(1&e){var n=Fs();Bs(0,20),Is(1,"input",21),js("change",function(){En(n);var e=t.$implicit;return qs().onColorChange(e)}),Ts(),Rs()}if(2&e){var i=t.$implicit,r=qs();Yo(1),Os("checked",0===r.idx)("value",i.id)("ngStyle",Ku(3,AU,i.id,i.id))}}var SU,EU=((SU=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.notificationService=r,this.authService=o,this.localStorage=a,this.modalController=s,this.reloaded=new ac,this.penColors=[{id:"black"},{id:"#1a75ff"},{id:"#FF0000"}],this.disableState=!1,this.signaturePadOptions={minWidth:1,maxWidth:2.5,backgroundColor:"rgba(255, 255, 255, 0)",canvasWidth:600,canvasHeight:400}}return Y(e,[{key:"ngAfterViewInit",value:function(){this.localStorage.get("signature")}},{key:"onColorChange",value:function(e){this.selectedColor=Object.assign({},this.selectedColor,e),this.signaturePad.set("penColor",this.selectedColor.id)}},{key:"onDotChange",value:function(e){this.signaturePad.set("minWidth",parseFloat(e)),this.signaturePad.set("maxWidth",parseFloat(e)+2)}},{key:"drawComplete",value:function(){this.localStorage.save("signature",JSON.stringify(this.signaturePad.toData())),this.haveSigned=!0}},{key:"drawClear",value:function(){this.signaturePad.clear(),this.haveSigned=!1}},{key:"closePad",value:function(){this.modalController.dismiss("cancel")}},{key:"saveSignature",value:function(){var e=this;this.disableState=!0,this.haveSigned=!0;var t=this.signaturePad.toDataURL("image/png").replace("data:image/png;base64,","");this.localStorage.save("signature",JSON.stringify(t));var n={id:0,encodedSignature:t,format:"png"};this.http.post("../rest/users/"+this.authService.user.id+"/signatures",n).pipe(Lw(function(){e.disableState=!1})).subscribe(function(t){n.id=t.signatureId,e.signaturesService.signaturesList.unshift({id:n.id,encodedSignature:n.encodedSignature}),e.modalController.dismiss("reload"),e.notificationService.success("lang.signatureRegistered")})}}]),e}()).\u0275fac=function(e){return new(e||SU)(Ps(zP),Ps(Tb),Ps($P),Ps(WP),Ps(tO),Ps(eO),Ps(LE))},SU.\u0275cmp=Ft({type:SU,selectors:[["app-pad"]],viewQuery:function(e,t){var n;1&e&&bc(_U,1),2&e&&yc(n=kc())&&(t.signaturePad=n.first)},outputs:{reloaded:"reloaded"},decls:34,vars:16,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],["color","light",1,"pad"],[1,"pad-actions"],[1,"pad-actions-boxed"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"btn",3,"click"],["type","range","name","dot","min","1","max","10","step","1","value","1",1,"range",3,"input"],["padContent",""],[1,"pad"],[1,"pad-draw"],[1,"padContent",2,"margin-top","10px",3,"options","onEndEvent"],["signaturePad",""],[1,"draw"],[1,"footer-buttons"],["color","danger",3,"click"],["color","success",3,"click"],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle","change"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.closePad()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-header",0),Is(9,"ion-toolbar",5),Is(10,"section",6),Is(11,"div",7),Ss(12,CU,2,6,"ng-container",8),Ts(),Is(13,"button",9),js("click",function(){return t.drawClear()}),bl(14),$u(15,"translate"),Ts(),Is(16,"div",7),Is(17,"input",10),js("input",function(e){return t.onDotChange(e.target.value)}),Ts(),Ts(),Ts(),Ts(),Ts(),Is(18,"ion-content",null,11),Is(20,"article",12),Is(21,"section",13),Is(22,"signature-pad",14,15),js("onEndEvent",function(){return t.drawComplete()}),Ts(),Ts(),Ms(24,"div",16),Ts(),Ts(),Is(25,"ion-footer",17),Is(26,"ion-button",18),js("click",function(){return t.closePad()}),Is(27,"ion-label"),bl(28),$u(29,"translate"),Ts(),Ts(),Is(30,"ion-button",19),js("click",function(){return t.saveSignature()}),Is(31,"ion-label"),bl(32),$u(33,"translate"),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,8,"lang.createNewSignature")),Yo(5),Os("translucent",!0),Yo(4),Os("ngForOf",t.penColors),Yo(2),wl(ec(15,10,"lang.erase")),Yo(8),Os("options",t.signaturePadOptions),Yo(6),wl(ec(29,12,"lang.cancel")),Yo(4),wl(ec(33,14,"lang.save")))},directives:[kS,tE,$S,aS,oS,xS,Vh,pS,kU,bS,IS,$h],pipes:[jP],styles:[".pad-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly;padding:10px 0}.pad-actions-boxed[_ngcontent-%COMP%]{border-radius:60px;height:60px;background:#f1f4f4;padding:0 20px}.pad-actions-boxed[_ngcontent-%COMP%], .pad-draw[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.pad-draw[_ngcontent-%COMP%]{background:#fff}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:checked, .pad[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.padContent[_ngcontent-%COMP%]{border:1px dashed hsla(0,0%,59.2%,.55)}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),SU),PU=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},OU=["slides"];function DU(e,t){if(1&e&&(Is(0,"small",10),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2);Yo(1),xl("",n.currentWorflow.signaturePositions.length," ",ec(2,2,"lang.prePositionings"),"")}}function IU(e,t){if(1&e){var n=Fs();Is(0,"ion-header",4),Is(1,"ion-toolbar",5),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ss(5,DU,3,4,"small",6),Ts(),Is(6,"ion-buttons",7),Is(7,"ion-button",8),js("click",function(){return En(n),qs().dismissModal()}),Ms(8,"ion-icon",9),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(3),kl("",ec(4,3,"lang.signatures")," "),Yo(2),Os("ngIf",i.signPosMode)}}function TU(e,t){1&e&&(Is(0,"ion-item",26),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.emptySignList")))}function MU(e,t){1&e&&(Is(0,"ion-label",37),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.substitutedSignature")))}function BU(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",38),Is(1,"ion-button",39),js("click",function(){En(n);var e=qs().$implicit;return qs(4).selectSignature(e)}),$u(2,"translate"),Ms(3,"ion-icon",40),Ts(),Ts()}2&e&&(Yo(1),Os("title",ec(2,1,"lang.selectSignature")))}function RU(e,t){if(1&e){var n=Fs();Is(0,"ion-card",30),Is(1,"img",31),js("click",function(){En(n);var e=t.$implicit,i=qs(4);return"document"===i.target?i.selectSignature(e):""}),Ts(),Is(2,"ion-toolbar",32),Ss(3,MU,3,3,"ion-label",33),Ss(4,BU,4,3,"ion-buttons",34),Is(5,"ion-buttons",7),Is(6,"ion-button",35),js("click",function(){En(n);var e=t.$implicit;return qs(4).removeSignature(e)}),$u(7,"translate"),Ms(8,"ion-icon",36),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=qs(4);Yo(1),Xs("id","imgSign_",r,""),Os("src",o.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Kr),Yo(2),Os("ngIf",i.substituted),Yo(1),Os("ngIf","document"===o.target),Yo(2),Os("title",ec(7,5,"lang.removeSignature"))}}function LU(e,t){if(1&e&&(Is(0,"ion-slide",27),Is(1,"div",28),Ss(2,RU,9,7,"ion-card",29),Ts(),Ts()),2&e){var n=t.$implicit;Yo(2),Os("ngForOf",n)}}function FU(e,t){if(1&e&&(Is(0,"ion-slides",22,23),Ss(2,TU,4,3,"ion-item",24),Ss(3,LU,3,1,"ion-slide",25),Ts()),2&e){var n=qs(2);al("hideSwiper",0===n.signaturesList.length),Os("options",n.slideOpts),Yo(2),Os("ngIf",0===n.signaturesList.length),Yo(1),Os("ngForOf",n.signaturesList)}}function NU(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",17),js("click",function(){return En(n),qs(2).addNewDate()}),$u(1,"translate"),Ms(2,"ion-icon",41),Ts()}2&e&&Os("title",ec(1,1,"lang.addNewDate"))}function VU(e,t){if(1&e){var n=Fs();Bs(0),Ss(1,FU,4,5,"ion-slides",11),Is(2,"ion-fab",12),Is(3,"ion-fab-button",13),Ms(4,"ion-icon",14),Ts(),Is(5,"ion-fab-list",15),Ss(6,NU,3,3,"ion-fab-button",16),Is(7,"ion-fab-button",17),js("click",function(){return En(n),Es(14).click()}),$u(8,"translate"),Ms(9,"ion-icon",18),Ts(),Is(10,"ion-fab-button",17),js("click",function(){return En(n),qs().openSignatures()}),$u(11,"translate"),Ms(12,"ion-icon",19),Ts(),Ts(),Ts(),Is(13,"input",20,21),js("change",function(e){return En(n),qs().handleFileInput(e.target.files)}),Ts(),Rs()}if(2&e){var i=qs();Yo(1),Os("ngIf",!i.loading),Yo(5),Os("ngIf","document"===i.target),Yo(1),Os("title",ec(8,4,"lang.importNewSignature")),Yo(3),Os("title",ec(11,6,"lang.createNewSignature"))}}function zU(e,t){1&e&&(Is(0,"div",42),Ms(1,"ion-icon",43),Is(2,"div"),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),kl(" ",ec(4,1,"lang.certifiedDocumentMsg")," "))}var jU,HU=((jU=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.authService=r,this.modalController=o,this.translate=a,this.localStorage=s,this.alertController=l,this.bottomSheetRef=u,this.sanitization=c,this.renderer=d,this.target="document",this.loading=!0,this.scrolling=!1,this.signPosMode=!1,this.datePosMode=!1,this.title="lang.signatures",this.slideOpts={initialSlide:0,speed:400,direction:"vertical"},this.signaturesList=[],this.inAllPage=!1,this.count=0}return Y(e,[{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}},{key:"ngOnInit",value:function(){this.initSignatures(),"document"===this.target?(this.getImgDimensions(this.content),this.signPosMode=this.currentWorflow.signaturePositions.length>0&&this.emptySigns()):this.loading=!1}},{key:"initSignatures",value:function(){var e=this;this.signaturesList=[];var t=[],n=0;this.signaturesService.signaturesListSubstituted.concat(this.signaturesService.signaturesList).forEach(function(i){6===n?(e.signaturesList.push(t),t=[i],n=0):(t.push(i),n++)}),t.length>0&&this.signaturesList.push(t)}},{key:"ionViewDidEnter",value:function(){this.loading=!1}},{key:"openSignatures",value:function(){return PU(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:EU,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:"reload"===e.sent.data&&this.initSignatures();case 10:case"end":return e.stop()}},e,this)}))}},{key:"mustPrePosSignature",value:function(e,t){return!(!this.signPosMode||0===e.length&&0===t.length)}},{key:"selectSignature",value:function(e){var t,n=this,i=document.getElementById("imgSign_"+this.signaturesList[0].indexOf(e).toString());this.signatureWidth=i.naturalWidth,this.signatureScaling=void 0!==this.authService.user.preferences.signatureScaling&&this.authService.user.preferences.signatureScaling,t=!1===this.signatureScaling?this.signatureWidth>=this.documentWidth?100:100*this.signatureWidth/this.documentWidth:this.signatureScaling,e.width=t;var r=this.currentWorflow.signaturePositions.filter(function(e){return e.page===n.signaturesService.currentPage}),o=this.currentWorflow.signaturePositions.filter(function(e){return e.page!==n.signaturesService.currentPage});this.mustPrePosSignature(r,o)?(r.length>0&&(e.positionX=r[0].positionX,e.positionY=r[0].positionY,this.storeSignature(e,this.signaturesService.currentPage)),o.length>0&&o.forEach(function(t){e.positionX=t.positionX,e.positionY=t.positionY,n.storeSignature(e,t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.signatureInDocAddedAlt"):this.translate.get("lang.signaturesInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(e){n.notificationService.success(e)}),this.modalController.dismiss(0===r.length&&o.length>0?{redirectPage:o[0].page}:"success")):(e.positionX=60,e.positionY=80,this.storeSignature(e,this.signaturesService.currentPage),this.notificationService.success("lang.signatureInDocAdded"),this.modalController.dismiss("success"))}},{key:"addNewDate",value:function(){var e=this,t=this.currentWorflow.datePositions.filter(function(t){return t.page===e.signaturesService.currentPage}),n=this.currentWorflow.datePositions.filter(function(t){return t.page!==e.signaturesService.currentPage});if(0===t.length&&0===n.length){var i={width:13e3/this.signaturesService.workingAreaWidth,height:3e3/this.signaturesService.workingAreaHeight,positionX:0,positionY:0,font:"Arial",size:15,color:"#666",format:"d MMMM y"};i.positionX=60,i.positionY=80,this.storeDate(i,this.signaturesService.currentPage),this.notificationService.success("lang.dateInDocAdded"),this.modalController.dismiss("success")}else t.length>0&&this.storeDate({width:t[0].width,height:t[0].height,positionX:t[0].positionX,positionY:t[0].positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},this.signaturesService.currentPage),n.forEach(function(t){e.storeDate({width:t.width,height:t.height,positionX:t.positionX,positionY:t.positionY,font:"Arial",size:15,color:"#666",format:"d MMMM y"},t.page)}),1===this.currentWorflow.signaturePositions.length?this.notificationService.success("lang.dateInDocAddedAlt"):this.translate.get("lang.dateInDocAdded",{0:this.currentWorflow.signaturePositions.map(function(e){return e.page})}).subscribe(function(t){e.notificationService.success(t)}),this.modalController.dismiss(0===t.length&&n.length>0?{redirectPage:n[0].page}:"success")}},{key:"storeSignature",value:function(e,t){this.signaturesService.signaturesContent[t]||(this.signaturesService.signaturesContent[t]=[]),this.signaturesService.signaturesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"storeDate",value:function(e,t){this.signaturesService.datesContent[t]||(this.signaturesService.datesContent[t]=[]),this.signaturesService.datesContent[t].push(JSON.parse(JSON.stringify(e))),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"removeSignature",value:function(e){return PU(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.wantDeleteSignature"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/users/"+i.authService.user.id+"/signatures/"+e.id).subscribe(function(){i.signaturesService.signaturesList=i.signaturesService.signaturesList.filter(function(t){return t.id!==e.id}),i.notificationService.success("lang.signatureDeleted"),i.initSignatures()},function(e){i.notificationService.error(e.error.errors)})}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"toggleAllPage",value:function(){this.inAllPage=!this.inAllPage}},{key:"tapEvent",value:function(e,t,n){var i=this;this.count++,setTimeout(function(){1===i.count?i.count=0:i.count>1&&(i.count=0,i.selectSignature(e))},250)}},{key:"handleFileInput",value:function(e){var t=this,n=e.item(0);if(n.size<=1e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var r=i.result.toString().replace("data:"+n.type+";base64,","");t.localStorage.save("signature",JSON.stringify(r));var o={id:0,encodedSignature:r,format:"png"};t.http.post("../rest/users/"+t.authService.user.id+"/signatures",o).subscribe(function(e){o.id=e.signatureId,t.signaturesService.signaturesList.unshift({id:o.id,encodedSignature:o.encodedSignature}),t.initSignatures(),t.notificationService.success("lang.signatureRegistered")})},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.maxFileSizeReached")}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}},{key:"getImgDimensions",value:function(e){var t=atob(e.slice(0,50)).slice(16,24),n=Uint8Array.from(t,function(e){return e.charCodeAt(0)}),i=new DataView(n.buffer);this.documentWidth=i.getInt32(0)}}]),e}()).\u0275fac=function(e){return new(e||jU)(Ps(Tb),Ps($P),Ps(WP),Ps(tO),Ps(LE),Ps(zP),Ps(eO),Ps(ME),Ps(gF),Ps(pp),Ps(Jl))},jU.\u0275cmp=Ft({type:jU,selectors:[["app-signatures"]],viewQuery:function(e,t){var n;1&e&&bc(OU,1),2&e&&yc(n=kc())&&(t.slides=n.first)},inputs:{currentWorflow:"currentWorflow",content:"content",target:"target"},decls:5,vars:3,consts:[[3,"translucent",4,"ngIf"],[3,"wheel"],[4,"ngIf","ngIfElse"],["elseCertified",""],[3,"translucent"],["color","primary"],["class","secondary",4,"ngIf"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[1,"secondary"],["pager","true",3,"options","hideSwiper",4,"ngIf"],["horizontal","start","vertical","bottom","slot","fixed"],["color","primary","close-icon","chevron-down"],["name","chevron-up-outline"],["side","top"],["color","light",3,"title","click",4,"ngIf"],["color","light",3,"title","click"],["name","download-outline"],["name","add-outline"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["pager","true",3,"options"],["slides",""],["class","emptySignList","lines","none",4,"ngIf"],["style","display: grid;grid-template-columns: repeat(2, 1fr);",4,"ngFor","ngForOf"],["lines","none",1,"emptySignList"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],[2,"display","contents"],["class","sign-image",4,"ngFor","ngForOf"],[1,"sign-image"],[2,"width","190px","cursor","pointer",3,"id","src","click"],["color","default",2,"position","absolute","top","0px"],["color","secondary",4,"ngIf"],["slot","start",4,"ngIf"],["size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["color","secondary"],["slot","start"],["size","small","color","primary",3,"title","click"],["slot","icon-only","name","arrow-up-circle-outline"],["name","calendar-outline"],[1,"certified-msg"],["slot","start","name","ribbon-outline","color","success",2,"font-size","70px"]],template:function(e,t){if(1&e&&(Ss(0,IU,9,5,"ion-header",0),Is(1,"ion-content",1),js("wheel",function(e){return t.signaturesService.stampLock?null:t.scroll(e)}),Ss(2,VU,15,8,"ng-container",2),Ss(3,zU,5,3,"ng-template",null,3,Cc),Ts()),2&e){var n=Es(4);Os("ngIf","document"===t.target),Yo(2),Os("ngIf",!t.signaturesService.stampLock)("ngIfElse",n)}},directives:[jh,pS,kS,tE,$S,aS,oS,xS,vS,mS,yS,QS,Vh,ES,IS,KS,sS],pipes:[jP],styles:[".secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.signatures[_ngcontent-%COMP%]{flex-direction:column}.signatures[_ngcontent-%COMP%], .signatures-top[_ngcontent-%COMP%]{display:flex;align-items:center}.signatures-top[_ngcontent-%COMP%]{height:105px;width:100%;justify-content:space-around;border-bottom:1px solid #e9e8e8}.signatures[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{width:100%;padding-top:40px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{transition:all .3s ease-in-out;height:190px;width:190px;margin:8px;border:1px solid hsla(0,0%,59.2%,.55);border-radius:5px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.04);display:flex;justify-content:center;align-items:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]   .substituteInfo[_ngcontent-%COMP%]{color:#f99830;font-size:10px;position:absolute;top:0;left:10px}.signatures[_ngcontent-%COMP%]   .list-item.create[_ngcontent-%COMP%]{background-color:#f1f4f4;flex-direction:column;text-align:center}.signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:active, .signatures[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]:hover{transform:translateY(-20px);cursor:pointer}.sign_icon[_ngcontent-%COMP%]{position:absolute;top:5px}.sign_icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#fff;height:auto}.add_icon[_ngcontent-%COMP%]{right:5px}.remove_icon[_ngcontent-%COMP%]{left:5px}.sign-image[_ngcontent-%COMP%]{height:95%}.certified-msg[_ngcontent-%COMP%], .sign-image[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.certified-msg[_ngcontent-%COMP%]{height:100%;flex-direction:column;padding:40px}.certified-msg[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-size:30px;color:var(--ion-color-medium)}.emptySignList[_ngcontent-%COMP%]{text-align:center;display:inherit;height:100%!important;font-size:30px;opacity:.5}.hideSwiper[_ngcontent-%COMP%]{--bullet-background-active:none}"]}),jU),UU=["mainContent"],WU=["canvas"],GU=["img"],qU=["nav"],YU=function(e,t){return{"border-color":e,"background-color":t}};function ZU(e,t){if(1&e&&(Bs(0,28),Ms(1,"input",29),Rs()),2&e){var n=t.$implicit,i=qs(2);Yo(1),Os("checked",0===i.idx)("value",n.id)("ngStyle",Ku(3,YU,n.id,n.id))}}function KU(e,t){if(1&e){var n=Fs();Is(0,"ion-content",null,8),Is(2,"div",9),Ss(3,ZU,2,6,"ng-container",10),Ms(4,"hr"),Is(5,"i",11),js("click",function(){return En(n),qs().undo()}),Ts(),Ts(),Is(6,"ion-fab",12),Is(7,"ion-fab-button",13),Ms(8,"ion-icon",14),Ts(),Is(9,"ion-fab-list",15),Is(10,"ion-fab-button",16),js("click",function(e){En(n);var t=qs();return e.stopPropagation(),t.editMode=!t.editMode}),$u(11,"translate"),$u(12,"translate"),Ms(13,"ion-icon",17),Ts(),Is(14,"ion-fab-button",18),js("click",function(e){En(n);var t=qs();return e.stopPropagation(),t.getImageDimensions(!t.originalSize)}),$u(15,"translate"),$u(16,"translate"),Ms(17,"ion-icon",17),Ts(),Ts(),Ts(),Is(18,"div",19),Is(19,"drag-scroll",20,21),Is(21,"div",22,23),Is(23,"ion-img",24,25),js("ionImgDidLoad",function(e){return En(n),qs().imageLoaded(e)}),Ts(),Ms(25,"canvas",26,27),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(3),Os("ngForOf",i.penColors),Yo(7),Os("color",i.editMode?"danger":"success")("title",i.editMode?ec(11,19,"lang.lockEdition"):ec(12,21,"lang.unlockEdition")),Yo(3),Os("name",i.editMode?"lock-closed-outline":"lock-open-outline"),Yo(1),Os("title",i.originalSize?ec(15,23,"lang.originalSize"):ec(16,25,"lang.screenSize")),Yo(3),Os("name",i.originalSize?"scan-outline":"crop-outline"),Yo(2),ol("max-width",i.areaWidth,"px"),Yo(2),ol("width",i.areaWidth,"px")("height",i.areaHeight,"px"),Yo(2),ol("width",i.areaWidth,"px")("height",i.areaHeight,"px"),Os("src",i.content),Yo(2),ol("display",i.editMode?"initial":"none")}}var QU,XU,JU,$U=((JU=function(){function e(t,n,i,r,o){Z(this,e),this.signaturesService=t,this.notificationService=n,this.authService=i,this.localStorage=r,this.modalController=o,this.triggerEvent=new ac,this.penColors=[{id:"#000000"},{id:"#1a75ff"},{id:"#FF0000"}],this.areaWidth=0,this.areaHeight=0,this.editMode=!0,this.originalSize=!0,this.loading=!0}return Y(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.loading=!1},100)}},{key:"imageLoaded",value:function(e){this.getImageDimensions(!1)}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.originalSize=t;var n=new Image;n.onload=function(i){e.areaWidth=i.target.naturalWidth,e.areaHeight=i.target.naturalHeight,t||e.getAreaDimension(),e.editMode&&setTimeout(function(){var t,i,r,o=$("#myBounds").offset();t=1===Math.sign(o.top)||e.precentScrollTop<=Math.abs(o.top)?e.precentScrollTop-o.top:-1===Math.sign(o.top)&&e.precentScrollTop<=-Math.sign(o.top)?2*(e.precentScrollTop-o.top):100*(e.precentScrollTop-o.top);var a=e.precentScrollLeft-o.left;i=e.precentScrollLeft-document.documentElement.offsetLeft,r=e.precentScrollTop-document.documentElement.offsetTop,i=i/e.areaWidth*100,r=r/e.areaHeight*100,document.getElementsByClassName("drag-scroll-content")[1].scrollTo(a,t),n.style.transform="translate(-"+i+"%,-"+r+"%) scale(2)",e.initPad()},200)},n.src=this.content}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.areaWidth;this.areaWidth=e*this.areaWidth/100,this.areaHeight=e*this.areaHeight/100}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"initPad",value:function(){$("#myCanvas").sign({mode:this.authService.user.preferences.writingMode,lineWidth:this.authService.user.preferences.writingSize,changeColor:$(".radio"),undo:$(".undo"),height:this.areaHeight,width:this.areaWidth,fixHeight:56,fixWidth:0,mobileMode:this.signaturesService.mobileMode}),$("input[value='"+this.authService.user.preferences.writingColor+"']").trigger("click")}},{key:"validateAnnotation",value:function(){this.signaturesService.notesContent[this.signaturesService.currentPage]||(this.signaturesService.notesContent[this.signaturesService.currentPage]=[]),this.signaturesService.notesContent[this.signaturesService.currentPage].push({fullPath:this.canvas.nativeElement.toDataURL("image/png"),positionX:0,positionY:0,height:this.signaturesService.workingAreaHeight,width:this.signaturesService.workingAreaWidth}),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.modalController.dismiss(""),this.notificationService.success("lang.annotationAdded")}},{key:"undo",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||JU)(Ps($P),Ps(WP),Ps(tO),Ps(eO),Ps(LE))},JU.\u0275cmp=Ft({type:JU,selectors:[["app-document-note-pad"]],viewQuery:function(e,t){var n;1&e&&(bc(UU,1),bc(WU,1),bc(GU,1),bc(qU,1,ZI)),2&e&&(yc(n=kc())&&(t.mainContent=n.first),yc(n=kc())&&(t.canvas=n.first),yc(n=kc())&&(t.img=n.first),yc(n=kc())&&(t.ds=n.first))},inputs:{content:"content",precentScrollTop:"precentScrollTop",precentScrollLeft:"precentScrollLeft"},outputs:{triggerEvent:"triggerEvent"},decls:16,vars:11,consts:[[3,"translucent"],["color","primary"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],[2,"text-align","center"],["color","danger","shape","round","fill","outline","size","large",3,"click"],[2,"font-size","13px"],["color","success","shape","round","fill","outline","size","large",2,"margin-left","50px",3,"click"],["mainContent",""],[1,"tool-content","tool-content-right"],["let","","idx","index",4,"ngFor","ngForOf"],[1,"fa","fa-undo","fa-2x","undo",3,"click"],["vertical","top","horizontal","start","slot","fixed","activated",""],["close-icon","chevron-up"],["name","chevron-down"],["side","bottom"],[3,"color","title","click"],[3,"name"],[3,"title","click"],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto"],["nav",""],[2,"position","relative"],["myBounds",""],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],["id","myCanvas",2,"position","absolute","top","0px","left","0px"],["canvas",""],["let","","idx","index"],["type","radio","name","colors",1,"radio",3,"checked","value","ngStyle"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Ts(),Ts(),Ss(5,KU,27,27,"ion-content",2),Is(6,"ion-footer",3),Is(7,"div",4),Is(8,"ion-button",5),js("click",function(){return t.dismissModal()}),Is(9,"ion-label",6),bl(10),$u(11,"translate"),Ts(),Ts(),Is(12,"ion-button",7),js("click",function(){return t.validateAnnotation()}),Is(13,"ion-label",6),bl(14),$u(15,"translate"),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,5,"lang.annotateDocument")),Yo(2),Os("ngIf",!t.loading),Yo(5),wl(ec(11,7,"lang.cancel")),Yo(4),wl(ec(15,9,"lang.save")))},directives:[kS,tE,$S,jh,bS,oS,IS,pS,Vh,vS,mS,xS,yS,ZI,_S,$h],pipes:[jP],styles:[".tool-content[_ngcontent-%COMP%]{position:fixed}.fullscreen[_ngcontent-%COMP%]{--width:100%;--height:100%}.tool-content[_ngcontent-%COMP%]{z-index:1;display:flex;position:absolute;background:hsla(0,0%,50.2%,.30196078431372547);border-radius:20px;top:170px;transform:translateY(-50%) rotate(-90deg);padding:10px}.tool-content-left[_ngcontent-%COMP%]{left:-40px}.tool-content-right[_ngcontent-%COMP%]{right:-40px}.undo[_ngcontent-%COMP%]{cursor:pointer;transform:rotate(90deg);transition:all .2s}.undo[_ngcontent-%COMP%]:active{transform:rotate(90deg) scale(1.5)}.radio[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;margin:5px;width:30px;height:30px;border-radius:30px;border-width:none;border-style:solid;outline:none;cursor:pointer;transition:all .2s}.radio[_ngcontent-%COMP%]:checked, .radio[_ngcontent-%COMP%]:hover{transform:scale(1.5)}.footer-buttons[_ngcontent-%COMP%]{display:grid;padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}"]}),JU),eW=((XU=function(){function e(t,n,i){Z(this,e),this.http=t,this.signaturesService=n,this.router=i,this.currentIndex=0,this.offset=0,this.limit=10}return Y(e,[{key:"resfreshDocuments",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.http.get("../rest/documents?limit="+(this.limit+this.offset)+"&offset=0&mode="+this.signaturesService.mode).subscribe(function(n){e.signaturesService.documentsList=n.documents,e.signaturesService.documentsListCount=n.count,t&&e.router.navigate(void 0!==e.signaturesService.documentsList[e.currentIndex]?["/documents/"+e.signaturesService.documentsList[e.currentIndex].id]:e.signaturesService.documentsList.length>0?["/documents/"+e.signaturesService.documentsList[0].id]:["/home"])})}}]),e}()).\u0275fac=function(e){return new(e||XU)(rr(Tb),rr($P),rr(h_))},XU.\u0275prov=rt({token:XU,factory:XU.\u0275fac}),XU),tW=((QU=function(){function e(t,n,i,r){Z(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return Y(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||QU)(Ps($P),Ps(eW),Ps(tO),Ps(fF))},QU.\u0275cmp=Ft({type:QU,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"red",2,"text-align","center"],[1,"fa","fa-thumbs-down","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"h1"),Ms(2,"i",1),Ts(),Is(3,"p"),bl(4),$u(5,"translate"),Ts(),Is(6,"p",2),bl(7),Ts(),Is(8,"p",3),bl(9),$u(10,"translate"),$u(11,"date"),$u(12,"translate"),$u(13,"date"),Ts(),Ts()),2&e&&(Yo(4),wl(ec(5,7,"lang.documentRefusedAs")),Yo(3),xl("",t.authService.user.firstname," ",t.authService.user.lastname,""),Yo(2),Al("",ec(10,9,"lang.onRange")," ",tc(11,11,t.date,"dd/MM/yyyy")," ",ec(12,14,"lang.atRange")," ",tc(13,16,t.date,"HH:mm"),""))},pipes:[jP,gf],styles:[""]}),QU),nW=["slides"];function iW(e,t){1&e&&(Is(0,"span",16),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl("(",ec(2,1,"lang.mainDocument"),")"))}function rW(e,t){1&e&&(Is(0,"span",16),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl("(",ec(2,1,"lang.attachment"),")"))}var oW=function(e){return{background:e}};function aW(e,t){if(1&e){var n=Fs();Is(0,"ion-slide"),Is(1,"div",12),Is(2,"div",13),js("click",function(){En(n);var e=t.index;return qs(2).loadDoc(e)}),Ts(),Is(3,"div",14),bl(4),Ss(5,iW,3,3,"span",15),Ss(6,rW,3,3,"span",15),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=qs(2);Yo(2),al("current",r==o.currentDocId),Os("ngStyle",Zu(6,oW,"url("+i.imgContent[1]+") no-repeat scroll center center / contain")),Yo(2),kl(" ",i.title,"\xa0"),Yo(1),Os("ngIf",0==r),Yo(1),Os("ngIf",r>0)}}function sW(e,t){if(1&e&&(Is(0,"ion-slides",9,10),Ss(2,aW,7,8,"ion-slide",11),Ts()),2&e){var n=qs();Os("options",n.slideOpts),Yo(2),Os("ngForOf",n.docList)}}var lW,uW,cW,dW=((uW=function(){function e(t,n,i,r){Z(this,e),this.http=t,this.signaturesService=n,this.sanitizer=i,this.menu=r,this.triggerEvent=new ac,this.loading=!0,this.scrolling=!1,this.slideOpts={initialSlide:0,speed:400,direction:"vertical"}}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.docList.forEach(function(t,n){void 0===t.imgContent[1]&&n>0&&e.http.get("../rest/attachments/"+t.id+"/thumbnails/1").subscribe(function(e){t.imgContent[1]="data:image/png;base64,"+e.fileContent})})}},{key:"ngAfterViewInit",value:function(){this.loading=!1}},{key:"loadDoc",value:function(e){this.triggerEvent.emit(e),this.menu.close("right-menu")}},{key:"scroll",value:function(e){var t=this;this.scrolling||(this.scrolling=!0,e.deltaY<0?this.slides.slidePrev():this.slides.slideNext(),setTimeout(function(){t.scrolling=!1},500))}}]),e}()).\u0275fac=function(e){return new(e||uW)(Ps(Tb),Ps($P),Ps(pp),Ps(RE))},uW.\u0275cmp=Ft({type:uW,selectors:[["app-document-list"]],viewQuery:function(e,t){var n;1&e&&bc(nW,1),2&e&&yc(n=kc())&&(t.slides=n.first)},inputs:{docList:"docList",currentDocId:"currentDocId"},outputs:{triggerEvent:"triggerEvent"},decls:12,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","document-outline"],[1,"ion-text-center"],[1,"secondary"],[3,"wheel"],["pager","true",3,"options",4,"ngIf"],["pager","true",3,"options"],["slides",""],[4,"ngFor","ngForOf"],[2,"height","90%","width","100%","position","relative","padding","10px"],[2,"cursor","pointer","height","100%","width","100%","border-radius","4px","transition","box-shadow 280ms cubic-bezier(.4,0,.2,1)","border","solid 1px #E0E0E0",3,"ngStyle","click"],[1,"pjToolsContent"],["class","red",4,"ngIf"],[1,"red"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),Is(6,"b",6),bl(7),Ts(),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Is(10,"ion-content",7),js("wheel",function(e){return t.scroll(e)}),Ss(11,sW,3,2,"ion-slides",8),Ts()),2&e&&(Os("translucent",!0),Yo(7),wl(t.docList.length),Yo(1),kl("\xa0",ec(9,4,"lang.attachedElements"),""),Yo(3),Os("ngIf",!t.loading))},directives:[kS,tE,aS,oS,xS,$S,pS,jh,QS,Vh,KS,$h],pipes:[jP],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.pjToolsContent[_ngcontent-%COMP%]{position:absolute;border:1px solid #e0e0e0;border-bottom-left-radius:5px;background:#fff;padding:10px;font-weight:600;color:#135f7f;font-size:14px;top:10px}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}"]}),uW),hW=((lW=function(){function e(t,n){Z(this,e),this.translate=t,this.latinisePipe=n}return Y(e,[{key:"empty",value:function(e){return null==e||!1===e||(Array.isArray(e)?!(e.length>0):""===String(e))}},{key:"isDate",value:function(e){return e instanceof Date&&!isNaN(e.valueOf())}},{key:"formatFrenchDateToTechnicalDate",value:function(e){if(this.empty(e))return e;var t=e.split("-");return(t=t.concat(t[t.length-1].split(" "))).splice(2,1),this.empty(t[3])&&(t[3]="00:00:00"),"".concat(t[2],"-").concat(t[1],"-").concat(t[0]," ").concat(t[3])}},{key:"formatFrenchDateToObjectDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";if(this.empty(e))return e;var n=e.split(t);return(n=n.concat(n[n.length-1].split(" "))).splice(2,1),this.empty(n[3])&&(n[3]="00:00:00"),new Date("".concat(n[2],"-").concat(n[1],"-").concat(n[0]," ").concat(n[3]))}},{key:"formatDateObjectToDateString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dd-mm-yyyy";if(null!==e){var i=[];n.split("-").forEach(function(t){if("dd"===t){var n=e.getDate();n=("00"+n).slice(-2),i.push(n)}else if("mm"===t){var r=e.getMonth()+1;r=("00"+r).slice(-2),i.push(r)}else if("yyyy"===t){var o=e.getFullYear();i.push(o)}});var r="";return t&&(r=" 23:59:59"),"".concat(i.join("-")).concat(r)}return e}},{key:"formatSerializedDateToDateString",value:function(e){return this.formatDateObjectToDateString(new Date(e))}},{key:"listSortingDataAccessor",value:function(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}},{key:"filterUnSensitive",value:function(e,t,n){var i=this,r=!1;return t=this.latinisePipe.transform(t),n.forEach(function(n){var o=e[n];"string"!=typeof e[n]&&(o=void 0===o?"":JSON.stringify(o)),r=r||i.latinisePipe.transform(o.toLowerCase()).includes(t)}),r}},{key:"formatBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if("number"==typeof e){if(0===e)return"0 Octet";var n=1024,i=t<0?0:t,r=["Octets","KO","MO","GO","TO","PO","EO","ZO","YO"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+r[o]}return e}}]),e}()).\u0275fac=function(e){return new(e||lW)(rr(zP),rr(kT))},lW.\u0275prov=rt({token:lW,factory:lW.\u0275fac,providedIn:"root"}),lW),fW=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},pW=((cW=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.translate=n,this.notificationService=i,this.signaturesService=r,this.functionsService=o,this.alertController=a}return Y(e,[{key:"sendDocument",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return new Promise(function(s){return fW(n,void 0,void 0,U().mark(function n(){var l,u=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l={},!(this.signaturesService.currentAction>0)){n.next=17;break}if(null!==a){n.next=8;break}return n.next=5,this.getElementsFromDoc();case 5:n.t0=n.sent,n.next=9;break;case 8:n.t0=a;case 9:l.signatures=n.t0,null!==i&&((l=Object.assign(Object.assign({},l),i)).step="hashCertificate"),null!==t&&(l.note=t),null!==r&&(l.signatureLength=r),this.functionsService.empty(o)||(l.tmpUniqueId=o),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,l).pipe(Mw(function(e){s(null===i||{hashDocument:e.dataToSign,signatureContentLength:e.signatureContentLength,signatureFieldName:e.signatureFieldName,tmpUniqueId:e.tmpUniqueId})}),yw(function(e){return u.notificationService.handleErrors(e),s(403===e.status&&null),nb(!1)})).subscribe(),n.next=18;break;case 17:s(!1);case 18:case"end":return n.stop()}},n,this)}))})}},{key:"getElementsFromDoc",value:function(){return fW(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){return fW(t,void 0,void 0,U().mark(function t(){var n,i,r,o=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=[],i=U().mark(function e(t){var i,r,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.signaturesService.datesContent[t]){e.next=11;break}i=0;case 2:if(!(i<o.signaturesService.datesContent[t].length)){e.next=11;break}return r=o.signaturesService.datesContent[t][i],e.next=6,o.getSvgContent(i);case 6:a=e.sent,n.push({encodedImage:a.replace("data:image/svg+xml;base64,",""),width:r.width,height:r.height,positionX:r.positionX,positionY:r.positionY,type:"SVG",page:t});case 8:i++,e.next=2;break;case 11:o.signaturesService.signaturesContent[t]&&o.signaturesService.signaturesContent[t].forEach(function(e){n.push({encodedImage:e.encodedSignature,width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})}),o.signaturesService.notesContent[t]&&o.signaturesService.notesContent[t].forEach(function(e){n.push({encodedImage:e.fullPath.replace("data:image/png;base64,",""),width:e.width,positionX:e.positionX,positionY:e.positionY,type:"PNG",page:t})});case 12:case"end":return e.stop()}},e)}),r=1;case 3:if(!(r<=this.signaturesService.totalPage)){t.next=8;break}return t.delegateYield(i(r),"t0",5);case 5:r++,t.next=3;break;case 8:e(n);case 9:case"end":return t.stop()}},t,this)}))}));case 1:case"end":return e.stop()}},e)}))}},{key:"getSvgContent",value:function(e){return new Promise(function(t){var n=document.getElementById("testSVG_"+e),i=(new XMLSerializer).serializeToString(n),r=new Blob([i],{type:"image/svg+xml"}),o=new FileReader;o.readAsDataURL(r),o.onloadend=function(){t(o.result)}})}},{key:"checkGroupMail",value:function(e,t){var n=this;return new Promise(function(i){return fW(n,void 0,void 0,U().mark(function n(){var r=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:this.functionsService.empty(e.mailingId)?i([this.signaturesService.mainDocumentId]):this.http.get("../rest/documents/".concat(this.signaturesService.mainDocumentId,"/linkedMailing")).pipe(Mw(function(e){return fW(r,void 0,void 0,U().mark(function n(){var r,o=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e.documents.length>1)){n.next=8;break}return n.next=3,this.alertController.create({header:this.translate.instant("lang.mailing"),message:this.translate.instant("validate"===t?"lang.makeActionOnDocInMailGroup":"lang.refuseActionDocInMailGroup"),backdropDismiss:!1,buttons:[{text:this.translate.instant("lang.yes"),handler:function(){i(e.documents)}},{role:"cancel",text:this.translate.instant("lang.no"),cssClass:"secondary",handler:function(){i([o.signaturesService.mainDocumentId])}}]});case 3:return r=n.sent,n.next=6,r.present();case 6:n.next=9;break;case 8:i([this.signaturesService.mainDocumentId]);case 9:case"end":return n.stop()}},n,this)}))}),yw(function(e){return r.notificationService.handleErrors(e),i([]),nb(!1)})).subscribe();case 1:case"end":return n.stop()}},n,this)}))})}}]),e}()).\u0275fac=function(e){return new(e||cW)(rr(Tb),rr(zP),rr(WP),rr($P),rr(hW),rr(ME))},cW.\u0275prov=rt({token:cW,factory:cW.\u0275fac,providedIn:"root"}),cW);Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(e,t){return new Uint8Array(Array.prototype.slice.call(this,e,t))}});var gW=/iPhone/i,vW=/iPod/i,mW=/iPad/i,yW=/\biOS-universal(?:.+)Mac\b/i,bW=/\bAndroid(?:.+)Mobile\b/i,wW=/Android/i,kW=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,xW=/Silk/i,_W=/Windows Phone/i,AW=/\bWindows(?:.+)ARM\b/i,CW=/BlackBerry/i,SW=/BB10/i,EW=/Opera Mini/i,PW=/\b(CriOS|Chrome)(?:.+)Mobile/i,OW=/Mobile(?:.+)Firefox\b/i,DW=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream},IW=S("OmFT");function TW(e,t){var n=0;if(1===e.length)return e[0];for(var i=e.length-1;i>=0;i--)n+=e[e.length-1-i]*Math.pow(2,t*i);return n}function MW(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=n,r=e,o=0,a=Math.pow(2,t),s=1;s<8;s++){if(e<a){var l=void 0;if(i<0)l=new ArrayBuffer(s),o=s;else{if(i<s)return new ArrayBuffer(0);l=new ArrayBuffer(i),o=i}for(var u=new Uint8Array(l),c=s-1;c>=0;c--){var d=Math.pow(2,c*t);u[o-c-1]=Math.floor(r/d),r-=u[o-c-1]*d}return l}a*=Math.pow(2,t)}return new ArrayBuffer(0)}function BW(){for(var e=0,t=0,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var o=0,a=i;o<a.length;o++){var s=a[o];e+=s.length}for(var l=new ArrayBuffer(e),u=new Uint8Array(l),c=0,d=i;c<d.length;c++){var h=d[c];u.set(h,t),t+=h.length}return u}function RW(){var e=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){var t=0===e[0]&&0==(128&e[1]);(255===e[0]&&128&e[1]||t)&&this.warnings.push("Needlessly long format")}for(var n=new ArrayBuffer(this.valueHex.byteLength),i=new Uint8Array(n),r=0;r<this.valueHex.byteLength;r++)i[r]=0;i[0]=128&e[0];for(var o=TW(i,8),a=new ArrayBuffer(this.valueHex.byteLength),s=new Uint8Array(a),l=0;l<this.valueHex.byteLength;l++)s[l]=e[l];return s[0]&=127,TW(s,8)-o}function LW(e,t){var n=e.toString(10);if(t<n.length)return"";for(var i=t-n.length,r=new Array(i),o=0;o<i;o++)r[o]="0";return r.join("").concat(n)}function FW(){if("undefined"==typeof BigInt)throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function NW(e){for(var t=0,n=0,i=0;i<e.length;i++)t+=e[i].byteLength;for(var r=new Uint8Array(t),o=0;o<e.length;o++){var a=e[o];r.set(new Uint8Array(a),n),n+=a.byteLength}return r.buffer}function VW(e,t,n,i){return t instanceof Uint8Array?t.byteLength?n<0?(e.error="Wrong parameter: inputOffset less than zero",!1):i<0?(e.error="Wrong parameter: inputLength less than zero",!1):!(t.byteLength-n-i<0&&(e.error="End of input reached before message was fully decoded (inconsistent offset and length values)",1)):(e.error="Wrong parameter: inputBuffer has zero length",!1):(e.error="Wrong parameter: inputBuffer must be 'Uint8Array'",!1)}S("mNvP"),Math.log(2);var zW=function(){function e(){Z(this,e),this.items=[]}return Y(e,[{key:"write",value:function(e){this.items.push(e)}},{key:"final",value:function(){return NW(this.items)}}]),e}(),jW=[new Uint8Array([1])],HW=new ArrayBuffer(0),UW=new Uint8Array(0);function WW(e){var t;return(t=function(e){E(n,e);var t=O(n);function n(){var e,i;Z(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];e=t.call.apply(t,[this].concat(o));var s=o[0]||{};return e.isHexOnly=null!==(i=s.isHexOnly)&&void 0!==i&&i,e.valueHexView=s.valueHex?IW.BufferSourceConverter.toUint8Array(s.valueHex):UW,e}return Y(n,[{key:"valueHex",get:function(){return this.valueHexView.slice().buffer},set:function(e){this.valueHexView=new Uint8Array(e)}},{key:"fromBER",value:function(e,t,n){var i=e instanceof ArrayBuffer?new Uint8Array(e):e;if(!VW(this,i,t,n))return-1;var r=t+n;return this.valueHexView=i.subarray(t,r),this.valueHexView.length?(this.blockLength=n,r):(this.warnings.push("Zero buffer length"),t)}},{key:"toBER",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.isHexOnly?e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer:(this.error="Flag 'isHexOnly' is not set, abort",HW)}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isHexOnly:this.isHexOnly,valueHex:IW.Convert.ToHex(this.valueHexView)})}}]),n}(e)).NAME="hexBlock",t}var GW=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.blockLength,i=void 0===n?0:n,r=t.error,o=void 0===r?"":r,a=t.warnings,s=void 0===a?[]:a,l=t.valueBeforeDecode,u=void 0===l?UW:l;Z(this,e),this.blockLength=i,this.error=o,this.warnings=s,this.valueBeforeDecodeView=IW.BufferSourceConverter.toUint8Array(u)}return Y(e,[{key:"valueBeforeDecode",get:function(){return this.valueBeforeDecodeView.slice().buffer},set:function(e){this.valueBeforeDecodeView=new Uint8Array(e)}},{key:"toJSON",value:function(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:IW.Convert.ToHex(this.valueBeforeDecodeView)}}}],[{key:"blockName",value:function(){return this.NAME}}]),e}();GW.NAME="baseBlock";var qW=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBER",value:function(e,t,n){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}},{key:"toBER",value:function(e,t){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}]),n}(GW);qW.NAME="valueBlock";var YW=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.idBlock,u=void 0===l?{}:l;return Z(this,n),e=t.call(this),u?(e.isHexOnly=null!==(i=u.isHexOnly)&&void 0!==i&&i,e.valueHexView=u.valueHex?IW.BufferSourceConverter.toUint8Array(u.valueHex):UW,e.tagClass=null!==(r=u.tagClass)&&void 0!==r?r:-1,e.tagNumber=null!==(o=u.tagNumber)&&void 0!==o?o:-1,e.isConstructed=null!==(a=u.isConstructed)&&void 0!==a&&a):(e.tagClass=-1,e.tagNumber=-1,e.isConstructed=!1),e}return Y(n,[{key:"toBER",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;switch(this.tagClass){case 1:t|=0;break;case 2:t|=64;break;case 3:t|=128;break;case 4:t|=192;break;default:return this.error="Unknown tag class",HW}if(this.isConstructed&&(t|=32),this.tagNumber<31&&!this.isHexOnly){var n=new Uint8Array(1);if(!e){var i=this.tagNumber;t|=i&=31,n[0]=t}return n.buffer}if(!this.isHexOnly){var r=MW(this.tagNumber,7),o=new Uint8Array(r),a=r.byteLength,s=new Uint8Array(a+1);if(s[0]=31|t,!e){for(var l=0;l<a-1;l++)s[l+1]=128|o[l];s[a]=o[a-1]}return s.buffer}var u=new Uint8Array(this.valueHexView.byteLength+1);if(u[0]=31|t,!e){for(var c=this.valueHexView,d=0;d<c.length-1;d++)u[d+1]=128|c[d];u[this.valueHexView.byteLength]=c[c.length-1]}return u.buffer}},{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;switch(192&r[0]){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:return this.error="Unknown tag class",-1}this.isConstructed=32==(32&r[0]),this.isHexOnly=!1;var o=31&r[0];if(31!==o)this.tagNumber=o,this.blockLength=1;else{for(var a=1,s=this.valueHexView=new Uint8Array(255),l=255;128&r[a];){if(s[a-1]=127&r[a],++a>=r.length)return this.error="End of input reached before message was fully decoded",-1;if(a===l){l+=255;for(var u=new Uint8Array(l),c=0;c<s.length;c++)u[c]=s[c];s=this.valueHexView=new Uint8Array(l)}}this.blockLength=a+1,s[a-1]=127&r[a];for(var d=new Uint8Array(a),h=0;h<a;h++)d[h]=s[h];(s=this.valueHexView=new Uint8Array(a)).set(d),this.blockLength<=9?this.tagNumber=TW(s,7):(this.isHexOnly=!0,this.warnings.push("Tag too long, represented as hex-coded"))}if(1===this.tagClass&&this.isConstructed)switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:return this.error="Constructed encoding used for primitive type",-1}return t+this.blockLength}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed})}}]),n}(WW(GW));YW.NAME="identificationBlock";var ZW=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=a.lenBlock,l=void 0===s?{}:s;return Z(this,n),(e=t.call(this)).isIndefiniteForm=null!==(i=l.isIndefiniteForm)&&void 0!==i&&i,e.longFormUsed=null!==(r=l.longFormUsed)&&void 0!==r&&r,e.length=null!==(o=l.length)&&void 0!==o?o:0,e}return Y(n,[{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);if(0===r.length)return this.error="Zero buffer length",-1;if(255===r[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===r[0],this.isIndefiniteForm)return this.blockLength=1,t+this.blockLength;if(this.longFormUsed=!!(128&r[0]),!1===this.longFormUsed)return this.length=r[0],this.blockLength=1,t+this.blockLength;var o=127&r[0];if(o>8)return this.error="Too big integer",-1;if(o+1>r.length)return this.error="End of input reached before message was fully decoded",-1;var a=t+1,s=i.subarray(a,a+o);return 0===s[o-1]&&this.warnings.push("Needlessly long encoded length"),this.length=TW(s,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=o+1,t+this.blockLength}},{key:"toBER",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return e=new ArrayBuffer(1),!1===n&&((t=new Uint8Array(e))[0]=128),e;if(this.longFormUsed){var i=MW(this.length,8);if(i.byteLength>127)return this.error="Too big length",HW;if(e=new ArrayBuffer(i.byteLength+1),n)return e;var r=new Uint8Array(i);(t=new Uint8Array(e))[0]=128|i.byteLength;for(var o=0;o<i.byteLength;o++)t[o+1]=r[o];return e}return e=new ArrayBuffer(1),!1===n&&((t=new Uint8Array(e))[0]=this.length),e}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length})}}]),n}(GW);ZW.NAME="lengthBlock";var KW={},QW=function(t){E(i,t);var n=O(i);function i(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.name,a=void 0===o?"":o,s=r.optional,l=void 0!==s&&s,u=r.primitiveSchema,c=w(r,e),d=arguments.length>1?arguments[1]:void 0;return Z(this,i),(t=n.call(this,c)).name=a,t.optional=l,u&&(t.primitiveSchema=u),t.idBlock=new YW(c),t.lenBlock=new ZW(c),t.valueBlock=d?new d(c):new qW(c),t}return Y(i,[{key:"fromBER",value:function(e,t,n){var i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}},{key:"toBER",value:function(e,t){var n=t||new zW;t||XW(this);var i=this.idBlock.toBER(e);if(n.write(i),this.lenBlock.isIndefiniteForm)n.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(e,n),n.write(new ArrayBuffer(2));else{var r=this.valueBlock.toBER(e);this.lenBlock.length=r.byteLength;var o=this.lenBlock.toBER(e);n.write(o),n.write(r)}return t?HW:n.final()}},{key:"toJSON",value:function(){var e=x(x({},C(M(i.prototype),"toJSON",this).call(this)),{},{idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional});return this.primitiveSchema&&(e.primitiveSchema=this.primitiveSchema.toJSON()),e}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ascii";return"ascii"===e?this.onAsciiEncoding():IW.Convert.ToHex(this.toBER())}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(IW.Convert.ToHex(this.valueBlock.valueBeforeDecodeView))}},{key:"isEqual",value:function(e){return this===e||e instanceof this.constructor&&function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new Uint8Array(e),i=new Uint8Array(t),r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}(this.toBER(),e.toBER())}}]),i}(GW);function XW(e){if(e instanceof KW.Constructed){var t,n=R(e.valueBlock.value);try{for(n.s();!(t=n.n()).done;){XW(t.value)&&(e.lenBlock.isIndefiniteForm=!0)}}catch(i){n.e(i)}finally{n.f()}}return!!e.lenBlock.isIndefiniteForm}QW.NAME="BaseBlock";var JW=function(e){E(i,e);var n=O(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.value,a=void 0===o?"":o,s=w(r,t),l=arguments.length>1?arguments[1]:void 0;return Z(this,i),e=n.call(this,s,l),a&&e.fromString(a),e}return Y(i,[{key:"getValue",value:function(){return this.valueBlock.value}},{key:"setValue",value:function(e){this.valueBlock.value=e}},{key:"fromBER",value:function(e,t,n){var i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : '").concat(this.valueBlock.value,"'")}}]),i}(QW);JW.NAME="BaseStringBlock";var $W,eG,tG,nG=function(e){E(n,e);var t=O(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.isHexOnly,a=void 0===o||o,s=w(r,i);return Z(this,n),(e=t.call(this,s)).isHexOnly=a,e}return Y(n)}(WW(qW));nG.NAME="PrimitiveValueBlock";var iG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,nG)).idBlock.isConstructed=!1,e}return Y(n)}(QW);function rG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,i=t,r=new QW({},qW),o=new GW;if(!VW(o,e,t,n))return r.error=o.error,{offset:-1,result:r};if(!e.subarray(t,t+n).length)return r.error="Zero buffer length",{offset:-1,result:r};var a=r.idBlock.fromBER(e,t,n);if(r.idBlock.warnings.length&&r.warnings.concat(r.idBlock.warnings),-1===a)return r.error=r.idBlock.error,{offset:-1,result:r};if(a=r.lenBlock.fromBER(e,t=a,n-=r.idBlock.blockLength),r.lenBlock.warnings.length&&r.warnings.concat(r.lenBlock.warnings),-1===a)return r.error=r.lenBlock.error,{offset:-1,result:r};if(t=a,n-=r.lenBlock.blockLength,!r.idBlock.isConstructed&&r.lenBlock.isIndefiniteForm)return r.error="Indefinite length form used for primitive encoding form",{offset:-1,result:r};var s=QW;switch(r.idBlock.tagClass){case 1:if(r.idBlock.tagNumber>=37&&!1===r.idBlock.isHexOnly)return r.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:r};switch(r.idBlock.tagNumber){case 0:if(r.idBlock.isConstructed&&r.lenBlock.length>0)return r.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:r};s=KW.EndOfContent;break;case 1:s=KW.Boolean;break;case 2:s=KW.Integer;break;case 3:s=KW.BitString;break;case 4:s=KW.OctetString;break;case 5:s=KW.Null;break;case 6:s=KW.ObjectIdentifier;break;case 10:s=KW.Enumerated;break;case 12:s=KW.Utf8String;break;case 13:s=KW.RelativeObjectIdentifier;break;case 14:s=KW.TIME;break;case 15:return r.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:r};case 16:s=KW.Sequence;break;case 17:s=KW.Set;break;case 18:s=KW.NumericString;break;case 19:s=KW.PrintableString;break;case 20:s=KW.TeletexString;break;case 21:s=KW.VideotexString;break;case 22:s=KW.IA5String;break;case 23:s=KW.UTCTime;break;case 24:s=KW.GeneralizedTime;break;case 25:s=KW.GraphicString;break;case 26:s=KW.VisibleString;break;case 27:s=KW.GeneralString;break;case 28:s=KW.UniversalString;break;case 29:s=KW.CharacterString;break;case 30:s=KW.BmpString;break;case 31:s=KW.DATE;break;case 32:s=KW.TimeOfDay;break;case 33:s=KW.DateTime;break;case 34:s=KW.Duration;break;default:var l=r.idBlock.isConstructed?new KW.Constructed:new KW.Primitive;l.idBlock=r.idBlock,l.lenBlock=r.lenBlock,l.warnings=r.warnings,r=l}break;case 2:case 3:case 4:default:s=r.idBlock.isConstructed?KW.Constructed:KW.Primitive}return a=(r=function(e,t){if(e instanceof t)return e;var n=new t;return n.idBlock=e.idBlock,n.lenBlock=e.lenBlock,n.warnings=e.warnings,n.valueBeforeDecodeView=e.valueBeforeDecodeView,n}(r,s)).fromBER(e,t,r.lenBlock.isIndefiniteForm?n:r.lenBlock.length),r.valueBeforeDecodeView=e.subarray(i,i+r.blockLength),{offset:a,result:r}}function oG(e){if(!e.byteLength){var t=new QW({},qW);return t.error="Input buffer has zero length",{offset:-1,result:t}}return rG(IW.BufferSourceConverter.toUint8Array(e).slice(),0,e.byteLength)}KW.Primitive=iG,iG.NAME="PRIMITIVE";var aG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.value,a=void 0===o?[]:o,s=i.isIndefiniteForm,l=void 0!==s&&s,u=w(i,r);return Z(this,n),(e=t.call(this,u)).value=a,e.isIndefiniteForm=l,e}return Y(n,[{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;if(this.valueBeforeDecodeView=i.subarray(t,t+n),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),t;for(var r=t;(this.isIndefiniteForm?1:n)>0;){var o=rG(i,r,n);if(-1===o.offset)return this.error=o.result.error,this.warnings.concat(o.result.warnings),-1;if(r=o.offset,this.blockLength+=o.result.blockLength,n-=o.result.blockLength,this.value.push(o.result),this.isIndefiniteForm&&"EndOfContent"===o.result.constructor.NAME)break}return this.isIndefiniteForm&&("EndOfContent"===this.value[this.value.length-1].constructor.NAME?this.value.pop():this.warnings.push("No EndOfContent block encoded")),r}},{key:"toBER",value:function(e,t){for(var n=t||new zW,i=0;i<this.value.length;i++)this.value[i].toBER(e,n);return t?HW:n.final()}},{key:"toJSON",value:function(){var e,t=x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isIndefiniteForm:this.isIndefiniteForm,value:[]}),i=R(this.value);try{for(i.s();!(e=i.n()).done;){var r=e.value;t.value.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}return t}}]),n}(qW);aG.NAME="ConstructedValueBlock";var sG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,aG)).idBlock.isConstructed=!0,e}return Y(n,[{key:"fromBER",value:function(e,t,n){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;var i=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?n:this.lenBlock.length);return-1===i?(this.error=this.valueBlock.error,i):(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength),i)}},{key:"onAsciiEncoding",value:function(){var e,t=[],n=R(this.valueBlock.value);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toString("ascii").split("\n").map(function(e){return"  "+e}).join("\n"))}}catch(o){n.e(o)}finally{n.f()}var r=3===this.idBlock.tagClass?"[".concat(this.idBlock.tagNumber,"]"):this.constructor.NAME;return t.length?"".concat(r," :\n").concat(t.join("\n")):r+" :"}}]),n}(QW);KW.Constructed=sG,sG.NAME="CONSTRUCTED";var lG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBER",value:function(e,t,n){return t}},{key:"toBER",value:function(e){return HW}}]),n}(qW);lG.override="EndOfContentValueBlock";var uG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,lG)).idBlock.tagClass=1,e.idBlock.tagNumber=0,e}return Y(n)}(QW);KW.EndOfContent=uG,uG.NAME="EndOfContent";var cG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,qW)).idBlock.tagClass=1,e.idBlock.tagNumber=5,e}return Y(n,[{key:"fromBER",value:function(e,t,n){return this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=n,t+n>e.byteLength?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+n}},{key:"toBER",value:function(e,t){var n=new ArrayBuffer(2);if(!e){var i=new Uint8Array(n);i[0]=5,i[1]=0}return t&&t.write(n),n}},{key:"onAsciiEncoding",value:function(){return""+this.constructor.NAME}}]),n}(QW);KW.Null=cG,cG.NAME="NULL";var dG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,a=w(i,o);return Z(this,n),(e=t.call(this,a)).valueHexView=a.valueHex?IW.BufferSourceConverter.toUint8Array(a.valueHex):new Uint8Array(1),r&&(e.value=r),e}return Y(n,[{key:"value",get:function(){var e,t=R(this.valueHexView);try{for(t.s();!(e=t.n()).done;){if(e.value>0)return!0}}catch(n){t.e(n)}finally{t.f()}return!1},set:function(e){this.valueHexView[0]=e?255:0}},{key:"fromBER",value:function(e,t,n){var i=IW.BufferSourceConverter.toUint8Array(e);return VW(this,i,t,n)?(this.valueHexView=i.subarray(t,t+n),n>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,RW.call(this),this.blockLength=n,t+n):-1}},{key:"toBER",value:function(){return this.valueHexView.slice()}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.value})}}]),n}(WW(qW));dG.NAME="BooleanValueBlock";var hG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,dG)).idBlock.tagClass=1,e.idBlock.tagNumber=1,e}return Y(n,[{key:"getValue",value:function(){return this.valueBlock.value}},{key:"setValue",value:function(e){this.valueBlock.value=e}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.getValue)}}]),n}(QW);KW.Boolean=hG,hG.NAME="BOOLEAN";var fG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.isConstructed,o=void 0!==r&&r,s=w(i,a);return Z(this,n),(e=t.call(this,s)).isConstructed=o,e}return Y(n,[{key:"fromBER",value:function(e,t,i){var r=0;if(this.isConstructed){if(this.isHexOnly=!1,-1===(r=aG.prototype.fromBER.call(this,e,t,i)))return r;for(var o=0;o<this.value.length;o++){var a=this.value[o].constructor.NAME;if("EndOfContent"===a){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only",-1}if("OCTET STRING"!==a)return this.error="OCTET STRING may consists of OCTET STRINGs only",-1}}else this.isHexOnly=!0,r=C(M(n.prototype),"fromBER",this).call(this,e,t,i),this.blockLength=i;return r}},{key:"toBER",value:function(e,t){return this.isConstructed?aG.prototype.toBER.call(this,e,t):e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{isConstructed:this.isConstructed})}}]),n}(WW(aG));fG.NAME="OctetStringValueBlock";var pG=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.idBlock,l=void 0===a?{}:a,u=o.lenBlock,c=void 0===u?{}:u,d=w(o,s);return Z(this,n),null!==(i=d.isConstructed)&&void 0!==i||(d.isConstructed=!!(null===(r=d.value)||void 0===r?void 0:r.length)),(e=t.call(this,x({idBlock:x({isConstructed:d.isConstructed},l),lenBlock:x(x({},c),{},{isIndefiniteForm:!!d.isIndefiniteForm})},d),fG)).idBlock.tagClass=1,e.idBlock.tagNumber=4,e}return Y(n,[{key:"fromBER",value:function(e,t,i){if(this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,0===i)return 0===this.idBlock.error.length&&(this.blockLength+=this.idBlock.blockLength),0===this.lenBlock.error.length&&(this.blockLength+=this.lenBlock.blockLength),t;if(!this.valueBlock.isConstructed){var r=(e instanceof ArrayBuffer?new Uint8Array(e):e).subarray(t,t+i);try{if(r.byteLength){var o=rG(r,0,r.byteLength);-1!==o.offset&&o.offset===i&&(this.valueBlock.value=[o.result])}}catch(a){}}return C(M(n.prototype),"fromBER",this).call(this,e,t,i)}},{key:"onAsciiEncoding",value:function(){return this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length?sG.prototype.onAsciiEncoding.call(this):"".concat(this.constructor.NAME," : ").concat(IW.Convert.ToHex(this.valueBlock.valueHexView))}},{key:"getValue",value:function(){if(!this.idBlock.isConstructed)return this.valueBlock.valueHexView.slice().buffer;var e,t=[],i=R(this.valueBlock.value);try{for(i.s();!(e=i.n()).done;){var r=e.value;r instanceof n&&t.push(r.valueBlock.valueHexView)}}catch(o){i.e(o)}finally{i.f()}return IW.BufferSourceConverter.concat(t)}}]),n}(QW);KW.OctetString=pG,pG.NAME="OCTET STRING";var gG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.unusedBits,o=void 0===r?0:r,a=i.isConstructed,s=void 0!==a&&a,u=w(i,l);return Z(this,n),(e=t.call(this,u)).unusedBits=o,e.isConstructed=s,e.blockLength=e.valueHexView.byteLength,e}return Y(n,[{key:"fromBER",value:function(e,t,n){if(!n)return t;var i=-1;if(this.isConstructed){if(-1===(i=aG.prototype.fromBER.call(this,e,t,n)))return i;var r,o=R(this.value);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.constructor.NAME;if("EndOfContent"===s){if(this.isIndefiniteForm)break;return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1}if("BIT STRING"!==s)return this.error="BIT STRING may consists of BIT STRINGs only",-1;var l=a.valueBlock;if(this.unusedBits>0&&l.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=l.unusedBits}}catch(f){o.e(f)}finally{o.f()}return i}var u=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,u,t,n))return-1;var c=u.subarray(t,t+n);if(this.unusedBits=c[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){var d=c.subarray(1);try{if(d.byteLength){var h=rG(d,0,d.byteLength);-1!==h.offset&&h.offset===n-1&&(this.value=[h.result])}}catch(p){}}return this.valueHexView=c.subarray(1),this.blockLength=c.length,t+n}},{key:"toBER",value:function(e,t){if(this.isConstructed)return aG.prototype.toBER.call(this,e,t);if(e)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return HW;var n=new Uint8Array(this.valueHexView.length+1);return n[0]=this.unusedBits,n.set(this.valueHexView,1),n.buffer}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{unusedBits:this.unusedBits,isConstructed:this.isConstructed})}}]),n}(WW(aG));gG.NAME="BitStringValueBlock";var vG=function(e){E(n,e);var t=O(n);function n(){var e,i,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.idBlock,s=void 0===a?{}:a,l=o.lenBlock,c=void 0===l?{}:l,d=w(o,u);return Z(this,n),null!==(i=d.isConstructed)&&void 0!==i||(d.isConstructed=!!(null===(r=d.value)||void 0===r?void 0:r.length)),(e=t.call(this,x({idBlock:x({isConstructed:d.isConstructed},s),lenBlock:x(x({},c),{},{isIndefiniteForm:!!d.isIndefiniteForm})},d),gG)).idBlock.tagClass=1,e.idBlock.tagNumber=3,e}return Y(n,[{key:"fromBER",value:function(e,t,i){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,C(M(n.prototype),"fromBER",this).call(this,e,t,i)}},{key:"onAsciiEncoding",value:function(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return sG.prototype.onAsciiEncoding.call(this);var e,t=[],n=R(this.valueBlock.valueHexView);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toString(2).padStart(8,"0"))}}catch(o){n.e(o)}finally{n.f()}var r=t.join("");return"".concat(this.constructor.NAME," : ").concat(r.substring(0,r.length-this.valueBlock.unusedBits))}}]),n}(QW);function mG(e,t){for(var n=new Uint8Array([0]),i=new Uint8Array(e),r=new Uint8Array(t),o=i.slice(0),a=o.length-1,s=r.slice(0),l=s.length-1,u=0,c=0,d=l<a?a:l;d>=0;d--,c++){switch(!0){case c<s.length:u=o[a-c]+s[l-c]+n[0];break;default:u=o[a-c]+n[0]}switch(n[0]=u/10,!0){case c>=o.length:o=BW(new Uint8Array([u%10]),o);break;default:o[a-c]=u%10}}return n[0]>0&&(o=BW(n,o)),o}function yG(e){if(e>=jW.length)for(var t=jW.length;t<=e;t++){for(var n=new Uint8Array([0]),i=jW[t-1].slice(0),r=i.length-1;r>=0;r--){var o=new Uint8Array([(i[r]<<1)+n[0]]);n[0]=o[0]/10,i[r]=o[0]%10}n[0]>0&&(i=BW(n,i)),jW.push(i)}return jW[e]}function bG(e,t){for(var n,i=0,r=new Uint8Array(e),o=new Uint8Array(t),a=r.slice(0),s=a.length-1,l=o.slice(0),u=l.length-1,c=0,d=u;d>=0;d--,c++)switch(n=a[s-c]-l[u-c]-i,!0){case n<0:i=1,a[s-c]=n+10;break;default:i=0,a[s-c]=n}if(i>0)for(var h=s-u+1;h>=0;h--,c++){if(!((n=a[s-c]-i)<0)){i=0,a[s-c]=n;break}i=1,a[s-c]=n+10}return a.slice()}KW.BitString=vG,vG.NAME="BIT STRING";var wG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=w(i,c);return Z(this,n),(e=t.call(this,o))._valueDec=0,o.valueHex&&e.setValueHex(),void 0!==r&&(e.valueDec=r),e}return Y(n,[{key:"setValueHex",value:function(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=RW.call(this)))}},{key:"valueDec",get:function(){return this._valueDec},set:function(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(function(e){for(var t=e<0?-1*e:e,n=128,i=1;i<8;i++){if(t<=n){if(e<0){var r=MW(n-t,8,i);return new Uint8Array(r)[0]|=128,r}var o=MW(t,8,i),a=new Uint8Array(o);if(128&a[0]){var s=o.slice(0),l=new Uint8Array(s);o=new ArrayBuffer(o.byteLength+1),a=new Uint8Array(o);for(var u=0;u<s.byteLength;u++)a[u+1]=l[u];a[0]=0}return o}n*=Math.pow(2,8)}return new ArrayBuffer(0)}(e))}},{key:"fromDER",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=this.fromBER(e,t,n);if(-1===r)return r;var o=this.valueHexView;return 0===o[0]&&0!=(128&o[1])?this.valueHexView=o.subarray(1):0!==i&&o.length<i&&(i-o.length>1&&(i=o.length+1),this.valueHexView=o.subarray(i-o.length)),r}},{key:"toDER",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.valueHexView;switch(!0){case 0!=(128&t[0]):var n=new Uint8Array(this.valueHexView.length+1);n[0]=0,n.set(t,1),this.valueHexView=n;break;case 0===t[0]&&0==(128&t[1]):this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}},{key:"fromBER",value:function(e,t,i){var r=C(M(n.prototype),"fromBER",this).call(this,e,t,i);return-1===r||this.setValueHex(),r}},{key:"toBER",value:function(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{valueDec:this.valueDec})}},{key:"toString",value:function(){for(var e,t=8*this.valueHexView.length-1,n=new Uint8Array(8*this.valueHexView.length/3),i=0,r=this.valueHexView,o="",a=!1,s=r.byteLength-1;s>=0;s--){e=r[s];for(var l=0;l<8;l++){if(1==(1&e))switch(i){case t:n=bG(yG(i),n),o="-";break;default:n=mG(n,yG(i))}i++,e>>=1}}for(var u=0;u<n.length;u++)n[u]&&(a=!0),a&&(o+="0123456789".charAt(n[u]));return!1===a&&(o+="0123456789".charAt(0)),o}}]),n}(WW(qW));$W=wG,wG.NAME="IntegerValueBlock",Object.defineProperty($W.prototype,"valueHex",{set:function(e){this.valueHexView=new Uint8Array(e),this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}});var kG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,wG)).idBlock.tagClass=1,e.idBlock.tagNumber=2,e}return Y(n,[{key:"toBigInt",value:function(){return FW(),BigInt(this.valueBlock.toString())}},{key:"convertToDER",value:function(){var e=new n({valueHex:this.valueBlock.valueHexView});return e.valueBlock.toDER(),e}},{key:"convertFromDER",value:function(){return new n({valueHex:0===this.valueBlock.valueHexView[0]?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString())}}],[{key:"fromBigInt",value:function(e){FW();var t=BigInt(e),i=new zW,r=t.toString(16).replace(/^-/,""),o=new Uint8Array(IW.Convert.FromHex(r));if(t<0){var a=new Uint8Array(o.length+(128&o[0]?1:0));a[0]|=128;var s=BigInt("0x"+IW.Convert.ToHex(a)),l=IW.BufferSourceConverter.toUint8Array(IW.Convert.FromHex((s+t).toString(16)));l[0]|=128,i.write(l)}else 128&o[0]&&i.write(new Uint8Array([0])),i.write(o);return new n({valueHex:i.final()})}}]),n}(QW);KW.Integer=kG,kG.NAME="INTEGER";var xG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=10,e}return Y(n)}(kG);KW.Enumerated=xG,xG.NAME="ENUMERATED";var _G=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.valueDec,o=void 0===r?-1:r,a=i.isFirstSid,s=void 0!==a&&a,l=w(i,d);return Z(this,n),(e=t.call(this,l)).valueDec=o,e.isFirstSid=s,e}return Y(n,[{key:"fromBER",value:function(e,t,n){if(!n)return t;var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(var o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);for(var a=new Uint8Array(this.blockLength),s=0;s<this.blockLength;s++)a[s]=this.valueHexView[s];return this.valueHexView=a,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=TW(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}},{key:"valueBigInt",set:function(e){FW();for(var t=BigInt(e).toString(2);t.length%7;)t="0"+t;for(var n=new Uint8Array(t.length/7),i=0;i<n.length;i++)n[i]=parseInt(t.slice(7*i,7*i+7),2)+(i+1<n.length?128:0);this.fromBER(n.buffer,0,n.length)}},{key:"toBER",value:function(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);for(var t=this.valueHexView,n=new Uint8Array(this.blockLength),i=0;i<this.blockLength-1;i++)n[i]=128|t[i];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}var r=MW(this.valueDec,7);if(0===r.byteLength)return this.error="Error during encoding SID value",HW;var o=new Uint8Array(r.byteLength);if(!e){for(var a=new Uint8Array(r),s=r.byteLength-1,l=0;l<s;l++)o[l]=128|a[l];o[s]=a[s]}return o}},{key:"toString",value:function(){var e="";if(this.isHexOnly)e=IW.Convert.ToHex(this.valueHexView);else if(this.isFirstSid){var t=this.valueDec;this.valueDec<=39?e="0.":this.valueDec<=79?(e="1.",t-=40):(e="2.",t-=80),e+=t.toString()}else e=this.valueDec.toString();return e}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{valueDec:this.valueDec,isFirstSid:this.isFirstSid})}}]),n}(WW(qW));_G.NAME="sidBlock";var AG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?"":r,a=w(i,h);return Z(this,n),(e=t.call(this,a)).value=[],o&&e.fromString(o),e}return Y(n,[{key:"fromBER",value:function(e,t,n){for(var i=t;n>0;){var r=new _G;if(-1===(i=r.fromBER(e,i,n)))return this.blockLength=0,this.error=r.error,i;0===this.value.length&&(r.isFirstSid=!0),this.blockLength+=r.blockLength,n-=r.blockLength,this.value.push(r)}return i}},{key:"toBER",value:function(e){for(var t=[],n=0;n<this.value.length;n++){var i=this.value[n].toBER(e);if(0===i.byteLength)return this.error=this.value[n].error,HW;t.push(i)}return NW(t)}},{key:"fromString",value:function(e){this.value=[];var t=0,n=0,i="",r=!1;do{if(i=-1===(n=e.indexOf(".",t))?e.substring(t):e.substring(t,n),t=n+1,r){var o=this.value[0],a=0;switch(o.valueDec){case 0:break;case 1:a=40;break;case 2:a=80;break;default:return void(this.value=[])}var s=parseInt(i,10);if(isNaN(s))return;o.valueDec=s+a,r=!1}else{var l=new _G;if(i>Number.MAX_SAFE_INTEGER){FW();var u=BigInt(i);l.valueBigInt=u}else if(l.valueDec=parseInt(i,10),isNaN(l.valueDec))return;this.value.length||(l.isFirstSid=!0,r=!0),this.value.push(l)}}while(-1!==n)}},{key:"toString",value:function(){for(var e="",t=!1,n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;var i=this.value[n].toString();0!==n&&(e+="."),t?(i="{".concat(i,"}"),this.value[n].isFirstSid?e="2.{".concat(i," - 80}"):e+=i):e+=i}return e}},{key:"toJSON",value:function(){for(var e=x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.toString(),sidArray:[]}),t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}]),n}(qW);AG.NAME="ObjectIdentifierValueBlock";var CG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,AG)).idBlock.tagClass=1,e.idBlock.tagNumber=6,e}return Y(n,[{key:"getValue",value:function(){return this.valueBlock.toString()}},{key:"setValue",value:function(e){this.valueBlock.fromString(e)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.getValue()})}}]),n}(QW);KW.ObjectIdentifier=CG,CG.NAME="OBJECT IDENTIFIER";var SG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.valueDec,o=void 0===r?0:r,a=w(i,f);return Z(this,n),(e=t.call(this,a)).valueDec=o,e}return Y(n,[{key:"fromBER",value:function(e,t,n){if(0===n)return t;var i=IW.BufferSourceConverter.toUint8Array(e);if(!VW(this,i,t,n))return-1;var r=i.subarray(t,t+n);this.valueHexView=new Uint8Array(n);for(var o=0;o<n&&(this.valueHexView[o]=127&r[o],this.blockLength++,0!=(128&r[o]));o++);for(var a=new Uint8Array(this.blockLength),s=0;s<this.blockLength;s++)a[s]=this.valueHexView[s];return this.valueHexView=a,0!=(128&r[this.blockLength-1])?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=TW(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}},{key:"toBER",value:function(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);for(var t=this.valueHexView,n=new Uint8Array(this.blockLength),i=0;i<this.blockLength-1;i++)n[i]=128|t[i];return n[this.blockLength-1]=t[this.blockLength-1],n.buffer}var r=MW(this.valueDec,7);if(0===r.byteLength)return this.error="Error during encoding SID value",HW;var o=new Uint8Array(r.byteLength);if(!e){for(var a=new Uint8Array(r),s=r.byteLength-1,l=0;l<s;l++)o[l]=128|a[l];o[s]=a[s]}return o.buffer}},{key:"toString",value:function(){return this.isHexOnly?IW.Convert.ToHex(this.valueHexView):this.valueDec.toString()}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{valueDec:this.valueDec})}}]),n}(WW(GW));SG.NAME="relativeSidBlock";var EG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?"":r,a=w(i,p);return Z(this,n),(e=t.call(this,a)).value=[],o&&e.fromString(o),e}return Y(n,[{key:"fromBER",value:function(e,t,n){for(var i=t;n>0;){var r=new SG;if(-1===(i=r.fromBER(e,i,n)))return this.blockLength=0,this.error=r.error,i;this.blockLength+=r.blockLength,n-=r.blockLength,this.value.push(r)}return i}},{key:"toBER",value:function(e,t){for(var n=[],i=0;i<this.value.length;i++){var r=this.value[i].toBER(e);if(0===r.byteLength)return this.error=this.value[i].error,HW;n.push(r)}return NW(n)}},{key:"fromString",value:function(e){this.value=[];var t=0,n=0,i="";do{i=-1===(n=e.indexOf(".",t))?e.substring(t):e.substring(t,n),t=n+1;var r=new SG;if(r.valueDec=parseInt(i,10),isNaN(r.valueDec))return!0;this.value.push(r)}while(-1!==n);return!0}},{key:"toString",value:function(){for(var e="",t=!1,n=0;n<this.value.length;n++){t=this.value[n].isHexOnly;var i=this.value[n].toString();0!==n&&(e+="."),t?e+=i="{".concat(i,"}"):e+=i}return e}},{key:"toJSON",value:function(){for(var e=x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.toString(),sidArray:[]}),t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}]),n}(qW);EG.NAME="RelativeObjectIdentifierValueBlock";var PG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i,EG)).idBlock.tagClass=1,e.idBlock.tagNumber=13,e}return Y(n,[{key:"getValue",value:function(){return this.valueBlock.toString()}},{key:"setValue",value:function(e){this.valueBlock.fromString(e)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.valueBlock.toString()||"empty")}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.getValue()})}}]),n}(QW);KW.RelativeObjectIdentifier=PG,PG.NAME="RelativeObjectIdentifier";var OG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=16,e}return Y(n)}(sG);KW.Sequence=OG,OG.NAME="SEQUENCE";var DG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=17,e}return Y(n)}(sG);KW.Set=DG,DG.NAME="SET";var IG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b({},(y(i),i));return Z(this,n),(e=t.call(this,r)).isHexOnly=!0,e.value="",e}return Y(n,[{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{value:this.value})}}]),n}(WW(qW));IG.NAME="StringValueBlock";var TG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(IG);TG.NAME="SimpleStringValueBlock";var MG=function(e){E(n,e);var t=O(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=b({},(y(e),e));return Z(this,n),t.call(this,i,TG)}return Y(n,[{key:"fromBuffer",value:function(e){this.valueBlock.value=String.fromCharCode.apply(null,IW.BufferSourceConverter.toUint8Array(e))}},{key:"fromString",value:function(e){for(var t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);this.valueBlock.value=e}}]),n}(JW);MG.NAME="SIMPLE STRING";var BG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBuffer",value:function(e){this.valueBlock.valueHexView=IW.BufferSourceConverter.toUint8Array(e);try{this.valueBlock.value=IW.Convert.ToUtf8String(e)}catch(t){this.warnings.push('Error during "decodeURIComponent": '.concat(t,", using raw string")),this.valueBlock.value=IW.Convert.ToBinary(e)}}},{key:"fromString",value:function(e){this.valueBlock.valueHexView=new Uint8Array(IW.Convert.FromUtf8String(e)),this.valueBlock.value=e}}]),n}(MG);BG.NAME="Utf8StringValueBlock";var RG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=12,e}return Y(n)}(BG);KW.Utf8String=RG,RG.NAME="UTF8String";var LG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBuffer",value:function(e){this.valueBlock.value=IW.Convert.ToUtf16String(e),this.valueBlock.valueHexView=IW.BufferSourceConverter.toUint8Array(e)}},{key:"fromString",value:function(e){this.valueBlock.value=e,this.valueBlock.valueHexView=new Uint8Array(IW.Convert.FromUtf16String(e))}}]),n}(MG);LG.NAME="BmpStringValueBlock";var FG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b({},(y(i),i));return Z(this,n),(e=t.call(this,r)).idBlock.tagClass=1,e.idBlock.tagNumber=30,e}return Y(n)}(LG);KW.BmpString=FG,FG.NAME="BMPString";var NG=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"fromBuffer",value:function(e){for(var t=ArrayBuffer.isView(e)?e.slice().buffer:e.slice(0),n=new Uint8Array(t),i=0;i<n.length;i+=4)n[i]=n[i+3],n[i+1]=n[i+2],n[i+2]=0,n[i+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(t))}},{key:"fromString",value:function(e){for(var t=e.length,n=this.valueBlock.valueHexView=new Uint8Array(4*t),i=0;i<t;i++){var r=MW(e.charCodeAt(i),8),o=new Uint8Array(r);if(!(o.length>4))for(var a=4-o.length,s=o.length-1;s>=0;s--)n[4*i+s+a]=o[s]}this.valueBlock.value=e}}]),n}(MG);NG.NAME="UniversalStringValueBlock";var VG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b({},(y(i),i));return Z(this,n),(e=t.call(this,r)).idBlock.tagClass=1,e.idBlock.tagNumber=28,e}return Y(n)}(NG);KW.UniversalString=VG,VG.NAME="UniversalString";var zG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=18,e}return Y(n)}(MG);KW.NumericString=zG,zG.NAME="NumericString";var jG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=19,e}return Y(n)}(MG);KW.PrintableString=jG,jG.NAME="PrintableString";var HG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=20,e}return Y(n)}(MG);KW.TeletexString=HG,HG.NAME="TeletexString";var UG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=21,e}return Y(n)}(MG);KW.VideotexString=UG,UG.NAME="VideotexString";var WG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=22,e}return Y(n)}(MG);KW.IA5String=WG,WG.NAME="IA5String";var GG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=25,e}return Y(n)}(MG);KW.GraphicString=GG,GG.NAME="GraphicString";var qG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=26,e}return Y(n)}(MG);KW.VisibleString=qG,qG.NAME="VisibleString";var YG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=27,e}return Y(n)}(MG);KW.GeneralString=YG,YG.NAME="GeneralString";var ZG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=29,e}return Y(n)}(MG);KW.CharacterString=ZG,ZG.NAME="CharacterString";var KG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=i.valueDate,a=w(i,g);if(Z(this,n),(e=t.call(this,a)).year=0,e.month=0,e.day=0,e.hour=0,e.minute=0,e.second=0,r){e.fromString(r),e.valueBlock.valueHexView=new Uint8Array(r.length);for(var s=0;s<r.length;s++)e.valueBlock.valueHexView[s]=r.charCodeAt(s)}return o&&(e.fromDate(o),e.valueBlock.valueHexView=new Uint8Array(e.toBuffer())),e.idBlock.tagClass=1,e.idBlock.tagNumber=23,D(e)}return Y(n,[{key:"fromBuffer",value:function(e){this.fromString(String.fromCharCode.apply(null,IW.BufferSourceConverter.toUint8Array(e)))}},{key:"toBuffer",value:function(){for(var e=this.toString(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return t}},{key:"fromDate",value:function(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()}},{key:"toDate",value:function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))}},{key:"fromString",value:function(e){var t=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/gi.exec(e);if(null!==t){var n=parseInt(t[1],10);this.year=n>=50?1900+n:2e3+n,this.month=parseInt(t[2],10),this.day=parseInt(t[3],10),this.hour=parseInt(t[4],10),this.minute=parseInt(t[5],10),this.second=parseInt(t[6],10)}else this.error="Wrong input string for conversion"}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iso";if("iso"===e){var t=new Array(7);return t[0]=LW(this.year<2e3?this.year-1900:this.year-2e3,2),t[1]=LW(this.month,2),t[2]=LW(this.day,2),t[3]=LW(this.hour,2),t[4]=LW(this.minute,2),t[5]=LW(this.second,2),t[6]="Z",t.join("")}return C(M(n.prototype),"toString",this).call(this,e)}},{key:"onAsciiEncoding",value:function(){return"".concat(this.constructor.NAME," : ").concat(this.toDate().toISOString())}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second})}}]),n}(qG);KW.UTCTime=KG,KG.NAME="UTCTime";var QG=function(e){E(n,e);var t=O(n);function n(){var e,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),null!==(i=(e=t.call(this,r)).millisecond)&&void 0!==i||(e.millisecond=0),e.idBlock.tagClass=1,e.idBlock.tagNumber=24,e}return Y(n,[{key:"fromDate",value:function(e){C(M(n.prototype),"fromDate",this).call(this,e),this.millisecond=e.getUTCMilliseconds()}},{key:"toDate",value:function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}},{key:"fromString",value:function(e){var t,n=!1,i="",r="",o=0,a=0,s=0;if("Z"===e[e.length-1])i=e.substring(0,e.length-1),n=!0;else{var l=new Number(e[e.length-1]);if(isNaN(l.valueOf()))throw new Error("Wrong input string for conversion");i=e}if(n){if(-1!==i.indexOf("+"))throw new Error("Wrong input string for conversion");if(-1!==i.indexOf("-"))throw new Error("Wrong input string for conversion")}else{var u=1,c=i.indexOf("+"),d="";if(-1===c&&(c=i.indexOf("-"),u=-1),-1!==c){if(d=i.substring(c+1),i=i.substring(0,c),2!==d.length&&4!==d.length)throw new Error("Wrong input string for conversion");var h=parseInt(d.substring(0,2),10);if(isNaN(h.valueOf()))throw new Error("Wrong input string for conversion");if(a=u*h,4===d.length){if(h=parseInt(d.substring(2,4),10),isNaN(h.valueOf()))throw new Error("Wrong input string for conversion");s=u*h}}}var f=i.indexOf(".");if(-1===f&&(f=i.indexOf(",")),-1!==f){var p=new Number("0"+i.substring(f));if(isNaN(p.valueOf()))throw new Error("Wrong input string for conversion");o=p.valueOf(),r=i.substring(0,f)}else r=i;switch(!0){case 8===r.length:if(t=/(\d{4})(\d{2})(\d{2})/gi,-1!==f)throw new Error("Wrong input string for conversion");break;case 10===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})/gi,-1!==f){var g=60*o;this.minute=Math.floor(g),g=60*(g-this.minute),this.second=Math.floor(g),g=1e3*(g-this.second),this.millisecond=Math.floor(g)}break;case 12===r.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==f){var v=60*o;this.second=Math.floor(v),v=1e3*(v-this.second),this.millisecond=Math.floor(v)}break;case 14===r.length:t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/gi,-1!==f&&(this.millisecond=Math.floor(1e3*o));break;default:throw new Error("Wrong input string for conversion")}var m=t.exec(r);if(null===m)throw new Error("Wrong input string for conversion");for(var y=1;y<m.length;y++)switch(y){case 1:this.year=parseInt(m[y],10);break;case 2:this.month=parseInt(m[y],10);break;case 3:this.day=parseInt(m[y],10);break;case 4:this.hour=parseInt(m[y],10)+a;break;case 5:this.minute=parseInt(m[y],10)+s;break;case 6:this.second=parseInt(m[y],10);break;default:throw new Error("Wrong input string for conversion")}if(!1===n){var b=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=b.getUTCFullYear(),this.month=b.getUTCMonth(),this.day=b.getUTCDay(),this.hour=b.getUTCHours(),this.minute=b.getUTCMinutes(),this.second=b.getUTCSeconds(),this.millisecond=b.getUTCMilliseconds()}}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iso";if("iso"===e){var t=[];return t.push(LW(this.year,4)),t.push(LW(this.month,2)),t.push(LW(this.day,2)),t.push(LW(this.hour,2)),t.push(LW(this.minute,2)),t.push(LW(this.second,2)),0!==this.millisecond&&(t.push("."),t.push(LW(this.millisecond,3))),t.push("Z"),t.join("")}return C(M(n.prototype),"toString",this).call(this,e)}},{key:"toJSON",value:function(){return x(x({},C(M(n.prototype),"toJSON",this).call(this)),{},{millisecond:this.millisecond})}}]),n}(KG);KW.GeneralizedTime=QG,QG.NAME="GeneralizedTime";var XG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=31,e}return Y(n)}(RG);KW.DATE=XG,XG.NAME="DATE";var JG=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=32,e}return Y(n)}(RG);KW.TimeOfDay=JG,JG.NAME="TimeOfDay";var $G=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=33,e}return Y(n)}(RG);KW.DateTime=$G,$G.NAME="DateTime";var eq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=34,e}return Y(n)}(RG);KW.Duration=eq,eq.NAME="Duration";var tq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),(e=t.call(this,i)).idBlock.tagClass=1,e.idBlock.tagNumber=14,e}return Y(n)}(RG);KW.TIME=tq,tq.NAME="TIME";var nq=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,i=void 0===n?"":n,r=t.optional,o=void 0!==r&&r;Z(this,e),this.name=i,this.optional=o}),iq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?[]:r,a=w(i,v);return Z(this,n),(e=t.call(this,a)).value=o,e}return Y(n)}(nq),rq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.value,o=void 0===r?new nq:r,a=i.local,s=void 0!==a&&a,l=w(i,m);return Z(this,n),(e=t.call(this,l)).value=o,e.local=s,e}return Y(n)}(nq),oq=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.data,i=void 0===n?UW:n;Z(this,e),this.dataView=IW.BufferSourceConverter.toUint8Array(i)}return Y(e,[{key:"data",get:function(){return this.dataView.slice().buffer},set:function(e){this.dataView=IW.BufferSourceConverter.toUint8Array(e)}},{key:"fromBER",value:function(e,t,n){var i=t+n;return this.dataView=IW.BufferSourceConverter.toUint8Array(e).subarray(t,i),i}},{key:"toBER",value:function(e){return this.dataView.slice().buffer}}]),e}();function aq(e,t,n){if(n instanceof iq){for(var i=0;i<n.value.length;i++)if(aq(e,t,n.value[i]).verified)return{verified:!0,result:e};var r={verified:!1,result:{error:"Wrong values for Choice type"}};return n.hasOwnProperty("name")&&(r.name=n.name),r}if(n instanceof nq)return n.hasOwnProperty("name")&&(e[n.name]=t),{verified:!0,result:e};if(e instanceof Object==0)return{verified:!1,result:{error:"Wrong root object"}};if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 data"}};if(n instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("idBlock"in n==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("fromBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if("toBER"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};var o=n.idBlock.toBER(!1);if(0===o.byteLength)return{verified:!1,result:{error:"Error encoding idBlock for ASN.1 schema"}};if(-1===n.idBlock.fromBER(o,0,o.byteLength))return{verified:!1,result:{error:"Error decoding idBlock for ASN.1 schema"}};if(!1===n.idBlock.hasOwnProperty("tagClass"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagClass!==t.idBlock.tagClass)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("tagNumber"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.tagNumber!==t.idBlock.tagNumber)return{verified:!1,result:e};if(!1===n.idBlock.hasOwnProperty("isConstructed"))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isConstructed!==t.idBlock.isConstructed)return{verified:!1,result:e};if(!("isHexOnly"in n.idBlock))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(n.idBlock.isHexOnly!==t.idBlock.isHexOnly)return{verified:!1,result:e};if(n.idBlock.isHexOnly){if("valueHexView"in n.idBlock==0)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};var a=n.idBlock.valueHexView,s=t.idBlock.valueHexView;if(a.length!==s.length)return{verified:!1,result:e};for(var l=0;l<a.length;l++)if(a[l]!==s[1])return{verified:!1,result:e}}if(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(e[n.name]=t)),n instanceof KW.Constructed){var u=0,c={verified:!1,result:{error:"Unknown error"}},d=n.valueBlock.value.length;if(d>0&&n.valueBlock.value[0]instanceof rq&&(d=t.valueBlock.value.length),0===d)return{verified:!0,result:e};if(0===t.valueBlock.value.length&&0!==n.valueBlock.value.length){for(var h=!0,f=0;f<n.valueBlock.value.length;f++)h=h&&(n.valueBlock.value[f].optional||!1);return h?{verified:!0,result:e}:(n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),e.error="Inconsistent object length",{verified:!1,result:e})}for(var p=0;p<d;p++)if(p-u>=t.valueBlock.value.length){if(!1===n.valueBlock.value[p].optional){var g={verified:!1,result:e};return e.error="Inconsistent length between ASN.1 data and schema",n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],g.name=n.name)),g}}else if(n.valueBlock.value[0]instanceof rq){if(!1===(c=aq(e,t.valueBlock.value[p],n.valueBlock.value[0].value)).verified){if(!n.valueBlock.value[0].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),c;u++}if("name"in n.valueBlock.value[0]&&n.valueBlock.value[0].name.length>0){var v={};void 0===(v="local"in n.valueBlock.value[0]&&n.valueBlock.value[0].local?t:e)[n.valueBlock.value[0].name]&&(v[n.valueBlock.value[0].name]=[]),v[n.valueBlock.value[0].name].push(t.valueBlock.value[p])}}else if(!1===(c=aq(e,t.valueBlock.value[p-u],n.valueBlock.value[p])).verified){if(!n.valueBlock.value[p].optional)return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&delete e[n.name]),c;u++}if(!1===c.verified){var m={verified:!1,result:e};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],m.name=n.name)),m}return{verified:!0,result:e}}if(n.primitiveSchema&&"valueHexView"in t.valueBlock){var y=rG(t.valueBlock.valueHexView);if(-1===y.offset){var b={verified:!1,result:y.result};return n.name&&(n.name=n.name.replace(/^\s+|\s+$/g,""),n.name&&(delete e[n.name],b.name=n.name)),b}return aq(e,y.result,n.primitiveSchema)}return{verified:!0,result:e}}function sq(e,t){if(t instanceof Object==0)return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};var n=rG(IW.BufferSourceConverter.toUint8Array(e));return-1===n.offset?{verified:!1,result:n.result}:aq(n.result,n.result,t)}!function(e){e[e.Sequence=0]="Sequence",e[e.Set=1]="Set",e[e.Choice=2]="Choice"}(eG||(eG={})),function(e){e[e.Any=1]="Any",e[e.Boolean=2]="Boolean",e[e.OctetString=3]="OctetString",e[e.BitString=4]="BitString",e[e.Integer=5]="Integer",e[e.Enumerated=6]="Enumerated",e[e.ObjectIdentifier=7]="ObjectIdentifier",e[e.Utf8String=8]="Utf8String",e[e.BmpString=9]="BmpString",e[e.UniversalString=10]="UniversalString",e[e.NumericString=11]="NumericString",e[e.PrintableString=12]="PrintableString",e[e.TeletexString=13]="TeletexString",e[e.VideotexString=14]="VideotexString",e[e.IA5String=15]="IA5String",e[e.GraphicString=16]="GraphicString",e[e.VisibleString=17]="VisibleString",e[e.GeneralString=18]="GeneralString",e[e.CharacterString=19]="CharacterString",e[e.UTCTime=20]="UTCTime",e[e.GeneralizedTime=21]="GeneralizedTime",e[e.DATE=22]="DATE",e[e.TimeOfDay=23]="TimeOfDay",e[e.DateTime=24]="DateTime",e[e.Duration=25]="Duration",e[e.TIME=26]="TIME",e[e.Null=27]="Null"}(tG||(tG={}));var lq=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Z(this,e),this.unusedBits=0,this.value=new ArrayBuffer(0),t)if("number"==typeof t)this.fromNumber(t);else{if(!IW.BufferSourceConverter.isBufferSource(t))throw TypeError("Unsupported type of 'params' argument for BitString");this.unusedBits=n,this.value=IW.BufferSourceConverter.toArrayBuffer(t)}}return Y(e,[{key:"fromASN",value:function(e){if(!(e instanceof vG))throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString");return this.unusedBits=e.valueBlock.unusedBits,this.value=e.valueBlock.valueHex,this}},{key:"toASN",value:function(){return new vG({unusedBits:this.unusedBits,valueHex:this.value})}},{key:"toSchema",value:function(e){return new vG({name:e})}},{key:"toNumber",value:function(){var e,t="",n=R(new Uint8Array(this.value));try{for(n.s();!(e=n.n()).done;){t+=e.value.toString(2).padStart(8,"0")}}catch(i){n.e(i)}finally{n.f()}return t=t.split("").reverse().join(""),this.unusedBits&&(t=t.slice(this.unusedBits).padStart(this.unusedBits,"0")),parseInt(t,2)}},{key:"fromNumber",value:function(e){var t=e.toString(2),n=t.length+7>>3;this.unusedBits=(n<<3)-t.length;var i=new Uint8Array(n);t=t.padStart(n<<3,"0").split("").reverse().join("");for(var r=0;r<n;)i[r]=parseInt(t.slice(r<<3,8+(r<<3)),2),r++;this.value=i.buffer}}]),e}(),uq=function(){function e(t){Z(this,e),this.buffer="number"==typeof t?new ArrayBuffer(t):IW.BufferSourceConverter.isBufferSource(t)?IW.BufferSourceConverter.toArrayBuffer(t):Array.isArray(t)?new Uint8Array(t):new ArrayBuffer(0)}return Y(e,[{key:"byteLength",get:function(){return this.buffer.byteLength}},{key:"byteOffset",get:function(){return 0}},{key:"fromASN",value:function(e){if(!(e instanceof pG))throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");return this.buffer=e.valueBlock.valueHex,this}},{key:"toASN",value:function(){return new pG({valueHex:this.buffer})}},{key:"toSchema",value:function(e){return new pG({name:e})}}]),e}(),cq={fromASN:function(e){return e instanceof cG?null:e.valueBeforeDecodeView},toASN:function(e){if(null===e)return new cG;var t=oG(e);if(t.result.error)throw new Error(t.result.error);return t.result}},dq={fromASN:function(e){return e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec},toASN:function(e){return new kG({value:+e})}},hq={fromASN:function(e){return e.valueBlock.valueDec},toASN:function(e){return new xG({value:e})}},fq={fromASN:function(e){return e.valueBlock.valueHexView},toASN:function(e){return new kG({valueHex:e})}},pq={fromASN:function(e){return e.valueBlock.valueHexView},toASN:function(e){return new vG({valueHex:e})}},gq={fromASN:function(e){return e.valueBlock.toString()},toASN:function(e){return new CG({value:e})}},vq={fromASN:function(e){return e.valueBlock.value},toASN:function(e){return new hG({value:e})}},mq={fromASN:function(e){return e.valueBlock.valueHexView},toASN:function(e){return new pG({valueHex:e})}},yq={fromASN:function(e){return new uq(e.getValue())},toASN:function(e){return e.toASN()}};function bq(e){return{fromASN:function(e){return e.valueBlock.value},toASN:function(t){return new e({value:t})}}}var wq=bq(RG),kq=bq(FG),xq=bq(VG),_q=bq(zG),Aq=bq(jG),Cq=bq(HG),Sq=bq(UG),Eq=bq(WG),Pq=bq(GG),Oq=bq(qG),Dq=bq(YG),Iq=bq(ZG),Tq={fromASN:function(e){return e.toDate()},toASN:function(e){return new KG({valueDate:e})}},Mq={fromASN:function(e){return e.toDate()},toASN:function(e){return new QG({valueDate:e})}},Bq={fromASN:function(){return null},toASN:function(){return new cG}};function Rq(e){switch(e){case tG.Any:return cq;case tG.BitString:return pq;case tG.BmpString:return kq;case tG.Boolean:return vq;case tG.CharacterString:return Iq;case tG.Enumerated:return hq;case tG.GeneralString:return Dq;case tG.GeneralizedTime:return Mq;case tG.GraphicString:return Pq;case tG.IA5String:return Eq;case tG.Integer:return dq;case tG.Null:return Bq;case tG.NumericString:return _q;case tG.ObjectIdentifier:return gq;case tG.OctetString:return mq;case tG.PrintableString:return Aq;case tG.TeletexString:return Cq;case tG.UTCTime:return Tq;case tG.UniversalString:return xq;case tG.Utf8String:return wq;case tG.VideotexString:return Sq;case tG.VisibleString:return Oq;default:return null}}function Lq(e){return"function"==typeof e&&e.prototype?!(!e.prototype.toASN||!e.prototype.fromASN)||Lq(e.prototype):!!(e&&"object"==typeof e&&"toASN"in e&&"fromASN"in e)}function Fq(e){var t;if(e){var n=Object.getPrototypeOf(e);return(null===(t=null==n?void 0:n.prototype)||void 0===t?void 0:t.constructor)===Array||Fq(n)}return!1}function Nq(e,t){if(!e||!t)return!1;if(e.byteLength!==t.byteLength)return!1;for(var n=new Uint8Array(e),i=new Uint8Array(t),r=0;r<e.byteLength;r++)if(n[r]!==i[r])return!1;return!0}var Vq=new(function(){function e(){Z(this,e),this.items=new WeakMap}return Y(e,[{key:"has",value:function(e){return this.items.has(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.items.get(e);if(!n)throw new Error("Cannot get schema for '".concat(e.prototype.constructor.name,"' target"));if(t&&!n.schema)throw new Error("Schema '".concat(e.prototype.constructor.name,"' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'."));return n}},{key:"cache",value:function(e){var t=this.get(e);t.schema||(t.schema=this.create(e,!0))}},{key:"createDefault",value:function(e){var t={type:eG.Sequence,items:{}},n=this.findParentSchema(e);return n&&(Object.assign(t,n),t.items=Object.assign({},t.items,n.items)),t}},{key:"create",value:function(e,t){var n=this.items.get(e)||this.createDefault(e),i=[];for(var r in n.items){var o=n.items[r],a=t?r:"",s=void 0;if("number"==typeof o.type){var l=tG[o.type],u=P[l];if(!u)throw new Error("Cannot get ASN1 class by name '".concat(l,"'"));s=new u({name:a})}else Lq(o.type)?s=(new o.type).toSchema(a):o.optional?this.get(o.type).type===eG.Choice?s=new nq({name:a}):(s=this.create(o.type,!1)).name=a:s=new nq({name:a});var c=!!o.optional||void 0!==o.defaultValue;if(o.repeated&&(s.name="",s=new("set"===o.repeated?DG:OG)({name:"",value:[new rq({name:a,value:s})]})),null!=o.context)if(o.implicit)if("number"==typeof o.type||Lq(o.type))i.push(new(o.repeated?sG:iG)({name:a,optional:c,idBlock:{tagClass:3,tagNumber:o.context}}));else{this.cache(o.type);var d=!!o.repeated,h=d?s:this.get(o.type,!0).schema;h="valueBlock"in h?h.valueBlock.value:h.value,i.push(new sG({name:d?"":a,optional:c,idBlock:{tagClass:3,tagNumber:o.context},value:h}))}else i.push(new sG({optional:c,idBlock:{tagClass:3,tagNumber:o.context},value:[s]}));else s.optional=c,i.push(s)}switch(n.type){case eG.Sequence:return new OG({value:i,name:""});case eG.Set:return new DG({value:i,name:""});case eG.Choice:return new iq({value:i,name:""});default:throw new Error("Unsupported ASN1 type in use")}}},{key:"set",value:function(e,t){return this.items.set(e,t),this}},{key:"findParentSchema",value:function(e){var t=Object.getPrototypeOf(e);return t?this.items.get(t)||this.findParentSchema(t):null}}]),e}()),zq=function(e){return function(t){var n;Vq.has(t)?n=Vq.get(t):(n=Vq.createDefault(t),Vq.set(t,n)),Object.assign(n,e)}},jq=function(e){return function(t,n){var i;Vq.has(t.constructor)?i=Vq.get(t.constructor):(i=Vq.createDefault(t.constructor),Vq.set(t.constructor,i));var r=Object.assign({},e);if("number"==typeof r.type&&!r.converter){var o=Rq(e.type);if(!o)throw new Error("Cannot get default converter for property '".concat(n,"' of ").concat(t.constructor.name));r.converter=o}i.items[n]=r}},Hq=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),(e=t.apply(this,arguments)).schemas=[],e}return Y(n)}(_(Error)),Uq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"parse",value:function(e,t){var n=oG(e);if(n.result.error)throw new Error(n.result.error);return this.fromASN(n.result,t)}},{key:"fromASN",value:function(e,t){var n,i=this;try{if(Lq(t))return(new t).fromASN(e);var r=Vq.get(t);Vq.cache(t);var o=r.schema;if(e.constructor===sG&&r.type!==eG.Choice)for(var a in o=new sG({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:r.schema.valueBlock.value}),r.items)delete e[a];var s=aq({},e,o);if(!s.verified)throw new Hq("Data does not match to ".concat(t.name," ASN1 schema. ").concat(s.result.error));var l=new t;if(Fq(t)){if(!("value"in e.valueBlock)||!Array.isArray(e.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");var u=r.itemType;if("number"==typeof u){var c=Rq(u);if(!c)throw new Error("Cannot get default converter for array item of ".concat(t.name," ASN1 schema"));return t.from(e.valueBlock.value,function(e){return c.fromASN(e)})}return t.from(e.valueBlock.value,function(e){return i.fromASN(e,u)})}var d=function(e){var t=s.result[e];if(!t)return"continue";var o=r.items[e],a=o.type;if("number"==typeof a||Lq(a)){var u=null!==(n=o.converter)&&void 0!==n?n:Lq(a)?new a:null;if(!u)throw new Error("Converter is empty");if(o.repeated)if(o.implicit){var c=new("sequence"===o.repeated?OG:DG);c.valueBlock=t.valueBlock;var d=oG(c.toBER(!1));if(-1===d.offset)throw new Error("Cannot parse the child item. "+d.result.error);if(!("value"in d.result.valueBlock)||!Array.isArray(d.result.valueBlock.value))throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");l[e]=Array.from(d.result.valueBlock.value,function(e){return u.fromASN(e)})}else l[e]=Array.from(t,function(e){return u.fromASN(e)});else{var h=t;if(o.implicit){var f;if(Lq(a))f=(new a).toSchema("");else{var p=tG[a],g=P[p];if(!g)throw new Error("Cannot get '".concat(p,"' class from asn1js module"));f=new g}f.valueBlock=h.valueBlock,h=oG(f.toBER(!1)).result}l[e]=u.fromASN(h)}}else if(o.repeated){if(!Array.isArray(t))throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");l[e]=Array.from(t,function(e){return i.fromASN(e,a)})}else l[e]=i.fromASN(t,a)};for(var h in r.items)d(h);return l}catch(f){throw f instanceof Hq&&f.schemas.push(t.name),f}}}]),e}(),Wq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"serialize",value:function(e){return e instanceof QW?e.toBER(!1):this.toASN(e).toBER(!1)}},{key:"toASN",value:function(t){var n=this;if(t&&"object"==typeof t&&Lq(t))return t.toASN();if(!t||"object"!=typeof t)throw new TypeError("Parameter 1 should be type of Object.");var i=t.constructor,r=Vq.get(i);Vq.cache(i);var o,a=[];if(r.itemType){if(!Array.isArray(t))throw new TypeError("Parameter 1 should be type of Array.");if("number"==typeof r.itemType){var s=Rq(r.itemType);if(!s)throw new Error("Cannot get default converter for array item of ".concat(i.name," ASN1 schema"));a=t.map(function(e){return s.toASN(e)})}else a=t.map(function(e){return n.toAsnItem({type:r.itemType},"[]",i,e)})}else for(var l in r.items){var u=r.items[l],c=t[l];if(!(void 0===c||u.defaultValue===c||"object"==typeof u.defaultValue&&"object"==typeof c&&Nq(this.serialize(u.defaultValue),this.serialize(c)))){var d=e.toAsnItem(u,l,i,c);if("number"==typeof u.context)if(u.implicit)if(u.repeated||"number"!=typeof u.type&&!Lq(u.type))a.push(new sG({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:d.valueBlock.value}));else{var h={};h.valueHex=d instanceof cG?d.valueBeforeDecodeView:d.valueBlock.toBER(),a.push(new iG(x({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context}},h)))}else a.push(new sG({optional:u.optional,idBlock:{tagClass:3,tagNumber:u.context},value:[d]}));else u.repeated?a=a.concat(d):a.push(d)}}switch(r.type){case eG.Sequence:o=new OG({value:a});break;case eG.Set:o=new DG({value:a});break;case eG.Choice:if(!a[0])throw new Error("Schema '".concat(i.name,"' has wrong data. Choice cannot be empty."));o=a[0]}return o}},{key:"toAsnItem",value:function(e,t,n,i){var r,o=this;if("number"==typeof e.type){var a=e.converter;if(!a)throw new Error("Property '".concat(t,"' doesn't have converter for type ").concat(tG[e.type]," in schema '").concat(n.name,"'"));if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");var s=Array.from(i,function(e){return a.toASN(e)});r=new("sequence"===e.repeated?OG:DG)({value:s})}else r=a.toASN(i)}else if(e.repeated){if(!Array.isArray(i))throw new TypeError("Parameter 'objProp' should be type of Array.");var l=Array.from(i,function(e){return o.toASN(e)});r=new("sequence"===e.repeated?OG:DG)({value:l})}else r=this.toASN(i);return r}}]),e}(),Gq=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Z(this,n),"number"==typeof i)e=t.call(this,i);else{e=t.call(this);var r,o=R(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;e.push(a)}}catch(s){o.e(s)}finally{o.f()}}return D(e)}return Y(n)}(_(Array)),qq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"serialize",value:function(e){return Wq.serialize(e)}},{key:"parse",value:function(e,t){return Uq.parse(e,t)}},{key:"toString",value:function(t){var n=oG(IW.BufferSourceConverter.isBufferSource(t)?IW.BufferSourceConverter.toArrayBuffer(t):e.serialize(t));if(-1===n.offset)throw new Error("Cannot decode ASN.1 data. "+n.result.error);return n.result.toString()}}]),e}();function Yq(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}var Zq,Kq,Qq,Xq=S("3oEA"),Jq=function(){function e(){Z(this,e)}return Y(e,null,[{key:"decodeIP",value:function(e){if(64===e.length&&0===parseInt(e,16))return"::/0";if(16!==e.length)return e;var t=parseInt(e.slice(8),16).toString(2).split("").reduce(function(e,t){return e+ +t},0),n=e.slice(0,8).replace(/(.{2})/g,function(e){return parseInt(e,16)+"."});return n=n.slice(0,-1),"".concat(n,"/").concat(t)}},{key:"toString",value:function(e){if(4===e.byteLength||16===e.byteLength){var t=new Uint8Array(e);return Xq.fromByteArray(Array.from(t)).toString()}return this.decodeIP(IW.Convert.ToHex(e))}},{key:"fromString",value:function(e){var t=Xq.parse(e);return new Uint8Array(t.toByteArray()).buffer}}]),e}(),$q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)}return Y(e,[{key:"toString",value:function(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}}]),e}();Yq([jq({type:tG.TeletexString})],$q.prototype,"teletexString",void 0),Yq([jq({type:tG.PrintableString})],$q.prototype,"printableString",void 0),Yq([jq({type:tG.UniversalString})],$q.prototype,"universalString",void 0),Yq([jq({type:tG.Utf8String})],$q.prototype,"utf8String",void 0),Yq([jq({type:tG.BmpString})],$q.prototype,"bmpString",void 0);var eY=function(e){E(n,e);var t=O(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),e=t.call(this,i),Object.assign(I(e),i),e}return Y(n,[{key:"toString",value:function(){return this.ia5String||(this.anyValue?IW.Convert.ToHex(this.anyValue):C(M(n.prototype),"toString",this).call(this))}}]),n}($q=Yq([zq({type:eG.Choice})],$q));Yq([jq({type:tG.IA5String})],eY.prototype,"ia5String",void 0),Yq([jq({type:tG.Any})],eY.prototype,"anyValue",void 0),eY=Yq([zq({type:eG.Choice})],eY);var tY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.type="",this.value=new eY,Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],tY.prototype,"type",void 0),Yq([jq({type:eY})],tY.prototype,"value",void 0);var nY=Zq=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),Zq.prototype),i}return Y(n)}(Gq);nY=Zq=Yq([zq({type:eG.Set,itemType:tY})],nY);var iY=Kq=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),Kq.prototype),i}return Y(n)}(Gq);iY=Kq=Yq([zq({type:eG.Sequence,itemType:nY})],iY);var rY=Qq=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),Qq.prototype),i}return Y(n)}(iY);rY=Qq=Yq([zq({type:eG.Sequence})],rY);var oY={fromASN:function(e){return Jq.toString(mq.fromASN(e))},toASN:function(e){return mq.toASN(Jq.fromString(e))}},aY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.typeId="",this.value=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],aY.prototype,"typeId",void 0),Yq([jq({type:tG.Any,context:0})],aY.prototype,"value",void 0);var sY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.partyName=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:$q,optional:!0,context:0,implicit:!0})],sY.prototype,"nameAssigner",void 0),Yq([jq({type:$q,context:1,implicit:!0})],sY.prototype,"partyName",void 0);var lY,uY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:aY,context:0,implicit:!0})],uY.prototype,"otherName",void 0),Yq([jq({type:tG.IA5String,context:1,implicit:!0})],uY.prototype,"rfc822Name",void 0),Yq([jq({type:tG.IA5String,context:2,implicit:!0})],uY.prototype,"dNSName",void 0),Yq([jq({type:tG.Any,context:3,implicit:!0})],uY.prototype,"x400Address",void 0),Yq([jq({type:rY,context:4,implicit:!1})],uY.prototype,"directoryName",void 0),Yq([jq({type:sY,context:5})],uY.prototype,"ediPartyName",void 0),Yq([jq({type:tG.IA5String,context:6,implicit:!0})],uY.prototype,"uniformResourceIdentifier",void 0),Yq([jq({type:tG.OctetString,context:7,implicit:!0,converter:oY})],uY.prototype,"iPAddress",void 0),Yq([jq({type:tG.ObjectIdentifier,context:8,implicit:!0})],uY.prototype,"registeredID",void 0),uY=Yq([zq({type:eG.Choice})],uY);var cY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.accessMethod="",this.accessLocation=new uY,Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],cY.prototype,"accessMethod",void 0),Yq([jq({type:uY})],cY.prototype,"accessLocation",void 0);var dY=lY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),lY.prototype),i}return Y(n)}(Gq);dY=lY=Yq([zq({type:eG.Sequence,itemType:cY})],dY);var hY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(uq),fY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),t&&Object.assign(this,t)});Yq([jq({type:hY,context:0,optional:!0,implicit:!0})],fY.prototype,"keyIdentifier",void 0),Yq([jq({type:uY,context:1,optional:!0,implicit:!0,repeated:"sequence"})],fY.prototype,"authorityCertIssuer",void 0),Yq([jq({type:tG.Integer,context:2,optional:!0,implicit:!0,converter:fq})],fY.prototype,"authorityCertSerialNumber",void 0);var pY,gY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.cA=!1,Object.assign(this,t)});Yq([jq({type:tG.Boolean,defaultValue:!1})],gY.prototype,"cA",void 0),Yq([jq({type:tG.Integer,optional:!0})],gY.prototype,"pathLenConstraint",void 0);var vY,mY=pY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),pY.prototype),i}return Y(n)}(Gq);mY=pY=Yq([zq({type:eG.Sequence,itemType:uY})],mY);var yY,bY=vY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),vY.prototype),i}return Y(n)}(mY);bY=vY=Yq([zq({type:eG.Sequence})],bY);var wY=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)}return Y(e,[{key:"toString",value:function(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}}]),e}();Yq([jq({type:tG.IA5String})],wY.prototype,"ia5String",void 0),Yq([jq({type:tG.VisibleString})],wY.prototype,"visibleString",void 0),Yq([jq({type:tG.BmpString})],wY.prototype,"bmpString",void 0),Yq([jq({type:tG.Utf8String})],wY.prototype,"utf8String",void 0),wY=Yq([zq({type:eG.Choice})],wY);var kY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.organization=new wY,this.noticeNumbers=[],Object.assign(this,t)});Yq([jq({type:wY})],kY.prototype,"organization",void 0),Yq([jq({type:tG.Integer,repeated:"sequence"})],kY.prototype,"noticeNumbers",void 0);var xY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:kY,optional:!0})],xY.prototype,"noticeRef",void 0),Yq([jq({type:wY,optional:!0})],xY.prototype,"explicitText",void 0);var _Y=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.IA5String})],_Y.prototype,"cPSuri",void 0),Yq([jq({type:xY})],_Y.prototype,"userNotice",void 0),_Y=Yq([zq({type:eG.Choice})],_Y);var AY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.policyQualifierId="",this.qualifier=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],AY.prototype,"policyQualifierId",void 0),Yq([jq({type:tG.Any})],AY.prototype,"qualifier",void 0);var CY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.policyIdentifier="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],CY.prototype,"policyIdentifier",void 0),Yq([jq({type:AY,repeated:"sequence",optional:!0})],CY.prototype,"policyQualifiers",void 0);var SY=yY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),yY.prototype),i}return Y(n)}(Gq);SY=yY=Yq([zq({type:eG.Sequence,itemType:CY})],SY);var EY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Z(this,e),this.value=t});Yq([jq({type:tG.Integer})],EY.prototype,"value",void 0);var PY,OY,DY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(EY=Yq([zq({type:eG.Choice})],EY));DY=Yq([zq({type:eG.Choice})],DY),function(e){e[e.unused=1]="unused",e[e.keyCompromise=2]="keyCompromise",e[e.cACompromise=4]="cACompromise",e[e.affiliationChanged=8]="affiliationChanged",e[e.superseded=16]="superseded",e[e.cessationOfOperation=32]="cessationOfOperation",e[e.certificateHold=64]="certificateHold",e[e.privilegeWithdrawn=128]="privilegeWithdrawn",e[e.aACompromise=256]="aACompromise"}(OY||(OY={}));var IY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"toJSON",value:function(){var e=[],t=this.toNumber();return t&OY.aACompromise&&e.push("aACompromise"),t&OY.affiliationChanged&&e.push("affiliationChanged"),t&OY.cACompromise&&e.push("cACompromise"),t&OY.certificateHold&&e.push("certificateHold"),t&OY.cessationOfOperation&&e.push("cessationOfOperation"),t&OY.keyCompromise&&e.push("keyCompromise"),t&OY.privilegeWithdrawn&&e.push("privilegeWithdrawn"),t&OY.superseded&&e.push("superseded"),t&OY.unused&&e.push("unused"),e}},{key:"toString",value:function(){return"[".concat(this.toJSON().join(", "),"]")}}]),n}(lq),TY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uY,context:0,repeated:"sequence",implicit:!0})],TY.prototype,"fullName",void 0),Yq([jq({type:nY,context:1,implicit:!0})],TY.prototype,"nameRelativeToCRLIssuer",void 0),TY=Yq([zq({type:eG.Choice})],TY);var MY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:TY,context:0,optional:!0})],MY.prototype,"distributionPoint",void 0),Yq([jq({type:IY,context:1,optional:!0,implicit:!0})],MY.prototype,"reasons",void 0),Yq([jq({type:uY,context:2,optional:!0,repeated:"sequence",implicit:!0})],MY.prototype,"cRLIssuer",void 0);var BY,RY=PY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),PY.prototype),i}return Y(n)}(Gq);RY=PY=Yq([zq({type:eG.Sequence,itemType:MY})],RY);var LY=BY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),BY.prototype),i}return Y(n)}(RY);LY=BY=Yq([zq({type:eG.Sequence,itemType:MY})],LY);var FY,NY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.onlyContainsUserCerts=e.ONLY,this.onlyContainsCACerts=e.ONLY,this.indirectCRL=e.ONLY,this.onlyContainsAttributeCerts=e.ONLY,Object.assign(this,t)});NY.ONLY=!1,Yq([jq({type:TY,context:0,optional:!0})],NY.prototype,"distributionPoint",void 0),Yq([jq({type:tG.Boolean,context:1,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"onlyContainsUserCerts",void 0),Yq([jq({type:tG.Boolean,context:2,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"onlyContainsCACerts",void 0),Yq([jq({type:IY,context:3,optional:!0,implicit:!0})],NY.prototype,"onlySomeReasons",void 0),Yq([jq({type:tG.Boolean,context:4,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"indirectCRL",void 0),Yq([jq({type:tG.Boolean,context:5,defaultValue:NY.ONLY,implicit:!0})],NY.prototype,"onlyContainsAttributeCerts",void 0),function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(FY||(FY={}));var VY,zY=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:FY.unspecified;Z(this,e),this.reason=FY.unspecified,this.reason=t}return Y(e,[{key:"toJSON",value:function(){return FY[this.reason]}},{key:"toString",value:function(){return this.toJSON()}}]),e}();Yq([jq({type:tG.Enumerated})],zY.prototype,"reason",void 0),zY=Yq([zq({type:eG.Choice})],zY);var jY=VY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),VY.prototype),i}return Y(n)}(Gq);jY=VY=Yq([zq({type:eG.Sequence,itemType:tG.ObjectIdentifier})],jY);var HY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ArrayBuffer(0);Z(this,e),this.value=t});Yq([jq({type:tG.Integer,converter:fq})],HY.prototype,"value",void 0),HY=Yq([zq({type:eG.Choice})],HY);var UY,WY=Y(function e(t){Z(this,e),this.value=new Date,t&&(this.value=t)});Yq([jq({type:tG.GeneralizedTime})],WY.prototype,"value",void 0),WY=Yq([zq({type:eG.Choice})],WY);var GY,qY,YY=UY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),UY.prototype),i}return Y(n)}(mY);YY=UY=Yq([zq({type:eG.Sequence})],YY),function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(GY||(GY={}));var ZY=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"toJSON",value:function(){var e=this.toNumber(),t=[];return e&GY.cRLSign&&t.push("crlSign"),e&GY.dataEncipherment&&t.push("dataEncipherment"),e&GY.decipherOnly&&t.push("decipherOnly"),e&GY.digitalSignature&&t.push("digitalSignature"),e&GY.encipherOnly&&t.push("encipherOnly"),e&GY.keyAgreement&&t.push("keyAgreement"),e&GY.keyCertSign&&t.push("keyCertSign"),e&GY.keyEncipherment&&t.push("keyEncipherment"),e&GY.nonRepudiation&&t.push("nonRepudiation"),t}},{key:"toString",value:function(){return"[".concat(this.toJSON().join(", "),"]")}}]),n}(lq),KY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.base=new uY,this.minimum=0,Object.assign(this,t)});Yq([jq({type:uY})],KY.prototype,"base",void 0),Yq([jq({type:tG.Integer,context:0,defaultValue:0,implicit:!0})],KY.prototype,"minimum",void 0),Yq([jq({type:tG.Integer,context:1,optional:!0,implicit:!0})],KY.prototype,"maximum",void 0);var QY=qY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),qY.prototype),i}return Y(n)}(Gq);QY=qY=Yq([zq({type:eG.Sequence,itemType:KY})],QY);var XY=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:QY,context:0,optional:!0,implicit:!0})],XY.prototype,"permittedSubtrees",void 0),Yq([jq({type:QY,context:1,optional:!0,implicit:!0})],XY.prototype,"excludedSubtrees",void 0);var JY,$Y=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.Integer,context:0,implicit:!0,optional:!0,converter:fq})],$Y.prototype,"requireExplicitPolicy",void 0),Yq([jq({type:tG.Integer,context:1,implicit:!0,optional:!0,converter:fq})],$Y.prototype,"inhibitPolicyMapping",void 0);var eZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.issuerDomainPolicy="",this.subjectDomainPolicy="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],eZ.prototype,"issuerDomainPolicy",void 0),Yq([jq({type:tG.ObjectIdentifier})],eZ.prototype,"subjectDomainPolicy",void 0);var tZ,nZ=JY=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),JY.prototype),i}return Y(n)}(Gq);nZ=JY=Yq([zq({type:eG.Sequence,itemType:eZ})],nZ);var iZ=tZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),tZ.prototype),i}return Y(n)}(mY);iZ=tZ=Yq([zq({type:eG.Sequence})],iZ);var rZ,oZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.type="",this.values=[],Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],oZ.prototype,"type",void 0),Yq([jq({type:tG.Any,repeated:"set"})],oZ.prototype,"values",void 0);var aZ=rZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),rZ.prototype),i}return Y(n)}(Gq);aZ=rZ=Yq([zq({type:eG.Sequence,itemType:oZ})],aZ);var sZ,lZ,uZ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(hY),cZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.GeneralizedTime,context:0,implicit:!0,optional:!0})],cZ.prototype,"notBefore",void 0),Yq([jq({type:tG.GeneralizedTime,context:1,implicit:!0,optional:!0})],cZ.prototype,"notAfter",void 0),function(e){e[e.keyUpdateAllowed=1]="keyUpdateAllowed",e[e.newExtensions=2]="newExtensions",e[e.pKIXCertificate=4]="pKIXCertificate"}(sZ||(sZ={}));var dZ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n,[{key:"toJSON",value:function(){var e=[],t=this.toNumber();return t&sZ.pKIXCertificate&&e.push("pKIXCertificate"),t&sZ.newExtensions&&e.push("newExtensions"),t&sZ.keyUpdateAllowed&&e.push("keyUpdateAllowed"),e}},{key:"toString",value:function(){return"[".concat(this.toJSON().join(", "),"]")}}]),n}(lq),hZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.entrustVers="",this.entrustInfoFlags=new dZ,Object.assign(this,t)});Yq([jq({type:tG.GeneralString})],hZ.prototype,"entrustVers",void 0),Yq([jq({type:dZ})],hZ.prototype,"entrustInfoFlags",void 0);var fZ=lZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),lZ.prototype),i}return Y(n)}(Gq);fZ=lZ=Yq([zq({type:eG.Sequence,itemType:cY})],fZ);var pZ=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.algorithm="",Object.assign(this,t)}return Y(e,[{key:"isEqual",value:function(t){return t instanceof e&&t.algorithm==this.algorithm&&(t.parameters&&this.parameters&&IW.isEqual(t.parameters,this.parameters)||t.parameters===this.parameters)}}]),e}();Yq([jq({type:tG.ObjectIdentifier})],pZ.prototype,"algorithm",void 0),Yq([jq({type:tG.Any,optional:!0})],pZ.prototype,"parameters",void 0);var gZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.algorithm=new pZ,this.subjectPublicKey=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:pZ})],gZ.prototype,"algorithm",void 0),Yq([jq({type:tG.BitString})],gZ.prototype,"subjectPublicKey",void 0);var vZ=function(){function e(t){if(Z(this,e),t)if("string"==typeof t||"number"==typeof t||t instanceof Date){var n=new Date(t);n.getUTCFullYear()>2049?this.generalTime=n:this.utcTime=n}else Object.assign(this,t)}return Y(e,[{key:"getTime",value:function(){var e=this.utcTime||this.generalTime;if(!e)throw new Error("Cannot get time from CHOICE object");return e}}]),e}();Yq([jq({type:tG.UTCTime})],vZ.prototype,"utcTime",void 0),Yq([jq({type:tG.GeneralizedTime})],vZ.prototype,"generalTime",void 0),vZ=Yq([zq({type:eG.Choice})],vZ);var mZ,yZ=Y(function e(t){Z(this,e),this.notBefore=new vZ(new Date),this.notAfter=new vZ(new Date),t&&(this.notBefore=new vZ(t.notBefore),this.notAfter=new vZ(t.notAfter))});Yq([jq({type:vZ})],yZ.prototype,"notBefore",void 0),Yq([jq({type:vZ})],yZ.prototype,"notAfter",void 0);var bZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.extnID="",this.critical=e.CRITICAL,this.extnValue=new uq,Object.assign(this,t)});bZ.CRITICAL=!1,Yq([jq({type:tG.ObjectIdentifier})],bZ.prototype,"extnID",void 0),Yq([jq({type:tG.Boolean,defaultValue:bZ.CRITICAL})],bZ.prototype,"critical",void 0),Yq([jq({type:uq})],bZ.prototype,"extnValue",void 0);var wZ,kZ,xZ=mZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),mZ.prototype),i}return Y(n)}(Gq);xZ=mZ=Yq([zq({type:eG.Sequence,itemType:bZ})],xZ),function(e){e[e.v1=0]="v1",e[e.v2=1]="v2",e[e.v3=2]="v3"}(wZ||(wZ={}));var _Z=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=wZ.v1,this.serialNumber=new ArrayBuffer(0),this.signature=new pZ,this.issuer=new rY,this.validity=new yZ,this.subject=new rY,this.subjectPublicKeyInfo=new gZ,Object.assign(this,t)});Yq([jq({type:tG.Integer,context:0,defaultValue:wZ.v1})],_Z.prototype,"version",void 0),Yq([jq({type:tG.Integer,converter:fq})],_Z.prototype,"serialNumber",void 0),Yq([jq({type:pZ})],_Z.prototype,"signature",void 0),Yq([jq({type:rY})],_Z.prototype,"issuer",void 0),Yq([jq({type:yZ})],_Z.prototype,"validity",void 0),Yq([jq({type:rY})],_Z.prototype,"subject",void 0),Yq([jq({type:gZ})],_Z.prototype,"subjectPublicKeyInfo",void 0),Yq([jq({type:tG.BitString,context:1,implicit:!0,optional:!0})],_Z.prototype,"issuerUniqueID",void 0),Yq([jq({type:tG.BitString,context:2,implicit:!0,optional:!0})],_Z.prototype,"subjectUniqueID",void 0),Yq([jq({type:xZ,context:3,optional:!0})],_Z.prototype,"extensions",void 0);var AZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.tbsCertificate=new _Z,this.signatureAlgorithm=new pZ,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:_Z})],AZ.prototype,"tbsCertificate",void 0),Yq([jq({type:pZ})],AZ.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],AZ.prototype,"signatureValue",void 0);var CZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.userCertificate=new ArrayBuffer(0),this.revocationDate=new vZ,Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],CZ.prototype,"userCertificate",void 0),Yq([jq({type:vZ})],CZ.prototype,"revocationDate",void 0),Yq([jq({type:bZ,optional:!0,repeated:"sequence"})],CZ.prototype,"crlEntryExtensions",void 0);var SZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.signature=new pZ,this.issuer=new rY,this.thisUpdate=new vZ,Object.assign(this,t)});Yq([jq({type:tG.Integer,optional:!0})],SZ.prototype,"version",void 0),Yq([jq({type:pZ})],SZ.prototype,"signature",void 0),Yq([jq({type:rY})],SZ.prototype,"issuer",void 0),Yq([jq({type:vZ})],SZ.prototype,"thisUpdate",void 0),Yq([jq({type:vZ,optional:!0})],SZ.prototype,"nextUpdate",void 0),Yq([jq({type:CZ,repeated:"sequence",optional:!0})],SZ.prototype,"revokedCertificates",void 0),Yq([jq({type:bZ,optional:!0,context:0,repeated:"sequence"})],SZ.prototype,"crlExtensions",void 0);var EZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.tbsCertList=new SZ,this.signatureAlgorithm=new pZ,this.signature=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:SZ})],EZ.prototype,"tbsCertList",void 0),Yq([jq({type:pZ})],EZ.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],EZ.prototype,"signature",void 0);var PZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.attrType="",this.attrValues=[],Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],PZ.prototype,"attrType",void 0),Yq([jq({type:tG.Any,repeated:"set"})],PZ.prototype,"attrValues",void 0);var OZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.acIssuer=new uY,this.acSerial=0,this.attrs=[],Object.assign(this,t)});Yq([jq({type:uY})],OZ.prototype,"acIssuer",void 0),Yq([jq({type:tG.Integer})],OZ.prototype,"acSerial",void 0),Yq([jq({type:oZ,repeated:"sequence"})],OZ.prototype,"attrs",void 0);var DZ=kZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),kZ.prototype),i}return Y(n)}(Gq);DZ=kZ=Yq([zq({type:eG.Sequence,itemType:tG.ObjectIdentifier})],DZ);var IZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.permitUnSpecified=!0,Object.assign(this,t)});Yq([jq({type:tG.Integer,optional:!0})],IZ.prototype,"pathLenConstraint",void 0),Yq([jq({type:DZ,implicit:!0,context:0,optional:!0})],IZ.prototype,"permittedAttrs",void 0),Yq([jq({type:DZ,implicit:!0,context:1,optional:!0})],IZ.prototype,"excludedAttrs",void 0),Yq([jq({type:tG.Boolean,defaultValue:!0})],IZ.prototype,"permitUnSpecified",void 0);var TZ,MZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.issuer=new mY,this.serial=new ArrayBuffer(0),this.issuerUID=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:mY})],MZ.prototype,"issuer",void 0),Yq([jq({type:tG.Integer,converter:fq})],MZ.prototype,"serial",void 0),Yq([jq({type:tG.BitString,optional:!0})],MZ.prototype,"issuerUID",void 0),function(e){e[e.publicKey=0]="publicKey",e[e.publicKeyCert=1]="publicKeyCert",e[e.otherObjectTypes=2]="otherObjectTypes"}(TZ||(TZ={}));var BZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.digestedObjectType=TZ.publicKey,this.digestAlgorithm=new pZ,this.objectDigest=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Enumerated})],BZ.prototype,"digestedObjectType",void 0),Yq([jq({type:tG.ObjectIdentifier,optional:!0})],BZ.prototype,"otherObjectTypeID",void 0),Yq([jq({type:pZ})],BZ.prototype,"digestAlgorithm",void 0),Yq([jq({type:tG.BitString})],BZ.prototype,"objectDigest",void 0);var RZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:mY,optional:!0})],RZ.prototype,"issuerName",void 0),Yq([jq({type:MZ,context:0,implicit:!0,optional:!0})],RZ.prototype,"baseCertificateID",void 0),Yq([jq({type:BZ,context:1,implicit:!0,optional:!0})],RZ.prototype,"objectDigestInfo",void 0);var LZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uY,repeated:"sequence"})],LZ.prototype,"v1Form",void 0),Yq([jq({type:RZ,context:0,implicit:!0})],LZ.prototype,"v2Form",void 0),LZ=Yq([zq({type:eG.Choice})],LZ);var FZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.notBeforeTime=new Date,this.notAfterTime=new Date,Object.assign(this,t)});Yq([jq({type:tG.GeneralizedTime})],FZ.prototype,"notBeforeTime",void 0),Yq([jq({type:tG.GeneralizedTime})],FZ.prototype,"notAfterTime",void 0);var NZ,VZ,zZ,jZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:MZ,implicit:!0,context:0,optional:!0})],jZ.prototype,"baseCertificateID",void 0),Yq([jq({type:mY,implicit:!0,context:1,optional:!0})],jZ.prototype,"entityName",void 0),Yq([jq({type:BZ,implicit:!0,context:2,optional:!0})],jZ.prototype,"objectDigestInfo",void 0),function(e){e[e.v2=1]="v2"}(NZ||(NZ={}));var HZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=NZ.v2,this.holder=new jZ,this.issuer=new LZ,this.signature=new pZ,this.serialNumber=new ArrayBuffer(0),this.attrCertValidityPeriod=new FZ,this.attributes=[],Object.assign(this,t)});Yq([jq({type:tG.Integer})],HZ.prototype,"version",void 0),Yq([jq({type:jZ})],HZ.prototype,"holder",void 0),Yq([jq({type:LZ})],HZ.prototype,"issuer",void 0),Yq([jq({type:pZ})],HZ.prototype,"signature",void 0),Yq([jq({type:tG.Integer,converter:fq})],HZ.prototype,"serialNumber",void 0),Yq([jq({type:FZ})],HZ.prototype,"attrCertValidityPeriod",void 0),Yq([jq({type:oZ,repeated:"sequence"})],HZ.prototype,"attributes",void 0),Yq([jq({type:tG.BitString,optional:!0})],HZ.prototype,"issuerUniqueID",void 0),Yq([jq({type:xZ,optional:!0})],HZ.prototype,"extensions",void 0);var UZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.acinfo=new HZ,this.signatureAlgorithm=new pZ,this.signatureValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:HZ})],UZ.prototype,"acinfo",void 0),Yq([jq({type:pZ})],UZ.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],UZ.prototype,"signatureValue",void 0),function(e){e[e.unmarked=1]="unmarked",e[e.unclassified=2]="unclassified",e[e.restricted=4]="restricted",e[e.confidential=8]="confidential",e[e.secret=16]="secret",e[e.topSecret=32]="topSecret"}(VZ||(VZ={}));var WZ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(lq),GZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.type="",this.value=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier,implicit:!0,context:0})],GZ.prototype,"type",void 0),Yq([jq({type:tG.Any,implicit:!0,context:1})],GZ.prototype,"value",void 0);var qZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.policyId="",this.classList=new WZ(VZ.unclassified),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],qZ.prototype,"policyId",void 0),Yq([jq({type:WZ,defaultValue:new WZ(VZ.unclassified)})],qZ.prototype,"classList",void 0),Yq([jq({type:GZ,repeated:"set"})],qZ.prototype,"securityCategories",void 0);var YZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uq})],YZ.prototype,"cotets",void 0),Yq([jq({type:tG.ObjectIdentifier})],YZ.prototype,"oid",void 0),Yq([jq({type:tG.Utf8String})],YZ.prototype,"string",void 0);var ZZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.values=[],Object.assign(this,t)});Yq([jq({type:mY,implicit:!0,context:0,optional:!0})],ZZ.prototype,"policyAuthority",void 0),Yq([jq({type:YZ,repeated:"sequence"})],ZZ.prototype,"values",void 0);var KZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.targetCertificate=new MZ,Object.assign(this,t)});Yq([jq({type:MZ})],KZ.prototype,"targetCertificate",void 0),Yq([jq({type:uY,optional:!0})],KZ.prototype,"targetName",void 0),Yq([jq({type:BZ,optional:!0})],KZ.prototype,"certDigestInfo",void 0);var QZ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uY,context:0,implicit:!0})],QZ.prototype,"targetName",void 0),Yq([jq({type:uY,context:1,implicit:!0})],QZ.prototype,"targetGroup",void 0),Yq([jq({type:KZ,context:2,implicit:!0})],QZ.prototype,"targetCert",void 0),QZ=Yq([zq({type:eG.Choice})],QZ);var XZ,JZ=zZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),zZ.prototype),i}return Y(n)}(Gq);JZ=zZ=Yq([zq({type:eG.Sequence,itemType:QZ})],JZ);var $Z=XZ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),XZ.prototype),i}return Y(n)}(Gq);$Z=XZ=Yq([zq({type:eG.Sequence,itemType:JZ})],$Z);var eK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:mY,implicit:!0,context:0,optional:!0})],eK.prototype,"roleAuthority",void 0),Yq([jq({type:uY,implicit:!0,context:1})],eK.prototype,"roleName",void 0);var tK,nK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.service=new uY,this.ident=new uY,Object.assign(this,t)});Yq([jq({type:uY})],nK.prototype,"service",void 0),Yq([jq({type:uY})],nK.prototype,"ident",void 0),Yq([jq({type:uq,optional:!0})],nK.prototype,"authInfo",void 0);var iK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.otherCertFormat="",this.otherCert=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],iK.prototype,"otherCertFormat",void 0),Yq([jq({type:tG.Any})],iK.prototype,"otherCert",void 0);var rK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:AZ})],rK.prototype,"certificate",void 0),Yq([jq({type:UZ,context:2,implicit:!0})],rK.prototype,"v2AttrCert",void 0),Yq([jq({type:iK,context:3,implicit:!0})],rK.prototype,"other",void 0),rK=Yq([zq({type:eG.Choice})],rK);var oK=tK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),tK.prototype),i}return Y(n)}(Gq);oK=tK=Yq([zq({type:eG.Set,itemType:rK})],oK);var aK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.contentType="",this.content=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],aK.prototype,"contentType",void 0),Yq([jq({type:tG.Any,context:0})],aK.prototype,"content",void 0);var sK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uq})],sK.prototype,"single",void 0),Yq([jq({type:tG.Any})],sK.prototype,"any",void 0),sK=Yq([zq({type:eG.Choice})],sK);var lK,uK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.eContentType="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],uK.prototype,"eContentType",void 0),Yq([jq({type:sK,context:0,optional:!0})],uK.prototype,"eContent",void 0),function(e){e[e.v0=0]="v0",e[e.v1=1]="v1",e[e.v2=2]="v2",e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v5=5]="v5"}(lK||(lK={}));var cK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);cK=Yq([zq({type:eG.Sequence})],cK);var dK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);dK=Yq([zq({type:eG.Sequence})],dK);var hK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);hK=Yq([zq({type:eG.Sequence})],hK);var fK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);fK=Yq([zq({type:eG.Sequence})],fK);var pK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);pK=Yq([zq({type:eG.Sequence})],pK);var gK=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);gK=Yq([zq({type:eG.Sequence})],gK);var vK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uq,context:0,implicit:!0,optional:!0})],vK.prototype,"value",void 0),Yq([jq({type:uq,converter:yq,context:0,implicit:!0,optional:!0,repeated:"sequence"})],vK.prototype,"constructedValue",void 0),vK=Yq([zq({type:eG.Choice})],vK);var mK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.contentType="",this.contentEncryptionAlgorithm=new fK,Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],mK.prototype,"contentType",void 0),Yq([jq({type:fK})],mK.prototype,"contentEncryptionAlgorithm",void 0),Yq([jq({type:vK,optional:!0})],mK.prototype,"encryptedContent",void 0);var yK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.issuer=new rY,this.serialNumber=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:rY})],yK.prototype,"issuer",void 0),Yq([jq({type:tG.Integer,converter:fq})],yK.prototype,"serialNumber",void 0);var bK,wK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.keyAttrId="",Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],wK.prototype,"keyAttrId",void 0),Yq([jq({type:tG.Any,optional:!0})],wK.prototype,"keyAttr",void 0);var kK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.subjectKeyIdentifier=new uZ,Object.assign(this,t)});Yq([jq({type:uZ})],kK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:tG.GeneralizedTime,optional:!0})],kK.prototype,"date",void 0),Yq([jq({type:wK,optional:!0})],kK.prototype,"other",void 0);var xK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:kK,context:0,implicit:!0,optional:!0})],xK.prototype,"rKeyId",void 0),Yq([jq({type:yK,optional:!0})],xK.prototype,"issuerAndSerialNumber",void 0),xK=Yq([zq({type:eG.Choice})],xK);var _K=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.rid=new xK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:xK})],_K.prototype,"rid",void 0),Yq([jq({type:uq})],_K.prototype,"encryptedKey",void 0);var AK=bK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),bK.prototype),i}return Y(n)}(Gq);AK=bK=Yq([zq({type:eG.Sequence,itemType:_K})],AK);var CK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.algorithm=new pZ,this.publicKey=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:pZ})],CK.prototype,"algorithm",void 0),Yq([jq({type:tG.BitString})],CK.prototype,"publicKey",void 0);var SK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uZ,context:0,implicit:!0,optional:!0})],SK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:CK,context:1,implicit:!0,optional:!0})],SK.prototype,"originatorKey",void 0),Yq([jq({type:yK,optional:!0})],SK.prototype,"issuerAndSerialNumber",void 0),SK=Yq([zq({type:eG.Choice})],SK);var EK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v3,this.originator=new SK,this.keyEncryptionAlgorithm=new hK,this.recipientEncryptedKeys=new AK,Object.assign(this,t)});Yq([jq({type:tG.Integer})],EK.prototype,"version",void 0),Yq([jq({type:SK,context:0})],EK.prototype,"originator",void 0),Yq([jq({type:uq,context:1,optional:!0})],EK.prototype,"ukm",void 0),Yq([jq({type:hK})],EK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:AK})],EK.prototype,"recipientEncryptedKeys",void 0);var PK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uZ,context:0,implicit:!0})],PK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:yK})],PK.prototype,"issuerAndSerialNumber",void 0),PK=Yq([zq({type:eG.Choice})],PK);var OK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.rid=new PK,this.keyEncryptionAlgorithm=new hK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],OK.prototype,"version",void 0),Yq([jq({type:PK})],OK.prototype,"rid",void 0),Yq([jq({type:hK})],OK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:uq})],OK.prototype,"encryptedKey",void 0);var DK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.keyIdentifier=new uq,Object.assign(this,t)});Yq([jq({type:uq})],DK.prototype,"keyIdentifier",void 0),Yq([jq({type:tG.GeneralizedTime,optional:!0})],DK.prototype,"date",void 0),Yq([jq({type:wK,optional:!0})],DK.prototype,"other",void 0);var IK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v4,this.kekid=new DK,this.keyEncryptionAlgorithm=new hK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],IK.prototype,"version",void 0),Yq([jq({type:DK})],IK.prototype,"kekid",void 0),Yq([jq({type:hK})],IK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:uq})],IK.prototype,"encryptedKey",void 0);var TK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.keyEncryptionAlgorithm=new hK,this.encryptedKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],TK.prototype,"version",void 0),Yq([jq({type:gK,context:0,optional:!0})],TK.prototype,"keyDerivationAlgorithm",void 0),Yq([jq({type:hK})],TK.prototype,"keyEncryptionAlgorithm",void 0),Yq([jq({type:uq})],TK.prototype,"encryptedKey",void 0);var MK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.oriType="",this.oriValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],MK.prototype,"oriType",void 0),Yq([jq({type:tG.Any})],MK.prototype,"oriValue",void 0);var BK,RK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:OK,optional:!0})],RK.prototype,"ktri",void 0),Yq([jq({type:EK,context:1,implicit:!0,optional:!0})],RK.prototype,"kari",void 0),Yq([jq({type:IK,context:2,implicit:!0,optional:!0})],RK.prototype,"kekri",void 0),Yq([jq({type:TK,context:3,implicit:!0,optional:!0})],RK.prototype,"pwri",void 0),Yq([jq({type:MK,context:4,implicit:!0,optional:!0})],RK.prototype,"ori",void 0),RK=Yq([zq({type:eG.Choice})],RK);var LK,FK=BK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),BK.prototype),i}return Y(n)}(Gq);FK=BK=Yq([zq({type:eG.Set,itemType:RK})],FK);var NK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.otherRevInfoFormat="",this.otherRevInfo=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],NK.prototype,"otherRevInfoFormat",void 0),Yq([jq({type:tG.Any})],NK.prototype,"otherRevInfo",void 0);var VK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.other=new NK,Object.assign(this,t)});Yq([jq({type:NK,context:1,implicit:!0})],VK.prototype,"other",void 0),VK=Yq([zq({type:eG.Choice})],VK);var zK=LK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),LK.prototype),i}return Y(n)}(Gq);zK=LK=Yq([zq({type:eG.Set,itemType:VK})],zK);var jK,HK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:oK,context:0,implicit:!0,optional:!0})],HK.prototype,"certs",void 0),Yq([jq({type:zK,context:1,implicit:!0,optional:!0})],HK.prototype,"crls",void 0);var UK=jK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),jK.prototype),i}return Y(n)}(Gq);UK=jK=Yq([zq({type:eG.Set,itemType:PZ})],UK);var WK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.recipientInfos=new FK,this.encryptedContentInfo=new mK,Object.assign(this,t)});Yq([jq({type:tG.Integer})],WK.prototype,"version",void 0),Yq([jq({type:HK,context:0,implicit:!0,optional:!0})],WK.prototype,"originatorInfo",void 0),Yq([jq({type:FK})],WK.prototype,"recipientInfos",void 0),Yq([jq({type:mK})],WK.prototype,"encryptedContentInfo",void 0),Yq([jq({type:UK,context:1,implicit:!0,optional:!0})],WK.prototype,"unprotectedAttrs",void 0);var GK,qK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:uZ,context:0,implicit:!0})],qK.prototype,"subjectKeyIdentifier",void 0),Yq([jq({type:yK})],qK.prototype,"issuerAndSerialNumber",void 0),qK=Yq([zq({type:eG.Choice})],qK);var YK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.sid=new qK,this.digestAlgorithm=new cK,this.signatureAlgorithm=new dK,this.signature=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],YK.prototype,"version",void 0),Yq([jq({type:qK})],YK.prototype,"sid",void 0),Yq([jq({type:cK})],YK.prototype,"digestAlgorithm",void 0),Yq([jq({type:PZ,repeated:"set",context:0,implicit:!0,optional:!0})],YK.prototype,"signedAttrs",void 0),Yq([jq({type:dK})],YK.prototype,"signatureAlgorithm",void 0),Yq([jq({type:uq})],YK.prototype,"signature",void 0),Yq([jq({type:PZ,repeated:"set",context:1,implicit:!0,optional:!0})],YK.prototype,"unsignedAttrs",void 0);var ZK,KK=GK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),GK.prototype),i}return Y(n)}(Gq);KK=GK=Yq([zq({type:eG.Set,itemType:YK})],KK);var QK=ZK=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),ZK.prototype),i}return Y(n)}(Gq);QK=ZK=Yq([zq({type:eG.Set,itemType:cK})],QK);var XK=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=lK.v0,this.digestAlgorithms=new QK,this.encapContentInfo=new uK,this.signerInfos=new KK,Object.assign(this,t)});function JK(e){return new pZ({algorithm:e})}Yq([jq({type:tG.Integer})],XK.prototype,"version",void 0),Yq([jq({type:QK})],XK.prototype,"digestAlgorithms",void 0),Yq([jq({type:uK})],XK.prototype,"encapContentInfo",void 0),Yq([jq({type:oK,context:0,implicit:!0,optional:!0})],XK.prototype,"certificates",void 0),Yq([jq({type:VK,context:1,implicit:!0,optional:!0})],XK.prototype,"crls",void 0),Yq([jq({type:KK})],XK.prototype,"signerInfos",void 0);var $K=JK("1.2.840.10045.4.1"),eQ=(JK("1.2.840.10045.4.3.1"),JK("1.2.840.10045.4.3.2")),tQ=JK("1.2.840.10045.4.3.3"),nQ=JK("1.2.840.10045.4.3.4"),iQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],iQ.prototype,"namedCurve",void 0),iQ=Yq([zq({type:eG.Choice})],iQ);var rQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=1,this.privateKey=new uq,Object.assign(this,t)});Yq([jq({type:tG.Integer})],rQ.prototype,"version",void 0),Yq([jq({type:uq})],rQ.prototype,"privateKey",void 0),Yq([jq({type:iQ,context:0,optional:!0})],rQ.prototype,"parameters",void 0),Yq([jq({type:tG.BitString,context:1,optional:!0})],rQ.prototype,"publicKey",void 0);var oQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.r=new ArrayBuffer(0),this.s=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],oQ.prototype,"r",void 0),Yq([jq({type:tG.Integer,converter:fq})],oQ.prototype,"s",void 0);var aQ="1.2.840.113549.1.1.8";function sQ(e){return new pZ({algorithm:e,parameters:null})}sQ("1.2.840.113549.2.2"),sQ("1.2.840.113549.2.5");var lQ=sQ("1.3.14.3.2.26"),uQ=(sQ("2.16.840.1.101.3.4.2.4"),sQ("2.16.840.1.101.3.4.2.1"),sQ("2.16.840.1.101.3.4.2.2"),sQ("2.16.840.1.101.3.4.2.3"),sQ("2.16.840.1.101.3.4.2.5"),sQ("2.16.840.1.101.3.4.2.6"),new pZ({algorithm:aQ,parameters:qq.serialize(lQ)})),cQ=new pZ({algorithm:"1.2.840.113549.1.1.9",parameters:qq.serialize(mq.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});sQ("1.2.840.113549.1.1.1"),sQ("1.2.840.113549.1.1.2"),sQ("1.2.840.113549.1.1.4"),sQ("1.2.840.113549.1.1.5"),sQ("1.2.840.113549.1.1.15"),sQ("1.2.840.113549.1.1.16"),sQ("1.2.840.113549.1.1.12"),sQ("1.2.840.113549.1.1.13"),sQ("1.2.840.113549.1.1.15"),sQ("1.2.840.113549.1.1.16");var dQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.hashAlgorithm=new pZ(lQ),this.maskGenAlgorithm=new pZ({algorithm:aQ,parameters:qq.serialize(lQ)}),this.pSourceAlgorithm=new pZ(cQ),Object.assign(this,t)});Yq([jq({type:pZ,context:0,defaultValue:lQ})],dQ.prototype,"hashAlgorithm",void 0),Yq([jq({type:pZ,context:1,defaultValue:uQ})],dQ.prototype,"maskGenAlgorithm",void 0),Yq([jq({type:pZ,context:2,defaultValue:cQ})],dQ.prototype,"pSourceAlgorithm",void 0),new pZ({algorithm:"1.2.840.113549.1.1.7",parameters:qq.serialize(new dQ)});var hQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.hashAlgorithm=new pZ(lQ),this.maskGenAlgorithm=new pZ({algorithm:aQ,parameters:qq.serialize(lQ)}),this.saltLength=20,this.trailerField=1,Object.assign(this,t)});Yq([jq({type:pZ,context:0,defaultValue:lQ})],hQ.prototype,"hashAlgorithm",void 0),Yq([jq({type:pZ,context:1,defaultValue:uQ})],hQ.prototype,"maskGenAlgorithm",void 0),Yq([jq({type:tG.Integer,context:2,defaultValue:20})],hQ.prototype,"saltLength",void 0),Yq([jq({type:tG.Integer,context:3,defaultValue:1})],hQ.prototype,"trailerField",void 0),new pZ({algorithm:"1.2.840.113549.1.1.10",parameters:qq.serialize(new hQ)});var fQ,pQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.digestAlgorithm=new pZ,this.digest=new uq,Object.assign(this,t)});Yq([jq({type:pZ})],pQ.prototype,"digestAlgorithm",void 0),Yq([jq({type:uq})],pQ.prototype,"digest",void 0);var gQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.prime=new ArrayBuffer(0),this.exponent=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],gQ.prototype,"prime",void 0),Yq([jq({type:tG.Integer,converter:fq})],gQ.prototype,"exponent",void 0),Yq([jq({type:tG.Integer,converter:fq})],gQ.prototype,"coefficient",void 0);var vQ=fQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),fQ.prototype),i}return Y(n)}(Gq);vQ=fQ=Yq([zq({type:eG.Sequence,itemType:gQ})],vQ);var mQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=0,this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),this.privateExponent=new ArrayBuffer(0),this.prime1=new ArrayBuffer(0),this.prime2=new ArrayBuffer(0),this.exponent1=new ArrayBuffer(0),this.exponent2=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer})],mQ.prototype,"version",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"modulus",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"publicExponent",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"privateExponent",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"prime1",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"prime2",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"exponent1",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"exponent2",void 0),Yq([jq({type:tG.Integer,converter:fq})],mQ.prototype,"coefficient",void 0),Yq([jq({type:vQ,optional:!0})],mQ.prototype,"otherPrimeInfos",void 0);var yQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.Integer,converter:fq})],yQ.prototype,"modulus",void 0),Yq([jq({type:tG.Integer,converter:fq})],yQ.prototype,"publicExponent",void 0);var bQ,wQ=((bQ={})[bQ.Transient=0]="Transient",bQ[bQ.Singleton=1]="Singleton",bQ[bQ.ResolutionScoped=2]="ResolutionScoped",bQ[bQ.ContainerScoped=3]="ContainerScoped",bQ);function kQ(e){return!!e.useClass}function xQ(e){return!!e.useFactory}var _Q=function(){function e(t){Z(this,e),this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return Y(e,[{key:"createProxy",value:function(e){var t,n=this,i=!1;return new Proxy({},this.createHandler(function(){return i||(t=e(n.wrap()),i=!0),t}))}},{key:"createHandler",value:function(e){var t={};return this.reflectMethods.forEach(function(n){t[n]=function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return i[0]=e(),Reflect[n].apply(void 0,i)}}),t}}]),e}();function AQ(e){return"string"==typeof e||"symbol"==typeof e}function CQ(e){return"object"==typeof e&&"token"in e&&"transform"in e}function SQ(e){return!!e.useToken}function EQ(e){return null!=e.useValue}var PQ,OQ=function(){function e(){Z(this,e),this._registryMap=new Map}return Y(e,[{key:"entries",value:function(){return this._registryMap.entries()}},{key:"getAll",value:function(e){return this.ensure(e),this._registryMap.get(e)}},{key:"get",value:function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null}},{key:"set",value:function(e,t){this.ensure(e),this._registryMap.get(e).push(t)}},{key:"setAll",value:function(e,t){this._registryMap.set(e,t)}},{key:"has",value:function(e){return this.ensure(e),this._registryMap.get(e).length>0}},{key:"clear",value:function(){this._registryMap.clear()}},{key:"ensure",value:function(e){this._registryMap.has(e)||this._registryMap.set(e,[])}}]),e}(),DQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(OQ),IQ=Y(function e(){Z(this,e),this.scopedResolutions=new Map}),TQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(OQ),MQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(OQ),BQ=Y(function e(){Z(this,e),this.preResolution=new TQ,this.postResolution=new MQ}),RQ=new Map,LQ=new(function(){function e(t){Z(this,e),this.parent=t,this._registry=new DQ,this.interceptors=new BQ,this.disposed=!1,this.disposables=new Set}return Y(e,[{key:"register",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{lifecycle:wQ.Transient};if(this.ensureNotDisposed(),n=function(e){return kQ(e)||EQ(e)||SQ(e)||xQ(e)}(t)?t:{useClass:t},SQ(n))for(var r=[e],o=n;null!=o;){var a=o.useToken;if(r.includes(a))throw new Error("Token registration cycle detected! "+[].concat(r,[a]).join(" -> "));r.push(a);var s=this._registry.get(a);o=s&&SQ(s.provider)?s.provider:null}if((i.lifecycle===wQ.Singleton||i.lifecycle==wQ.ContainerScoped||i.lifecycle==wQ.ResolutionScoped)&&(EQ(n)||xQ(n)))throw new Error('Cannot use lifecycle "'.concat(wQ[i.lifecycle],'" with ValueProviders or FactoryProviders'));return this._registry.set(e,{provider:n,options:i}),this}},{key:"registerType",value:function(e,t){return this.ensureNotDisposed(),AQ(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}},{key:"registerInstance",value:function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}},{key:"registerSingleton",value:function(e,t){if(this.ensureNotDisposed(),AQ(e)){if(AQ(t))return this.register(e,{useToken:t},{lifecycle:wQ.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:wQ.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var n=e;return t&&!AQ(t)&&(n=t),this.register(e,{useClass:n},{lifecycle:wQ.Singleton})}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new IQ;this.ensureNotDisposed();var n=this.getRegistration(e);if(!n&&AQ(e))throw new Error('Attempted to resolve unregistered dependency token: "'.concat(e.toString(),'"'));if(this.executePreResolutionInterceptor(e,"Single"),n){var i=this.resolveRegistration(n,t);return this.executePostResolutionInterceptor(e,i,"Single"),i}if(function(e){return"function"==typeof e||e instanceof _Q}(e)){var r=this.construct(e,t);return this.executePostResolutionInterceptor(e,r,"Single"),r}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}},{key:"executePreResolutionInterceptor",value:function(e,t){if(this.interceptors.preResolution.has(e)){var n,i=[],r=R(this.interceptors.preResolution.getAll(e));try{for(r.s();!(n=r.n()).done;){var o=n.value;"Once"!=o.options.frequency&&i.push(o),o.callback(e,t)}}catch(a){r.e(a)}finally{r.f()}this.interceptors.preResolution.setAll(e,i)}}},{key:"executePostResolutionInterceptor",value:function(e,t,n){if(this.interceptors.postResolution.has(e)){var i,r=[],o=R(this.interceptors.postResolution.getAll(e));try{for(o.s();!(i=o.n()).done;){var a=i.value;"Once"!=a.options.frequency&&r.push(a),a.callback(e,t,n)}}catch(s){o.e(s)}finally{o.f()}this.interceptors.postResolution.setAll(e,r)}}},{key:"resolveRegistration",value:function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===wQ.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var n,i=e.options.lifecycle===wQ.Singleton||e.options.lifecycle===wQ.ContainerScoped;return n=EQ(e.provider)?e.provider.useValue:SQ(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):kQ(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):xQ(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===wQ.ResolutionScoped&&t.scopedResolutions.set(e,n),n}},{key:"resolveAll",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new IQ;this.ensureNotDisposed();var i=this.getAllRegistrations(e);if(!i&&AQ(e))throw new Error('Attempted to resolve unregistered dependency token: "'.concat(e.toString(),'"'));if(this.executePreResolutionInterceptor(e,"All"),i){var r=i.map(function(e){return t.resolveRegistration(e,n)});return this.executePostResolutionInterceptor(e,r,"All"),r}var o=[this.construct(e,n)];return this.executePostResolutionInterceptor(e,o,"All"),o}},{key:"isRegistered",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}},{key:"reset",value:function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}},{key:"clearInstances",value:function(){this.ensureNotDisposed();var e,t=R(this._registry.entries());try{for(t.s();!(e=t.n()).done;){var n=L(e.value,2),i=n[0],r=n[1];this._registry.setAll(i,r.filter(function(e){return!EQ(e.provider)}).map(function(e){return e.instance=void 0,e}))}}catch(o){t.e(o)}finally{t.f()}}},{key:"createChildContainer",value:function(){this.ensureNotDisposed();var t,n=new e(this),i=R(this._registry.entries());try{for(i.s();!(t=i.n()).done;){var r=L(t.value,2),o=r[0],a=r[1];a.some(function(e){return e.options.lifecycle===wQ.ContainerScoped})&&n._registry.setAll(o,a.map(function(e){return e.options.lifecycle===wQ.ContainerScoped?{provider:e.provider,options:e.options}:e}))}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"beforeResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.preResolution.set(e,{callback:t,options:n})}},{key:"afterResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.postResolution.set(e,{callback:t,options:n})}},{key:"dispose",value:function(){return U_(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.disposed=!0,t=[],this.disposables.forEach(function(e){var n=e.dispose();n&&t.push(n)}),e.next=5,Promise.all(t);case 5:case"end":return e.stop()}},e,this)}))}},{key:"getRegistration",value:function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}},{key:"getAllRegistrations",value:function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}},{key:"construct",value:function(e,t){var n=this;if(e instanceof _Q)return e.createProxy(function(e){return n.resolve(e,t)});var i,r=function(){var i=RQ.get(e);if(!i||0===i.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'.concat(e.name,'"'))}var r=i.map(n.resolveParams(t,e));return A(e,V(r))}();return"function"!=typeof(i=r).dispose||i.dispose.length>0||this.disposables.add(r),r}},{key:"resolveParams",value:function(e,t){var n=this;return function(i,r){try{var o,a,s;return"object"==typeof(l=i)&&"token"in l&&"multiple"in l?CQ(i)?i.multiple?(o=n.resolve(i.transform)).transform.apply(o,[n.resolveAll(i.token)].concat(V(i.transformArgs))):(a=n.resolve(i.transform)).transform.apply(a,[n.resolve(i.token,e)].concat(V(i.transformArgs))):i.multiple?n.resolveAll(i.token):n.resolve(i.token,e):CQ(i)?(s=n.resolve(i.transform,e)).transform.apply(s,[n.resolve(i.token,e)].concat(V(i.transformArgs))):n.resolve(i,e)}catch(u){throw new Error(function(e,t,n){var i=L(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"    ";return[e].concat(V(t.message.split("\n").map(function(e){return n+e}))).join("\n")}("Cannot inject the dependency ".concat(function(e,t){return null===e?"at position #"+t:'"'.concat(e.split(",")[t].trim(),'" at position #').concat(t)}(void 0===i?null:i,t),' of "').concat(e.name,'" constructor. Reason:'),n)}(t,r,u))}var l}}},{key:"ensureNotDisposed",value:function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}}]),e}()),FQ=function(){return function(e){RQ.set(e,function(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],n=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(n).forEach(function(e){t[+e]=n[e]}),t}(e))}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");var NQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.attrId="",this.attrValues=[],Object.assign(t)});Yq([jq({type:tG.ObjectIdentifier})],NQ.prototype,"attrId",void 0),Yq([jq({type:tG.Any,repeated:"set"})],NQ.prototype,"attrValues",void 0);var VQ,zQ=PQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),PQ.prototype),i}return Y(n)}(Gq);zQ=PQ=Yq([zq({type:eG.Sequence,itemType:NQ})],zQ);var jQ=VQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),VQ.prototype),i}return Y(n)}(Gq);jQ=VQ=Yq([zq({type:eG.Sequence,itemType:aK})],jQ);var HQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.certId="",this.certValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],HQ.prototype,"certId",void 0),Yq([jq({type:tG.Any,context:0})],HQ.prototype,"certValue",void 0);var UQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.crlId="",this.crltValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],UQ.prototype,"crlId",void 0),Yq([jq({type:tG.Any,context:0})],UQ.prototype,"crltValue",void 0);var WQ,GQ,qQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(uq),YQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.encryptionAlgorithm=new pZ,this.encryptedData=new qQ,Object.assign(this,t)});Yq([jq({type:pZ})],YQ.prototype,"encryptionAlgorithm",void 0),Yq([jq({type:qQ})],YQ.prototype,"encryptedData",void 0),function(e){e[e.v1=0]="v1"}(GQ||(GQ={}));var ZQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(uq),KQ=WQ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),WQ.prototype),i}return Y(n)}(Gq);KQ=WQ=Yq([zq({type:eG.Sequence,itemType:oZ})],KQ);var QQ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=GQ.v1,this.privateKeyAlgorithm=new pZ,this.privateKey=new ZQ,Object.assign(this,t)});Yq([jq({type:tG.Integer})],QQ.prototype,"version",void 0),Yq([jq({type:pZ})],QQ.prototype,"privateKeyAlgorithm",void 0),Yq([jq({type:ZQ})],QQ.prototype,"privateKey",void 0),Yq([jq({type:KQ,implicit:!0,context:0,optional:!0})],QQ.prototype,"attributes",void 0);var XQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(QQ);XQ=Yq([zq({type:eG.Sequence})],XQ);var JQ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(YQ);JQ=Yq([zq({type:eG.Sequence})],JQ);var $Q=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.secretTypeId="",this.secretValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],$Q.prototype,"secretTypeId",void 0),Yq([jq({type:tG.Any,context:0})],$Q.prototype,"secretValue",void 0);var eX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.mac=new pQ,this.macSalt=new uq,this.iterations=1,Object.assign(this,t)});Yq([jq({type:pQ})],eX.prototype,"mac",void 0),Yq([jq({type:uq})],eX.prototype,"macSalt",void 0),Yq([jq({type:tG.Integer,defaultValue:1})],eX.prototype,"iterations",void 0);var tX,nX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=3,this.authSafe=new aK,this.macData=new eX,Object.assign(this,t)});Yq([jq({type:tG.Integer})],nX.prototype,"version",void 0),Yq([jq({type:aK})],nX.prototype,"authSafe",void 0),Yq([jq({type:eX,optional:!0})],nX.prototype,"macData",void 0);var iX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.bagId="",this.bagValue=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier})],iX.prototype,"bagId",void 0),Yq([jq({type:tG.Any,context:0})],iX.prototype,"bagValue",void 0),Yq([jq({type:NQ,repeated:"set",optional:!0})],iX.prototype,"bagAttributes",void 0);var rX,oX,aX,sX=tX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),tX.prototype),i}return Y(n)}(Gq);sX=tX=Yq([zq({type:eG.Sequence,itemType:iX})],sX);var lX=function(e){E(n,e);var t=O(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this,n),t.call(this,e)}return Y(n,[{key:"toString",value:function(){return{}.toString(),this.ia5String||C(M(n.prototype),"toString",this).call(this)}}]),n}($q);Yq([jq({type:tG.IA5String})],lX.prototype,"ia5String",void 0),lX=Yq([zq({type:eG.Choice})],lX);var uX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(aK);uX=Yq([zq({type:eG.Sequence})],uX);var cX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(nX);cX=Yq([zq({type:eG.Sequence})],cX);var dX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(YQ);dX=Yq([zq({type:eG.Sequence})],dX);var hX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.IA5String})],hX.prototype,"value",void 0),hX=Yq([zq({type:eG.Choice})],hX);var fX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(lX);fX=Yq([zq({type:eG.Choice})],fX);var pX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);pX=Yq([zq({type:eG.Choice})],pX);var gX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;Z(this,e),this.value=t});Yq([jq({type:tG.GeneralizedTime})],gX.prototype,"value",void 0),gX=Yq([zq({type:eG.Choice})],gX);var vX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);vX=Yq([zq({type:eG.Choice})],vX);var mX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"M";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.PrintableString})],mX.prototype,"value",void 0),mX=Yq([zq({type:eG.Choice})],mX);var yX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.PrintableString})],yX.prototype,"value",void 0);var bX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(yX=Yq([zq({type:eG.Choice})],yX));bX=Yq([zq({type:eG.Choice})],bX);var wX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);wX=Yq([zq({type:eG.Choice})],wX);var kX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.ObjectIdentifier})],kX.prototype,"value",void 0),kX=Yq([zq({type:eG.Choice})],kX);var xX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(vZ);xX=Yq([zq({type:eG.Choice})],xX);var _X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value.toString()}}]),e}();Yq([jq({type:tG.Integer})],_X.prototype,"value",void 0),_X=Yq([zq({type:eG.Choice})],_X);var AX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(YK);AX=Yq([zq({type:eG.Sequence})],AX);var CX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);CX=Yq([zq({type:eG.Choice})],CX);var SX=rX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),rX.prototype),i}return Y(n)}(xZ);SX=rX=Yq([zq({type:eG.Sequence})],SX);var EX=oX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),oX.prototype),i}return Y(n)}(Gq);EX=oX=Yq([zq({type:eG.Set,itemType:PZ})],EX);var PX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Z(this,e),this.value=t}return Y(e,[{key:"toString",value:function(){return this.value}}]),e}();Yq([jq({type:tG.BmpString})],PX.prototype,"value",void 0),PX=Yq([zq({type:eG.Choice})],PX);var OX=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}(pZ);OX=Yq([zq({type:eG.Sequence})],OX);var DX,IX=aX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),aX.prototype),i}return Y(n)}(Gq);IX=aX=Yq([zq({type:eG.Sequence,itemType:OX})],IX);var TX=DX=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),DX.prototype),i}return Y(n)}(Gq);TX=DX=Yq([zq({type:eG.Sequence,itemType:oZ})],TX);var MX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.version=0,this.subject=new rY,this.subjectPKInfo=new gZ,this.attributes=new TX,Object.assign(this,t)});Yq([jq({type:tG.Integer})],MX.prototype,"version",void 0),Yq([jq({type:rY})],MX.prototype,"subject",void 0),Yq([jq({type:gZ})],MX.prototype,"subjectPKInfo",void 0),Yq([jq({type:TX,implicit:!0,context:0})],MX.prototype,"attributes",void 0);var BX,RX=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.certificationRequestInfo=new MX,this.signatureAlgorithm=new pZ,this.signature=new ArrayBuffer(0),Object.assign(this,t)});Yq([jq({type:MX})],RX.prototype,"certificationRequestInfo",void 0),Yq([jq({type:pZ})],RX.prototype,"signatureAlgorithm",void 0),Yq([jq({type:tG.BitString})],RX.prototype,"signature",void 0),LQ.registerSingleton("crypto.algorithmProvider",function(){function e(){Z(this,e)}return Y(e,[{key:"getAlgorithms",value:function(){return LQ.resolveAll("crypto.algorithm")}},{key:"toAsnAlgorithm",value:function(e){var t,n=R(this.getAlgorithms());try{for(n.s();!(t=n.n()).done;){var i=t.value.toAsnAlgorithm(e);if(i)return i}}catch(o){n.e(o)}finally{n.f()}if(/[0-9.]+/.test(e.name)){var r=new pZ({algorithm:e.name});return"parameters"in e&&(r.parameters=e.parameters),r}throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm")}},{key:"toWebAlgorithm",value:function(e){var t,n=R(this.getAlgorithms());try{for(n.s();!(t=n.n()).done;){var i=t.value.toWebAlgorithm(e);if(i)return i}}catch(r){n.e(r)}finally{n.f()}return{name:e.algorithm,parameters:e.parameters}}}]),e}());var LX="ECDSA",FX=BX=function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnAlgorithm",value:function(e){switch(e.name.toLowerCase()){case LX.toLowerCase():if("hash"in e)switch(("string"==typeof e.hash?e.hash:e.hash.name).toLowerCase()){case"sha-1":return $K;case"sha-256":return eQ;case"sha-384":return tQ;case"sha-512":return nQ}else if("namedCurve"in e){var t="";switch(e.namedCurve){case"P-256":t="1.2.840.10045.3.1.7";break;case"K-256":t=BX.SECP256K1;break;case"P-384":t="1.3.132.0.34";break;case"P-521":t="1.3.132.0.35";break;case"brainpoolP160r1":t="1.3.36.3.3.2.8.1.1.1";break;case"brainpoolP160t1":t="1.3.36.3.3.2.8.1.1.2";break;case"brainpoolP192r1":t="1.3.36.3.3.2.8.1.1.3";break;case"brainpoolP192t1":t="1.3.36.3.3.2.8.1.1.4";break;case"brainpoolP224r1":t="1.3.36.3.3.2.8.1.1.5";break;case"brainpoolP224t1":t="1.3.36.3.3.2.8.1.1.6";break;case"brainpoolP256r1":t="1.3.36.3.3.2.8.1.1.7";break;case"brainpoolP256t1":t="1.3.36.3.3.2.8.1.1.8";break;case"brainpoolP320r1":t="1.3.36.3.3.2.8.1.1.9";break;case"brainpoolP320t1":t="1.3.36.3.3.2.8.1.1.10";break;case"brainpoolP384r1":t="1.3.36.3.3.2.8.1.1.11";break;case"brainpoolP384t1":t="1.3.36.3.3.2.8.1.1.12";break;case"brainpoolP512r1":t="1.3.36.3.3.2.8.1.1.13";break;case"brainpoolP512t1":t="1.3.36.3.3.2.8.1.1.14"}if(t)return new pZ({algorithm:"1.2.840.10045.2.1",parameters:qq.serialize(new iQ({namedCurve:t}))})}}return null}},{key:"toWebAlgorithm",value:function(e){switch(e.algorithm){case"1.2.840.10045.4.1":return{name:LX,hash:{name:"SHA-1"}};case"1.2.840.10045.4.3.2":return{name:LX,hash:{name:"SHA-256"}};case"1.2.840.10045.4.3.3":return{name:LX,hash:{name:"SHA-384"}};case"1.2.840.10045.4.3.4":return{name:LX,hash:{name:"SHA-512"}};case"1.2.840.10045.2.1":if(!e.parameters)throw new TypeError("Cannot get required parameters from EC algorithm");switch(qq.parse(e.parameters,iQ).namedCurve){case"1.2.840.10045.3.1.7":return{name:LX,namedCurve:"P-256"};case BX.SECP256K1:return{name:LX,namedCurve:"K-256"};case"1.3.132.0.34":return{name:LX,namedCurve:"P-384"};case"1.3.132.0.35":return{name:LX,namedCurve:"P-521"};case"1.3.36.3.3.2.8.1.1.1":return{name:LX,namedCurve:"brainpoolP160r1"};case"1.3.36.3.3.2.8.1.1.2":return{name:LX,namedCurve:"brainpoolP160t1"};case"1.3.36.3.3.2.8.1.1.3":return{name:LX,namedCurve:"brainpoolP192r1"};case"1.3.36.3.3.2.8.1.1.4":return{name:LX,namedCurve:"brainpoolP192t1"};case"1.3.36.3.3.2.8.1.1.5":return{name:LX,namedCurve:"brainpoolP224r1"};case"1.3.36.3.3.2.8.1.1.6":return{name:LX,namedCurve:"brainpoolP224t1"};case"1.3.36.3.3.2.8.1.1.7":return{name:LX,namedCurve:"brainpoolP256r1"};case"1.3.36.3.3.2.8.1.1.8":return{name:LX,namedCurve:"brainpoolP256t1"};case"1.3.36.3.3.2.8.1.1.9":return{name:LX,namedCurve:"brainpoolP320r1"};case"1.3.36.3.3.2.8.1.1.10":return{name:LX,namedCurve:"brainpoolP320t1"};case"1.3.36.3.3.2.8.1.1.11":return{name:LX,namedCurve:"brainpoolP384r1"};case"1.3.36.3.3.2.8.1.1.12":return{name:LX,namedCurve:"brainpoolP384t1"};case"1.3.36.3.3.2.8.1.1.13":return{name:LX,namedCurve:"brainpoolP512r1"};case"1.3.36.3.3.2.8.1.1.14":return{name:LX,namedCurve:"brainpoolP512t1"}}}return null}}]),e}();FX.SECP256K1="1.3.132.0.10",FX=BX=Yq([FQ()],FX),LQ.registerSingleton("crypto.algorithm",FX);var NX=Symbol("name"),VX=Symbol("value"),zX=Y(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var r in Z(this,e),this[NX]=t,this[VX]=i,n)this[r]=n[r]});zX.NAME=NX,zX.VALUE=VX;var jX=function(){function e(){Z(this,e)}return Y(e,null,[{key:"toString",value:function(e){return this.items[e]||e}}]),e}();jX.items={"1.3.14.3.2.26":"sha1","2.16.840.1.101.3.4.2.4":"sha224","2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512","1.2.840.113549.1.1.1":"rsaEncryption","1.2.840.113549.1.1.5":"sha1WithRSAEncryption","1.2.840.113549.1.1.14":"sha224WithRSAEncryption","1.2.840.113549.1.1.11":"sha256WithRSAEncryption","1.2.840.113549.1.1.12":"sha384WithRSAEncryption","1.2.840.113549.1.1.13":"sha512WithRSAEncryption","1.2.840.10045.2.1":"ecPublicKey","1.2.840.10045.4.1":"ecdsaWithSHA1","1.2.840.10045.4.3.1":"ecdsaWithSHA224","1.2.840.10045.4.3.2":"ecdsaWithSHA256","1.2.840.10045.4.3.3":"ecdsaWithSHA384","1.2.840.10045.4.3.4":"ecdsaWithSHA512","1.3.6.1.5.5.7.3.1":"TLS WWW server authentication","1.3.6.1.5.5.7.3.2":"TLS WWW client authentication","1.3.6.1.5.5.7.3.3":"Code Signing","1.3.6.1.5.5.7.3.4":"E-mail Protection","1.3.6.1.5.5.7.3.8":"Time Stamping","1.3.6.1.5.5.7.3.9":"OCSP Signing","1.2.840.113549.1.7.2":"Signed Data"};var HX=function(){function e(){Z(this,e)}return Y(e,null,[{key:"serialize",value:function(e){return this.serializeObj(e).join("\n")}},{key:"pad",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"".padStart(2*e," ")}},{key:"serializeObj",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=this.pad(t++),r="",o=e[zX.VALUE];for(var a in o&&(r=" "+o),n.push("".concat(i).concat(e[zX.NAME],":").concat(r)),i=this.pad(t),e)if("symbol"!=typeof a){var s=e[a],l=a?a+": ":"";if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)n.push("".concat(i).concat(l).concat(s));else if(s instanceof Date)n.push("".concat(i).concat(l).concat(s.toUTCString()));else if(Array.isArray(s)){var u,c=R(s);try{for(c.s();!(u=c.n()).done;){var d=u.value;d[zX.NAME]=a,n.push.apply(n,V(this.serializeObj(d,t)))}}catch(f){c.e(f)}finally{c.f()}}else if(s instanceof zX)s[zX.NAME]=a,n.push.apply(n,V(this.serializeObj(s,t)));else if(IW.BufferSourceConverter.isBufferSource(s))a?(n.push("".concat(i).concat(l)),n.push.apply(n,V(this.serializeBufferSource(s,t+1)))):n.push.apply(n,V(this.serializeBufferSource(s,t)));else{if(!("toTextObject"in s))throw new TypeError("Cannot serialize data in text format. Unsupported type.");var h=s.toTextObject();h[zX.NAME]=a,n.push.apply(n,V(this.serializeObj(h,t)))}}return n}},{key:"serializeBufferSource",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.pad(t),i=IW.BufferSourceConverter.toUint8Array(e),r=[],o=0;o<i.length;){for(var a=[],s=0;s<16&&o<i.length;s++){8===s&&a.push("");var l=i[o++].toString(16).padStart(2,"0");a.push(l)}r.push("".concat(n).concat(a.join(" ")))}return r}},{key:"serializeAlgorithm",value:function(e){return this.algorithmSerializer.toTextObject(e)}}]),e}();HX.oidSerializer=jX,HX.algorithmSerializer=function(){function e(){Z(this,e)}return Y(e,null,[{key:"toTextObject",value:function(e){var t=new zX("Algorithm Identifier",{},jX.toString(e.algorithm));if(e.parameters)switch(e.algorithm){case"1.2.840.10045.2.1":var n=(new FX).toWebAlgorithm(e);n&&"namedCurve"in n?t["Named Curve"]=n.namedCurve:t.Parameters=e.parameters;break;default:t.Parameters=e.parameters}return t}}]),e}();var UX=function(){function e(){if(Z(this,e),1===arguments.length){var t=arguments.length<=0?void 0:arguments[0];this.rawData=qq.serialize(t),this.onInit(t)}else{var n=qq.parse(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]);this.rawData=IW.BufferSourceConverter.toArrayBuffer(arguments.length<=0?void 0:arguments[0]),this.onInit(n)}}return Y(e,[{key:"equal",value:function(t){return t instanceof e&&Object(IW.isEqual)(t.rawData,this.rawData)}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text";switch(e){case"asn":return qq.toString(this.rawData);case"text":return HX.serialize(this.toTextObject());case"hex":return IW.Convert.ToHex(this.rawData);case"base64":return IW.Convert.ToBase64(this.rawData);case"base64url":return IW.Convert.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}},{key:"getTextName",value:function(){return this.constructor.NAME}},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty();return e[""]=this.rawData,e}},{key:"toTextObjectEmpty",value:function(e){return new zX(this.getTextName(),{},e)}}]),e}();UX.NAME="ASN";var WX,GX=function(e){E(n,e);var t=O(n);function n(){var e;return Z(this,n),e=IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])?IW.BufferSourceConverter.toArrayBuffer(arguments.length<=0?void 0:arguments[0]):qq.serialize(new bZ({extnID:arguments.length<=0?void 0:arguments[0],critical:arguments.length<=1?void 0:arguments[1],extnValue:new uq(IW.BufferSourceConverter.toArrayBuffer(arguments.length<=2?void 0:arguments[2]))})),t.call(this,e,bZ)}return Y(n,[{key:"onInit",value:function(e){this.type=e.extnID,this.critical=e.critical,this.value=e.extnValue.buffer}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e[""]=this.value,e}},{key:"toTextObjectWithoutValue",value:function(){var e=this.toTextObjectEmpty(this.critical?"critical":void 0);return e[zX.NAME]===n.NAME&&(e[zX.NAME]=jX.toString(this.type)),e}}]),n}(UX),qX=function(e){function t(){Z(this,t),this.items=new Map,this[WX]="CryptoProvider","undefined"!=typeof self&&"undefined"!=typeof crypto&&this.set(t.DEFAULT,crypto)}return Y(t,[{key:"clear",value:function(){this.items.clear()}},{key:"delete",value:function(e){return this.items.delete(e)}},{key:"forEach",value:function(e,t){return this.items.forEach(e,t)}},{key:"has",value:function(e){return this.items.has(e)}},{key:"size",get:function(){return this.items.size}},{key:"entries",value:function(){return this.items.entries()}},{key:"keys",value:function(){return this.items.keys()}},{key:"values",value:function(){return this.items.values()}},{key:Symbol.iterator,value:function(){return this.items[Symbol.iterator]()}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT,n=this.items.get(e.toLowerCase());if(!n)throw new Error("Cannot get Crypto by name '".concat(e,"'"));return n}},{key:"set",value:function(e,n){if("string"==typeof e){if(!n)throw new TypeError("Argument 'value' is required");this.items.set(e.toLowerCase(),n)}else this.items.set(t.DEFAULT,e);return this}}],[{key:"isCryptoKeyPair",value:function(e){return e&&e.privateKey&&e.publicKey}},{key:"isCryptoKey",value:function(e){return e&&e.usages&&e.type&&e.algorithm&&void 0!==e.extractable}}]),t}();WX=Symbol.toStringTag,qX.DEFAULT="default";var YX=new qX,ZX=/^[0-2](?:\.[1-9][0-9]*)+$/,KX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in Z(this,e),this.items={},t)this.register(n,t[n])}return Y(e,[{key:"get",value:function(e){return this.items[e]||null}},{key:"findId",value:function(e){return t=e,new RegExp(ZX).test(t)?e:this.get(e);var t}},{key:"register",value:function(e,t){this.items[e]=t,this.items[t]=e}}]),e}(),QX=new KX;function XX(e,t){return"\\"+IW.Convert.ToHex(IW.Convert.FromUtf8String(t)).toUpperCase()}QX.register("CN","2.5.4.3"),QX.register("L","2.5.4.7"),QX.register("ST","2.5.4.8"),QX.register("O","2.5.4.10"),QX.register("OU","2.5.4.11"),QX.register("C","2.5.4.6"),QX.register("DC","0.9.2342.19200300.100.1.25"),QX.register("E","1.2.840.113549.1.9.1"),QX.register("G","2.5.4.42"),QX.register("I","2.5.4.43"),QX.register("SN","2.5.4.4"),QX.register("T","2.5.4.12");var JX=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var i in Z(this,e),this.extraNames=new KX,this.asn=new rY,n)Object.prototype.hasOwnProperty.call(n,i)&&this.extraNames.register(i,n[i]);this.asn="string"==typeof t?this.fromString(t):t instanceof rY?t:IW.BufferSourceConverter.isBufferSource(t)?qq.parse(t,rY):this.fromJSON(t)}var t;return Y(e,[{key:"getField",value:function(e){var t,n=this.extraNames.findId(e)||QX.findId(e),i=[],r=R(this.asn);try{for(r.s();!(t=r.n()).done;){var o,a=R(t.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.type===n&&i.push(s.value.toString())}}catch(l){a.e(l)}finally{a.f()}}}catch(l){r.e(l)}finally{r.f()}return i}},{key:"getName",value:function(e){return this.extraNames.get(e)||QX.get(e)}},{key:"toString",value:function(){var e=this;return this.asn.map(function(t){return t.map(function(t){return"".concat(e.getName(t.type)||t.type,"=").concat(t.value.anyValue?"#"+IW.Convert.ToHex(t.value.anyValue):t.value.toString().replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,XX))}).join("+")}).join(", ")}},{key:"toJSON",value:function(){var e,t,n=[],i=R(this.asn);try{for(i.s();!(t=i.n()).done;){var r,o=t.value,a={},s=R(o);try{for(s.s();!(r=s.n()).done;){var l=r.value,u=this.getName(l.type)||l.type;null!==(e=a[u])&&void 0!==e||(a[u]=[]),a[u].push(l.value.anyValue?"#"+IW.Convert.ToHex(l.value.anyValue):l.value.toString())}}catch(c){s.e(c)}finally{s.f()}n.push(a)}}catch(c){i.e(c)}finally{i.f()}return n}},{key:"fromString",value:function(t){for(var n=new rY,i=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g,r=null,o=",";r=i.exec(t+",");){var a=L(r,3),s=a[1],l=a[2],u=l[l.length-1];","!==u&&"+"!==u||(l=l.slice(0,l.length-1),r[3]=u);var c=r[3];if(/[\d.]+/.test(s)||(s=this.getName(s)||""),!s)throw new Error("Cannot get OID for name type '".concat(s,"'"));var d=new tY({type:s});if("#"===l.charAt(0))d.value.anyValue=IW.Convert.FromHex(l.slice(1));else{var h=/"(.*?[^\\])?"/.exec(l);h&&(l=h[1]),l=l.replace(/\\0a/gi,"\n").replace(/\\0d/gi,"\r").replace(/\\0g/gi,"\t").replace(/\\(.)/g,"$1"),s===this.getName("E")||s===this.getName("DC")?d.value.ia5String=l:e.isASCII(l)?d.value.printableString=l:d.value.utf8String=l}"+"===o?n[n.length-1].push(d):n.push(new nY([d])),o=c}return n}},{key:"fromJSON",value:function(e){var t,n=new rY,i=R(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=new nY;for(var a in r){var s=a;if(/[\d.]+/.test(a)||(s=this.getName(a)||""),!s)throw new Error("Cannot get OID for name type '".concat(a,"'"));var l,u=R(r[a]);try{for(u.s();!(l=u.n()).done;){var c=l.value,d=new tY({type:s});if("object"==typeof c)for(var h in c)switch(h){case"ia5String":d.value.ia5String=c[h];break;case"utf8String":d.value.utf8String=c[h];break;case"universalString":d.value.universalString=c[h];break;case"bmpString":d.value.bmpString=c[h];break;case"printableString":d.value.printableString=c[h]}else"#"===c[0]?d.value.anyValue=IW.Convert.FromHex(c.slice(1)):s===this.getName("E")||s===this.getName("DC")?d.value.ia5String=c:d.value.printableString=c;o.push(d)}}catch(f){u.e(f)}finally{u.f()}}n.push(o)}}catch(f){i.e(f)}finally{i.f()}return n}},{key:"toArrayBuffer",value:function(){return qq.serialize(this.asn)}},{key:"getThumbprint",value:(t=G(U().mark(function e(){var t,n,i,r=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="SHA-1",r.length>=1&&!(null===(t=r.length<=0?void 0:r[0])||void 0===t?void 0:t.subtle)?(i=(r.length<=0?void 0:r[0])||i,n=(r.length<=1?void 0:r[1])||YX.get()):n=(r.length<=0?void 0:r[0])||YX.get(),e.next=4,n.subtle.digest(i,this.toArrayBuffer());case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}],[{key:"isASCII",value:function(e){for(var t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}}]),e}(),$X="Cannot initialize GeneralName from ASN.1 data. Unsupported string format in use.",eJ=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,tJ="1.3.6.1.4.1.311.20.2.3",nJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),2===arguments.length)switch(arguments.length<=0?void 0:arguments[0]){case"dn":var i=new JX(arguments.length<=1?void 0:arguments[1]).toArrayBuffer(),r=qq.parse(i,rY);e=new uY({directoryName:r});break;case"dns":e=new uY({dNSName:arguments.length<=1?void 0:arguments[1]});break;case"email":e=new uY({rfc822Name:arguments.length<=1?void 0:arguments[1]});break;case"guid":var o=new RegExp(eJ,"i").exec(arguments.length<=1?void 0:arguments[1]);if(!o)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");var a=o.slice(1).map(function(e,t){return t<3?IW.Convert.ToHex(new Uint8Array(IW.Convert.FromHex(e)).reverse()):e}).join("");e=new uY({otherName:new aY({typeId:"1.3.6.1.4.1.311.25.1",value:qq.serialize(new uq(IW.Convert.FromHex(a)))})});break;case"ip":e=new uY({iPAddress:arguments.length<=1?void 0:arguments[1]});break;case"id":e=new uY({registeredID:arguments.length<=1?void 0:arguments[1]});break;case"upn":e=new uY({otherName:new aY({typeId:tJ,value:qq.serialize(wq.toASN(arguments.length<=1?void 0:arguments[1]))})});break;case"url":e=new uY({uniformResourceIdentifier:arguments.length<=1?void 0:arguments[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else e=IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])?qq.parse(arguments.length<=0?void 0:arguments[0],uY):arguments.length<=0?void 0:arguments[0];return t.call(this,e)}return Y(n,[{key:"onInit",value:function(e){if(null!=e.dNSName)this.type="dns",this.value=e.dNSName;else if(null!=e.rfc822Name)this.type="email",this.value=e.rfc822Name;else if(null!=e.iPAddress)this.type="ip",this.value=e.iPAddress;else if(null!=e.uniformResourceIdentifier)this.type="url",this.value=e.uniformResourceIdentifier;else if(null!=e.registeredID)this.type="id",this.value=e.registeredID;else if(null!=e.directoryName)this.type="dn",this.value=new JX(e.directoryName).toString();else{if(null==e.otherName)throw new Error($X);if("1.3.6.1.4.1.311.25.1"===e.otherName.typeId){this.type="guid";var t=qq.parse(e.otherName.value,uq),n=new RegExp(eJ,"i").exec(IW.Convert.ToHex(t));if(!n)throw new Error("Cannot initialize GeneralName from ASN.1 data. Value doesn't match to GUID regular expression.");this.value=n.slice(1).map(function(e,t){return t<3?IW.Convert.ToHex(new Uint8Array(IW.Convert.FromHex(e)).reverse()):e}).join("-")}else{if(e.otherName.typeId!==tJ)throw new Error($X);this.type="upn",this.value=qq.parse(e.otherName.value,$q).toString()}}}},{key:"toJSON",value:function(){return{type:this.type,value:this.value}}},{key:"toTextObject",value:function(){var e;switch(this.type){case"dn":case"dns":case"guid":case"ip":case"id":case"upn":case"url":e=this.type.toUpperCase();break;case"email":e="Email";break;default:throw new Error("Unsupported GeneralName type")}var t=this.value;return"id"===this.type&&(t=jX.toString(t)),new zX(e,void 0,t)}}]),n}(UX),iJ=function(e){E(n,e);var t=O(n);function n(e){var i;if(Z(this,n),e instanceof mY)i=e;else if(Array.isArray(e)){var r,o=[],a=R(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s instanceof uY)o.push(s);else{var l=qq.parse(new nJ(s.type,s.value).rawData,uY);o.push(l)}}}catch(u){a.e(u)}finally{a.f()}i=new mY(o)}else{if(!IW.BufferSourceConverter.isBufferSource(e))throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");i=qq.parse(e,mY)}return t.call(this,i)}return Y(n,[{key:"onInit",value:function(e){var t,n=[],i=R(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=null;try{o=new nJ(r)}catch(a){continue}n.push(o)}}catch(s){i.e(s)}finally{i.f()}this.items=n}},{key:"toJSON",value:function(){return this.items.map(function(e){return e.toJSON()})}},{key:"toTextObject",value:function(){var e,t=C(M(n.prototype),"toTextObjectEmpty",this).call(this),i=R(this.items);try{for(i.s();!(e=i.n()).done;){var r=e.value.toTextObject(),o=t[r[zX.NAME]];Array.isArray(o)||(o=[],t[r[zX.NAME]]=o),o.push(r)}}catch(a){i.e(a)}finally{i.f()}return t}}]),n}(UX);iJ.NAME="GeneralNames";var rJ="-{5}BEGIN ([^\\n]+(?=-{5}))-{5}\\n(?:((?:[^:\\n]+: (?:[^\\n]+\\n(?: +[^\\n]+\\n)*))+))?\\n?((?:[a-zA-Z0-9=+/]+\\n)+)-{5}END \\1-{5}",oJ=function(){function e(){Z(this,e)}return Y(e,null,[{key:"isPem",value:function(e){return"string"==typeof e&&new RegExp(rJ,"g").test(e)}},{key:"decodeWithHeaders",value:function(e){e=e.replace(/\r/g,"");for(var t=new RegExp(rJ,"g"),n=[],i=null;i=t.exec(e);){var r=i[3].replace(new RegExp("[\\n]+","g"),""),o={type:i[1],headers:[],rawData:IW.Convert.FromBase64(r)},a=i[2];if(a){var s,l=null,u=R(a.split(new RegExp("\\n","g")));try{for(u.s();!(s=u.n()).done;){var c=L(s.value.split(/:(.*)/),2),d=c[0],h=c[1];if(void 0===h){if(!l)throw new Error("Cannot parse PEM string. Incorrect header value");l.value+=d.trim()}else l&&o.headers.push(l),l={key:d,value:h.trim()}}}catch(f){u.e(f)}finally{u.f()}l&&o.headers.push(l)}n.push(o)}return n}},{key:"decode",value:function(e){return this.decodeWithHeaders(e).map(function(e){return e.rawData})}},{key:"decodeFirst",value:function(e){var t=this.decode(e);if(!t.length)throw new RangeError("PEM string doesn't contain any objects");return t[0]}},{key:"encode",value:function(e,t){var n=this;if(Array.isArray(e)){var i=new Array;return e.forEach(t?function(e){if(!IW.BufferSourceConverter.isBufferSource(e))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");i.push(n.encodeStruct({type:t,rawData:IW.BufferSourceConverter.toArrayBuffer(e)}))}:function(e){if(!("type"in e))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");i.push(n.encodeStruct(e))}),i.join("\n")}if(!t)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:t,rawData:IW.BufferSourceConverter.toArrayBuffer(e)})}},{key:"encodeStruct",value:function(e){var t,n=e.type.toLocaleUpperCase(),i=[];if(i.push("-----BEGIN ".concat(n,"-----")),null===(t=e.headers)||void 0===t?void 0:t.length){var r,o=R(e.headers);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.push("".concat(a.key,": ").concat(a.value))}}catch(d){o.e(d)}finally{o.f()}i.push("")}for(var s,l=IW.Convert.ToBase64(e.rawData),u=0,c=Array();u<l.length&&(l.length-u<64?s=l.substring(u):(s=l.substring(u,u+64),u+=64),0!==s.length)&&(c.push(s),!(s.length<64)););return i.push.apply(i,c),i.push("-----END ".concat(n,"-----")),i.join("\n")}}]),e}();oJ.CertificateTag="CERTIFICATE",oJ.CrlTag="CRL",oJ.CertificateRequestTag="CERTIFICATE REQUEST",oJ.PublicKeyTag="PUBLIC KEY",oJ.PrivateKeyTag="PRIVATE KEY";var aJ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),D(n.isAsnEncoded(arguments.length<=0?void 0:arguments[0])?t.call(this,n.toArrayBuffer(arguments.length<=0?void 0:arguments[0]),arguments.length<=1?void 0:arguments[1]):t.call(this,arguments.length<=0?void 0:arguments[0]))}return Y(n,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pem";switch(e){case"pem":return oJ.encode(this.rawData,this.tag);default:return C(M(n.prototype),"toString",this).call(this,e)}}}],[{key:"isAsnEncoded",value:function(e){return IW.BufferSourceConverter.isBufferSource(e)||"string"==typeof e}},{key:"toArrayBuffer",value:function(e){if("string"==typeof e){if(oJ.isPem(e))return oJ.decode(e)[0];if(IW.Convert.isHex(e))return IW.Convert.FromHex(e);if(IW.Convert.isBase64(e))return IW.Convert.FromBase64(e);if(IW.Convert.isBase64Url(e))return IW.Convert.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}var t=IW.Convert.ToBinary(e);return oJ.isPem(t)?oJ.decode(t)[0]:IW.Convert.isHex(t)?IW.Convert.FromHex(t):IW.Convert.isBase64(t)?IW.Convert.FromBase64(t):IW.Convert.isBase64Url(t)?IW.Convert.FromBase64Url(t):IW.BufferSourceConverter.toArrayBuffer(e)}}]),n}(UX),sJ=function(e){E(o,e);var t,n,i,r=O(o);function o(e){var t;return Z(this,o),(t=aJ.isAsnEncoded(e)?r.call(this,e,gZ):r.call(this,e)).tag=oJ.PublicKeyTag,D(t)}return Y(o,[{key:"export",value:(i=G(U().mark(function e(){var t,n,i,r=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=["verify"],i=x({hash:"SHA-256"},this.algorithm),e.abrupt("return",(r.length>1?(i=(r.length<=0?void 0:r[0])||i,n=(r.length<=1?void 0:r[1])||n,t=(r.length<=2?void 0:r[2])||YX.get()):t=(r.length<=0?void 0:r[0])||YX.get(),t.subtle.importKey("spki",this.rawData,i,!0,n)));case 2:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"onInit",value:function(e){var t=LQ.resolve("crypto.algorithmProvider"),n=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case"1.2.840.113549.1.1.1":var i=qq.parse(e.subjectPublicKey,yQ),r=IW.BufferSourceConverter.toUint8Array(i.modulus);n.publicExponent=IW.BufferSourceConverter.toUint8Array(i.publicExponent),n.modulusLength=(r[0]?r:r.slice(1)).byteLength<<3}}},{key:"getThumbprint",value:(n=G(U().mark(function e(){var t,n,i,r=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="SHA-1",r.length>=1&&!(null===(t=r.length<=0?void 0:r[0])||void 0===t?void 0:t.subtle)?(i=(r.length<=0?void 0:r[0])||i,n=(r.length<=1?void 0:r[1])||YX.get()):n=(r.length<=0?void 0:r[0])||YX.get(),e.next=4,n.subtle.digest(i,this.rawData);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getKeyIdentifier",value:(t=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t||(t=YX.get()),n=qq.parse(this.rawData,gZ),e.next=4,t.subtle.digest("SHA-1",n.subjectPublicKey);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty(),t=qq.parse(this.rawData,gZ);switch(e.Algorithm=HX.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case"1.2.840.10045.2.1":e["EC Point"]=t.subjectPublicKey;break;case"1.2.840.113549.1.1.1":default:e["Raw Data"]=t.subjectPublicKey}return e}}]),o}(aJ),lJ=function(){function e(){Z(this,e)}return Y(e,null,[{key:"register",value:function(e,t){this.items.set(e,t)}},{key:"create",value:function(e){var t=new GX(e),n=this.items.get(t.type);return n?new n(e):t}}]),e}();lJ.items=new Map;var uJ=function(e){E(o,e);var t,n,i,r=O(o);function o(e){var t;return Z(this,o),(t=aJ.isAsnEncoded(e)?r.call(this,e,AZ):r.call(this,e)).tag=oJ.CertificateTag,D(t)}return Y(o,[{key:"onInit",value:function(e){var t=e.tbsCertificate;this.tbs=qq.serialize(t),this.serialNumber=IW.Convert.ToHex(t.serialNumber),this.subjectName=new JX(t.subject),this.subject=new JX(t.subject).toString(),this.issuerName=new JX(t.issuer),this.issuer=this.issuerName.toString();var n=LQ.resolve("crypto.algorithmProvider");this.signatureAlgorithm=n.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signatureValue;var i=t.validity.notBefore.utcTime||t.validity.notBefore.generalTime;if(!i)throw new Error("Cannot get 'notBefore' value");this.notBefore=i;var r=t.validity.notAfter.utcTime||t.validity.notAfter.generalTime;if(!r)throw new Error("Cannot get 'notAfter' value");this.notAfter=r,this.extensions=[],t.extensions&&(this.extensions=t.extensions.map(function(e){return lJ.create(qq.serialize(e))})),this.publicKey=new sJ(t.subjectPublicKeyInfo)}},{key:"getExtension",value:function(e){var t,n=R(this.extensions);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("string"==typeof e){if(i.type===e)return i}else if(i instanceof e)return i}}catch(r){n.e(r)}finally{n.f()}return null}},{key:"getExtensions",value:function(e){return this.extensions.filter(function(t){return"string"==typeof e?t.type===e:t instanceof e})}},{key:"verify",value:(i=G(U().mark(function e(){var t,n,i,r,o,a,s,l,u,c,d,h,f,p=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{},n=p.length>1&&void 0!==p[1]?p[1]:YX.get(),o=t.publicKey,e.prev=3,!o){e.next=30;break}if(!("publicKey"in o)){e.next=12;break}return i=x(x({},o.publicKey.algorithm),this.signatureAlgorithm),e.next=9,o.publicKey.export(i,["verify"]);case 9:r=e.sent,e.next=28;break;case 12:if(!(o instanceof sJ)){e.next=19;break}return i=x(x({},o.algorithm),this.signatureAlgorithm),e.next=16,o.export(i,["verify"]);case 16:r=e.sent,e.next=28;break;case 19:if(!IW.BufferSourceConverter.isBufferSource(o)){e.next=27;break}return a=new sJ(o),i=x(x({},a.algorithm),this.signatureAlgorithm),e.next=24,a.export(i,["verify"]);case 24:r=e.sent,e.next=28;break;case 27:i=x(x({},o.algorithm),this.signatureAlgorithm),r=o;case 28:e.next=34;break;case 30:return i=x(x({},this.publicKey.algorithm),this.signatureAlgorithm),e.next=33,this.publicKey.export(i,["verify"],n);case 33:r=e.sent;case 34:e.next=39;break;case 36:return e.prev=36,e.t0=e.catch(3),e.abrupt("return",!1);case 39:s=LQ.resolveAll("crypto.signatureFormatter").reverse(),l=null,u=R(s),e.prev=42,u.s();case 44:if((c=u.n()).done){e.next=50;break}if(d=c.value,!(l=d.toWebSignature(i,this.signature))){e.next=48;break}return e.abrupt("break",50);case 48:e.next=44;break;case 50:e.next=55;break;case 52:e.prev=52,e.t1=e.catch(42),u.e(e.t1);case 55:return e.prev=55,u.f(),e.finish(55);case 58:if(l){e.next=60;break}throw Error("Cannot convert ASN.1 signature value to WebCrypto format");case 60:return e.next=62,n.subtle.verify(this.signatureAlgorithm,r,l,this.tbs);case 62:if(h=e.sent,!t.signatureOnly){e.next=65;break}return e.abrupt("return",h);case 65:return f=(t.date||new Date).getTime(),e.abrupt("return",h&&this.notBefore.getTime()<f&&f<this.notAfter.getTime());case 67:case"end":return e.stop()}},e,this,[[3,36],[42,52,55,58]])})),function(){return i.apply(this,arguments)})},{key:"getThumbprint",value:(n=G(U().mark(function e(){var t,n,i,r,o,a=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="SHA-1",i=a.length,r=new Array(i),o=0;o<i;o++)r[o]=a[o];return r[0]&&(r[0].subtle?t=r[0]:(n=r[0]||n,t=r[1])),null!=t||(t=YX.get()),e.next=6,t.subtle.digest(n,this.rawData);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"isSelfSigned",value:(t=G(U().mark(function e(){var t,n=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:YX.get(),e.t0=this.subject===this.issuer,!e.t0){e.next=6;break}return e.next=5,this.verify({signatureOnly:!0},t);case 5:e.t0=e.sent;case 6:return e.abrupt("return",e.t0);case 7:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty(),t=qq.parse(this.rawData,AZ),n=t.tbsCertificate,i=new zX("",{Version:"".concat(wZ[n.version]," (").concat(n.version,")"),"Serial Number":n.serialNumber,"Signature Algorithm":HX.serializeAlgorithm(n.signature),Issuer:this.issuer,Validity:new zX("",{"Not Before":n.validity.notBefore.getTime(),"Not After":n.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(n.issuerUniqueID&&(i["Issuer Unique ID"]=n.issuerUniqueID),n.subjectUniqueID&&(i["Subject Unique ID"]=n.subjectUniqueID),this.extensions.length){var r,o=new zX(""),a=R(this.extensions);try{for(a.s();!(r=a.n()).done;){var s=r.value.toTextObject();o[s[zX.NAME]]=s}}catch(l){a.e(l)}finally{a.f()}i.Extensions=o}return e.Data=i,e.Signature=new zX("",{Algorithm:HX.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}]),o}(aJ);uJ.NAME="Certificate";var cJ=function(e){E(i,e);var t,n=O(i);function i(){var e;if(Z(this,i),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0]))e=n.call(this,arguments.length<=0?void 0:arguments[0]);else if("string"==typeof(arguments.length<=0?void 0:arguments[0])){var t=new fY({keyIdentifier:new hY(IW.Convert.FromHex(arguments.length<=0?void 0:arguments[0]))});e=n.call(this,"2.5.29.35",arguments.length<=1?void 0:arguments[1],qq.serialize(t))}else{var r=arguments.length<=0?void 0:arguments[0],o=r.name instanceof iJ?qq.parse(r.name.rawData,mY):r.name,a=new fY({authorityCertIssuer:o,authorityCertSerialNumber:IW.Convert.FromHex(r.serialNumber)});e=n.call(this,"2.5.29.35",arguments.length<=1?void 0:arguments[1],qq.serialize(a))}return D(e)}return Y(i,[{key:"onInit",value:function(e){C(M(i.prototype),"onInit",this).call(this,e);var t=qq.parse(e.extnValue,fY);t.keyIdentifier&&(this.keyId=IW.Convert.ToHex(t.keyIdentifier)),t.authorityCertIssuer&&t.authorityCertSerialNumber&&(this.certId={name:t.authorityCertIssuer,serialNumber:IW.Convert.ToHex(t.authorityCertSerialNumber)})}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=qq.parse(this.value,fY);return t.authorityCertIssuer&&(e["Authority Issuer"]=new iJ(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}],[{key:"create",value:(t=G(U().mark(function e(t){var n,r,o,a,s,l,u=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>1&&void 0!==u[1]&&u[1],r=u.length>2&&void 0!==u[2]?u[2]:YX.get(),!(t instanceof uJ||qX.isCryptoKey(t))){e.next=19;break}if(!(t instanceof uJ)){e.next=9;break}return e.next=6,t.publicKey.export(r);case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0=t;case 10:return o=e.t0,e.next=13,r.subtle.exportKey("spki",o);case 13:return a=e.sent,s=new sJ(a),e.next=17,s.getKeyIdentifier(r);case 17:return l=e.sent,e.abrupt("return",new i(IW.Convert.ToHex(l),n));case 19:return e.abrupt("return",new i(t,n));case 20:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),i}(GX);cJ.NAME="Authority Key Identifier";var dJ,hJ,fJ,pJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var i=qq.parse(e.value,gY);e.ca=i.cA,e.pathLength=i.pathLenConstraint}else{var r=new gY({cA:arguments.length<=0?void 0:arguments[0],pathLenConstraint:arguments.length<=1?void 0:arguments[1]});(e=t.call(this,"2.5.29.19",arguments.length<=2?void 0:arguments[2],qq.serialize(r))).ca=arguments.length<=0?void 0:arguments[0],e.pathLength=arguments.length<=1?void 0:arguments[1]}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),void 0!==this.pathLength&&(e["Path Length"]=this.pathLength),e}}]),n}(GX);pJ.NAME="Basic Constraints",(hJ=dJ||(dJ={})).serverAuth="1.3.6.1.5.5.7.3.1",hJ.clientAuth="1.3.6.1.5.5.7.3.2",hJ.codeSigning="1.3.6.1.5.5.7.3.3",hJ.emailProtection="1.3.6.1.5.5.7.3.4",hJ.timeStamping="1.3.6.1.5.5.7.3.8",hJ.ocspSigning="1.3.6.1.5.5.7.3.9";var gJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var i=qq.parse(e.value,jY);e.usages=i.map(function(e){return e})}else{var r=new jY(arguments.length<=0?void 0:arguments[0]);(e=t.call(this,"2.5.29.37",arguments.length<=1?void 0:arguments[1],qq.serialize(r))).usages=arguments.length<=0?void 0:arguments[0]}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(function(e){return jX.toString(e)}).join(", "),e}}]),n}(GX);gJ.NAME="Extended Key Usages",function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"}(fJ||(fJ={}));var vJ=function(e){E(n,e);var t=O(n);function n(){var e;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var i=qq.parse(e.value,ZY);e.usages=i.toNumber()}else{var r=new ZY(arguments.length<=0?void 0:arguments[0]);(e=t.call(this,"2.5.29.15",arguments.length<=1?void 0:arguments[1],qq.serialize(r))).usages=arguments.length<=0?void 0:arguments[0]}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=qq.parse(this.value,ZY);return e[""]=t.toJSON().join(", "),e}}]),n}(GX);vJ.NAME="Key Usages";var mJ=function(e){E(i,e);var t,n=O(i);function i(){var e;if(Z(this,i),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=n.call(this,arguments.length<=0?void 0:arguments[0]);var t=qq.parse(e.value,uZ);e.keyId=IW.Convert.ToHex(t)}else{var r="string"==typeof(arguments.length<=0?void 0:arguments[0])?IW.Convert.FromHex(arguments.length<=0?void 0:arguments[0]):arguments.length<=0?void 0:arguments[0],o=new uZ(r);(e=n.call(this,"2.5.29.14",arguments.length<=1?void 0:arguments[1],qq.serialize(o))).keyId=IW.Convert.ToHex(r)}return D(e)}return Y(i,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=qq.parse(this.value,uZ);return e[""]=t,e}}],[{key:"create",value:(t=G(U().mark(function e(t){var n,r,o,a,s,l=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>1&&void 0!==l[1]&&l[1],r=l.length>2&&void 0!==l[2]?l[2]:YX.get(),!(t instanceof sJ)){e.next=6;break}e.t0=t.rawData,e.next=19;break;case 6:if(!("publicKey"in t)){e.next=10;break}e.t1=t.publicKey.rawData,e.next=18;break;case 10:if(!IW.BufferSourceConverter.isBufferSource(t)){e.next=14;break}e.t2=t,e.next=17;break;case 14:return e.next=16,r.subtle.exportKey("spki",t);case 16:e.t2=e.sent;case 17:e.t1=e.t2;case 18:e.t0=e.t1;case 19:return o=e.t0,a=new sJ(o),e.next=23,a.getKeyIdentifier(r);case 23:return s=e.sent,e.abrupt("return",new i(IW.Convert.ToHex(s),n));case 25:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),i}(GX);mJ.NAME="Subject Key Identifier";var yJ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),D(IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])?t.call(this,arguments.length<=0?void 0:arguments[0]):t.call(this,"2.5.29.17",arguments.length<=1?void 0:arguments[1],new iJ((arguments.length<=0?void 0:arguments[0])||[]).rawData))}return Y(n,[{key:"onInit",value:function(e){C(M(n.prototype),"onInit",this).call(this,e);var t=qq.parse(e.extnValue,iZ);this.names=new iJ(t)}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(var n in t)e[n]=t[n];return e}}]),n}(GX);yJ.NAME="Subject Alternative Name";var bJ=function(e){E(n,e);var t=O(n);function n(){var e,i;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0])){e=t.call(this,arguments.length<=0?void 0:arguments[0]);var r=qq.parse(e.value,SY);e.policies=r.map(function(e){return e.policyIdentifier})}else{var o=arguments.length<=0?void 0:arguments[0],a=null!==(i=arguments.length<=1?void 0:arguments[1])&&void 0!==i&&i,s=new SY(o.map(function(e){return new CY({policyIdentifier:e})}));(e=t.call(this,"2.5.29.32",a,qq.serialize(s))).policies=o}return D(e)}return Y(n,[{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(function(e){return new zX("",{},jX.toString(e))}),e}}]),n}(GX);bJ.NAME="Certificate Policies",lJ.register("2.5.29.32",bJ);var wJ=function(e){E(n,e);var t=O(n);function n(){var e;Z(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];if(IW.BufferSourceConverter.isBufferSource(r[0]))e=IW.BufferSourceConverter.toArrayBuffer(r[0]);else{var a=r[0],s=Array.isArray(r[1])?r[1].map(function(e){return IW.BufferSourceConverter.toArrayBuffer(e)}):[];e=qq.serialize(new oZ({type:a,values:s}))}return t.call(this,e,oZ)}return Y(n,[{key:"onInit",value:function(e){this.type=e.type,this.values=e.values}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e.Value=this.values.map(function(e){return new zX("",{"":e})}),e}},{key:"toTextObjectWithoutValue",value:function(){var e=this.toTextObjectEmpty();return e[zX.NAME]===n.NAME&&(e[zX.NAME]=jX.toString(this.type)),e}}]),n}(UX);wJ.NAME="Attribute";var kJ=function(e){E(n,e);var t=O(n);function n(){var e,i;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0]))e=t.call(this,arguments.length<=0?void 0:arguments[0]);else{var r=new CX({printableString:arguments.length<=0?void 0:arguments[0]});e=t.call(this,"1.2.840.113549.1.9.7",[qq.serialize(r)])}return null!==(i=e.password)&&void 0!==i||(e.password=""),D(e)}return Y(n,[{key:"onInit",value:function(e){if(C(M(n.prototype),"onInit",this).call(this,e),this.values[0]){var t=qq.parse(this.values[0],CX);this.password=t.toString()}}},{key:"toTextObject",value:function(){var e=this.toTextObjectWithoutValue();return e[zX.VALUE]=this.password,e}}]),n}(wJ);kJ.NAME="Challenge Password";var xJ=function(e){E(n,e);var t=O(n);function n(){var e,i;if(Z(this,n),IW.BufferSourceConverter.isBufferSource(arguments.length<=0?void 0:arguments[0]))e=t.call(this,arguments.length<=0?void 0:arguments[0]);else{var r,o=arguments.length<=0?void 0:arguments[0],a=new xZ,s=R(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;a.push(qq.parse(l.rawData,bZ))}}catch(u){s.e(u)}finally{s.f()}e=t.call(this,"1.2.840.113549.1.9.14",[qq.serialize(a)])}return null!==(i=e.items)&&void 0!==i||(e.items=[]),D(e)}return Y(n,[{key:"onInit",value:function(e){if(C(M(n.prototype),"onInit",this).call(this,e),this.values[0]){var t=qq.parse(this.values[0],xZ);this.items=t.map(function(e){return lJ.create(qq.serialize(e))})}}},{key:"toTextObject",value:function(){var e,t=this.toTextObjectWithoutValue(),n=R(this.items.map(function(e){return e.toTextObject()}));try{for(n.s();!(e=n.n()).done;){var i=e.value;t[i[zX.NAME]]=i}}catch(r){n.e(r)}finally{n.f()}return t}}]),n}(wJ);xJ.NAME="Extensions";var _J=function(){function e(){Z(this,e)}return Y(e,null,[{key:"register",value:function(e,t){this.items.set(e,t)}},{key:"create",value:function(e){var t=new wJ(e),n=this.items.get(t.type);return n?new n(e):t}}]),e}();_J.items=new Map;var AJ=function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnAlgorithm",value:function(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if(!e.hash)return new pZ({algorithm:"1.2.840.113549.1.1.1",parameters:null});switch(e.hash.name.toLowerCase()){case"sha-1":return new pZ({algorithm:"1.2.840.113549.1.1.5",parameters:null});case"sha-256":return new pZ({algorithm:"1.2.840.113549.1.1.11",parameters:null});case"sha-384":return new pZ({algorithm:"1.2.840.113549.1.1.12",parameters:null});case"sha-512":return new pZ({algorithm:"1.2.840.113549.1.1.13",parameters:null})}}return null}},{key:"toWebAlgorithm",value:function(e){switch(e.algorithm){case"1.2.840.113549.1.1.1":return{name:"RSASSA-PKCS1-v1_5"};case"1.2.840.113549.1.1.5":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case"1.2.840.113549.1.1.11":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"1.2.840.113549.1.1.12":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case"1.2.840.113549.1.1.13":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}}return null}}]),e}();AJ=Yq([FQ()],AJ),LQ.registerSingleton("crypto.algorithm",AJ);var CJ=function(){function e(){Z(this,e)}return Y(e,[{key:"addPadding",value:function(e,t){var n=IW.BufferSourceConverter.toUint8Array(t),i=new Uint8Array(e);return i.set(n,e-n.length),i}},{key:"removePadding",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=IW.BufferSourceConverter.toUint8Array(e),i=0;i<n.length;i++)if(n[i]){n=n.slice(i);break}if(t&&n[0]>127){var r=new Uint8Array(n.length+1);return r.set(n,1),r.buffer}return n.buffer}},{key:"toAsnSignature",value:function(t,n){if("ECDSA"===t.name){var i=e.namedCurveSize.get(t.namedCurve)||e.defaultNamedCurveSize,r=new oQ,o=IW.BufferSourceConverter.toUint8Array(n);return r.r=this.removePadding(o.slice(0,i),!0),r.s=this.removePadding(o.slice(i,i+i),!0),qq.serialize(r)}return null}},{key:"toWebSignature",value:function(t,n){if("ECDSA"===t.name){var i=qq.parse(n,oQ),r=e.namedCurveSize.get(t.namedCurve)||e.defaultNamedCurveSize,o=this.addPadding(r,this.removePadding(i.r)),a=this.addPadding(r,this.removePadding(i.s));return Object(IW.combine)(o,a)}return null}}]),e}();CJ.namedCurveSize=new Map,CJ.defaultNamedCurveSize=32;var SJ=function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnAlgorithm",value:function(e){var t=null;switch(e.name.toLowerCase()){case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t="1.3.101.112";break;case"ed448":t="1.3.101.113"}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t="1.3.101.110";break;case"x448":t="1.3.101.111"}}return t?new pZ({algorithm:t}):null}},{key:"toWebAlgorithm",value:function(e){switch(e.algorithm){case"1.3.101.112":return{name:"EdDSA",namedCurve:"Ed25519"};case"1.3.101.113":return{name:"EdDSA",namedCurve:"Ed448"};case"1.3.101.110":return{name:"ECDH-ES",namedCurve:"X25519"};case"1.3.101.111":return{name:"ECDH-ES",namedCurve:"X448"}}return null}}]),e}();SJ=Yq([FQ()],SJ),LQ.registerSingleton("crypto.algorithm",SJ);var EJ,PJ=function(e){E(i,e);var t,n=O(i);function i(e){var t;return Z(this,i),(t=aJ.isAsnEncoded(e)?n.call(this,e,RX):n.call(this,e)).tag=oJ.CertificateRequestTag,D(t)}return Y(i,[{key:"onInit",value:function(e){this.tbs=qq.serialize(e.certificationRequestInfo),this.publicKey=new sJ(e.certificationRequestInfo.subjectPKInfo);var t=LQ.resolve("crypto.algorithmProvider");this.signatureAlgorithm=t.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signature,this.attributes=e.certificationRequestInfo.attributes.map(function(e){return _J.create(qq.serialize(e))});var n=this.getAttribute("1.2.840.113549.1.9.14");this.extensions=[],n instanceof xJ&&(this.extensions=n.items),this.subjectName=new JX(e.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}},{key:"getAttribute",value:function(e){var t,n=R(this.attributes);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.type===e)return i}}catch(r){n.e(r)}finally{n.f()}return null}},{key:"getAttributes",value:function(e){return this.attributes.filter(function(t){return t.type===e})}},{key:"getExtension",value:function(e){var t,n=R(this.extensions);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.type===e)return i}}catch(r){n.e(r)}finally{n.f()}return null}},{key:"getExtensions",value:function(e){return this.extensions.filter(function(t){return t.type===e})}},{key:"verify",value:(t=G(U().mark(function e(){var t,n,i,r,o,a,s,l,u=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:YX.get(),n=x(x({},this.publicKey.algorithm),this.signatureAlgorithm),e.next=4,this.publicKey.export(n,["verify"],t);case 4:i=e.sent,r=LQ.resolveAll("crypto.signatureFormatter").reverse(),o=null,a=R(r),e.prev=8,a.s();case 10:if((s=a.n()).done){e.next=16;break}if(l=s.value,!(o=l.toWebSignature(n,this.signature))){e.next=14;break}return e.abrupt("break",16);case 14:e.next=10;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(8),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:if(o){e.next=26;break}throw Error("Cannot convert WebCrypto signature value to ASN.1 format");case 26:return e.next=28,t.subtle.verify(this.signatureAlgorithm,i,o,this.tbs);case 28:return e.abrupt("return",e.sent);case 29:case"end":return e.stop()}},e,this,[[8,18,21,24]])})),function(){return t.apply(this,arguments)})},{key:"toTextObject",value:function(){var e=this.toTextObjectEmpty(),t=qq.parse(this.rawData,RX),n=t.certificationRequestInfo,i=new zX("",{Version:"".concat(wZ[n.version]," (").concat(n.version,")"),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){var r,o=new zX(""),a=R(this.attributes);try{for(a.s();!(r=a.n()).done;){var s=r.value.toTextObject();o[s[zX.NAME]]=s}}catch(l){a.e(l)}finally{a.f()}i.Attributes=o}return e.Data=i,e.Signature=new zX("",{Algorithm:HX.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}]),i}(aJ);PJ.NAME="PKCS#10 Certificate Request",function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"}(EJ||(EJ={})),lJ.register("2.5.29.19",pJ),lJ.register("2.5.29.37",gJ),lJ.register("2.5.29.15",vJ),lJ.register("2.5.29.14",mJ),lJ.register("2.5.29.35",cJ),lJ.register("2.5.29.17",yJ),_J.register("1.2.840.113549.1.9.7",kJ),_J.register("1.2.840.113549.1.9.14",xJ),LQ.registerSingleton("crypto.signatureFormatter",function(){function e(){Z(this,e)}return Y(e,[{key:"toAsnSignature",value:function(e,t){return IW.BufferSourceConverter.toArrayBuffer(t)}},{key:"toWebSignature",value:function(e,t){return IW.BufferSourceConverter.toArrayBuffer(t)}}]),e}()),LQ.registerSingleton("crypto.signatureFormatter",CJ),CJ.namedCurveSize.set("P-256",32),CJ.namedCurveSize.set("K-256",32),CJ.namedCurveSize.set("P-384",48),CJ.namedCurveSize.set("P-521",66);var OJ,DJ,IJ,TJ=((OJ=function(){function e(){Z(this,e)}var t,n;return Y(e,null,[{key:"pkcs10",value:(n=G(U().mark(function t(n,i,r){var o,a;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.subtle.generateKey(i,!1,e.keyUsages);case 2:return o=t.sent,t.next=5,function(){function e(){Z(this,e)}var t;return Y(e,null,[{key:"create",value:(t=G(U().mark(function e(t){var n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,k,_,A=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.length>1&&void 0!==A[1]?A[1]:YX.get(),t.keys.privateKey){e.next=3;break}throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");case 3:if(t.keys.publicKey){e.next=5;break}throw new Error("Bad field 'keys' in 'params' argument. 'publicKey' is empty");case 5:return e.next=7,n.subtle.exportKey("spki",t.keys.publicKey);case 7:if(i=e.sent,r=new RX({certificationRequestInfo:new MX({subjectPKInfo:qq.parse(i,gZ)})}),t.name&&(o=t.name instanceof JX?t.name:new JX(t.name),r.certificationRequestInfo.subject=qq.parse(o.toArrayBuffer(),rY)),t.attributes){a=R(t.attributes);try{for(a.s();!(s=a.n()).done;)l=s.value,r.certificationRequestInfo.attributes.push(qq.parse(l.rawData,oZ))}catch(C){a.e(C)}finally{a.f()}}if(t.extensions&&t.extensions.length){u=new oZ({type:"1.2.840.113549.1.9.14"}),c=new xZ,d=R(t.extensions);try{for(d.s();!(h=d.n()).done;)f=h.value,c.push(qq.parse(f.rawData,bZ))}catch(C){d.e(C)}finally{d.f()}u.values.push(qq.serialize(c)),r.certificationRequestInfo.attributes.push(u)}return p=x(x({},t.signingAlgorithm),t.keys.privateKey.algorithm),g=LQ.resolve("crypto.algorithmProvider"),r.signatureAlgorithm=g.toAsnAlgorithm(p),v=qq.serialize(r.certificationRequestInfo),e.next=17,n.subtle.sign(p,t.keys.privateKey,v);case 17:m=e.sent,y=LQ.resolveAll("crypto.signatureFormatter").reverse(),b=null,w=R(y),e.prev=21,w.s();case 23:if((k=w.n()).done){e.next=29;break}if(_=k.value,!(b=_.toAsnSignature(p,m))){e.next=27;break}return e.abrupt("break",29);case 27:e.next=23;break;case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(21),w.e(e.t0);case 34:return e.prev=34,w.f(),e.finish(34);case 37:if(b){e.next=39;break}throw Error("Cannot convert WebCrypto signature value to ASN.1 format");case 39:return e.abrupt("return",(r.signature=b,new PJ(qq.serialize(r))));case 40:case"end":return e.stop()}},e,null,[[21,31,34,37]])})),function(e){return t.apply(this,arguments)})}]),e}().create({name:r,keys:o,signingAlgorithm:i,extensions:[],attributes:[]},n);case 5:return a=t.sent,t.abrupt("return",{der:a.rawData,pem:a.toString("pem"),privateKey:o.privateKey,publicKey:o.publicKey});case 7:case"end":return t.stop()}},t)})),function(e,t,i){return n.apply(this,arguments)})},{key:"x509",value:(t=G(U().mark(function t(n,i,r){var o,a,s;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.subtle.generateKey(i,!1,e.keyUsages);case 2:return o=t.sent,a=new Date,t.next=6,function(){function e(){Z(this,e)}var t,n;return Y(e,null,[{key:"createSelfSigned",value:(n=G(U().mark(function e(t){var n,i=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]?i[1]:YX.get(),t.keys.privateKey){e.next=3;break}throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");case 3:if(t.keys.publicKey){e.next=5;break}throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");case 5:return e.abrupt("return",this.create({serialNumber:t.serialNumber,subject:t.name,issuer:t.name,notBefore:t.notBefore,notAfter:t.notAfter,publicKey:t.keys.publicKey,signingKey:t.keys.privateKey,signingAlgorithm:t.signingAlgorithm,extensions:t.extensions},n));case 6:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"create",value:(t=G(U().mark(function e(t){var n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m=arguments;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=m.length>1&&void 0!==m[1]?m[1]:YX.get(),!(t.publicKey instanceof sJ)){e.next=5;break}e.t0=t.publicKey.rawData,e.next=18;break;case 5:if(!("publicKey"in t.publicKey)){e.next=9;break}e.t1=t.publicKey.publicKey.rawData,e.next=17;break;case 9:if(!IW.BufferSourceConverter.isBufferSource(t.publicKey)){e.next=13;break}e.t2=t.publicKey,e.next=16;break;case 13:return e.next=15,n.subtle.exportKey("spki",t.publicKey);case 15:e.t2=e.sent;case 16:e.t1=e.t2;case 17:e.t0=e.t1;case 18:if(r=e.t0,o=new AZ({tbsCertificate:new _Z({version:wZ.v3,serialNumber:IW.Convert.FromHex(t.serialNumber),validity:new yZ({notBefore:t.notBefore,notAfter:t.notAfter}),extensions:new xZ((null===(i=t.extensions)||void 0===i?void 0:i.map(function(e){return qq.parse(e.rawData,bZ)}))||[]),subjectPublicKeyInfo:qq.parse(r,gZ)})}),t.subject&&(a=t.subject instanceof JX?t.subject:new JX(t.subject),o.tbsCertificate.subject=qq.parse(a.toArrayBuffer(),rY)),t.issuer&&(s=t.issuer instanceof JX?t.issuer:new JX(t.issuer),o.tbsCertificate.issuer=qq.parse(s.toArrayBuffer(),rY)),l="signingKey"in t?x(x({},t.signingAlgorithm),t.signingKey.algorithm):t.publicKey.algorithm,u=LQ.resolve("crypto.algorithmProvider"),o.tbsCertificate.signature=o.signatureAlgorithm=u.toAsnAlgorithm(l),c=qq.serialize(o.tbsCertificate),!("signingKey"in t)){e.next=31;break}return e.next=28,n.subtle.sign(l,t.signingKey,c);case 28:e.t3=e.sent,e.next=32;break;case 31:e.t3=t.signature;case 32:d=e.t3,h=LQ.resolveAll("crypto.signatureFormatter").reverse(),f=null,p=R(h),e.prev=36,p.s();case 38:if((g=p.n()).done){e.next=44;break}if(v=g.value,!(f=v.toAsnSignature(l,d))){e.next=42;break}return e.abrupt("break",44);case 42:e.next=38;break;case 44:e.next=49;break;case 46:e.prev=46,e.t4=e.catch(36),p.e(e.t4);case 49:return e.prev=49,p.f(),e.finish(49);case 52:if(f){e.next=54;break}throw Error("Cannot convert ASN.1 signature value to WebCrypto format");case 54:return e.abrupt("return",(o.signatureValue=f,new uJ(qq.serialize(o))));case 55:case"end":return e.stop()}},e,null,[[36,46,49,52]])})),function(e){return t.apply(this,arguments)})}]),e}().createSelfSigned({serialNumber:"01",name:r,notBefore:new Date(a.getFullYear(),a.getMonth(),a.getDate()),notAfter:new Date(a.getFullYear()+1,a.getMonth(),a.getDate()),signingAlgorithm:i,keys:o,extensions:[new pJ(!1,0,!0),new vJ(fJ.digitalSignature,!0),new gJ(["1.3.6.1.5.5.7.3.2","1.3.6.1.5.5.7.3.4"],!0)]},n);case 6:return s=t.sent,t.abrupt("return",{der:s.rawData,pem:s.toString("pem"),privateKey:o.privateKey,publicKey:o.publicKey});case 8:case"end":return t.stop()}},t)})),function(e,n,i){return t.apply(this,arguments)})}]),e}()).keyUsages=["sign","verify"],OJ);!function(e){e[e.picture=0]="picture",e[e.handwrittenSignature=1]="handwrittenSignature"}(IJ||(IJ={}));var MJ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.Integer})],MJ.prototype,"predefinedBiometricType",void 0),Yq([jq({type:tG.ObjectIdentifier})],MJ.prototype,"biometricDataOid",void 0),MJ=Yq([zq({type:eG.Choice})],MJ);var BJ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),this.typeOfBiometricData=new MJ,this.hashAlgorithm=new pZ,this.biometricDataHash=new uq,Object.assign(this,t)});Yq([jq({type:MJ})],BJ.prototype,"typeOfBiometricData",void 0),Yq([jq({type:pZ})],BJ.prototype,"hashAlgorithm",void 0),Yq([jq({type:uq})],BJ.prototype,"biometricDataHash",void 0),Yq([jq({type:tG.IA5String,optional:!0})],BJ.prototype,"sourceDataUri",void 0);var RJ,LJ,FJ=DJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),DJ.prototype),i}return Y(n)}(Gq);FJ=DJ=Yq([zq({type:eG.Sequence,itemType:BJ})],FJ);var NJ=Y(function e(){Z(this,e),this.statementId="",this.statementInfo=new ArrayBuffer(0)});Yq([jq({type:tG.ObjectIdentifier})],NJ.prototype,"statementId",void 0),Yq([jq({type:tG.Any,optional:!0})],NJ.prototype,"statementInfo",void 0);var VJ=RJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),RJ.prototype),i}return Y(n)}(Gq);VJ=RJ=Yq([zq({type:eG.Sequence,itemType:uY})],VJ);var zJ=Y(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z(this,e),Object.assign(this,t)});Yq([jq({type:tG.ObjectIdentifier,optional:!0})],zJ.prototype,"semanticsIdentifier",void 0),Yq([jq({type:VJ,optional:!0})],zJ.prototype,"nameRegistrationAuthorities",void 0);var jJ=LJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),i=t.call(this,e),Object.setPrototypeOf(I(i),LJ.prototype),i}return Y(n)}(Gq);jJ=LJ=Yq([zq({type:eG.Sequence,itemType:NJ})],jJ);var HJ,UJ=function(e){E(n,e);var t=O(n);function n(){return Z(this,n),t.apply(this,arguments)}return Y(n)}($q);UJ=Yq([zq({type:eG.Choice})],UJ),function(e){e.M="M",e.F="F",e.m="m",e.f="f"}(HJ||(HJ={}));var WJ,GJ,qJ,YJ=Y(function e(){Z(this,e),1===arguments.length?(this.asn=arguments.length<=0?void 0:arguments[0],this.rawData=qq.serialize(this.asn)):(this.asn=qq.parse(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]),this.rawData=IW.BufferSourceConverter.toArrayBuffer(arguments.length<=0?void 0:arguments[0]))}),ZJ=function(e){E(n,e);var t=O(n);function n(e){var i;Z(this,n);var r=(i=t.call(this,e,bZ)).getAsnExtnValue();switch(i.asn.extnID){case"2.5.29.15":i.value=Uq.parse(r,ZY);break;case"2.5.29.32":i.value=Uq.parse(r,SY);break;case"1.3.6.1.5.5.7.1.3":i.value=Uq.parse(r,jJ);break;case"2.5.29.19":i.value=Uq.parse(r,gY);break;default:i.value=r}return i}return Y(n,[{key:"getAsnExtnValue",value:function(){return this.asn.extnValue.buffer}}]),n}(YJ),KJ=function(e){E(n,e);var t=O(n);function n(e){var i;return Z(this,n),(i=t.call(this,e,AZ)).extensions=[],i.parseExtensions(),i}return Y(n,[{key:"parseExtensions",value:function(){var e=this.asn.tbsCertificate;e.extensions&&(this.extensions=e.extensions.map(function(e){return new ZJ(qq.serialize(e))}))}},{key:"getExtensionByOid",value:function(e){if(this.extensions.length)for(var t=0;t<this.extensions.length;t+=1){var n=this.extensions[t];if(n&&n.asn.extnID===e)return n}}},{key:"hasKeyUsage",value:function(e){if(!e||!e.length)return!1;var t=this.getExtensionByOid("2.5.29.15");if(!t)return!1;var n=t.value.toJSON();if(!n.length)return!1;for(var i=0;i<e.length;i+=1){var r=e[i];if("string"==typeof r&&n.includes(r))return!0;if(Array.isArray(r)&&r.every(function(e){return n.includes(e)}))return!0}return!1}},{key:"isQualified",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.getExtensionByOid("2.5.29.32");if(!t)return!1;var n=this.getExtensionByOid("1.3.6.1.5.5.7.1.3");if(!n)return!1;var i=t.value.map(function(e){return e.policyIdentifier}),r=n.value.map(function(e){return e.statementId}),o=r.includes("0.4.0.1862.1.1"),a=i.includes("0.4.0.1456.1.1")||i.includes("0.4.0.194112.1.3")||i.includes("0.4.0.194112.1.2")||r.includes("0.4.0.1862.1.4"),s=i.includes("0.4.0.194112.1.1")||r.includes("0.4.0.1862.1.6.2");return e.length&&e.forEach(function(e){r.includes(e)&&(a=!0)}),!!(o&&a||s)}},{key:"isCA",value:function(){var e=this.getExtensionByOid("2.5.29.19");return!!e&&e.value.cA}}]),n}(YJ),QJ=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},XJ=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},JJ=function(){function e(t){Z(this,e),this.FORTIFY_URL="127.0.0.1:31337",this.CONNECTION_CHECK_TIME=1e4,this.options={onDebug:function(){},onClose:function(){},onProvidersAdded:function(){},onProvidersRemoved:function(){},filters:{}},WJ.set(this,void 0),GJ.set(this,function(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,i=n.split("[FBAN");void 0!==i[1]&&(n=i[0]),void 0!==(i=n.split("Twitter"))[1]&&(n=i[0]);var r=function(e){return function(t){return t.test(e)}}(n),o={apple:{phone:r(gW)&&!r(_W),ipod:r(vW),tablet:!r(gW)&&(r(mW)||DW(t))&&!r(_W),universal:r(yW),device:(r(gW)||r(vW)||r(mW)||r(yW)||DW(t))&&!r(_W)},amazon:{phone:r(kW),tablet:!r(kW)&&r(xW),device:r(kW)||r(xW)},android:{phone:!r(_W)&&r(kW)||!r(_W)&&r(bW),tablet:!r(_W)&&!r(kW)&&!r(bW)&&(r(xW)||r(wW)),device:!r(_W)&&(r(kW)||r(xW)||r(bW)||r(wW))||r(/\bokhttp\b/i)},windows:{phone:r(_W),tablet:r(AW),device:r(_W)||r(AW)},other:{blackberry:r(CW),blackberry10:r(SW),opera:r(EW),firefox:r(OW),chrome:r(PW),device:r(CW)||r(SW)||r(EW)||r(OW)||r(PW)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}(window.navigator)),qJ.set(this,void 0),Object.assign(this.options,t),this.debug({type:"initialize",data:this.options})}var t,n,i,r,o,a,s,l,u,c,d,h,f,p,g;return Y(e,[{key:"debug",value:function(e){var t=this.options.onDebug;t&&t(Object.assign({time:new Date},e))}},{key:"isConnectionSupported",value:function(){return!QJ(this,GJ,"f").phone}},{key:"isConnectionDetected",value:(g=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://".concat(this.FORTIFY_URL,"/.well-known/webcrypto-socket"));case 3:return e.abrupt("return",e.sent.ok);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",!1);case 9:case"end":return e.stop()}},e,this,[[0,6]])})),function(){return g.apply(this,arguments)})},{key:"isConnectionDetectedAuto",value:(p=G(U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var n=function(){var i=G(U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t.isConnectionDetected();case 2:if(!i.sent){i.next=6;break}e(),i.next=7;break;case 6:XJ(t,qJ,window.setTimeout(n,t.CONNECTION_CHECK_TIME),"f");case 7:case"end":return i.stop()}},i)}));return function(){return i.apply(this,arguments)}}();n()}));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"start",value:(f=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isConnectionSupported()){e.next=2;break}throw this.debug({type:"connection_not_supported"}),new Error("connection_not_supported");case 2:return e.next=4,this.isConnectionDetected();case 4:if(e.sent){e.next=6;break}throw this.debug({type:"connection_not_detected"}),new Error("connection_not_detected");case 6:return e.next=8,this.connect();case 8:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"finish",value:function(){this.server&&(this.server.client.close(),this.server=null),QJ(this,qJ,"f")&&(clearTimeout(QJ(this,qJ,"f")),XJ(this,qJ,null,"f"))}},{key:"challenge",value:(h=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.server.isLoggedIn();case 2:if(e.sent){e.next=4;break}return e.abrupt("return",this.server.challenge());case 4:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)})},{key:"login",value:(d=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.server.login();case 3:e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(0),this.debug({type:"connection_key_not_approved"}),new Error("connection_key_not_approved");case 8:case"end":return e.stop()}},e,this,[[0,5]])})),function(){return d.apply(this,arguments)})},{key:"connect",value:(c=G(U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=window.protobuf,e.t0){e.next=4;break}return e.next=4,S.e(10).then(S.t.bind(null,"X5sl",7));case 4:if(e.t1=window.WebcryptoSocket,e.t1){e.next=8;break}return e.next=8,S.e(61).then(S.bind(null,"lqkf"));case 8:case"end":return e.stop()}},e)}))();case 2:if(QJ(this,WJ,"f")){e.next=16;break}return e.prev=3,e.t0=XJ,e.t1=this,e.t2=WJ,e.next=9,WebcryptoSocket.BrowserStorage.create();case 9:e.t3=e.sent,(0,e.t0)(e.t1,e.t2,e.t3,"f"),e.next=16;break;case 13:e.prev=13,e.t4=e.catch(3),XJ(this,WJ,new WebcryptoSocket.MemoryStorage,"f");case 16:return e.abrupt("return",new Promise(function(e,n){t.server&&e(),t.server=new WebcryptoSocket.SocketProvider({storage:QJ(t,WJ,"f")}).connect(t.FORTIFY_URL).on("error",function(e){n(e)}).on("listening",G(U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e();case 1:case"end":return t.stop()}},t)}))).on("token",function(){var e=G(U().mark(function e(n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.added.length&&(t.debug({type:"token_added",data:n.added}),i=n.added.filter(function(e){return t.providerFilter(e)}),t.options.onProvidersAdded(i)),n.removed.length&&(t.debug({type:"token_removed",data:n.removed}),t.options.onProvidersRemoved(n.removed));case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).on("disconnect",function(){console.log("disconnect")}).on("close",function(){t.debug({type:"connection_close"}),t.options.onClose()})}));case 17:case"end":return e.stop()}},e,this,[[3,13]])})),function(){return c.apply(this,arguments)})},{key:"providerFilter",value:function(e){var t=this.options.filters;if(t.onlySmartcards&&!e.isRemovable)return!1;if(t.providerNameMatch){if("string"==typeof t.providerNameMatch&&!new RegExp(t.providerNameMatch,"i").test(e.name))return!1;if(t.providerNameMatch instanceof RegExp&&!t.providerNameMatch.test(e.name))return!1}if(t.providerATRMatch){if("string"==typeof t.providerATRMatch&&!new RegExp(t.providerATRMatch,"i").test(e.atr))return!1;if(t.providerATRMatch instanceof RegExp&&!t.providerATRMatch.test(e.atr))return!1}return!0}},{key:"getProviders",value:(u=G(U().mark(function e(){var t,n,i=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.server.info();case 2:return t=e.sent,this.debug({type:"providers",data:{providers:t.providers.map(function(e){return{id:e.id,isRemovable:e.isRemovable,name:e.name,readOnly:e.readOnly,version:e.version,algorithms:e.algorithms}})}}),n=t.providers.filter(function(e){return i.providerFilter(e)}),e.abrupt("return",(this.debug({type:"providers_after_filters",data:{providers:n.map(function(e){return e.id})}}),n));case 6:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})},{key:"getProviderById",value:(l=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.server.getCrypto(t);case 2:if(i=e.sent,e.t0=n,!e.t0){e.next=11;break}return e.next=7,i.isLoggedIn();case 7:if(e.t1=e.sent,e.t1){e.next=11;break}return e.next=11,i.login();case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}},e,this)})),function(e,t){return l.apply(this,arguments)})},{key:"getCertificatesByProviders",value:(s=G(U().mark(function e(t){var n,i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[],i=R(t),e.prev=2,i.s();case 4:if((r=i.n()).done){e.next=12;break}return o=r.value,e.next=8,this.getCertificatesByProviderId(o.id);case 8:a=e.sent,n.push.apply(n,V(a));case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:return e.abrupt("return",n);case 21:case"end":return e.stop()}},e,this,[[2,14,17,20]])})),function(e){return s.apply(this,arguments)})},{key:"certificatePreFilter",value:function(e){var t,n=this.options.filters;if("x509"!==e.split("-")[0])return!1;if(n.certificateIdMatch&&("string"==typeof n.certificateIdMatch?t=new RegExp(n.certificateIdMatch,"i"):n.certificateIdMatch instanceof RegExp&&(t=n.certificateIdMatch),t&&!t.test(e)))return!1;return!0}},{key:"certificateFilter",value:(a=G(U().mark(function e(t){var n,i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=this.options.filters).expired||!(t.notAfter.getTime()<Date.now())){e.next=3;break}return e.abrupt("return",!1);case 3:if(!n.subjectDNMatch){e.next=6;break}if("string"==typeof n.subjectDNMatch?i=new RegExp(n.subjectDNMatch,"i"):n.subjectDNMatch instanceof RegExp&&(i=n.subjectDNMatch),!i||i.test(t.subjectName)){e.next=6;break}return e.abrupt("return",!1);case 6:if(!n.issuerDNMatch){e.next=9;break}if("string"==typeof n.issuerDNMatch?r=new RegExp(n.issuerDNMatch,"i"):n.issuerDNMatch instanceof RegExp&&(r=n.issuerDNMatch),!r||r.test(t.issuerName)){e.next=9;break}return e.abrupt("return",!1);case 9:if(!(o=n.keyUsage&&n.keyUsage.length)&&!n.onlyQualified&&n.ca){e.next=18;break}if(a=new KJ(t.raw),!n.onlyQualified||a.isQualified(n.qualifiedCertificateStatements)){e.next=14;break}return e.abrupt("return",!1);case 14:if(!o||a.hasKeyUsage(n.keyUsage)){e.next=16;break}return e.abrupt("return",!1);case 16:if(n.ca){e.next=18;break}return e.abrupt("return",!a.isCA());case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"getCertificateByIndex",value:(o=G(U().mark(function t(n,i,r){var o,a;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.certStorage.getItem(n);case 3:return o=t.sent,t.next=6,i.certStorage.exportCert("raw",o);case 6:a=t.sent,t.next=12;break;case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",void console.warn("Can't read certificate: "+n));case 12:return o.raw=a,t.next=15,this.certificateFilter(o);case 15:if(!t.sent){t.next=17;break}return t.abrupt("return",(o.index=n,o.subject=e.getDNValue(o.subjectName),o.issuer=e.getDNValue(o.issuerName),o.privateKeyId=r,o));case 17:case"end":return t.stop()}},t,this,[[0,9]])})),function(e,t,n){return o.apply(this,arguments)})},{key:"getCertificatesByProviderId",value:(r=G(U().mark(function t(n){var i,r,o,a,s,l,u,c,d,h;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.options.filters,t.prev=1,t.next=4,this.getProviderById(n,i.onlyWithPrivateKey);case 4:r=t.sent,t.next=10;break;case 7:return t.prev=7,t.t0=t.catch(1),t.abrupt("return",[]);case 10:return o=[],t.next=13,r.keyStorage.keys();case 13:return a=t.sent,t.next=16,r.certStorage.keys();case 16:s=t.sent,this.debug({type:"provider_certificates",data:{providerId:n,keyIndexes:a,certIndexes:s}}),l=R(s),t.prev=19,l.s();case 21:if((u=l.n()).done){t.next=29;break}if(c=u.value,this.certificatePreFilter(c)){t.next=25;break}return t.abrupt("continue",27);case 25:d=e.getCertificatePrivateKeyByIndex(c,a),i.onlyWithPrivateKey&&!d||o.push(this.getCertificateByIndex(c,r,d));case 27:t.next=21;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(19),l.e(t.t1);case 34:return t.prev=34,l.f(),t.finish(34);case 37:return t.next=39,Promise.all(o);case 39:return h=t.sent,t.abrupt("return",(this.debug({type:"provider_certificates_after_filters",data:{certificates:h.map(function(e){return e?{index:e.index,providerID:e.providerID,issuerName:e.issuerName,subjectName:e.subjectName,serialNumber:e.serialNumber,notAfter:e.notAfter,notBefore:e.notBefore,privateKeyId:e.privateKeyId,raw:IW.Convert.ToBase64(e.raw)}:null})}}),h.filter(function(e){return!!e})));case 41:case"end":return t.stop()}},t,this,[[1,7],[19,31,34,37]])})),function(e){return r.apply(this,arguments)})},{key:"getCertificateBodyById",value:(i=G(U().mark(function e(t,n){var i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.options.filters,e.next=3,this.getProviderById(t,i.onlyWithPrivateKey);case 3:return r=e.sent,e.next=6,r.certStorage.getItem(n);case 6:return o=e.sent,e.next=9,r.certStorage.exportCert("raw",o);case 9:return a=e.sent,e.abrupt("return",IW.Convert.ToBase64(a));case 11:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"defineKeysAlgorithm",value:function(e,t){if(e.startsWith("EC-"))return{hash:t,name:"ECDSA",namedCurve:e.replace("EC-P","P-")};if(e.startsWith("RSA"))return{hash:t,name:"RSASSA-PKCS1-V1_5",publicExponent:new Uint8Array([1,0,1]),modulusLength:Number(e.replace("RSA-",""))};throw new Error("Unsupported signature algorithm name: "+e)}},{key:"createX509",value:(n=G(U().mark(function e(t,n){var i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.debug({type:"create_x509",data:Object.assign({providerId:t},n)}),e.next=3,this.getProviderById(t,!0);case 3:return(i=e.sent).exportKey=i.subtle.exportKey.bind(i.subtle),i.sign=i.subtle.sign.bind(i.subtle),i.digest=i.subtle.digest.bind(i.subtle),r=this.defineKeysAlgorithm(n.signatureAlgorithm,n.hashAlgorithm),e.next=8,TJ.x509(i,r,n.subjectName);case 8:return o=e.sent,e.next=11,i.certStorage.importCert("raw",o.der,r,TJ.keyUsages);case 11:return a=e.sent,e.next=14,i.keyStorage.setItem(o.privateKey);case 14:return e.next=16,i.keyStorage.setItem(o.publicKey);case 16:return e.next=18,i.certStorage.setItem(a);case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"createPKCS10",value:(t=G(U().mark(function e(t,n){var i,r,o,a;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.debug({type:"create_pkcs10",data:Object.assign({providerId:t},n)}),e.next=3,this.getProviderById(t,!0);case 3:return(i=e.sent).exportKey=i.subtle.exportKey.bind(i.subtle),i.sign=i.subtle.sign.bind(i.subtle),i.digest=i.subtle.digest.bind(i.subtle),r=this.defineKeysAlgorithm(n.signatureAlgorithm,n.hashAlgorithm),e.next=8,TJ.pkcs10(i,r,n.subjectName);case 8:return o=e.sent,e.next=11,i.certStorage.importCert("raw",o.der,r,TJ.keyUsages);case 11:return a=e.sent,e.next=14,i.keyStorage.setItem(o.privateKey);case 14:return e.next=16,i.keyStorage.setItem(o.publicKey);case 16:return e.next=18,i.certStorage.setItem(a);case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})}],[{key:"getCertificatePrivateKeyByIndex",value:function(e,t){for(var n=e.split("-"),i=0;i<t.length;i+=1){var r=t[i],o=r.split("-");if("private"===o[0]&&o[2]===n[2])return r}}},{key:"getDNValue",value:function(e){var t={};return e.split(/, /g).forEach(function(e){var n=L(e.split("="),2),i=n[0],r=n[1];t[i]=r}),t}}]),e}();WJ=new WeakMap,GJ=new WeakMap,qJ=new WeakMap;var $J=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function e$(e,t){if(1&e){var n=Fs();Is(0,"peculiar-fortify-certificates",1),js("selectionSuccess",function(e){return En(n),qs().certificateChosen(e)})("selectionCancel",function(){return En(n),qs().cancelSign()}),Ts()}2&e&&Os("filters",qs().filters)}var t$,n$,i$,r$=((t$=function(){function e(t,n,i,r,o,a,s,l,u){Z(this,e),this.modalController=t,this.http=n,this.translate=i,this.notificationService=r,this.loadingController=o,this.signaturesService=a,this.actionsService=s,this.functionsService=l,this.authService=u,this.filters={expired:!1,keyUsage:[],onlyWithPrivateKey:!0},this.provider=null,this.cert=null,this.certPem=null,this.privateKey=null,this.signatures=[],this.signatureLength=null,this.api=null}return Y(e,[{key:"ngOnInit",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.authService.signatureRoles.filter(function(e){return e.id===n.signatureMode})[0],this.functionsService.empty(t.issuer)||(this.filters.issuerDNMatch=new RegExp(t.issuer,"i")),this.functionsService.empty(t.subject)||(this.filters.subjectDNMatch=new RegExp(t.subject,"i")),this.functionsService.empty(t.keyUsage)||this.filters.keyUsage.push(t.keyUsage),e.next=6,this.processInitFortify();case 6:case"end":return e.stop()}},e,this)}))}},{key:"ngOnDestroy",value:function(){return $J(this,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.functionsService.empty(this.api)||(this.api.finish(),this.api=null);case 1:case"end":return e.stop()}},e,this)}))}},{key:"initFortify",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.api=new JJ(null),e.next=3,this.waitFortifyStart();case 3:return e.next=5,this.api.challenge();case 5:if(e.t0=e.sent,!e.t0){e.next=9;break}return e.next=9,this.api.login();case 9:if(e.t1=this.signaturesService.mustRefreshCerts,!e.t1){e.next=13;break}return e.next=13,this.updateProvider(null);case 13:this.api.server.cardReader.on("insert",function(e){return t.updateProvider(e)}).on("remove",function(e){return t.updateProvider(e)});case 14:case"end":return e.stop()}},e,this)}))}},{key:"processInitFortify",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.signaturesService.mustRefreshCerts){e.next=4;break}this.loadingController.create({message:this.translate.instant("lang.waiting"),spinner:"dots"}).then(function(e){return $J(t,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.present(),t.next=3,this.initFortify();case 3:e.dismiss();case 4:case"end":return t.stop()}},t,this)}))}),e.next=6;break;case 4:return e.next=6,this.initFortify();case 6:case"end":return e.stop()}},e,this)}))}},{key:"waitFortifyStart",value:function(){return $J(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!1;case 1:if(t){e.next=9;break}return e.next=4,this.fortifyStart();case 4:return t=e.sent,e.next=7,new Promise(function(e){return setTimeout(e,1e3)});case 7:e.next=1;break;case 9:case"end":return e.stop()}},e,this)}))}},{key:"fortifyStart",value:function(){var e=this;return new Promise(function(t){return $J(e,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.api.start();case 3:t(!0),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),t(!1);case 9:case"end":return e.stop()}},e,this,[[0,6]])}))})}},{key:"certificateChosen",value:function(e){return $J(this,void 0,void 0,U().mark(function t(){var n=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return $J(n,void 0,void 0,U().mark(function n(){var i,r,o=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.present(),n.prev=1,this.checkWebsocketSession(),n.next=5,this.api.server.getCrypto(e.detail.providerId);case 5:return this.provider=n.sent,this.checkWebsocketSession(),n.next=9,this.provider.certStorage.getItem(e.detail.certificateId);case 9:return this.cert=n.sent,this.checkWebsocketSession(),n.next=13,this.provider.certStorage.exportCert("pem",this.cert);case 13:return this.certPem=n.sent,this.checkWebsocketSession(),n.next=17,this.provider.keyStorage.getItem(e.detail.privateKeyId);case 17:this.privateKey=n.sent,n.next=23;break;case 20:return n.prev=20,n.t0=n.catch(1),n.abrupt("return",(this.notificationService.error(n.t0),t.dismiss(),void this.modalController.dismiss(!1)));case 23:this.certificate={certificate:this.certPem},i=!1,r=0;case 26:if(!(r<this.idsToProcess.length)){n.next=36;break}return n.next=29,this.actionsService.getElementsFromDoc();case 29:return this.signatures=n.sent,n.next=32,this.sendAndSign(this.idsToProcess[r]);case 32:i=n.sent;case 33:r++,n.next=26;break;case 36:t.dismiss(),setTimeout(function(){o.signaturesService.mustRefreshCerts=!0},500),this.modalController.dismiss(i);case 37:case"end":return n.stop()}},n,this,[[1,20]])}))});case 1:case"end":return t.stop()}},t,this)}))}},{key:"checkWebsocketSession",value:function(){return $J(this,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.api.server.state===WebSocket.OPEN){e.next=7;break}return e.next=3,this.api.server.connect();case 3:return e.next=5,new Promise(function(e){return setTimeout(e,150)});case 5:e.next=0;break;case 7:case"end":return e.stop()}},e,this)}))}},{key:"updateProvider",value:function(e){return $J(this,void 0,void 0,U().mark(function t(){var n,i,r,o,a;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.api.server.info();case 2:n=t.sent,i=R(n.providers),t.prev=4,i.s();case 6:if((r=i.n()).done){t.next=15;break}return o=r.value,t.next=10,this.api.server.getCrypto(o.id);case 10:return a=t.sent,t.next=13,a.reset();case 13:t.next=6;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(4),i.e(t.t0);case 20:return t.prev=20,i.f(),t.finish(20);case 23:!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("insert"))?(this.notificationService.message("lang.inputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):!this.functionsService.empty(null==e?void 0:e.action)&&(null==e?void 0:e.action.includes("remove"))?(this.notificationService.message("lang.outputCardReaderUpdateCerts"),this.modalController.dismiss("refresh_certs")):this.signaturesService.mustRefreshCerts&&null===e&&(this.modalController.dismiss("refresh_certs"),this.signaturesService.mustRefreshCerts=!1);case 24:case"end":return t.stop()}},t,this,[[4,17,20,23]])}))}},{key:"sendAndSign",value:function(e){return $J(this,void 0,void 0,U().mark(function t(){var n,i,r;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!1,i={};case 1:if(n){t.next=21;break}r=!1;case 3:if(!1!==r){t.next=19;break}return t.next=6,this.fusionStampAndGenerateSignature(e,i.tmpUniqueId);case 6:if(null!==(i=t.sent)){t.next=9;break}return t.abrupt("return",!1);case 9:if(!1!==i){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,this.signDocument(e,i.hashDocument,i.signatureContentLength,i.signatureFieldName,i.tmpUniqueId);case 13:if(!0===(r=t.sent)){t.next=16;break}return t.abrupt("return",!1);case 16:this.signatures.shift(),n=0===this.signatures.length;case 17:t.next=3;break;case 19:t.next=1;break;case 21:return t.abrupt("return",n);case 22:case"end":return t.stop()}},t,this)}))}},{key:"fusionStampAndGenerateSignature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return $J(this,void 0,void 0,U().mark(function n(){var i;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i={},n.next=3,this.actionsService.sendDocument(e,null,this.certificate,this.signatureLength,t,this.signatures);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}},n,this)}))}},{key:"signDocument",value:function(e,t,n,i,r){var o=this;return new Promise(function(a){return $J(o,void 0,void 0,U().mark(function o(){var s,l,u,c,d,h,f=this;return U().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s={name:this.privateKey.algorithm.name,hash:"SHA-256"},l=this.fromHex(t),o.prev=1,this.checkWebsocketSession(),o.next=5,this.provider.subtle.sign(s,this.privateKey,l);case 5:u=o.sent,o.next=11;break;case 8:return o.prev=8,o.t0=o.catch(1),o.abrupt("return",(this.notificationService.error(o.t0),a(!1),nb(!1)));case 11:c={note:this.note},d={signatures:this.signatures,certificate:this.certPem,hashSignature:this.toHex(u),signatureContentLength:n,signatureFieldName:i,tmpUniqueId:r},h=Object.assign(Object.assign({},c),d),this.http.put("../rest/documents/"+e+"/actions/"+this.signaturesService.currentAction,h).pipe(Mw(function(){a(!0)}),yw(function(e){return void 0!==e.error.newSignatureLength?(f.signatureLength=e.error.newSignatureLength,a(!1)):(f.notificationService.handleErrors(e),a("error")),nb(!1)})).subscribe();case 13:case"end":return o.stop()}},o,this,[[1,8]])}))})}},{key:"cancelSign",value:function(){this.signaturesService.mustRefreshCerts=!0,this.modalController.dismiss(!1)}},{key:"toHex",value:function(e){for(var t=new Uint8Array(e),n=[],i=t.length,r=0;r<i;r++){var o=t[r].toString(16);n.push(1===o.length?"0"+o:o)}return n.join("")}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}}]),e}()).\u0275fac=function(e){return new(e||t$)(Ps(LE),Ps(Tb),Ps(zP),Ps(WP),Ps(BE),Ps($P),Ps(pW),Ps(hW),Ps(tO))},t$.\u0275cmp=Ft({type:t$,selectors:[["signature-method-modal"]],inputs:{note:"note",signatureMode:"signatureMode",idsToProcess:"idsToProcess"},decls:2,vars:1,consts:[["style","height: 100%;width: 100%;","language","fr","hide-footer","",3,"filters","selectionSuccess","selectionCancel",4,"ngIf"],["language","fr","hide-footer","",2,"height","100%","width","100%",3,"filters","selectionSuccess","selectionCancel"]],template:function(e,t){1&e&&(Is(0,"ion-content"),Ss(1,e$,1,1,"peculiar-fortify-certificates",0),Ts()),2&e&&(Yo(1),Os("ngIf",!t.signaturesService.mustRefreshCerts))},directives:[pS,jh],styles:[".content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:30px!important;height:100%;flex-direction:column}.content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:130px;color:var(--ion-color-primary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)!important}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)!important}@keyframes bounce{0%,20%,53%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}.bounce[_ngcontent-%COMP%]{animation-duration:2s;animation-name:bounce;transform-origin:center bottom;animation-iteration-count:infinite}"]}),t$),o$=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},a$=((i$=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.http=t,this.modalController=n,this.actionsService=i,this.loadingController=r,this.translate=o,this.authService=a,this.notificationService=s}return Y(e,[{key:"checkAuthenticationAndLaunchAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return o$(this,void 0,void 0,U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!(["rgs_2stars","rgs_2stars_timestamped","inca_card","inca_card_eidas"].indexOf(e.signatureMode)>-1)){i.next=13;break}if(0===this.authService.coreUrl.indexOf("https://")){i.next=7;break}return i.next=4,this.notificationService.error("lang.securedUrlNeeded");case 4:i.t1=null,i.next=10;break;case 7:return i.next=9,this.openRgsAuth(t,e.signatureMode,n);case 9:i.t1=i.sent;case 10:i.t0=i.t1,i.next=16;break;case 13:return i.next=15,this.launchDefaultMode(t,n);case 15:i.t0=i.sent;case 16:return i.abrupt("return",i.t0);case 17:case"end":return i.stop()}},i,this)}))}},{key:"launchDefaultMode",value:function(e,t){return o$(this,void 0,void 0,U().mark(function n(){var i=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise(function(n){return o$(i,void 0,void 0,U().mark(function i(){var r,o,a;return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.loadingController.create({message:this.translate.instant("lang.loadingValidation"),spinner:"dots"});case 2:(r=i.sent).present(),o=!0,a=0;case 6:if(!(a<t.length)){i.next=13;break}return i.next=9,this.actionsService.sendDocument(t[a],e);case 9:o=i.sent;case 10:a++,i.next=6;break;case 13:r.dismiss(),n(o);case 14:case"end":return i.stop()}},i,this)}))}));case 1:case"end":return n.stop()}},n)}))}},{key:"openRgsAuth",value:function(e,t,n){return o$(this,void 0,void 0,U().mark(function i(){var r=this;return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(i){return o$(r,void 0,void 0,U().mark(function r(){var o,a,s;return U().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.modalController.create({component:r$,componentProps:{note:e,signatureMode:t,idsToProcess:n}});case 2:return o=r.sent,r.next=5,o.present();case 5:return r.next=7,o.onWillDismiss();case 7:a=r.sent,s=a.data,i(s);case 10:case"end":return r.stop()}},r,this)}))}));case 1:case"end":return i.stop()}},i)}))}}]),e}()).\u0275fac=function(e){return new(e||i$)(rr(Tb),rr(LE),rr(pW),rr(BE),rr(zP),rr(tO),rr(WP))},i$.\u0275prov=rt({token:i$,factory:i$.\u0275fac,providedIn:"root"}),i$),s$=((n$=function(){function e(t,n,i,r){Z(this,e),this.signaturesService=t,this.filtersService=n,this.authService=i,this.bottomSheetRef=r,this.date=new Date}return Y(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.signaturesService.currentToobal="mainDocumentDetail",e.filtersService.resfreshDocuments(!0),e.bottomSheetRef.dismiss()},2e3)}}]),e}()).\u0275fac=function(e){return new(e||n$)(Ps($P),Ps(eW),Ps(tO),Ps(fF))},n$.\u0275cmp=Ft({type:n$,selectors:[["ng-component"]],decls:14,vars:19,consts:[[1,"green",2,"text-align","center"],[1,"fa","fa-thumbs-up","fa-4x"],[2,"font-weight","bold","font-size","30px"],[2,"font-weight","bold","font-size","15px"]],template:function(e,t){1&e&&(Is(0,"div",0),Is(1,"h1"),Ms(2,"i",1),Ts(),Is(3,"p"),bl(4),$u(5,"translate"),Ts(),Is(6,"p",2),bl(7),Ts(),Is(8,"p",3),bl(9),$u(10,"translate"),$u(11,"date"),$u(12,"translate"),$u(13,"date"),Ts(),Ts()),2&e&&(Yo(4),wl(ec(5,7,"lang.documentValidateAs")),Yo(3),xl("",t.authService.user.firstname," ",t.authService.user.lastname,""),Yo(2),Al("",ec(10,9,"lang.onRange")," ",tc(11,11,t.date,"dd/MM/yyyy")," ",ec(12,14,"lang.atRange")," ",tc(13,16,t.date,"HH:mm"),""))},pipes:[jP,gf],styles:[""]}),n$);function l$(e,t){if(1&e&&(Bs(0),Is(1,"div",1),Ms(2,"img",2),Ts(),Rs()),2&e){var n=t.$implicit,i=qs();Yo(1),ol("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),Yo(1),ol("width",100,"%"),Os("src",i.sanitization.bypassSecurityTrustUrl(n.fullPath),Kr)}}var u$,c$=((u$=function(){function e(t,n,i){Z(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||u$)(Ps(zP),Ps(pp),Ps($P))},u$.\u0275cmp=Ft({type:u$,selectors:[["app-document-note-list"]],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[2,"top","0","left","0","position","absolute"],[3,"src"]],template:function(e,t){1&e&&Ss(0,l$,3,7,"ng-container",0),2&e&&Os("ngForOf",t.signaturesService.notesContent[t.signaturesService.currentPage])},directives:[Vh],encapsulation:2}),u$),d$=["menuTrigger"],h$=["test"],f$=function(e,t){return{x:e,y:t}};function p$(e,t){if(1&e){var n=Fs();Is(0,"div",1,2),js("rzResizing",function(e){En(n);var i=t.index;return qs().onResizing(e,i)})("rzStart",function(){return En(n),qs().signaturesService.resizing=!0})("movingOffset",function(){return En(n),qs().signaturesService.dragging=!0})("endOffset",function(e){En(n);var i=t.index;return qs().moveSign(e,i)})("rzStop",function(e){En(n);var i=t.index,r=qs();return r.onResizeStop(e,i),r.signaturesService.resizing=!1}),Is(2,"ion-item",3),Is(3,"ion-select",4),js("click",function(e){return e.stopPropagation()})("ionChange",function(e){En(n);var i=t.index;return qs().select(e,i)}),Is(4,"ion-select-option",5),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-select-option",6),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Ms(10,"img",7),Ts()}if(2&e){var i=t.$implicit,r=qs();ol("width",i.width,"%")("height",r.fix),Os("position",Ku(20,f$,i.positionX*r.signaturesService.workingAreaWidth/100,i.positionY*r.signaturesService.workingAreaHeight/100))("ngDraggable",!r.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",r.bounds)("inBounds",!0),Yo(5),kl("",ec(6,16,"lang.delete")," "),Yo(2),Os("disabled",i.inAllPage),Yo(1),kl(" ",ec(9,18,"lang.replicate"),""),Yo(2),ol("width",100,"%"),Os("src",r.sanitization.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Kr)}}var g$,v$=((g$=function(){function e(t,n,i,r,o,a,s,l){Z(this,e),this.translate=t,this.sanitization=n,this.signaturesService=i,this.notificationService=r,this.localStorage=o,this.dialog=a,this.popoverController=s,this.modalController=l,this.fix="auto",this.today=new Date}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e,t){this[e.detail.value](t)}},{key:"moveSign",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizing",value:function(e,t){this.test.nativeElement.style.height="auto"}},{key:"onResizeStop",value:function(e,t){this.test.nativeElement.style.height="auto",this.signaturesService.signaturesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"cloneSign",value:function(e){var t=this;this.dialog.open(Zj,{autoFocus:!1,width:"450px",data:{title:"lang.wantSignOtherPage",msg:""}}).afterClosed().subscribe(function(n){if("yes"===n){t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].inAllPage=!0,t.signaturesService.signaturesContent[t.signaturesService.currentPage][e].token=Math.random().toString(36).substr(2,9);for(var i=1;i<=t.signaturesService.totalPage;i++)t.signaturesService.signaturesContent[i]||(t.signaturesService.signaturesContent[i]=[]),i!==t.signaturesService.currentPage&&t.signaturesService.signaturesContent[i].push(JSON.parse(JSON.stringify(t.signaturesService.signaturesContent[t.signaturesService.currentPage][e])));t.localStorage.save(t.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:t.signaturesService.signaturesContent,note:t.signaturesService.notesContent}))}}),this.menuSign.closeMenu()}},{key:"deleteSignature",value:function(e){if(!0===this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].inAllPage){var t=this.signaturesService.signaturesContent[this.signaturesService.currentPage][e].token;if(confirm(this.translate.instant("lang.wantDeleteSignatureOtherPage")))for(var n=1;n<=this.signaturesService.totalPage;n++){this.signaturesService.signaturesContent[n]||(this.signaturesService.signaturesContent[n]=[]);for(var i=0;i<=this.signaturesService.signaturesContent[n].length;i++)this.signaturesService.signaturesContent[n][i]&&t===this.signaturesService.signaturesContent[n][i].token&&this.signaturesService.signaturesContent[n].splice(i,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1)}else this.signaturesService.signaturesContent[this.signaturesService.currentPage].splice(e,1);this.emptySigns()&&(this.signaturesService.signaturesContent=[]),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"emptySigns",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}return e}}]),e}()).\u0275fac=function(e){return new(e||g$)(Ps(zP),Ps(pp),Ps($P),Ps(WP),Ps(eO),Ps(KF),Ps(FE),Ps(LE))},g$.\u0275cmp=Ft({type:g$,selectors:[["app-document-sign-list"]],viewQuery:function(e,t){var n;1&e&&(bc(d$,1),bc(h$,1)),2&e&&(yc(n=kc())&&(t.menuSign=n.first),yc(n=kc())&&(t.test=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["ngResizable","","style","position:absolute;border: dashed 1px grey;background: rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%;",3,"position","width","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","height","rzResizing","rzStart","movingOffset","endOffset","rzStop",4,"ngFor","ngForOf"],["ngResizable","",2,"position","absolute","border","dashed 1px grey","background","rgba(255, 255, 255, 0.6) none repeat scroll 0% 0%",3,"position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop"],["test",""],[2,"position","absolute","--background","none","right","0","--border-width","0"],["selectedText"," ","value","","interface","popover",3,"click","ionChange"],["value","deleteSignature",1,"action-item"],["value","cloneSign",1,"action-item",3,"disabled"],[1,"img-content",3,"src"]],template:function(e,t){1&e&&Ss(0,p$,11,23,"div",0),2&e&&Os("ngForOf",t.signaturesService.signaturesContent[t.signaturesService.currentPage])},directives:[Vh,tT,JI,ES,YS,CA,ZS],pipes:[jP],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}"]}),g$);function m$(e,t){if(1&e&&(Is(0,"ion-select-option",19),bl(1),$u(2,"date"),$u(3,"translate"),Ts()),2&e){var n=t.$implicit,i=qs();Os("value",n),Yo(1),kl(" ",ic(2,2,i.today,n,void 0,ec(3,7,"lang.langISO"))," ")}}function y$(e,t){if(1&e&&(Is(0,"ion-select-option",19),bl(1),Ts()),2&e){var n=t.$implicit;sl(qs().getFontLabel(n)),Os("value",n),Yo(1),kl(" ",n," ")}}var b$,w$=function(){return{cssClass:"selectFormat"}},k$=((b$=function(){function e(t){Z(this,e),this.modalController=t,this.today=new Date,this.dateformats=["dd/MM/y","dd-MM-y","dd.MM.y","d MMM y","d MMMM y"],this.datefonts=["Arial","Verdana","Helvetica","Tahoma","Times New Roman","Courier New"],this.size={Arial:15,Verdana:13,Helvetica:13,Tahoma:13,"Times New Roman":15,"Courier New":13}}return Y(e,[{key:"ngOnInit",value:function(){this.date=JSON.parse(JSON.stringify(this.currentDate))}},{key:"dismissModal",value:function(){this.modalController.dismiss()}},{key:"getFontLabel",value:function(e){return e.replace(" ","_")}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.date)}},{key:"select",value:function(e){this.date.size=this.size[e]}}]),e}()).\u0275fac=function(e){return new(e||b$)(Ps(LE))},b$.\u0275cmp=Ft({type:b$,selectors:[["ng-component"]],inputs:{currentDate:"currentDate"},decls:45,vars:43,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[2,"text-align","center","font-weight","normal","font-size","50px","padding","50px"],["color","secondary"],["interface","popover",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["button","","lines","full",3,"click"],["type","color",2,"display","none",3,"ngModel","ngModelChange"],["colorPicker",""],["slot","end","name","ellipse"],[3,"ngModel","interfaceOptions","cancelText","ngModelChange","ionChange"],[3,"value","class",4,"ngFor","ngForOf"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"click"],["type","button",3,"click"],[3,"value"]],template:function(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.dismissModal()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-content"),Is(9,"ion-toolbar"),Is(10,"ion-title",5),bl(11),$u(12,"date"),$u(13,"translate"),Ts(),Ts(),Is(14,"ion-item"),Is(15,"ion-label",6),bl(16),$u(17,"translate"),Ts(),Is(18,"ion-select",7),js("ngModelChange",function(e){return t.date.format=e}),Ss(19,m$,4,9,"ion-select-option",8),Ts(),Ts(),Is(20,"ion-item",9),js("click",function(){return En(n),Es(22).click()}),Is(21,"input",10,11),js("ngModelChange",function(e){return t.date.color=e}),Ts(),Is(23,"ion-label",6),bl(24),$u(25,"translate"),Ts(),Ms(26,"ion-icon",12),Ts(),Is(27,"ion-item"),Is(28,"ion-label",6),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-select",13),js("ngModelChange",function(e){return t.date.font=e})("ionChange",function(e){return t.select(e.detail.value)}),$u(32,"translate"),Ss(33,y$,2,4,"ion-select-option",14),Ts(),Ts(),Ts(),Is(34,"ion-footer",15),Is(35,"ion-toolbar"),Is(36,"ion-buttons",16),Is(37,"ion-button",17),js("click",function(){return t.onSubmit()}),Is(38,"ion-label"),bl(39),$u(40,"translate"),Ts(),Ts(),Is(41,"ion-button",18),js("click",function(){return t.dismissModal()}),Is(42,"ion-label"),bl(43),$u(44,"translate"),Ts(),Ts(),Ts(),Ts(),Ts()}2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,21,"lang.options")),Yo(7),sl(t.getFontLabel(t.date.font)),ol("color",t.date.color),Yo(1),wl(ic(12,23,t.today,t.date.format,void 0,ec(13,28,"lang.langISO"))),Yo(5),wl(ec(17,30,"lang.format")),Yo(2),Os("ngModel",t.date.format),Yo(1),Os("ngForOf",t.dateformats),Yo(2),Os("ngModel",t.date.color),Yo(3),wl(ec(25,32,"lang.color")),Yo(2),ol("color",t.date.color),Yo(3),wl(ec(30,34,"lang.font")),Yo(2),Os("ngModel",t.date.font)("interfaceOptions",Yu(42,w$))("cancelText",ec(32,36,"lang.cancel")),Yo(2),Os("ngForOf",t.datefonts),Yo(6),wl(ec(40,38,"lang.save")),Yo(4),wl(ec(44,40,"lang.cancel")))},directives:[kS,tE,$S,aS,oS,xS,pS,ES,IS,YS,CA,Lm,my,Vh,rm,bS,ZS],pipes:[jP,gf],styles:[".Arial{font-family:Arial,sans-serif} .Verdana{font-family:Verdana,sans-serif} .Helvetica{font-family:Helvetica,sans-serif} .Tahoma{font-family:Tahoma,sans-serif} .Times_New_Roman{font-family:Times New Roman,serif} .Courier_New{font-family:Courier New,monospace}"]}),b$),x$=["menuTrigger"],_$=["test2"],A$=function(e,t){return{x:e,y:t}};function C$(e,t){if(1&e){var n=Fs();Is(0,"div",1,2),js("rzResizing",function(e){En(n);var i=t.index;return qs().onResizingDate(e,i)})("rzStart",function(){return En(n),qs().signaturesService.resizing=!0})("movingOffset",function(){return En(n),qs().signaturesService.dragging=!0})("endOffset",function(e){En(n);var i=t.index;return qs().moveDate(e,i)})("rzStop",function(e){En(n);var i=t.index,r=qs();return r.onResizeDateStop(e,i),r.signaturesService.resizing=!1})("click",function(e){return e.stopPropagation()}),Is(2,"ion-buttons",3),Is(3,"ion-button",4),Ms(4,"ion-icon",5),Ts(),Ts(),Is(5,"mat-menu",null,6),Is(7,"button",7),js("click",function(){En(n);var e=t.index;return qs().openDateSettings(e)}),bl(8),$u(9,"translate"),Ts(),Is(10,"button",7),js("click",function(){En(n);var e=t.index;return qs().deleteDate(e)}),bl(11),$u(12,"translate"),Ts(),Ts(),ei(),Is(13,"svg",8),Is(14,"text",9),bl(15),$u(16,"date"),$u(17,"translate"),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=Es(6),a=qs();ol("width",i.width,"%")("height",i.height,"%")("height",a.fix),Os("id","dateDiv_"+r)("position",Ku(34,A$,i.positionX*a.signaturesService.workingAreaWidth/100,i.positionY*a.signaturesService.workingAreaHeight/100))("ngDraggable",!a.signaturesService.resizing)("rzAspectRatio",!0)("preventDefaultEvent",!1)("bounds",a.bounds)("inBounds",!0),Yo(3),Os("matMenuTriggerFor",o),Yo(5),wl(ec(9,23,"lang.options")),Yo(3),wl(ec(12,25,"lang.delete")),Yo(2),Os("id","testSVG_"+r),Yo(1),ol("font-family",i.font)("fill",i.color),_s("font-size",i.size),Yo(1),wl(ic(16,27,a.today,i.format,void 0,ec(17,32,"lang.langISO")))}}var S$,E$=((S$=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.translate=t,this.signaturesService=n,this.notificationService=i,this.localStorage=r,this.dialog=o,this.popoverController=a,this.modalController=s,this.fix="auto",this.today=new Date}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"moveDate",value:function(e,t){var n=100*e.y/this.signaturesService.workingAreaHeight;this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionX=100*e.x/this.signaturesService.workingAreaWidth,this.signaturesService.datesContent[this.signaturesService.currentPage][t].positionY=n,this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.signaturesService.dragging=!1}},{key:"onResizingDate",value:function(e,t){this.test2.nativeElement.style.height="auto"}},{key:"onResizeDateStop",value:function(e,t){this.test2.nativeElement.style.height="auto",this.signaturesService.datesContent[this.signaturesService.currentPage][t].height=100*e.size.height/this.signaturesService.workingAreaHeight,this.signaturesService.datesContent[this.signaturesService.currentPage][t].width=100*e.size.width/this.signaturesService.workingAreaWidth}},{key:"deleteDate",value:function(e){this.signaturesService.datesContent[this.signaturesService.currentPage].splice(e,1),this.localStorage.save(this.signaturesService.mainDocumentId.toString(),JSON.stringify({date:this.signaturesService.datesContent,sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent}))}},{key:"openDateSettings",value:function(e){return t=this,i=U().mark(function t(){var n,i,r;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.modalController.create({component:k$,componentProps:{currentDate:this.signaturesService.datesContent[this.signaturesService.currentPage][e]}});case 2:return n=t.sent,t.next=5,n.present();case 5:return t.next=7,n.onWillDismiss();case 7:i=t.sent,void 0!==(r=i.data)&&(this.signaturesService.datesContent[this.signaturesService.currentPage][e]=r);case 10:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}}]),e}()).\u0275fac=function(e){return new(e||S$)(Ps(zP),Ps($P),Ps(WP),Ps(eO),Ps(KF),Ps(FE),Ps(LE))},S$.\u0275cmp=Ft({type:S$,selectors:[["app-document-date-list"]],viewQuery:function(e,t){var n;1&e&&(bc(x$,1),bc(_$,1)),2&e&&(yc(n=kc())&&(t.menuSign=n.first),yc(n=kc())&&(t.test2=n.first))},inputs:{bounds:"bounds"},decls:1,vars:1,consts:[["class","test","ngResizable","",3,"id","position","width","height","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click",4,"ngFor","ngForOf"],["ngResizable","",1,"test",3,"id","position","ngDraggable","rzAspectRatio","preventDefaultEvent","bounds","inBounds","rzResizing","rzStart","movingOffset","endOffset","rzStop","click"],["test2",""],[2,"position","absolute","top","-30px","right","0px"],["slot","icon-only","shape","round","color","secondary",3,"matMenuTriggerFor"],["name","ellipsis-vertical"],["menu","matMenu"],["mat-menu-item","",3,"click"],["viewBox","0 0 130 30","preserveAspectRatio","xMinYMin meet",3,"id"],["y","21"]],template:function(e,t){1&e&&Ss(0,C$,18,37,"div",0),2&e&&Os("ngForOf",t.signaturesService.datesContent[t.signaturesService.currentPage])},directives:[Vh,tT,JI,aS,oS,Oz,xS,Cz,kz],pipes:[jP,gf],styles:[".action-item ion-radio{--color:transparent;--color-checked:transparent}.test[_ngcontent-%COMP%]{position:absolute;border:1px dashed grey;background:hsla(0,0%,100%,.6) none repeat scroll 0 0;background:none;font:sans-serif}svg[_ngcontent-%COMP%]{width:100%;height:100%;pointer-events:none}text[_ngcontent-%COMP%]{pointer-events:auto}svg.text[_ngcontent-%COMP%]{display:block;font-size:inherit}"]}),S$),P$=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function O$(e,t){if(1&e){var n=Fs();Is(0,"ion-item",6),js("click",function(){En(n);var e=t.$implicit;return qs().loadVisaWorkflow(e)}),Is(1,"ion-label"),bl(2),Ts(),Is(3,"ion-buttons",7),Is(4,"ion-button",8),js("click",function(e){En(n);var i=t.$implicit,r=qs();return e.stopPropagation(),r.removeModel(i)}),Ms(5,"ion-icon",9),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),wl(i.title)}}var D$,I$=((D$=function(){function e(t,n,i,r,o,a){Z(this,e),this.http=t,this.translate=n,this.popoverController=i,this.alertController=r,this.notificationService=o,this.authService=a,this.currentWorkflow=[],this.visaWorkflowModels=[]}return Y(e,[{key:"ngOnInit",value:function(){this.getVisaUserModels()}},{key:"createModel",value:function(){return P$(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.newTemplate"),message:this.translate.instant("lang.newTemplateDesc"),inputs:[{name:"title",type:"text",placeholder:this.translate.instant("lang.label")+" *"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){return""!==e.title?(n.saveModel(e.title),!0):(n.notificationService.error(n.translate.instant("lang.label")+" "+n.translate.instant("lang.mandatory")),!1)}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveModel",value:function(e){var t=this,n={title:e,items:this.currentWorkflow.map(function(e){return{userId:e.userId,mode:t.authService.getWorkflowMode(e.role),signatureMode:t.authService.getSignatureMode(e.role)}})};this.http.post("../rest/workflowTemplates",n).pipe(Mw(function(n){t.notificationService.success("lang.modelCreated"),t.visaWorkflowModels.push({id:n.id,title:e})}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"removeModel",value:function(e){return P$(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({header:this.translate.instant("lang.delete"),message:this.translate.instant("lang.deleteTemplate"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){i.http.delete("../rest/workflowTemplates/"+e.id).pipe(Mw(function(){i.visaWorkflowModels=i.visaWorkflowModels.filter(function(t){return t.id!==e.id}),i.notificationService.success("Mod\xe8le ".concat(e.title," supprim\xe9"))}),yw(function(e){return i.notificationService.handleErrors(e),nb(!1)})).subscribe()}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"getVisaUserModels",value:function(){var e=this;this.http.get("../rest/workflowTemplates").pipe(Mw(function(t){e.visaWorkflowModels=t.workflowTemplates}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"loadVisaWorkflow",value:function(e){var t=this;this.http.get("../rest/workflowTemplates/"+e.id).pipe(Mw(function(e){var n=e.workflowTemplate.items.map(function(e){return{userId:e.userId,userDisplay:e.userLabel,role:"visa"===e.mode?"visa":e.signatureMode,processDate:null,current:!1,modes:["visa"].concat(e.userSignatureModes)}});t.popoverController.dismiss(n)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||D$)(Ps(Tb),Ps(zP),Ps(FE),Ps(ME),Ps(WP),Ps(tO))},D$.\u0275cmp=Ft({type:D$,selectors:[["app-visa-workflow-models"]],inputs:{currentWorkflow:"currentWorkflow"},decls:11,vars:8,consts:[["lines","none"],["color","secondary"],["button","",3,"click",4,"ngFor","ngForOf"],["button","",3,"disabled","click"],["color","primary","slot","start","name","add-circle-outline"],["color","primary"],["button","",3,"click"],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Is(0,"ion-list",0),Is(1,"ion-list-header"),Is(2,"ion-label",1),bl(3),$u(4,"translate"),Ts(),Ts(),Ss(5,O$,6,1,"ion-item",2),Is(6,"ion-item",3),js("click",function(){return t.createModel()}),Ms(7,"ion-icon",4),Is(8,"ion-label",5),bl(9),$u(10,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,4,"lang.circuitModels")),Yo(2),Os("ngForOf",t.visaWorkflowModels),Yo(1),Os("disabled",0===t.currentWorkflow.length),Yo(3),wl(ec(10,6,"lang.newTemplate")))},directives:[TS,MS,IS,Vh,ES,xS,aS,oS],pipes:[jP],styles:[""]}),D$);function T$(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-checkbox",19),js("ionChange",function(e){En(n),qs(2);var t=Es(3);return qs().addUser(e.detail.value,t)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Is(4,"ion-note",13),bl(5),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("value",i),Yo(2),xl("",i.firstname," ",i.lastname,""),Yo(2),wl(i.email)}}function M$(e,t){if(1&e&&(Is(0,"ion-list",17),Ss(1,T$,6,4,"ion-item",18),Ts()),2&e){var n=qs(2);Yo(1),Os("ngForOf",n.visaUsersList)}}function B$(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-item",10),Is(2,"ion-searchbar",11,12),js("ngModelChange",function(e){return En(n),qs().visaUsersSearchVal=e})("ionChange",function(e){return En(n),qs().getVisaUsers(e)})("ionFocus",function(){return En(n),qs().visaUsersSearchVal=""}),$u(4,"translate"),Ts(),Is(5,"ion-buttons",13),Is(6,"ion-button",14),js("click",function(e){return En(n),qs().openVisaWorkflowModels(e)}),$u(7,"translate"),Ms(8,"ion-icon",15),Ts(),Ts(),Ts(),Ss(9,M$,2,1,"ion-list",16),Rs()}if(2&e){var i=qs();Yo(2),Os("ngModel",i.visaUsersSearchVal)("placeholder",ec(4,4,"lang.searchUser")),Yo(4),Os("title",ec(7,6,"lang.circuitModels")),Yo(3),Os("ngIf",i.visaUsersList.length>0)}}function R$(e,t){1&e&&(Is(0,"ion-list"),Is(1,"ion-item",10),Is(2,"ion-label",20),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.noUserInWorkflow")))}function L$(e,t){1&e&&(Is(0,"p",31),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.substituteMsg"),""))}function F$(e,t){if(1&e&&(Is(0,"h2",32),bl(1),Ts()),2&e){var n=qs().$implicit;Os("title",n.userDisplay),Yo(1),wl(n.userDisplay)}}function N$(e,t){1&e&&(Is(0,"h2",33),bl(1),$u(2,"translate"),Ts()),2&e&&(Os("title",qs().$implicit.userDisplay),Yo(1),kl(" ",ec(2,2,"lang.userDeleted"),""))}function V$(e,t){if(1&e&&(Is(0,"ion-select-option",37),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit,i=qs(2),r=i.index,o=i.$implicit,a=qs();Os("value",n)("disabled",!a.isValidRole(r,n,o.role)),Yo(1),kl(" ",ec(2,3,"lang."+n+"User")," ")}}function z$(e,t){if(1&e){var n=Fs();Is(0,"p",34),Is(1,"ion-select",35),js("ngModelChange",function(e){return En(n),qs().$implicit.role=e}),$u(2,"translate"),Ss(3,V$,3,5,"ion-select-option",36),Ts(),Ts()}if(2&e){var i,r=qs().$implicit,o=qs();Yo(1),ol("color",null==(i=o.getRole(r.role))?null:i.color),Os("ngModel",r.role)("title",ec(2,7,"lang."+r.role+"User"))("interfaceOptions",o.customPopoverOptions)("disabled",!o.editMode),Yo(2),Os("ngForOf",r.modes)}}function j$(e,t){if(1&e&&(Is(0,"ion-note",41),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2).$implicit;Yo(1),xl(" ",ec(2,2,"lang."+n.mode+"ProcessInfo")," ",n.processDate," ")}}function H$(e,t){if(1&e&&(Is(0,"ion-note",42),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2).$implicit;Yo(1),xl(" ",ec(2,2,"lang.refProcessInfo")," ",n.processDate," ")}}function U$(e,t){if(1&e&&(Is(0,"ion-note",43),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(2).$implicit;Yo(1),xl(" ",ec(2,2,"lang.stopProcessInfo")," ",n.processDate," ")}}function W$(e,t){if(1&e&&(Is(0,"p",32),Ss(1,j$,3,4,"ion-note",38),Ss(2,H$,3,4,"ion-note",39),Ss(3,U$,3,4,"ion-note",40),Ts()),2&e){var n=qs().$implicit;Os("title",n.processDate),Yo(1),Os("ngIf","VAL"===n.status),Yo(1),Os("ngIf","REF"===n.status),Yo(1),Os("ngIf","STOP"===n.status)}}function G$(e,t){1&e&&Ms(0,"ion-icon",44)}function q$(e,t){if(1&e){var n=Fs();Is(0,"ion-button",45),js("click",function(e){En(n);var t=qs().index,i=qs();return e.stopPropagation(),i.removeUser(t)}),Ms(1,"ion-icon",46),Ts()}}function Y$(e,t){if(1&e&&(Is(0,"ion-item",21),Is(1,"ion-reorder",2),Ms(2,"ion-icon",22),$u(3,"translate"),Ts(),Is(4,"ion-avatar",23),js("click",function(e){return e.stopPropagation()}),Ms(5,"img",24),Ts(),Is(6,"ion-label"),Ss(7,L$,3,3,"p",25),Ss(8,F$,2,2,"h2",26),Ss(9,N$,3,4,"h2",27),Ss(10,z$,4,9,"p",28),Ss(11,W$,4,4,"p",26),Ts(),Ss(12,G$,1,0,"ion-icon",29),Is(13,"ion-buttons",13),Ss(14,q$,2,0,"ion-button",30),Ts(),Ts()),2&e){var n=t.$implicit,i=qs();al("current",n.current),Yo(2),Os("title",ec(3,11,"lang.reorder")),Yo(3),Os("src",n.userPicture,Kr),Yo(2),Os("ngIf",i.userDelegated&&n.current),Yo(1),Os("ngIf",""!==n.userDisplay),Yo(1),Os("ngIf",""===n.userDisplay),Yo(1),Os("ngIf",null===n.processDate),Yo(1),Os("ngIf",null!==n.processDate),Yo(1),Os("ngIf",!i.editMode&&n.current),Yo(2),Os("ngIf",i.editMode)}}var Z$,K$=((Z$=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.signaturesService=n,this.authService=i,this.notificationService=r,this.popoverController=o,this.editMode=!1,this.visaWorkflow=[],this.userDelegated=!1,this.loading=!1,this.visaUsersSearchVal="",this.visaUsersList=[],this.showVisaUsersList=!1,this.customPopoverOptions={header:"Roles"},this.roles=[],this.tmpArray=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.visaWorkflow.forEach(function(t,n){e.getAvatarUser(n)})}},{key:"doReorder",value:function(e){this.canMoveUser(e)?this.visaWorkflow=e.detail.complete(this.visaWorkflow):(this.notificationService.error("lang.errorUserSignType"),e.detail.complete(!1))}},{key:"canMoveUser",value:function(e){var t=this.array_move(this.visaWorkflow.slice(),e.detail.from,e.detail.to);return t=t.filter(function(e){return void 0!==e}),this.isValidWorkflow(t)}},{key:"isValidWorkflow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visaWorkflow,t=!0;return e.forEach(function(n,i){-1===["visa","stamp"].indexOf(n.role)&&e.filter(function(e,t){return t>i&&"stamp"===e.role}).length>0&&(t=!1)}),t}},{key:"array_move",value:function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"getVisaUsers",value:function(e){var t=this;this.showVisaUsersList=!0,""===e.detail.value?this.resetVisaUsersList():e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Mw(function(e){t.visaUsersList=e}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"addUser",value:function(e,t){this.resetVisaUsersList(),e.signatureModes.unshift("visa"),this.visaWorkflow.push({userId:e.id,userDisplay:"".concat(e.firstname," ").concat(e.lastname),role:e.signatureModes[e.signatureModes.length-1],processDate:null,current:!1,modes:e.signatureModes}),this.isValidWorkflow()||(this.visaWorkflow[this.visaWorkflow.length-1].role="visa"),this.getAvatarUser(this.visaWorkflow.length-1),this.visaUsersSearchVal="",t.setFocus()}},{key:"removeUser",value:function(e){this.visaWorkflow.splice(e,1)}},{key:"getAvatarUser",value:function(e){var t=this;void 0===this.visaWorkflow[e].userPicture&&""!==this.visaWorkflow[e].userDisplay&&this.http.get("../rest/users/"+this.visaWorkflow[e].userId+"/picture").pipe(Mw(function(n){t.visaWorkflow[e].userPicture=n.picture}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"resetVisaUsersList",value:function(){this.visaUsersList=[]}},{key:"openVisaWorkflowModels",value:function(e){return t=this,i=U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.popoverController.create({component:I$,componentProps:{currentWorkflow:this.visaWorkflow},event:e});case 2:return n=t.sent,t.next=5,n.present();case 5:n.onDidDismiss().then(function(e){"backdrop"!==e.role&&(i.visaWorkflow=i.visaWorkflow.concat(e.data),i.visaWorkflow.forEach(function(e,t){i.getAvatarUser(t)}))});case 6:case"end":return t.stop()}},t,this)}),new((n=void 0)||(n=Promise))(function(e,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function a(e){try{s(i.throw(e))}catch(t){r(t)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n(function(e){e(i)})).then(o,a)}s((i=i.apply(t,[])).next())});var t,n,i}},{key:"getCurrentWorkflow",value:function(){return this.visaWorkflow}},{key:"getRole",value:function(e){return this.authService.signatureRoles.filter(function(t){return t.id===e})[0]}},{key:"loadWorkflow",value:function(e){this.visaWorkflow=e;for(var t=this.visaWorkflow.length,n=0;n<t;n++)this.getAvatarUser(n)}},{key:"isValidRole",value:function(e,t,n){return!(this.visaWorkflow.filter(function(t,n){return n>e&&["stamp"].indexOf(t.role)>-1}).length>0&&["visa","stamp"].indexOf(n)>-1&&-1===["visa","stamp"].indexOf(t)||this.visaWorkflow.filter(function(t,n){return n<e&&-1===["visa","stamp"].indexOf(t.role)}).length>0&&"stamp"===t)}},{key:"setPositionsWorkfow",value:function(e,t,n){var i=this;this.clearPositionsFromResource(e[t]),n.length>0&&(Object.keys(n).forEach(function(r){var o=Object.assign(Object.assign({},n[r]),{mainDocument:e[t].mainDocument});i.visaWorkflow[n[r].sequence].signaturePositions.push(o);var a=i.tmpArray.find(function(i){return i.key===n[r].sequence&&i.page===n[r].page&&i.docIndex===e.indexOf(e[t])});void 0!==a?i.tmpArray[i.tmpArray.indexOf(a)].signaturePositions=n[r].position:i.tmpArray.push({key:n[r].sequence,page:n[r].page,docIndex:e.indexOf(e[t]),signaturePositions:n[r].position})}),this.tmpArray.forEach(function(e){var t=i.visaWorkflow[e.key].signaturePositions.find(function(t){return t.page===e.page&&t.sequence===e.key&&t.docIndex===e.docIndex});void 0!==t?i.updatePositionsWorkfow(t,e):i.visaWorkflow[e.key].signaturePositions.push({docIndex:e.docIndex,page:e.page,mainDocument:!0,sequence:e.key,position:e.signaturePositions})}))}},{key:"updatePositionsWorkfow",value:function(e,t){this.visaWorkflow.forEach(function(n){n.signaturePositions[n.signaturePositions.indexOf(e)].position=t.signaturePositions})}},{key:"clearPositionsFromResource",value:function(e){this.visaWorkflow.forEach(function(t){t.signaturePositions=t.signaturePositions.filter(function(t){return t.mainDocument!==e.mainDocument})})}}]),e}()).\u0275fac=function(e){return new(e||Z$)(Ps(Tb),Ps($P),Ps(tO),Ps(WP),Ps(FE))},Z$.\u0275cmp=Ft({type:Z$,selectors:[["app-visa-workflow"]],viewQuery:function(e,t){var n;1&e&&bc(HS,1),2&e&&yc(n=kc())&&(t.reorderGroup=n.first)},inputs:{editMode:"editMode",visaWorkflow:"visaWorkflow",userDelegated:"userDelegated"},decls:13,vars:8,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","list-outline"],[1,"ion-text-center"],[3,"click"],[4,"ngIf"],[3,"disabled","ionItemReorder"],["class","no-ripple",3,"current",4,"ngFor","ngForOf"],["lines","none"],[3,"ngModel","placeholder","ngModelChange","ionChange","ionFocus"],["searchInput",""],["slot","end"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","albums-outline"],["style","position: absolute;z-index: 2;width: 100%;box-shadow: 0 4px 2px -2px gray;",4,"ngIf"],[2,"position","absolute","z-index","2","width","100%","box-shadow","0 4px 2px -2px gray"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["color","medium",1,"ion-text-center"],[1,"no-ripple"],["name","reorder-three",2,"font-size","30px",3,"title"],["slot","start",1,"avatar-user",2,"cursor","grab",3,"click"],[3,"src"],["class","secondary",4,"ngIf"],[3,"title",4,"ngIf"],["class","danger",3,"title",4,"ngIf"],["style","display: flex;justify-content: start;",4,"ngIf"],["color","success","slot","end","name","caret-back-outline",4,"ngIf"],["style","z-index: 9999","fill","clear","slot","icon-only","shape","round","color","danger",3,"click",4,"ngIf"],[1,"secondary"],[3,"title"],[1,"danger",3,"title"],[2,"display","flex","justify-content","start"],["interface","popover",2,"width","auto","max-width","100%","padding-left","0px",3,"ngModel","title","interfaceOptions","disabled","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["class","valProcess",4,"ngIf"],["class","refProcess",4,"ngIf"],["class","stopProcess",4,"ngIf"],[1,"valProcess"],[1,"refProcess"],[1,"stopProcess"],["color","success","slot","end","name","caret-back-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",2,"z-index","9999",3,"click"],["slot","icon-only","name","trash-outline"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"ion-content",6),js("click",function(){return t.resetVisaUsersList()}),Ss(9,B$,10,8,"ng-container",7),Ss(10,R$,5,3,"ion-list",7),Is(11,"ion-reorder-group",8),js("ionItemReorder",function(e){return t.doReorder(e)}),Ss(12,Y$,15,13,"ion-item",9),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,6,"lang.circuit")),Yo(3),Os("ngIf",t.editMode),Yo(1),Os("ngIf",0===t.visaWorkflow.length),Yo(1),Os("disabled",!t.editMode),Yo(1),Os("ngForOf",t.visaWorkflow))},directives:[kS,tE,aS,oS,xS,$S,pS,jh,HS,Vh,ES,WS,SA,Lm,my,TS,dS,xA,IS,FS,jS,nS,YS,CA,ZS],pipes:[jP],styles:[".current[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-success)}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.danger[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.avatar-user[_ngcontent-%COMP%]{width:50px;height:50px;border:solid var(--ion-color-secondary)}ion-select[_ngcontent-%COMP%]{font-size:12px}.no-ripple[_ngcontent-%COMP%]{--ripple-color:transparent}.item-select-disabled[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%], .select-disabled[_ngcontent-%COMP%]{opacity:1}.item-select-disabled[_ngcontent-%COMP%]   ion-select[_ngcontent-%COMP%]::part(icon){display:none!important}.valProcess[_ngcontent-%COMP%]{color:var(--ion-color-success)}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%], .valProcess[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;font-size:12px;text-align:right;padding-top:10px;padding-bottom:10px}.refProcess[_ngcontent-%COMP%], .stopProcess[_ngcontent-%COMP%]{color:var(--ion-color-danger)}"]}),Z$);function Q$(e,t){if(1&e){var n=Fs();Is(0,"ion-item",9),js("click",function(){En(n);var e=t.$implicit;return qs().goTo(e.id)}),Is(1,"div"),Is(2,"ion-label",10),bl(3),Ts(),Is(4,"ion-label",11),bl(5),$u(6,"shorten"),Ts(),Ts(),Ms(7,"ion-icon",12),Ts()}if(2&e){var i=t.$implicit;Yo(3),wl(i.reference),Yo(2),wl(nc(6,2,i.title,50,"..."))}}var X$,J$=((X$=function(){function e(t){Z(this,e),this.router=t}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}}]),e}()).\u0275fac=function(e){return new(e||X$)(Ps(h_))},X$.\u0275cmp=Ft({type:X$,selectors:[["app-associated-documents"]],inputs:{associatedDocuments:"associatedDocuments"},decls:14,vars:6,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","link-outline"],[1,"ion-text-center"],[1,"secondary"],[2,"display","flex","flex-direction","column","height","100%"],["class","doc-item",3,"click",4,"ngFor","ngForOf"],[1,"doc-item",3,"click"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["slot","end","color","medium","name","arrow-forward-outline"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),Is(6,"b",6),bl(7),Ts(),bl(8),$u(9,"translate"),Ts(),Ts(),Ts(),Is(10,"ion-content"),Is(11,"div",7),Is(12,"ion-list"),Ss(13,Q$,8,6,"ion-item",8),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(7),wl(null==t.associatedDocuments?null:t.associatedDocuments.length),Yo(1),kl("\xa0",ec(9,4,"lang.associatedDocuments"),""),Yo(5),Os("ngForOf",t.associatedDocuments))},directives:[kS,tE,aS,oS,xS,$S,pS,TS,Vh,ES,IS],pipes:[jP,bT],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}img[_ngcontent-%COMP%]{pointer-events:none}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px;cursor:pointer}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}"]}),X$);function $$(e,t){1&e&&(Is(0,"ion-card"),Is(1,"ion-item",13),Ms(2,"ion-icon",14),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(4),wl(ec(5,1,"lang.docIsInMailGroup")))}function e0(e,t){if(1&e&&(Is(0,"ion-item",8),Is(1,"ion-label",9),bl(2),$u(3,"translate"),Ts(),Ms(4,"ion-input",10),Ts()),2&e){var n=qs();Os("title",n.mainDocument.description),Yo(2),wl(ec(3,3,"lang.description")),Yo(2),Os("value",n.mainDocument.description)}}function t0(e,t){if(1&e&&(Is(0,"ion-item",8),Is(1,"ion-label",9),bl(2),$u(3,"translate"),Ts(),Ms(4,"ion-input",10),Ts()),2&e){var n=qs();Os("title",n.mainDocument.deadline),Yo(2),wl(ec(3,3,"lang.processingDeadline")),Yo(2),Os("value",n.mainDocument.deadline)}}function n0(e,t){if(1&e&&(Is(0,"ion-item"),Is(1,"ion-label",9),bl(2),$u(3,"translate"),Ts(),Ms(4,"ion-input",10),Ts()),2&e){var n=t.$implicit;Yo(2),wl(ec(3,2,n.label)),Yo(2),Os("value",n.value)}}var i0,r0=((i0=function(){function e(t,n){Z(this,e),this.signaturesService=t,this.functionsService=n,this.loading=!1}return Y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||i0)(Ps($P),Ps(hW))},i0.\u0275cmp=Ft({type:i0,selectors:[["app-main-document-detail"]],inputs:{mainDocument:"mainDocument"},decls:29,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","start"],["disabled",""],["slot","icon-only","name","information-circle"],[1,"ion-text-center"],[4,"ngIf"],["lines","full",1,"ion-no-margin"],[3,"title"],["color","secondary","position","floating"],["readonly","",3,"value"],[3,"title",4,"ngIf"],[4,"ngFor","ngForOf"],["color","danger"],["name","alert-circle","slot","start"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Is(3,"ion-button",3),Ms(4,"ion-icon",4),Ts(),Ts(),Is(5,"ion-title",5),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"ion-content"),Ss(9,$$,6,3,"ion-card",6),Is(10,"ion-list",7),Is(11,"ion-item",8),Is(12,"ion-label",9),bl(13),$u(14,"translate"),Ts(),Ms(15,"ion-input",10),Ts(),Ss(16,e0,5,5,"ion-item",11),Ss(17,t0,5,5,"ion-item",11),Is(18,"ion-item",8),Is(19,"ion-label",9),bl(20),$u(21,"translate"),Ts(),Ms(22,"ion-input",10),Ts(),Is(23,"ion-item",8),Is(24,"ion-label",9),bl(25),$u(26,"translate"),Ts(),Ms(27,"ion-input",10),Ts(),Ss(28,n0,5,4,"ion-item",12),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,15,"lang.informations")),Yo(3),Os("ngIf",!t.functionsService.empty(t.mainDocument.mailingId)),Yo(2),Os("title",t.mainDocument.sender),Yo(2),wl(ec(14,17,"lang.emittedBy")),Yo(2),Os("value",t.mainDocument.sender),Yo(1),Os("ngIf",null!=t.mainDocument.description),Yo(1),Os("ngIf",null!=t.mainDocument.deadline),Yo(1),Os("title",t.mainDocument.reference),Yo(2),wl(ec(21,19,"lang.reference")),Yo(2),Os("value",t.mainDocument.reference),Yo(1),Os("title",t.mainDocument.title),Yo(2),wl(ec(26,21,"lang.subject")),Yo(2),Os("value",t.mainDocument.title),Yo(1),Os("ngForOf",t.mainDocument.metadata))},directives:[kS,tE,aS,oS,xS,$S,pS,jh,TS,ES,IS,SS,SA,Vh,sS],pipes:[jP],styles:[".mat-list-item[_ngcontent-%COMP%]{height:auto!important;text-align:center}.mat-card[_ngcontent-%COMP%]{box-shadow:none;border:1px solid #e0e0e0}.mat-icon[_ngcontent-%COMP%]{height:auto}.current[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 #656565}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:65px;justify-content:center;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%], .panel-header[_ngcontent-%COMP%]{display:flex;position:relative}.panel-content[_ngcontent-%COMP%]{flex-direction:column;height:100%;overflow:hidden}.closePanel[_ngcontent-%COMP%]{position:absolute;left:0;font-size:24px}.panel-content[_ngcontent-%COMP%]    .mat-form-field-label{color:#f99830}.panel-content[_ngcontent-%COMP%]    .mat-input-element:disabled{color:#135f7f}"]}),i0),o0=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},a0=["mainContent"],s0=["img"],l0=["snav"],u0=["dragElem"],c0=["appDocumentNotePad"],d0=["appDocumentList"],h0=["rightContent"],f0=["pagesList"];function p0(e,t){if(1&e){var n=Fs();Is(0,"ion-segment-button",20),js("click",function(){return En(n),qs(2).openAssociatedDocuments()}),Is(1,"ion-label",11),bl(2),$u(3,"ucfirst"),$u(4,"translate"),Ts(),Ms(5,"ion-icon",21),Is(6,"ion-badge",15),bl(7),Ts(),Ts()}if(2&e){var i=qs(2);Yo(2),wl(ec(3,2,ec(4,4,"lang.associatedDocuments"))),Yo(5),kl(" ",i.mainDocument.linkedDocuments.length," ")}}function g0(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",22),Is(1,"ion-button",23),js("click",function(e){return En(n),qs(2).openAction(e)}),Ms(2,"ion-icon",24),Ts(),Ts()}if(2&e){var i=qs(2);Yo(1),Os("disabled","CONVERTING"===i.mainDocument.status)}}function v0(e,t){if(1&e){var n=Fs();Is(0,"ion-header",6),Is(1,"ion-toolbar",7),Is(2,"ion-buttons",8),Ms(3,"ion-menu-button"),Ts(),Is(4,"ion-segment",9),js("ionChange",function(e){return En(n),qs().signaturesService.currentToobal=e.detail.value}),Is(5,"ion-segment-button",10),js("click",function(){return En(n),qs().openMainDocumentDetail()}),Is(6,"ion-label",11),bl(7),$u(8,"translate"),Ts(),Ms(9,"ion-icon",12),Ts(),Is(10,"ion-segment-button",13),js("click",function(){return En(n),qs().openDocumentList()}),Is(11,"ion-label",11),bl(12),$u(13,"ucfirst"),$u(14,"translate"),Ts(),Ms(15,"ion-icon",14),Is(16,"ion-badge",15),bl(17),Ts(),Ts(),Ss(18,p0,8,6,"ion-segment-button",16),Is(19,"ion-segment-button",17),js("click",function(){return En(n),qs().openVisaWorkflow()}),Is(20,"ion-label",11),bl(21),$u(22,"translate"),Ts(),Ms(23,"ion-icon",18),Is(24,"ion-badge",15),bl(25),Ts(),Ts(),Ts(),Ss(26,g0,3,1,"ion-buttons",19),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(4),Os("value",i.signaturesService.currentToobal),Yo(3),wl(ec(8,9,"lang.informations")),Yo(5),wl(ec(13,11,ec(14,13,"lang.attachedElements"))),Yo(5),kl(" ",i.mainDocument.attachments.length+1," "),Yo(1),Os("ngIf",void 0!==i.mainDocument.linkedDocuments&&i.mainDocument.linkedDocuments.length>0),Yo(3),wl(ec(22,15,"lang.circuit")),Yo(4),kl(" ",i.mainDocument.workflow.length," "),Yo(1),Os("ngIf",!i.detailMode)}}function m0(e,t){1&e&&(Is(0,"ion-toolbar",25),Is(1,"ion-label",26),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.substitutionInfo")))}function y0(e,t){1&e&&(Is(0,"ion-toolbar",27),Is(1,"div",28),Is(2,"ion-label",29),bl(3),$u(4,"translate"),Ts(),Ms(5,"ion-spinner",30),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.convertingDocument")))}function b0(e,t){1&e&&(Is(0,"ion-toolbar",27),Is(1,"ion-label",31),bl(2),$u(3,"translate"),Ts(),Ts()),2&e&&(Yo(2),wl(ec(3,1,"lang.errorConvertingDocument")))}function w0(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",44),js("movingOffset",function(){return En(n),qs(3).signaturesService.dragging=!0})("endOffset",function(){return En(n),qs(3).signaturesService.dragging=!1})("click",function(){return En(n),qs(3).expandedNote=!0}),$u(1,"translate"),Ms(2,"ion-icon",45),Ts()}if(2&e){qs(2);var i=Es(7),r=qs();Os("bounds",i)("inBounds",!0)("title",ec(1,4,"lang.expandNote"))("disabled",r.signaturesService.dragging)}}function k0(e,t){if(1&e&&(Bs(0),Is(1,"div",52),bl(2),Ts(),Is(3,"div",53),bl(4),Ts(),Rs()),2&e){var n=qs(4);Yo(2),xl(" ",n.mainDocument.notes.creator," (",n.mainDocument.notes.creationDate,") : "),Yo(2),kl(" ",n.mainDocument.notes.value," ")}}function x0(e,t){if(1&e&&(Is(0,"div"),Is(1,"div",52),bl(2),Ts(),Is(3,"div",53),bl(4),Ts(),Ts()),2&e){var n=qs().$implicit;Yo(2),xl(" ",n.userDisplay," (",n.processDate,") : "),Yo(2),kl(" ",n.note," ")}}function _0(e,t){if(1&e&&(Bs(0),Ss(1,x0,5,3,"div",3),Rs()),2&e){var n=t.$implicit;Yo(1),Os("ngIf",n.note)}}function A0(e,t){if(1&e){var n=Fs();Is(0,"div",46),js("movingOffset",function(){return En(n),qs(3).signaturesService.dragging=!0})("endOffset",function(){return En(n),qs(3).signaturesService.dragging=!1}),Is(1,"div",47),Ms(2,"i",48),Is(3,"span",49),bl(4),$u(5,"translate"),Ts(),Is(6,"i",50),js("click",function(){return En(n),qs(3).expandedNote=!1}),$u(7,"translate"),Ts(),Ts(),Ss(8,k0,5,3,"ng-container",3),Ss(9,_0,2,1,"ng-container",51),Ts()}if(2&e){qs(2);var i=Es(7),r=qs();Os("bounds",i)("inBounds",!0),Yo(4),wl(ec(5,6,"lang.note")),Yo(2),Os("title",ec(7,8,"lang.collapseNote")),Yo(2),Os("ngIf",null!=r.mainDocument.notes),Yo(1),Os("ngForOf",r.mainDocument.workflow)}}function C0(e,t){if(1&e&&(Bs(0),Ss(1,w0,3,6,"ion-fab-button",42),Ss(2,A0,10,10,"div",43),Rs()),2&e){var n=qs(2);Yo(1),Os("ngIf",!n.expandedNote),Yo(1),Os("ngIf",n.expandedNote)}}function S0(e,t){1&e&&Ms(0,"app-document-note-list")}function E0(e,t){1&e&&Ms(0,"app-document-sign-list",54),2&e&&(qs(),Os("bounds",Es(7)))}function P0(e,t){1&e&&Ms(0,"app-document-date-list",54),2&e&&(qs(),Os("bounds",Es(7)))}function O0(e,t){if(1&e){var n=Fs();Is(0,"ion-img",55,56),js("ionImgDidLoad",function(e){return En(n),qs(2).imageLoaded(e)}),Ts()}if(2&e){var i=qs(2);ol("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),Os("src",i.docList[i.currentDoc].imgContent[i.pageNum])}}function D0(e,t){if(1&e&&(Is(0,"ion-select-option",63),bl(1),Ts()),2&e){var n=t.index,i=qs(3);Os("value",n+1)("disabled",n+1===i.pageNum),Yo(1),wl(n+1)}}var I0=function(e){return{cssClass:e}};function T0(e,t){if(1&e){var n=Fs();Is(0,"section",57),Is(1,"div",58),bl(2),Ts(),Is(3,"div",59),js("click",function(e){return En(n),qs(2).openSelect(e)}),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-select",60,61),js("ngModelChange",function(e){return En(n),qs(2).pageNum=e})("ionChange",function(e){return En(n),qs(2).goTo(e.target.value)}),Ss(8,D0,2,3,"ion-select-option",62),Ts(),Ts()}if(2&e){var i=qs(2);Yo(2),kl(" ",i.docList[i.currentDoc].title," "),Yo(2),_l("",ec(5,7,"lang.page")," ",i.pageNum," / ",i.totalPages,""),Yo(2),Os("ngModel",i.pageNum)("interfaceOptions",Zu(9,I0,i.totalPages>10?"popover-class":"custom-popover-class")),Yo(2),Os("ngForOf",i.pagesArray(i.totalPages))}}function M0(e,t){1&e&&(Is(0,"ion-item",64),Ms(1,"ion-icon",65),Is(2,"ion-label"),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.certifiedDocument")))}function B0(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",68),js("click",function(){return En(n),qs(3).prevPage()}),Ms(1,"ion-icon",69),Ts()}}function R0(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",70),js("click",function(){return En(n),qs(3).nextPage()}),Ms(1,"ion-icon",71),Ts()}}function L0(e,t){if(1&e&&(Bs(0),Ss(1,B0,2,0,"ion-fab-button",66),Ss(2,R0,2,0,"ion-fab-button",67),Rs()),2&e){var n=qs(2);Yo(1),Os("ngIf",n.pageNum>1&&!n.loadingImage),Yo(1),Os("ngIf",n.pageNum<n.totalPages&&!n.loadingImage)}}function F0(e,t){if(1&e){var n=Fs();Is(0,"ion-content",null,32),Ss(2,C0,3,2,"ng-container",3),Is(3,"div",33),Is(4,"drag-scroll",34,35),js("click",function(e){En(n);var t=qs();return 0==t.currentDoc&&!t.detailMode&&t.openAction(e)}),Is(6,"div",36,37),Ss(8,S0,1,0,"app-document-note-list",3),Ss(9,E0,1,1,"app-document-sign-list",38),Ss(10,P0,1,1,"app-document-date-list",38),Ss(11,O0,2,5,"ion-img",39),Ts(),Ts(),Ts(),Ss(12,T0,9,11,"section",40),Ss(13,M0,5,3,"ion-item",41),Ss(14,L0,3,2,"ng-container",3),Ts()}if(2&e){var i=qs();Yo(2),Os("ngIf",null!=i.mainDocument.notes||i.hasWorkflowNotes),Yo(2),ol("max-width",i.signaturesService.workingAreaWidth,"px"),Os("drag-scroll-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&i.signaturesService.mobileMode)("drag-disabled",(i.signaturesService.dragging||i.signaturesService.resizing)&&!i.signaturesService.mobileMode),Yo(2),ol("width",i.signaturesService.workingAreaWidth,"px")("height",i.signaturesService.workingAreaHeight,"px"),Yo(2),Os("ngIf",0==i.currentDoc&&!i.loadingImage),Yo(1),Os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.signaturesContent[i.pageNum]),Yo(1),Os("ngIf",0===i.currentDoc&&!i.loadingImage&&i.signaturesService.datesContent[i.pageNum]),Yo(1),Os("ngIf",void 0!==i.docList[i.currentDoc]&&!i.functionsService.empty(i.docList[i.currentDoc].imgContent[i.pageNum])),Yo(1),Os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&i.docList[i.currentDoc]),Yo(1),Os("ngIf",i.mainDocument.isCertified),Yo(1),Os("ngIf",!i.signaturesService.dragging&&!i.signaturesService.resizing&&!i.loadingImage)}}function N0(e,t){if(1&e&&Ms(0,"ion-icon",76),2&e){var n=qs().$implicit;Os("slot","start")("name",n.logo)}}function V0(e,t){if(1&e){var n=Fs();Is(0,"ion-button",74),js("click",function(){En(n);var e=t.$implicit;return qs(2).launchEvent(e)}),Ss(1,N0,1,2,"ion-icon",75),Is(2,"ion-label",26),bl(3),$u(4,"translate"),Ts(),Ts()}if(2&e){var i=t.$implicit;Os("disabled",qs(2).isNotReady())("color",i.color),Yo(1),Os("ngIf",""!==i.logo),Yo(2),wl(ec(4,4,i.label))}}function z0(e,t){if(1&e&&(Is(0,"ion-footer",72),Ss(1,V0,5,6,"ion-button",73),Ts()),2&e){var n=qs();Yo(1),Os("ngForOf",n.actionsList)}}function j0(e,t){if(1&e&&Ms(0,"app-visa-workflow",81),2&e){var n=qs(2);Os("visaWorkflow",n.mainDocument.workflow)("userDelegated",n.userDelegated)}}function H0(e,t){if(1&e){var n=Fs();Is(0,"app-document-list",82,83),js("triggerEvent",function(e){return En(n),qs(2).loadDoc(e)}),Ts()}if(2&e){var i=qs(2);Os("currentDocId",i.currentDoc)("docList",i.docList)}}function U0(e,t){1&e&&Ms(0,"app-associated-documents",84,85),2&e&&Os("associatedDocuments",qs(2).mainDocument.linkedDocuments)}function W0(e,t){1&e&&Ms(0,"app-main-document-detail",86,87),2&e&&Os("mainDocument",qs(2).mainDocument)}function G0(e,t){if(1&e&&(Ss(0,j0,1,2,"app-visa-workflow",77),Ss(1,H0,2,2,"app-document-list",78),Ss(2,U0,2,1,"app-associated-documents",79),Ss(3,W0,2,1,"app-main-document-detail",80)),2&e){var n=qs();Os("ngIf","visaWorkflow"==n.signaturesService.currentToobal),Yo(1),Os("ngIf","documentList"==n.signaturesService.currentToobal),Yo(1),Os("ngIf","associatedDocuments"==n.signaturesService.currentToobal),Yo(1),Os("ngIf","mainDocumentDetail"==n.signaturesService.currentToobal)}}var q0,Y0=((q0=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,k,x,_){Z(this,e),this.http=t,this.signaturesService=n,this.notificationService=i,this.sanitizer=r,this.dialog=o,this.authService=a,this.actionSheetController=s,this.loadingController=l,this.viewContainerRef=u,this.modalController=c,this.alertController=d,this.signatureMethodService=h,this.navCtrl=f,this.functionsService=p,this.actionsService=g,this.translate=v,this.router=m,this.route=y,this.bottomSheet=b,this.localStorage=w,this.menu=k,this.pdfViewerService=x,this.cookieService=_,this.actionsList=[{id:2,label:"lang.reject",color:"danger",logo:"thumbs-down-outline",event:"refuseDocument"},{id:3,label:"lang.signatures",color:"",logo:"",event:"openSignatures"},{id:1,label:"lang.validate",color:"success",logo:"thumbs-up-outline",event:"validateDocument"}],this.enterApp=!0,this.freezeSidenavClose=!1,this.startX=0,this.startY=0,this.widthDoc="100%",this.resetDragPos=!1,this.mainDocument={id:0,status:status,attachments:[],workflow:[]},this.loadingUI=!1,this.signaturesContent=[],this.docList=[],this.posX=0,this.posY=0,this.pageNum=1,this.currentDoc=0,this.detailMode=!1,this.expandedNote=!0,this.dragging=!1,this.resizing=!1,this.loadingdocument=!0,this.loadingpdf=!1,this.loadingImage=!0,this.hasWorkflowNotes=!1,this.currentTool="info",this.pdfname=null,this.fileContent="",this.userDelegated=!1,this.load=null,this.draggable=!1}return Y(e,[{key:"imageLoaded",value:function(e){this.getImageDimensions(!0),"CONVERTING"!==this.mainDocument.status&&this.load.dismiss(),this.menu.enable(!0,"right-menu"),this.loadingImage=!1,document.getElementsByClassName("drag-scroll-content")[0].scrollTop=0}},{key:"getImageDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=new Image;n.onload=function(n){e.signaturesService.workingAreaWidth=n.target.naturalWidth,e.signaturesService.workingAreaHeight=n.target.naturalHeight,t&&e.getAreaDimension()},n.src=this.docList[this.currentDoc].imgContent[this.pageNum]}},{key:"getAreaDimension",value:function(){var e=100*this.mainContent.el.offsetWidth/this.signaturesService.workingAreaWidth;this.signaturesService.workingAreaWidth=e*this.signaturesService.workingAreaWidth/100,this.signaturesService.workingAreaHeight=e*this.signaturesService.workingAreaHeight/100}},{key:"openAction",value:function(e){return o0(this,void 0,void 0,U().mark(function t(){var n,i,r=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.posX=e.clientX,this.posY=e.clientY,n=[],this.checkEmptyNote()||n.push({text:this.translate.instant("lang.cancelPreviousNote"),icon:"arrow-undo-outline",handler:function(){r.undoTag()}}),this.signaturesService.stampLock||(n.push({text:this.translate.instant("lang.affixSignature"),icon:"ribbon-outline",handler:function(){r.openSignatures()}}),n.push({text:this.translate.instant("lang.annotateDocument"),icon:"receipt-outline",handler:function(){r.openNoteEditor()}})),this.checkEmptiness()||n.push({text:this.translate.instant("lang.deleteAll"),icon:"color-wand-outline",handler:function(){r.removeTags()}}),t.next=5,this.actionSheetController.create({header:"Actions",cssClass:"my-custom-class",buttons:n});case 5:return i=t.sent,t.next=8,i.present();case 8:case"end":return t.stop()}},t,this)}))}},{key:"openSignatures",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t,n,i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:HU,cssClass:"my-custom-class",componentProps:{currentWorflow:this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],content:this.fileContent}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:n=e.sent,i=n.data,this.dragging=!1,void 0!==i&&("success"===i||void 0!==i.redirectPage&&this.goTo(i.redirectPage));case 10:case"end":return e.stop()}},e,this)}))}},{key:"openNoteEditor",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:$U,cssClass:"fullscreen",componentProps:{precentScrollLeft:this.posX,precentScrollTop:this.posY,content:this.docList[this.currentDoc].imgContent[this.pageNum]}});case 2:return t=e.sent,e.next=5,t.present();case 5:return e.next=7,t.onWillDismiss();case 7:case"end":return e.stop()}},e,this)}))}},{key:"scrollToElem",value:function(){var e=this.signaturesService.signaturesContent[this.pageNum][this.signaturesService.signaturesContent[this.pageNum].length-1].positionY-75-($("#myBounds")[0].getBoundingClientRect().top-70)-$(window).height();document.getElementsByClassName("drag-scroll-content")[0].scrollTo(1e3,-e)}},{key:"ionViewWillEnter",value:function(){this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent")}},{key:"ngOnInit",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.menu.enable(!1,"right-menu"),this.menu.enable(!0,"left-menu"),this.route.params.subscribe(function(e){void 0!==e.id&&t.loadingController.create({message:t.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(n){t.load=n,t.load.present(),t.http.get("../rest/documents/"+e.id).pipe(Mw(function(n){return o0(t,void 0,void 0,U().mark(function t(){var i,r,o,a=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkSubstitute(n.document.workflow.find(function(e){return e.current}));case 2:i=t.sent,this.mainDocument=n.document,this.mainDocument.workflow=this.mainDocument.workflow.map(function(e){return e.note&&(a.hasWorkflowNotes=!0),e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes})}),this.totalPages=this.mainDocument.pages,this.signaturesService.mainDocumentId=this.mainDocument.id,this.signaturesService.totalPage=this.mainDocument.pages,this.menu.enable(!0,"right-menu"),this.initDoc(),r=this.mainDocument.workflow.find(function(e){return!0===e.current}),this.mainDocument.isCertified=this.mainDocument.workflow.filter(function(e){return"REF"!==e.status&&"STOP"!==e.status&&"sign"===e.mode&&"stamp"!==e.signatureMode&&null!==e.processDate}).length>0,this.userDelegated=i,o=[{id:4,label:"lang.back",color:"medium",logo:"chevron-back-outline",event:"back"}],this.mainDocument.readOnly?(this.actionsList=o,this.detailMode=!0):(null==r?void 0:r.userId)!==this.authService.user.id?i||(this.actionsList=o,this.detailMode=!0):this.functionsService.empty(r)||(this.signaturesService.stampLock=this.mainDocument.isCertified&&("stamp"===r.signatureMode&&"sign"===r[0].mode||"visa"===r.mode),r.userId!==this.authService.user.id?this.http.get("../rest/users/"+r.userId+"/signatures").subscribe(function(e){a.signaturesService.signaturesListSubstituted=e.signatures}):this.signaturesService.signaturesListSubstituted=[],r.datePositions.length>0&&this.functionsService.empty(this.signaturesService.datesContent)&&r.datePositions.forEach(function(e){a.signaturesService.datesContent[e.page]||(a.signaturesService.datesContent[e.page]=[]),a.signaturesService.datesContent[e.page][0]={width:e.width,height:e.height,positionX:e.positionX,positionY:e.positionY,font:e.font,size:e.size,color:e.color,format:e.format}})),this.docList.push({id:this.mainDocument.id,title:this.mainDocument.title,pages:this.mainDocument.pages,imgContent:[],imgUrl:"../rest/documents/"+this.mainDocument.id+"/thumbnails"}),this.mainDocument.attachments.forEach(function(e){a.docList.push({id:e.id,title:e.title,pages:e.pages,imgContent:[],imgUrl:"../rest/attachments/"+e.id+"/thumbnails"})}),this.menu.enable(!0,"right-menu"),this.renderImage(),this.loadingdocument=!1,this.load.dismiss(),"CONVERTING"===this.mainDocument.status&&(this.timerSubscription=qB(0,1e4).pipe(Mw(function(){a.http.get("../rest/documents/"+e.id).pipe(Mw(function(e){var t;a.totalPages=e.document.pages,"CONVERTING"!==e.document.status&&(a.mainDocument.status=e.document.status,null===(t=a.timerSubscription)||void 0===t||t.unsubscribe())})).subscribe()}),yw(function(e){return a.load.dismiss(),a.notificationService.handleErrors(e),nb(!1)})).subscribe());case 8:case"end":return t.stop()}},t,this)}))}),yw(function(e){return console.log("error",e),setTimeout(function(){t.load.dismiss()},200),t.notificationService.handleErrors(e),t.router.navigate(["/home"]),nb(!1)})).subscribe()})});case 1:case"end":return e.stop()}},e,this)}))}},{key:"ngOnDestroy",value:function(){var e;null===(e=this.timerSubscription)||void 0===e||e.unsubscribe()}},{key:"checkSubstitute",value:function(e){var t=this;return!this.functionsService.empty(e)&&new Promise(function(n){t.http.get("../rest/users/"+e.userId).pipe(Mw(function(e){n(e.user.substitute===t.authService.user.id)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"renderPdf",value:function(){var e=this;this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/content").subscribe(function(t){e.pdfname="data:application/pdf;base64,"+t.encodedDocument,e.loadingpdf=!0})}},{key:"onPagesLoaded",value:function(e){return o0(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.totalPages=e.pagesCount,this.exportAsImage();case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.pageNum,{width:1e3});case 2:t=e.sent,this.docList[this.currentDoc].imgContent[this.pageNum]=t,this.loadingpdf=!1,this.load.dismiss();case 4:case"end":return e.stop()}},e,this)}))}},{key:"renderImage",value:function(){var e=this;void 0===this.docList[this.currentDoc].imgContent[this.pageNum]&&(0===this.currentDoc?this.http.get("../rest/documents/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Mw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent,e.fileContent=t.fileContent}),yw(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),nb(!1)})).subscribe():this.http.get("../rest/attachments/"+this.docList[this.currentDoc].id+"/thumbnails/"+this.pageNum).pipe(Mw(function(t){e.docList[e.currentDoc].imgContent[e.pageNum]="data:image/png;base64,"+t.fileContent}),yw(function(t){return e.load.dismiss(),e.notificationService.handleErrors(t),e.router.navigate(["/home"]),nb(!1)})).subscribe())}},{key:"initDoc",value:function(){this.docList=[],this.signaturesService.signaturesContent=[],this.signaturesService.notesContent=[],this.signaturesService.datesContent=[],this.signaturesService.currentToobal="mainDocumentDetail";var e=this.localStorage.get(this.mainDocument.id.toString());if(e){var t=JSON.parse(e);this.signaturesService.notesContent=void 0!==t.note?t.note:[],this.signaturesService.signaturesContent=void 0!==t.sign?t.sign:[],this.signaturesService.datesContent=void 0!==t.date?t.date:[]}this.signaturesService.currentAction=0,this.signaturesService.currentPage=1,this.pageNum=1,this.signaturesContent.currentDoc=1,this.currentDoc=0}},{key:"testDrag",value:function(e){var t=e.source.getRootElement(),n=t.getBoundingClientRect(),i=this.getPosition(t);this.signaturesService.y=n.y-i.top,this.signaturesService.x=n.x-i.left}},{key:"getPosition",value:function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}},{key:"zoomForNotes",value:function(){this.widthDoc="200%",this.signaturesService.scale=2,$(".example-box").css({transform:"translate3d("+this.signaturesService.x*this.signaturesService.scale+"px, "+this.signaturesService.y*this.signaturesService.scale+"px, 0px)"}),this.signaturesService.workingAreaHeight*=this.signaturesService.scale,this.signaturesService.workingAreaWidth*=this.signaturesService.scale}},{key:"zoomForView",value:function(){var e=this;this.resetDragPos=!0,this.widthDoc="100%",this.signaturesService.workingAreaHeight=this.signaturesService.workingAreaHeight/2,this.signaturesService.workingAreaWidth=this.signaturesService.workingAreaWidth/2,setTimeout(function(){e.resetDragPos=!1},200),this.signaturesService.scale=1}},{key:"prevPage",value:function(){this.loadingImage=!0,this.pageNum--,0===this.pageNum&&(this.pageNum=1),0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"nextPage",value:function(){this.loadingImage=!0,this.pageNum>=this.totalPages?this.pageNum=this.totalPages:this.pageNum++,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"goTo",value:function(e){var t=this;this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(e){t.load=e,t.load.present(),t.loadingImage=!0,t.load.dismiss()}),this.pageNum=e,0===this.currentDoc&&(this.signaturesService.currentPage=this.pageNum),this.renderImage()}},{key:"pagesArray",value:function(e){return Array(e)}},{key:"refuseDocument",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t,n,i=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.rejectDocumentWarning"),0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.refuseDocumentWithoutNote")),e.next=4,this.alertController.create({cssClass:"custom-alert-danger",header:this.translate.instant("lang.reject"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.reject"),handler:function(e){return o0(i,void 0,void 0,U().mark(function t(){var n,i;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.actionsService.checkGroupMail(this.mainDocument,"reject");case 2:return n=t.sent,t.next=5,this.signatureMethodService.launchDefaultMode(e.paragraph,n);case 5:i=t.sent,this.functionsService.empty(i)||(this.bottomSheet.open(tW,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString()));case 7:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"validateDocument",value:function(e){return o0(this,void 0,void 0,U().mark(function e(){var t,n,i=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.translate.instant("lang.validateDocumentWarning"),0===this.signaturesService.signaturesContent.length&&0===this.signaturesService.notesContent.length&&(t=this.translate.instant("lang.validateDocumentWithoutSignOrNote")),this.signaturesService.stampLock&&(t=this.translate.instant("lang.certifiedDocumentMsg2")),e.next=4,this.alertController.create({cssClass:"custom-alert-success",header:this.translate.instant("lang.validate"),message:t,inputs:[{name:"paragraph",id:"paragraph",type:"textarea",placeholder:this.translate.instant("lang.addReason")}],buttons:[{text:this.translate.instant("lang.validate"),handler:function(e){return o0(i,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.processToSign(e);case 2:case"end":return t.stop()}},t,this)}))}}]});case 4:return n=e.sent,e.next=7,n.present();case 7:case"end":return e.stop()}},e,this)}))}},{key:"processToSign",value:function(e){return o0(this,void 0,void 0,U().mark(function t(){var n,i,r;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.mainDocument.workflow.filter(function(e){return!0===e.current})[0],t.next=3,this.actionsService.checkGroupMail(this.mainDocument,"validate");case 3:return i=t.sent,t.next=6,this.signatureMethodService.checkAuthenticationAndLaunchAction(n,e.paragraph,i);case 6:r=t.sent,this.functionsService.empty(r)||("refresh_certs"===r?this.processToSign(e):(this.bottomSheet.open(s$,{disableClose:!0,direction:"ltr"}),this.localStorage.remove(this.mainDocument.id.toString())));case 8:case"end":return t.stop()}},t,this)}))}},{key:"removeTags",value:function(){return o0(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.signaturesService.currentAction=0,e.next=3,this.alertController.create({header:this.translate.instant("lang.deleteNoteAndSignature"),buttons:[{text:this.translate.instant("lang.validate"),handler:function(){n.signaturesService.signaturesContent=[],n.signaturesService.notesContent=[],n.signaturesService.datesContent=[],n.localStorage.remove(n.mainDocument.id.toString()),n.notificationService.success("lang.noteAndSignatureDeleted")}}]});case 3:return t=e.sent,e.next=6,t.present();case 6:case"end":return e.stop()}},e,this)}))}},{key:"loadDoc",value:function(e){this.pageNum=1,this.currentDoc=e,this.totalPages=this.docList[e].pages}},{key:"launchEvent",value:function(e){this.backToDetails(),this.signaturesService.currentAction=e.id,this[e.event]()}},{key:"undoTag",value:function(){this.signaturesService.notesContent[this.pageNum]&&(this.signaturesService.notesContent[this.pageNum].pop(),this.localStorage.remove(this.mainDocument.id.toString()),this.localStorage.save(this.mainDocument.id.toString(),JSON.stringify({sign:this.signaturesService.signaturesContent,note:this.signaturesService.notesContent})),this.isEmptyNote()&&(this.signaturesService.notesContent=[]))}},{key:"checkEmptyNote",value:function(){return!this.signaturesService.notesContent[this.pageNum]||"undefined"===this.signaturesService.notesContent[this.pageNum]||0===this.signaturesService.notesContent[this.pageNum].length}},{key:"isEmptyNote",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++)if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}return e}},{key:"checkEmptiness",value:function(){for(var e=!0,t=1;t<=this.signaturesService.totalPage;t++){if(this.signaturesService.datesContent[t]&&this.signaturesService.datesContent[t].length>0){e=!1;break}if(this.signaturesService.notesContent[t]&&this.signaturesService.notesContent[t].length>0){e=!1;break}if(this.signaturesService.signaturesContent[t]&&this.signaturesService.signaturesContent[t].length>0){e=!1;break}}return e}},{key:"openVisaWorkflow",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="visaWorkflow"}},{key:"openDocumentList",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="documentList"}},{key:"openAssociatedDocuments",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="associatedDocuments"}},{key:"openMainDocumentDetail",value:function(){this.menu.open("right-menu"),this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"backToDetails",value:function(){this.signaturesService.currentToobal="mainDocumentDetail"}},{key:"deleteSubstution",value:function(){var e=this;confirm(this.translate.instant("lang.deleteSubstitution")+" ?")&&this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:null}).subscribe(function(){e.authService.updateUserInfoWithTokenRefresh(),e.notificationService.success("lang.substitutionDeleted")})}},{key:"back",value:function(){this.navCtrl.back()}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent"),this.loadingController.dismiss()}},{key:"openSelect",value:function(e){this.totalPages>1&&(this.pagesList.interface="popover",this.pagesList.open(e))}},{key:"fromHex",value:function(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length;n+=2){var i=e.slice(n,n+2);t[n/2]=parseInt(i,16)}return t.buffer}},{key:"isNotReady",value:function(){return["CONVERTING","ERROR"].indexOf(this.mainDocument.status)>-1}}]),e}()).\u0275fac=function(e){return new(e||q0)(Ps(Tb),Ps($P),Ps(WP),Ps(pp),Ps(KF),Ps(tO),Ps(TE),Ps(BE),Ps(Mu),Ps(LE),Ps(ME),Ps(a$),Ps(DA),Ps(hW),Ps(pW),Ps(zP),Ps(h_),Ps(Uk),Ps(gF),Ps(eO),Ps(RE),Ps(UD),Ps(oT))},q0.\u0275cmp=Ft({type:q0,selectors:[["app-document"]],viewQuery:function(e,t){var n;1&e&&(bc(a0,1),bc(s0,1),bc(l0,3),bc(u0,1),bc(c0,1),bc(d0,1),bc(h0,3),bc(f0,1)),2&e&&(yc(n=kc())&&(t.mainContent=n.first),yc(n=kc())&&(t.img=n.first),yc(n=kc())&&(t.snav=n.first),yc(n=kc())&&(t.dragElem=n.first),yc(n=kc())&&(t.appDocumentNotePad=n.first),yc(n=kc())&&(t.appDocumentList=n.first),yc(n=kc())&&(t.rightContent=n.first),yc(n=kc())&&(t.pagesList=n.first))},decls:8,vars:6,consts:[[3,"translucent",4,"ngIf"],["class","ion-text-center","color","primary",4,"ngIf"],["class","ion-text-center","color","danger",4,"ngIf"],[4,"ngIf"],["class","ion-no-border footer-buttons",4,"ngIf"],["rightContent",""],[3,"translucent"],["color","light"],["slot","start"],["value","favorite",3,"value","ionChange"],["value","mainDocumentDetail",3,"click"],["color","primary"],["color","primary","name","information-circle"],["value","documentList",3,"click"],["color","primary","name","document-attach-outline"],["color","danger",2,"position","absolute","top","10px","right","40%"],["value","associatedDocuments",3,"click",4,"ngIf"],["value","visaWorkflow",3,"click"],["color","primary","name","list-outline"],["slot","end",4,"ngIf"],["value","associatedDocuments",3,"click"],["color","primary","name","link-outline"],["slot","end"],["color","primary",3,"disabled","click"],["slot","icon-only","name","settings-sharp"],["color","primary",1,"ion-text-center"],[2,"font-size","13px"],["color","danger",1,"ion-text-center"],[1,"loading",2,"display","flex","height","100%"],[1,"loadingMsg"],["name","dots","color","light",2,"padding-top","6.5%"],[2,"font-size","14px","font-weight","bold"],["mainContent",""],[2,"display","contents"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-scroll-disabled","drag-disabled","click"],["nav",""],["id","myBounds",2,"position","relative","cursor","grab"],["myBounds",""],[3,"bounds",4,"ngIf"],["class","img-content",3,"src","width","height","ionImgDidLoad",4,"ngIf"],["class","page-info",4,"ngIf"],["lines","none","class","certified",4,"ngIf"],["ngDraggable","","style","top: 40px;right: 40px;z-index:2;position:absolute;",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click",4,"ngIf"],["ngDraggable","","class","note",3,"bounds","inBounds","movingOffset","endOffset",4,"ngIf"],["ngDraggable","",2,"top","40px","right","40px","z-index","2","position","absolute",3,"bounds","inBounds","title","disabled","movingOffset","endOffset","click"],["name","chatbubble-ellipses-outline"],["ngDraggable","",1,"note",3,"bounds","inBounds","movingOffset","endOffset"],[1,"note-title"],[1,"far","fa-sticky-note",2,"padding-right","5px"],[2,"flex","1"],[1,"fa","fa-minus-square",2,"cursor","pointer",3,"title","click"],[4,"ngFor","ngForOf"],[1,"note-creator"],[1,"note-content"],[3,"bounds"],[1,"img-content",3,"src","ionImgDidLoad"],["img",""],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","popover","hidden","true",2,"max-height","100%",3,"ngModel","interfaceOptions","ngModelChange","ionChange"],["pagesList",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],["lines","none",1,"certified"],["slot","start","name","ribbon-outline","color","success"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"],[1,"ion-no-border","footer-buttons"],["shape","round","size","large","fill","outline",3,"disabled","color","click",4,"ngFor","ngForOf"],["shape","round","size","large","fill","outline",3,"disabled","color","click"],[3,"slot","name",4,"ngIf"],[3,"slot","name"],["style","display: contents;",3,"visaWorkflow","userDelegated",4,"ngIf"],["style","display: contents;",3,"currentDocId","docList","triggerEvent",4,"ngIf"],["style","display: contents;",3,"associatedDocuments",4,"ngIf"],["style","display: contents;",3,"mainDocument",4,"ngIf"],[2,"display","contents",3,"visaWorkflow","userDelegated"],[2,"display","contents",3,"currentDocId","docList","triggerEvent"],["appDocumentList",""],[2,"display","contents",3,"associatedDocuments"],["appAssociatedDocuments",""],[2,"display","contents",3,"mainDocument"],["appMainDocumentDetail",""]],template:function(e,t){1&e&&(Ss(0,v0,27,17,"ion-header",0),Ss(1,m0,4,3,"ion-toolbar",1),Ss(2,y0,6,3,"ion-toolbar",2),Ss(3,b0,4,3,"ion-toolbar",2),Ss(4,F0,15,16,"ion-content",3),Ss(5,z0,2,1,"ion-footer",4),Ss(6,G0,4,4,"ng-template",null,5,Cc)),2&e&&(Os("ngIf",!t.loadingdocument),Yo(1),Os("ngIf",null!==t.authService.user.substitute&&t.docList[t.currentDoc]),Yo(1),Os("ngIf",0!==t.mainDocument.id&&"CONVERTING"===t.mainDocument.status),Yo(1),Os("ngIf",0!==t.mainDocument.id&&"ERROR"===t.mainDocument.status),Yo(1),Os("ngIf",!t.loadingdocument),Yo(1),Os("ngIf",!t.loadingImage&&0===t.currentDoc))},directives:[jh,kS,tE,aS,RS,GS,CA,qS,IS,xS,rS,oS,XS,pS,ZI,mS,JI,Vh,c$,v$,E$,_S,YS,Lm,my,ZS,ES,bS,K$,dW,J$,r0],pipes:[jP,wT],styles:[".enterApp[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100vw;background-color:#135f7f;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px}.mainView[_ngcontent-%COMP%]{height:100%;width:auto;display:flex;flex-direction:column;overflow:hidden}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:70px;width:auto}.header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:auto;font-size:40px}.article[_ngcontent-%COMP%]{display:flex;justify-content:center;overflow:hidden;flex:1;top:0;left:0}.canvas-wrapper[_ngcontent-%COMP%]{position:relative;padding-bottom:120px}canvas[_ngcontent-%COMP%]{margin:0 auto;display:block}.header[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:80px;align-items:center;padding:0}.header[_ngcontent-%COMP%], .header-action[_ngcontent-%COMP%]{display:flex;justify-content:center}.header-action[_ngcontent-%COMP%]{color:#135f7f}.header-action-button[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;width:135px!important}.header-infos[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:5px;display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding-top:12px;padding-bottom:7px;position:relative;overflow-y:hidden;overflow-x:auto}.header-info[_ngcontent-%COMP%]{border-right:1px solid #979797;width:200px;height:60px;font-size:12px;padding-left:20px}.header-info[_ngcontent-%COMP%]:last-of-type{border:none}.header-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;padding:0}.header-expand[_ngcontent-%COMP%]{width:70%;position:absolute;left:50%;transform:translateX(-50%);top:25px;border:1px solid #f1f4f4}.header-expand[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{padding-top:10px}.header-expand[_ngcontent-%COMP%]    .mat-expansion-panel{box-shadow:none}.header-expand[_ngcontent-%COMP%]    .mat-form-field-label{color:#135f7f}.header-expand[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.header-expand-content[_ngcontent-%COMP%]{width:33%;display:inline-block}.header-expand-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-overflow:ellipsis}.header-expand-content[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.header-expand[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:1;color:#666}.header-expand[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1;font-size:12px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.btn-next[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;right:25px;top:50%;cursor:pointer;z-index:1}.btn-next.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.btn-previous[_ngcontent-%COMP%]{color:#666;background:hsla(0,0%,77.6%,.5019607843137255);border-radius:20px;padding:10px;border:none;outline:none;position:absolute;left:25px;top:50%;cursor:pointer;z-index:1}.btn-previous.disabled[_ngcontent-%COMP%], button.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.pdf-page-canvas[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in}.pdf-page-canvas-loading-doc[_ngcontent-%COMP%]{opacity:0}.ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leftPosDesk[_ngcontent-%COMP%]{left:25%!important}.mat-badge-content[_ngcontent-%COMP%]{background:#e74c3c}.substutionModal[_ngcontent-%COMP%]{color:#fff;background:#135f7f}.substutionModal[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px}.substutionModal[_ngcontent-%COMP%]   .msgModal[_ngcontent-%COMP%]{text-align:center;flex:1}.substitutedInformations[_ngcontent-%COMP%]{top:85px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis;background:#135f7f;color:#fff;font-size:13px;text-align:center}.note[_ngcontent-%COMP%]{top:40px;right:40px;z-index:2;cursor:grab;position:absolute;background-color:#fff8bb;width:300px;max-height:400px;overflow:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.note-title[_ngcontent-%COMP%]{background-color:#fff8bb;position:sticky;top:0;display:flex;align-items:center;font-weight:700}.note-creator[_ngcontent-%COMP%], .note-title[_ngcontent-%COMP%]{padding:10px;color:#135f7f}.note-creator[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline}.note-content[_ngcontent-%COMP%]{padding:0 10px 10px;color:#4f4f4f}.footer-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);padding:10px}.footer-buttons[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:150px}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.certified[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;border:1px solid var(--ion-color-success);color:var(--ion-color-success)}  .popover-class .popover-content{height:50%;top:50px}  .custom-popover-class .popover-class{height:10%;top:50px}.loading[_ngcontent-%COMP%]{display:flex;position:absolute;justify-content:center;top:0;left:0;width:100%;height:100%;z-index:2;overflow:hidden}.loadingMsg[_ngcontent-%COMP%]{padding:2%;color:var(--ion-color-light);font-weight:700;margin-right:-5px}"]}),q0),Z0=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function K0(e,t){1&e&&(Is(0,"a",13),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.forgotPassword")))}function Q0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.ldapEnabled")))}function X0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.kerberosEnabled")))}function J0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.x509Enabled")))}function $0(e,t){1&e&&(Is(0,"a",14),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl("",ec(2,1,"lang.casEnabled")," "))}function e1(e,t){if(1&e&&(Is(0,"a",15),$u(1,"translate"),bl(2),Ts()),2&e){var n=qs();Js("href","",ec(1,3,"lang.repoUrl"),"/commit/",n.commitHash,"",Kr),Yo(2),wl(n.commitHash.substring(0,8))}}var t1,n1,i1=((n1=function(){function e(t,n,i,r,o,a,s,l,u,c){Z(this,e),this.http=t,this.router=n,this.authService=i,this.signaturesService=r,this.notificationService=o,this.dialog=a,this.formBuilder=s,this.loadingController=l,this.translate=u,this.menu=c,this.loading=!1,this.showForm=!1,this.commitHash=null}return Y(e,[{key:"ngOnInit",value:function(){return Z0(this,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loginForm=this.formBuilder.group({login:[null,cm.required],password:[null,cm.required]}),this.environment=Cd,this.signaturesService.reset(),e.next=5,this.loadCommitInformation();case 5:case"end":return e.stop()}},e,this)}))}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){return Z0(e,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.showForm=!0,this.fixAutoFill(),e.next=4,this.initConnection();case 4:case"end":return e.stop()}},e,this)}))},500)}},{key:"fixAutoFill",value:function(){var e=this;setTimeout(function(){e.loginForm.get("login").setValue($("#login").val()),e.loginForm.get("password").setValue($("#password").val())},100)}},{key:"onSubmit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Z0(this,void 0,void 0,U().mark(function t(){var n,i,r=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadingController.create({cssClass:"my-custom-class",message:this.translate.instant("lang.connexion")});case 2:return n=t.sent,t.next=5,n.present();case 5:i="../rest/authenticate",null!==e&&(i+=e),this.authService.authFailed=!1,this.loginForm.invalid?(n.dismiss(),this.notificationService.error("lang.requiredLoginPassword")):this.http.post(i,{login:this.loginForm.get("login").value,password:this.loginForm.get("password").value},{observe:"response"}).pipe(Mw(function(e){r.loading=!1,r.showForm=!1,r.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),r.authService.setUser({}),r.authService.getCachedUrl()?(r.router.navigateByUrl(r.authService.getCachedUrl()),r.authService.cleanCachedUrl()):r.router.navigate(["/home"]),n.dismiss()}),yw(function(e){return r.loading=!1,r.authService.authFailed=!0,401===e.status&&-1===["kerberos","x509","azure_saml"].indexOf(r.authService.authMode)?(r.notificationService.error("lang.wrongLoginPassword"),n.dismiss()):"azure_saml"===r.authService.authMode&&"Authentication Failed : not logged"===e.error.errors?(n.dismiss(),window.location.href=e.error.authUri):(n.dismiss(),r.notificationService.handleErrors(e)),nb(!1)})).subscribe();case 7:case"end":return t.stop()}},t,this)}))}},{key:"initConnection",value:function(){if(["kerberos","x509","azure_saml"].indexOf(this.authService.authMode)>-1)this.loginForm.disable(),this.loginForm.setValidators(null),this.onSubmit();else if(["cas"].indexOf(this.authService.authMode)>-1)if(this.loginForm.disable(),this.loginForm.setValidators(null),null!=this.authService.casToken){var e=this.authService.casToken;this.authService.casToken=null,this.onSubmit("?"+e)}else window.location.href=this.authService.authUri}},{key:"loadCommitInformation",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/commitInformation").pipe(Mw(function(n){e.commitHash=n.hash,t(!0)}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()})}}]),e}()).\u0275fac=function(e){return new(e||n1)(Ps(Tb),Ps(h_),Ps(tO),Ps($P),Ps(WP),Ps(KF),Ps(tb),Ps(BE),Ps(zP),Ps(RE))},n1.\u0275cmp=Ft({type:n1,selectors:[["ng-component"]],decls:28,vars:19,consts:[[1,"login-content"],["svgIcon","maarchLogo",1,"maarchLogo"],[2,"width","400px","position","absolute","left","50%","top","50%","transform","translate(-50%,-50%)"],[3,"formGroup","ngSubmit"],["position","floating"],["formControlName","login","type","text",3,"keyup.enter"],["name","password","matInput","","type","password","formControlName","password",3,"keyup.enter"],[1,"connection-type"],["routerLink","/forgot-password","class","forgot-password",4,"ngIf"],["href","","class","forgot-password",4,"ngIf"],["type","submit","expand","block",3,"disabled"],[1,"version-info"],["style","color: white","target","blank",3,"href",4,"ngIf"],["routerLink","/forgot-password",1,"forgot-password"],["href","",1,"forgot-password"],["target","blank",2,"color","white",3,"href"]],template:function(e,t){1&e&&(Is(0,"ion-content",0),Ms(1,"mat-icon",1),Is(2,"ion-card",2),Is(3,"ion-card-content"),Is(4,"form",3),js("ngSubmit",function(){return t.onSubmit()}),Is(5,"ion-item"),Is(6,"ion-label",4),bl(7),$u(8,"translate"),Ts(),Is(9,"ion-input",5),js("keyup.enter",function(){return t.onSubmit()}),Ts(),Ts(),Is(10,"ion-item"),Is(11,"ion-label",4),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",6),js("keyup.enter",function(){return t.onSubmit()}),Ts(),Ts(),Is(15,"div",7),Ss(16,K0,3,3,"a",8),Ss(17,Q0,3,3,"a",9),Ss(18,X0,3,3,"a",9),Ss(19,J0,3,3,"a",9),Ss(20,$0,3,3,"a",9),Ts(),Is(21,"ion-button",10),bl(22),$u(23,"translate"),Ts(),Ts(),Ts(),Ts(),Is(24,"ion-note",11),bl(25),Ss(26,e1,3,5,"a",12),bl(27),Ts(),Ts()),2&e&&(Yo(4),Os("formGroup",t.loginForm),Yo(3),wl(ec(8,13,"lang.login")),Yo(5),wl(ec(13,15,"lang.password")),Yo(4),Os("ngIf","default"===t.authService.authMode),Yo(1),Os("ngIf","ldap"===t.authService.authMode),Yo(1),Os("ngIf","kerberos"===t.authService.authMode),Yo(1),Os("ngIf","x509"===t.authService.authMode),Yo(1),Os("ngIf","cas"===t.authService.authMode),Yo(1),Os("disabled",t.loginForm.invalid||t.loading),Yo(1),kl(" ",ec(23,17,"lang.connect")," "),Yo(3),kl(" Maarch Parapheur ",t.environment.VERSION," "),Yo(1),Os("ngIf",null!==t.commitHash),Yo(1),kl(" Powered by ",t.environment.AUTHOR," "))},directives:[pS,_N,sS,lS,yy,Fm,Ay,ES,IS,SS,SA,Lm,Sy,jh,oS,FS,p_,CE],pipes:[jP],styles:[".version-info[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;top:10%;left:50%;transform:translateX(-50%);width:250px;height:auto;padding-bottom:10px}.login-content[_ngcontent-%COMP%]{--background:var(--ion-color-primary)}.forgot-password[_ngcontent-%COMP%]{display:block;text-align:right}.connection-type[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),n1),r1=((t1=function(){function e(t,n,i,r,o){Z(this,e),this.router=t,this.http=n,this.notificationService=o,this.loadingForm=!1,this.loading=!1,this.newLogin={login:"",password:""},this.labelButton="lang.send",this.appVersion="",this.appAuthor="",i.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg"))}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"generateLink",value:function(){var e=this;this.labelButton="lang.generation",this.loading=!0,this.http.post("../rest/password",{login:this.newLogin.login}).pipe(Lw(function(){e.labelButton="lang.send",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.requestSentByEmail"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}}]),e}()).\u0275fac=function(e){return new(e||t1)(Ps(h_),Ps(Tb),Ps(uN),Ps(pp),Ps(WP))},t1.\u0275cmp=Ft({type:t1,selectors:[["ng-component"]],decls:28,vars:15,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","floating"],["name","login","matInput","","type","text","oninput","this.value = this.value.toLowerCase()",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content",null,3),Is(9,"form",4,5),js("ngSubmit",function(){return t.generateLink()}),Is(11,"ion-grid"),Is(12,"ion-row"),Is(13,"ion-col",6),Is(14,"ion-card",7),Ms(15,"ion-card-content",8),$u(16,"translate"),Ts(),Is(17,"ion-item"),Is(18,"ion-label",9),bl(19),$u(20,"translate"),Ts(),Is(21,"ion-input",10),js("ngModelChange",function(e){return t.newLogin.login=e}),Ts(),Ts(),Ts(),Ts(),Ts(),Is(22,"ion-item",11),Is(23,"div",12),Is(24,"ion-button",13),Is(25,"ion-label",14),bl(26),$u(27,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,7,"lang.forgotPassword")),Yo(10),Os("innerHTML",ec(16,9,"lang.afterClickingSendLinkChangePassword"),Zr),Yo(4),kl("",ec(20,11,"lang.enterLogin")," *"),Yo(2),Os("ngModel",t.newLogin.login),Yo(3),Os("disabled",""==t.newLogin.login||t.loading),Yo(2),wl(ec(27,13,t.labelButton)))},directives:[kS,tE,aS,iS,AE,$S,pS,yy,Fm,py,wS,US,fS,sS,lS,ES,IS,SS,SA,Lm,my,oS],pipes:[jP],styles:[".login-content[_ngcontent-%COMP%]{background-color:#135f7f;height:100vh;width:100vw;display:flex;flex-direction:column;justify-content:center;align-items:center}.login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-200px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}"]}),t1);function o1(e,t){if(1&e&&(Is(0,"ion-note",22),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs();Yo(1),kl(" ",ec(2,1,n.handlePassword.errorMsg),"")}}function a1(e,t){1&e&&(Is(0,"ion-note",23),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.samePassword"),""))}function s1(e,t){1&e&&(Is(0,"ion-note",22),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.passwordNotMatch"),""))}var l1,u1,c1=((u1=function(){function e(t,n,i,r,o,a,s,l){var u=this;Z(this,e),this.translate=t,this.router=n,this.route=i,this.http=r,this.notificationService=s,this.menu=l,this.loadingForm=!1,this.loading=!1,this.token="",this.password={newPassword:"",passwordConfirmation:""},this.labelButton="lang.update",this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.handlePassword={error:!1,errorMsg:""},this.ruleText="",this.otherRuleText="",o.addSvgIcon("maarchLogo",a.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.route.queryParams.subscribe(function(e){u.token=e.token})}return Y(e,[{key:"ngOnInit",value:function(){this.getPassRules()}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!1,"left-menu"),this.menu.enable(!1,"right-menu")}},{key:"updatePassword",value:function(){var e=this;this.labelButton="lang.sending",this.loading=!0,this.http.put("../rest/password",{token:this.token,password:this.password.newPassword}).pipe(Lw(function(){e.labelButton="lang.update",e.loading=!1})).subscribe(function(t){e.loadingForm=!0,e.notificationService.success("lang.passwordChanged"),e.router.navigate(["/login"])},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"allowValidate",value:function(){return!(!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}}]),e}()).\u0275fac=function(e){return new(e||u1)(Ps(zP),Ps(h_),Ps(Uk),Ps(Tb),Ps(uN),Ps(pp),Ps(WP),Ps(RE))},u1.\u0275cmp=Ft({type:u1,selectors:[["ng-component"]],decls:47,vars:35,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],["id","passForm",2,"display","contents",3,"ngSubmit"],["passForm","ngForm"],["offset","3","size","6"],[1,"info"],[3,"innerHTML"],["color","secondary","position","stacked"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","medium","routerLink","/login"],["color","danger"],["color","success"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content",null,3),Is(9,"form",4,5),js("ngSubmit",function(){return t.updatePassword()}),Is(11,"ion-grid"),Is(12,"ion-row"),Is(13,"ion-col",6),Is(14,"ion-card",7),Ms(15,"ion-card-content",8),$u(16,"translate"),Ts(),Is(17,"ion-item"),Is(18,"ion-label",9),bl(19),$u(20,"translate"),Ts(),Is(21,"ion-input",10),js("ngModelChange",function(e){return t.password.newPassword=e})("keyup",function(){return t.checkPasswordValidity(t.password.newPassword)}),$u(22,"translate"),Ts(),Is(23,"ion-button",11),js("click",function(){return t.hideNewPassword=!t.hideNewPassword}),Ms(24,"ion-icon",12),Ts(),Ss(25,o1,3,3,"ion-note",13),Ts(),Is(26,"ion-item"),Is(27,"ion-label",9),bl(28),$u(29,"translate"),Ts(),Is(30,"ion-input",14),js("ngModelChange",function(e){return t.password.passwordConfirmation=e}),$u(31,"translate"),Ts(),Is(32,"ion-button",11),js("click",function(){return t.hideNewPasswordConfirm=!t.hideNewPasswordConfirm}),Ms(33,"ion-icon",12),Ts(),Ts(),Is(34,"ion-item",15),Ss(35,a1,3,3,"ion-note",16),Ss(36,s1,3,3,"ion-note",13),Ts(),Ts(),Ts(),Ts(),Is(37,"ion-item",17),Is(38,"div",18),Is(39,"ion-button",19),Is(40,"ion-label",20),bl(41),$u(42,"translate"),Ts(),Ts(),Is(43,"ion-button",21),Is(44,"ion-label",20),bl(45),$u(46,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,19,"lang.newPassword")),Yo(10),Os("innerHTML",ec(16,21,"lang.logInOncePasswordChanged"),Zr),Yo(4),wl(ec(20,23,"lang.newPassword")),Yo(2),Qs("placeholder",ec(22,25,"lang.newPassword")),Os("ngModel",t.password.newPassword)("type",t.hideNewPassword?"password":"text"),Yo(3),Os("name",t.hideNewPassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",t.handlePassword.error),Yo(3),kl("",ec(29,27,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(31,29,"lang.passwordConfirmation")),Os("ngModel",t.password.passwordConfirmation)("type",t.hideNewPasswordConfirm?"password":"text"),Yo(3),Os("name",t.hideNewPasswordConfirm?"eye-outline":"eye-off-outline"),Yo(2),Os("ngIf",t.password.passwordConfirmation===t.password.newPassword&&t.password.newPassword.length>0&&t.password.passwordConfirmation.length>0),Yo(1),Os("ngIf",t.password.passwordConfirmation!==t.password.newPassword),Yo(3),Os("disabled",t.allowValidate()||t.loading),Yo(2),wl(ec(42,31,t.labelButton)),Yo(4),wl(ec(46,33,"lang.cancel")))},directives:[kS,tE,aS,iS,AE,$S,pS,yy,Fm,py,wS,US,fS,sS,lS,ES,IS,SS,SA,Lm,my,oS,xS,jh,CE,f_,FS],pipes:[jP],styles:[".login-form[_ngcontent-%COMP%]{max-width:600px;text-align:center}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.maarchLogo[_ngcontent-%COMP%]{position:absolute;transition:all 1s ease-in-out;width:250px;height:auto;padding-bottom:10px;transform:translateY(-230px)}footer[_ngcontent-%COMP%]{color:#fff;position:absolute;bottom:5px;font-size:10px;opacity:.5}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}"]}),u1),d1=((l1=function(){function e(t,n,i,r){Z(this,e),this.http=t,this.translate=n,this.notify=i,this.signaturesService=r,this.loading=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0},lockTime:{enabled:!1,value:0},lockAttempts:{enabled:!1,value:0}},this.passwordRulesClone={},this.passwordRulesList=[]}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.http.get("../rest/passwordRules").subscribe(function(t){e.passwordRulesList=t.rules,t.rules.forEach(function(t){e.passwordRules[t.label].enabled=t.enabled,e.passwordRules[t.label].value=t.value,e.passwordRules[t.label].label=e.translate.instant("lang.password_"+t.label+"Required"),e.passwordRules[t.label].id=t.label,e.loading=!1}),e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules))},function(t){e.notify.error(t.error.errors)})}},{key:"cancelModification",value:function(){var e=this;this.passwordRules=JSON.parse(JSON.stringify(this.passwordRulesClone)),this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value})}},{key:"checkModif",value:function(){return JSON.stringify(this.passwordRules)===JSON.stringify(this.passwordRulesClone)}},{key:"disabledForm",value:function(){return!(this.passwordRules.lockTime.enabled||this.passwordRules.minLength.enabled||this.passwordRules.lockAttempts.enabled||this.passwordRules.renewal.enabled||this.passwordRules.historyLastUse.enabled)}},{key:"toggleRule",value:function(e){var t=this;this.passwordRulesList.forEach(function(n){"lockAttempts"!==e.id||"lockTime"!==n.label&&"lockAttempts"!==n.label?e.id===n.label&&(n.enabled=e.enabled):(n.enabled=e.enabled,t.passwordRules.lockTime.enabled=e.enabled)})}},{key:"onSubmit",value:function(){var e=this;this.passwordRulesList.forEach(function(t){t.enabled=e.passwordRules[t.label].enabled,t.value=e.passwordRules[t.label].value}),this.http.put("../rest/passwordRules",{rules:this.passwordRulesList}).subscribe(function(){e.passwordRulesClone=JSON.parse(JSON.stringify(e.passwordRules)),e.notify.success("lang.passwordRulesUpdated")},function(t){e.notify.error(t.error.errors)})}}]),e}()).\u0275fac=function(e){return new(e||l1)(Ps(Tb),Ps(zP),Ps(WP),Ps($P))},l1.\u0275cmp=Ft({type:l1,selectors:[["ng-component"]],decls:69,vars:49,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","passwordForm",2,"display","contents",3,"ngSubmit"],["passwordForm","ngForm"],["color","secondary"],["slot","start","name","complexityUpper",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexityNumber",3,"ngModel","checked","ngModelChange"],["slot","start","name","complexitySpecial",3,"ngModel","checked","ngModelChange"],["slot","start","name","minLengthToggle",3,"ngModel","checked","ngModelChange"],["color","secondary","position","floating"],["name","minLength","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","end"],["slot","start","name","lockAttemptsToggle",3,"ngModel","checked","ngModelChange"],["name","lockAttempts","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["name","lockTime","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","renewalToggle",3,"ngModel","checked","ngModelChange"],["name","renewal","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["slot","start","name","historyLastUseToggle",3,"ngModel","checked","ngModelChange"],["name","historyLastUse","min","1","pattern","^[1-9][0-9]*",3,"disabled","ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Is(8,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(10,"ion-content"),Is(11,"ion-row"),Is(12,"ion-col"),Is(13,"ion-item"),Is(14,"ion-label",6),bl(15),Ts(),Is(16,"ion-toggle",7),js("ngModelChange",function(e){return t.passwordRules.complexityUpper.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityUpper)}),Ts(),Ts(),Ts(),Is(17,"ion-col"),Is(18,"ion-item"),Is(19,"ion-label",6),bl(20),Ts(),Is(21,"ion-toggle",8),js("ngModelChange",function(e){return t.passwordRules.complexityNumber.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexityNumber)}),Ts(),Ts(),Ts(),Is(22,"ion-col"),Is(23,"ion-item"),Is(24,"ion-label",6),bl(25),Ts(),Is(26,"ion-toggle",9),js("ngModelChange",function(e){return t.passwordRules.complexitySpecial.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.complexitySpecial)}),Ts(),Ts(),Ts(),Ts(),Is(27,"ion-item"),Is(28,"ion-toggle",10),js("ngModelChange",function(e){return t.passwordRules.minLength.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.minLength)}),Ts(),Is(29,"ion-label",11),bl(30),Ts(),Is(31,"ion-input",12),js("ngModelChange",function(e){return t.passwordRules.minLength.value=e}),Ts(),Is(32,"ion-note",13),bl(33),$u(34,"translate"),Ts(),Ts(),Is(35,"ion-row"),Is(36,"ion-col"),Is(37,"ion-item"),Is(38,"ion-toggle",14),js("ngModelChange",function(e){return t.passwordRules.lockAttempts.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.lockAttempts)}),Ts(),Is(39,"ion-label",11),bl(40),Ts(),Is(41,"ion-input",15),js("ngModelChange",function(e){return t.passwordRules.lockAttempts.value=e}),Ts(),Ts(),Ts(),Is(42,"ion-col"),Is(43,"ion-item"),Is(44,"ion-label",11),bl(45),Ts(),Is(46,"ion-input",16),js("ngModelChange",function(e){return t.passwordRules.lockTime.value=e}),Ts(),Is(47,"ion-note",13),bl(48),$u(49,"translate"),Ts(),Ts(),Ts(),Ts(),Is(50,"ion-item"),Is(51,"ion-toggle",17),js("ngModelChange",function(e){return t.passwordRules.renewal.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.renewal)}),Ts(),Is(52,"ion-label",11),bl(53),Ts(),Is(54,"ion-input",18),js("ngModelChange",function(e){return t.passwordRules.renewal.value=e}),Ts(),Is(55,"ion-note",13),bl(56),$u(57,"translate"),Ts(),Ts(),Is(58,"ion-item"),Is(59,"ion-toggle",19),js("ngModelChange",function(e){return t.passwordRules.historyLastUse.enabled=e})("ngModelChange",function(){return t.toggleRule(t.passwordRules.historyLastUse)}),Ts(),Is(60,"ion-label",11),bl(61),Ts(),Is(62,"ion-input",20),js("ngModelChange",function(e){return t.passwordRules.historyLastUse.value=e}),Ts(),Ts(),Is(63,"ion-item",21),Is(64,"div",22),Is(65,"ion-button",23),Is(66,"ion-label",24),bl(67),$u(68,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(9);Os("translucent",!0),Yo(6),wl(ec(7,39,"lang.manage_password_rules")),Yo(9),wl(t.passwordRules.complexityUpper.label),Yo(1),Os("ngModel",t.passwordRules.complexityUpper.enabled)("checked",t.passwordRules.complexityUpper.enabled),Yo(4),wl(t.passwordRules.complexityNumber.label),Yo(1),Os("ngModel",t.passwordRules.complexityNumber.enabled)("checked",t.passwordRules.complexityNumber.enabled),Yo(4),wl(t.passwordRules.complexitySpecial.label),Yo(1),Os("ngModel",t.passwordRules.complexitySpecial.enabled)("checked",t.passwordRules.complexitySpecial.enabled),Yo(2),Os("ngModel",t.passwordRules.minLength.enabled)("checked",t.passwordRules.minLength.enabled),Yo(2),wl(t.passwordRules.minLength.label),Yo(1),Os("disabled",!t.passwordRules.minLength.enabled)("ngModel",t.passwordRules.minLength.value),Yo(2),wl(ec(34,41,"lang.chars")),Yo(5),Os("ngModel",t.passwordRules.lockAttempts.enabled)("checked",t.passwordRules.lockAttempts.enabled),Yo(2),wl(t.passwordRules.lockAttempts.label),Yo(1),Os("disabled",!t.passwordRules.lockAttempts.enabled)("ngModel",t.passwordRules.lockAttempts.value),Yo(4),wl(t.passwordRules.lockTime.label),Yo(1),Os("disabled",!t.passwordRules.lockTime.enabled)("ngModel",t.passwordRules.lockTime.value),Yo(2),wl(ec(49,43,"lang.minutes")),Yo(3),Os("ngModel",t.passwordRules.renewal.enabled)("checked",t.passwordRules.renewal.enabled),Yo(2),wl(t.passwordRules.renewal.label),Yo(1),Os("disabled",!t.passwordRules.renewal.enabled)("ngModel",t.passwordRules.renewal.value),Yo(2),wl(ec(57,45,"lang.days")),Yo(3),Os("ngModel",t.passwordRules.historyLastUse.enabled)("checked",t.passwordRules.historyLastUse.enabled),Yo(2),wl(t.passwordRules.historyLastUse.label),Yo(1),Os("disabled",!t.passwordRules.historyLastUse.enabled)("ngModel",t.passwordRules.historyLastUse.value),Yo(3),Os("disabled",!n.valid&&!t.disabledForm()||t.checkModif()),Yo(2),wl(ec(68,47,"lang.validate"))}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,US,fS,ES,IS,eE,xA,Lm,my,SS,SA,Xy,FS,oS],pipes:[jP],encapsulation:2}),l1);function h1(e,t){1&e&&(Is(0,"ion-note",17),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.requiredField")))}function f1(e,t){1&e&&(Is(0,"ion-item",26),Ms(1,"ion-icon",27),Is(2,"ion-label",28),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.passwordValid")))}function p1(e,t){1&e&&(Is(0,"ion-item",26),Ms(1,"ion-icon",27),Is(2,"ion-label",28),bl(3),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.passwordMatch")))}function g1(e,t){1&e&&Ms(0,"ion-item",29),2&e&&Os("innerHTML",qs().otherRuleText,Zr)}var v1,m1=((v1=function(){function e(t,n,i,r,o,a,s){Z(this,e),this.http=t,this.notify=n,this._formBuilder=i,this.translate=r,this.signaturesService=o,this.authService=a,this.router=s,this.config={},this.loading=!1,this.user={},this.ruleText="",this.hidePassword=!0,this.validPassword=!1,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.user=JSON.parse(atob(this.authService.getToken().split(".")[1])).user}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[],r=[];n.push(cm.required),t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&(n.push(cm.minLength(e.passwordRules.minLength.value)),i.push(t.value+" "+e.translate.instant("lang.password_"+t.label)))):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[A-Z]"),{complexityUpper:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[0-9]"),{complexityNumber:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&(n.push(e.regexValidator(new RegExp("[^A-Za-z0-9]"),{complexitySpecial:""})),i.push(e.translate.instant("lang.password_"+t.label)))):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_"+t.label)+" <b>"+t.value+" "+e.translate.instant("lang.days")+"</b>. "+e.translate.instant("lang.password2_"+t.label)+".")):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&r.push(e.translate.instant("lang.password_historyLastUseDesc")+" <b>"+t.value+"</b> "+e.translate.instant("lang.password_historyLastUseDesc2")+"."))}),e.ruleText=i.join(", "),e.otherRuleText=r.join("<br/>"),e.firstFormGroup.controls.newPasswordCtrl.setValidators(n)},function(t){e.notify.error(t.error.errors)}),this.firstFormGroup=this._formBuilder.group({newPasswordCtrl:[""],retypePasswordCtrl:["",cm.compose([cm.required])],currentPasswordCtrl:["",cm.compose([cm.required])]},{validator:this.matchValidator})}},{key:"regexValidator",value:function(e,t){return function(n){return n.value?e.test(n.value)?null:t:null}}},{key:"matchValidator",value:function(e){return e.controls.newPasswordCtrl.value!==e.controls.retypePasswordCtrl.value&&(e.controls.retypePasswordCtrl.setErrors({mismatch:!0}),{mismatch:!0})}},{key:"getErrorMessage",value:function(){return this.firstFormGroup.controls.retypePasswordCtrl.setErrors(this.firstFormGroup.controls.newPasswordCtrl.value!==this.firstFormGroup.controls.retypePasswordCtrl.value?{mismatch:!0}:null),this.firstFormGroup.controls.newPasswordCtrl.hasError("required")?this.translate.instant("lang.requiredField")+" !":this.firstFormGroup.controls.newPasswordCtrl.hasError("minlength")&&this.passwordRules.minLength.enabled?this.passwordRules.minLength.value+" "+this.translate.instant("lang.password_minLength")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityUpper&&this.passwordRules.complexityUpper.enabled?this.translate.instant("lang.password_complexityUpper")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexityNumber&&this.passwordRules.complexityNumber.enabled?this.translate.instant("lang.password_complexityNumber")+" !":null!=this.firstFormGroup.controls.newPasswordCtrl.errors&&void 0!==this.firstFormGroup.controls.newPasswordCtrl.errors.complexitySpecial&&this.passwordRules.complexitySpecial.enabled?this.translate.instant("lang.password_complexitySpecial")+" !":(this.firstFormGroup.controls.newPasswordCtrl.setErrors(null),this.validPassword=!0,"")}},{key:"onSubmit",value:function(){var e=this;this.passwordModel.currentPassword=this.firstFormGroup.controls.currentPasswordCtrl.value,this.passwordModel.newPassword=this.firstFormGroup.controls.newPasswordCtrl.value,this.passwordModel.passwordConfirmation=this.firstFormGroup.controls.retypePasswordCtrl.value,this.http.put("../rest/users/"+this.user.id+"/password",this.passwordModel).subscribe(function(){e.notify.success(e.translate.instant("lang.passwordChanged")),void 0===e.authService.user.picture&&e.http.get("../rest/users/"+e.authService.user.id+"/picture").subscribe(function(t){e.authService.user.picture=t.picture}),e.router.navigate(["/home"])},function(t){e.notify.handleErrors(t)})}},{key:"logout",value:function(){this.authService.logout()}}]),e}()).\u0275fac=function(e){return new(e||v1)(Ps(Tb),Ps(WP),Ps(tb),Ps(zP),Ps($P),Ps(tO),Ps(h_))},v1.\u0275cmp=Ft({type:v1,selectors:[["ng-component"]],decls:68,vars:53,consts:[[3,"translucent"],["color","primary"],["slot","start"],["mainContent",""],[2,"display","contents",3,"formGroup","ngSubmit"],["offset","3","size","6"],[1,"info"],["color","secondary","position","stacked"],["formControlName","currentPasswordCtrl","required","",3,"placeholder","type"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["color","danger",4,"ngIf"],["lines","full"],["color","dark"],["formControlName","newPasswordCtrl","required","",3,"placeholder","type"],["inputPasswd",""],["lines","none",4,"ngIf"],["color","danger"],["required","","formControlName","retypePasswordCtrl",3,"placeholder","type"],["inputPasswd2",""],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"],["type","button","shape","round","size","large","fill","outline","color","default",3,"click"],["color","warning","class","alert-warning","role","alert",3,"innerHTML",4,"ngIf"],["lines","none"],["slot","start","color","success","name","checkmark-outline"],["color","success"],["color","warning","role","alert",1,"alert-warning",3,"innerHTML"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Ms(2,"ion-buttons",2),Is(3,"ion-title"),bl(4),$u(5,"translate"),Ts(),Ts(),Ts(),Is(6,"ion-content",null,3),Is(8,"form",4),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-grid"),Is(10,"ion-row"),Is(11,"ion-col",5),Is(12,"ion-card",6),Is(13,"ion-card-content"),bl(14),$u(15,"translate"),Is(16,"b"),bl(17),Ts(),bl(18),$u(19,"translate"),Ts(),Ts(),Is(20,"ion-item"),Is(21,"ion-label",7),bl(22),$u(23,"translate"),Ts(),Ms(24,"ion-input",8),$u(25,"translate"),Is(26,"ion-button",9),js("click",function(){return t.hidePassword=!t.hidePassword}),Ms(27,"ion-icon",10),Ts(),Ss(28,h1,3,3,"ion-note",11),Ts(),Is(29,"ion-list-header",12),Is(30,"ion-label",13),bl(31),Ts(),Ts(),Is(32,"ion-item"),Is(33,"ion-label",7),bl(34),$u(35,"translate"),Ts(),Ms(36,"ion-input",14,15),$u(38,"translate"),Is(39,"ion-button",9),js("click",function(){return t.hidePassword=!t.hidePassword}),Ms(40,"ion-icon",10),Ts(),Ss(41,f1,5,3,"ion-item",16),Is(42,"ion-note",17),bl(43),Ts(),Ts(),Is(44,"ion-item"),Is(45,"ion-label",7),bl(46),$u(47,"translate"),Ts(),Ms(48,"ion-input",18,19),$u(50,"translate"),Is(51,"ion-button",9),js("click",function(){return t.hidePassword=!t.hidePassword}),Ms(52,"ion-icon",10),Ts(),Ss(53,p1,5,3,"ion-item",16),Is(54,"ion-note",17),bl(55),$u(56,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Is(57,"ion-item",20),Is(58,"div",21),Is(59,"ion-button",22),Is(60,"ion-label",23),bl(61),$u(62,"translate"),Ts(),Ts(),Is(63,"ion-button",24),js("click",function(){return t.logout()}),Is(64,"ion-label",23),bl(65),$u(66,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ss(67,g1,1,1,"ion-item",25),Ts()),2&e&&(Os("translucent",!0),Yo(4),wl(ec(5,29,"lang.passwordModification")),Yo(4),Os("formGroup",t.firstFormGroup),Yo(6),kl(" ",ec(15,31,"lang.hello")," "),Yo(3),xl(" ",t.user.firstname," ",t.user.lastname,""),Yo(1),kl(", ",ec(19,33,"lang.changePasswordInfo"),". "),Yo(4),wl(ec(23,35,"lang.typeCurrentPassword")),Yo(2),Qs("placeholder",ec(25,37,"lang.typeCurrentPassword")),Os("type",t.hidePassword?"password":"text"),Yo(3),Os("name",t.hidePassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",t.firstFormGroup.controls.currentPasswordCtrl.hasError("required")),Yo(3),wl(t.ruleText),Yo(3),kl("",ec(35,39,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(38,41,"lang.passwordConfirmation")),Os("type",t.hidePassword?"password":"text"),Yo(4),Os("name",t.hidePassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",t.validPassword),Yo(2),wl(t.getErrorMessage()),Yo(3),kl("",ec(47,43,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(50,45,"lang.passwordConfirmation")),Os("type",t.hidePassword?"password":"text"),Yo(4),Os("name",t.hidePassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",!t.firstFormGroup.controls.retypePasswordCtrl.hasError("mismatch")&&""!=t.firstFormGroup.controls.retypePasswordCtrl.value),Yo(2),wl(ec(56,47,"lang.passwordNotMatch")),Yo(4),Os("disabled",!t.firstFormGroup.valid),Yo(2),wl(ec(62,49,"lang.validate")),Yo(4),wl(ec(66,51,"lang.logout")),Yo(2),Os("ngIf",t.passwordRules.renewal.enabled||t.passwordRules.historyLastUse.enabled))},directives:[kS,tE,aS,$S,pS,yy,Fm,Ay,wS,US,fS,sS,lS,ES,IS,SS,SA,Lm,Sy,Yy,oS,xS,jh,MS,FS],pipes:[jP],styles:[".alert-warning[_ngcontent-%COMP%]{text-align:center;width:100%;margin:0;color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc;padding-top:15px;padding-bottom:15px}.alert-warning[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{left:0;bottom:0;position:absolute}.container[_ngcontent-%COMP%]{margin-top:-63px;display:flex;flex-direction:column;top:64px;right:0;height:100%}"]}),v1),y1=S("b0Xh"),b1=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},w1=["passwordContent"];function k1(e,t){if(1&e&&(Is(0,"ion-note",37),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(3);Yo(1),kl(" ",ec(2,1,n.handlePassword.errorMsg),"")}}function x1(e,t){if(1&e){var n=Fs();Is(0,"div"),Is(1,"ion-list-header",28),Is(2,"ion-label",1),bl(3),$u(4,"translate"),Ts(),Ts(),Is(5,"ion-item"),Is(6,"ion-label",31),bl(7),$u(8,"translate"),Ts(),Is(9,"ion-input",32),js("ngModelChange",function(e){return En(n),qs(2).password.currentPassword=e}),$u(10,"translate"),Ts(),Is(11,"ion-button",33),js("click",function(){En(n);var e=qs(2);return e.hideCurrentPassword=!e.hideCurrentPassword}),Ms(12,"ion-icon",34),Ts(),Ts(),Is(13,"ion-item"),Is(14,"ion-label",31),bl(15),$u(16,"translate"),Ts(),Is(17,"ion-input",35),js("ngModelChange",function(e){return En(n),qs(2).password.newPassword=e})("keyup",function(){En(n);var e=qs(2);return e.checkPasswordValidity(e.password.newPassword)}),$u(18,"translate"),Ts(),Is(19,"ion-button",33),js("click",function(){En(n);var e=qs(2);return e.hideNewPassword=!e.hideNewPassword}),Ms(20,"ion-icon",34),Ts(),Ss(21,k1,3,3,"ion-note",30),Ts(),Is(22,"ion-item"),Is(23,"ion-label",31),bl(24),$u(25,"translate"),Ts(),Is(26,"ion-input",36),js("ngModelChange",function(e){return En(n),qs(2).password.passwordConfirmation=e}),$u(27,"translate"),Ts(),Is(28,"ion-button",33),js("click",function(){En(n);var e=qs(2);return e.hideNewPasswordConfirm=!e.hideNewPasswordConfirm}),Ms(29,"ion-icon",34),Ts(),Ts(),Ts()}if(2&e){var i=qs(2);Yo(3),wl(ec(4,17,"lang.changePassword")),Yo(4),wl(ec(8,19,"lang.currentPassword")),Yo(2),Qs("placeholder",ec(10,21,"lang.currentPassword")),Os("ngModel",i.password.currentPassword)("type",i.hideCurrentPassword?"password":"text"),Yo(3),Os("name",i.hideCurrentPassword?"eye-outline":"eye-off-outline"),Yo(3),wl(ec(16,23,"lang.newPassword")),Yo(2),Qs("placeholder",ec(18,25,"lang.newPassword")),Os("ngModel",i.password.newPassword)("type",i.hideNewPassword?"password":"text"),Yo(3),Os("name",i.hideNewPassword?"eye-outline":"eye-off-outline"),Yo(1),Os("ngIf",i.handlePassword.error),Yo(3),kl("",ec(25,27,"lang.passwordConfirmation")," "),Yo(2),Qs("placeholder",ec(27,29,"lang.passwordConfirmation")),Os("ngModel",i.password.passwordConfirmation)("type",i.hideNewPasswordConfirm?"password":"text"),Yo(3),Os("name",i.hideNewPasswordConfirm?"eye-outline":"eye-off-outline")}}function _1(e,t){1&e&&(Is(0,"ion-note",38),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.samePassword"),""))}function A1(e,t){1&e&&(Is(0,"ion-note",37),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.passwordNotMatch"),""))}function C1(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-list",18),Is(2,"ion-item"),Is(3,"ion-avatar",19),js("click",function(){return En(n),Es(10).click()}),Ms(4,"img",20),Ts(),Is(5,"ion-label",21),bl(6),$u(7,"translate"),Ts(),Is(8,"ion-input",22),js("ngModelChange",function(e){return En(n),qs().profileInfo.login=e}),Ts(),Is(9,"input",23,24),js("change",function(e){return En(n),qs().handleFileInput(e.target.files)}),Ts(),Ts(),Is(11,"ion-item"),Is(12,"ion-label",21),bl(13),$u(14,"translate"),Ts(),Is(15,"ion-input",25),js("ngModelChange",function(e){return En(n),qs().profileInfo.email=e}),Ts(),Ts(),Is(16,"ion-item"),Is(17,"ion-label",21),bl(18),$u(19,"translate"),Ts(),Is(20,"ion-input",26),js("ngModelChange",function(e){return En(n),qs().profileInfo.firstname=e}),Ts(),Ts(),Is(21,"ion-item"),Is(22,"ion-label",21),bl(23),$u(24,"translate"),Ts(),Is(25,"ion-input",27),js("ngModelChange",function(e){return En(n),qs().profileInfo.lastname=e}),Ts(),Ts(),Ss(26,x1,30,31,"div",16),Is(27,"ion-item",28),Ss(28,_1,3,3,"ion-note",29),Ss(29,A1,3,3,"ion-note",30),Ts(),Ts(),Rs()}if(2&e){var i=qs();Yo(4),Os("src",i.avatarInfo.picture,Kr),Yo(2),wl(ec(7,19,"lang.login")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.login),Yo(5),wl(ec(14,21,"lang.email")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.email)("readonly","default"!==i.authService.authMode),Yo(3),wl(ec(19,23,"lang.firstname")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.firstname)("readonly","default"!==i.authService.authMode),Yo(3),wl(ec(24,25,"lang.lastname")),Yo(2),Os("maxlength",128)("ngModel",i.profileInfo.lastname)("readonly","default"!==i.authService.authMode),Yo(1),Os("ngIf","default"===i.authService.authMode),Yo(2),Os("ngIf",i.password.passwordConfirmation===i.password.newPassword&&i.password.newPassword.length>0&&i.password.passwordConfirmation.length>0),Yo(1),Os("ngIf",i.password.passwordConfirmation!==i.password.newPassword)}}function S1(e,t){if(1&e&&(Is(0,"ion-select-option",65),bl(1),$u(2,"translate"),Ts()),2&e){var n=t.$implicit;Os("value",n),Yo(1),wl(ec(2,2,"lang."+n))}}function E1(e,t){1&e&&(Ms(0,"ion-note",66),$u(1,"translate")),2&e&&Os("innerHTML",ec(1,1,"lang.freeModeInfo"),Zr)}function P1(e,t){1&e&&(Ms(0,"ion-note",66),$u(1,"translate")),2&e&&Os("innerHTML",ec(1,1,"lang.standardModeInfo"),Zr)}function O1(e,t){if(1&e&&(Is(0,"ion-select-option",65),bl(1),Ts()),2&e){var n=t.index;Os("value",n+1),Yo(1),kl("",n+1," ")}}var D1=function(e){return{value:e}};function I1(e,t){if(1&e&&(Ms(0,"ion-note",67),$u(1,"translate")),2&e){var n=qs(2);Os("innerHTML",tc(1,1,"lang.scalingDocWith",Zu(4,D1,n.signatureScaling)),Zr)}}function T1(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-list",18),Is(2,"ion-item"),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Is(6,"ion-toggle",39),js("ionChange",function(){En(n);var e=qs();return e.preferenceInfo.notifications=!e.preferenceInfo.notifications}),Ts(),Ts(),Is(7,"ion-list"),Is(8,"ion-item"),Is(9,"ion-label",40),bl(10),$u(11,"translate"),Ts(),Is(12,"ion-select",41),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.lang=e}),Ss(13,S1,3,4,"ion-select-option",42),Ts(),Ts(),Ts(),Is(14,"ion-list"),Is(15,"ion-item"),Is(16,"ion-label",40),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-select",43),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.writingMode=e}),Is(20,"ion-select-option",44),bl(21),$u(22,"translate"),Ts(),Is(23,"ion-select-option",45),bl(24),$u(25,"translate"),Ms(26,"i",46),Ts(),Ts(),Ss(27,E1,2,3,"ion-note",47),Ss(28,P1,2,3,"ion-note",47),Ts(),Ts(),Is(29,"ion-list"),Is(30,"ion-item"),Is(31,"ion-label",40),bl(32),$u(33,"translate"),Ts(),Is(34,"ion-select",48),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.writingSize=e})("ionChange",function(){return En(n),qs().drawSample()}),Ss(35,O1,2,2,"ion-select-option",42),Ts(),Is(36,"ion-note",2),Ms(37,"canvas",49),Ts(),Ts(),Ts(),Is(38,"ion-list"),Is(39,"ion-item"),Is(40,"ion-label",40),bl(41),$u(42,"translate"),Ts(),Is(43,"ion-select",50),js("ngModelChange",function(e){return En(n),qs().preferenceInfo.writingColor=e}),Is(44,"ion-select-option",51),bl(45),$u(46,"translate"),Ts(),Is(47,"ion-select-option",52),bl(48),$u(49,"translate"),Ts(),Is(50,"ion-select-option",53),bl(51),$u(52,"translate"),Ts(),Ts(),Is(53,"ion-note",2),Ms(54,"div",54),Ts(),Ts(),Ts(),Is(55,"ion-list"),Is(56,"ion-row"),Is(57,"iotn-item"),Is(58,"ion-label",55),bl(59),$u(60,"translate"),Ts(),Ts(),Ts(),Is(61,"ion-row"),Is(62,"ion-col",56),Is(63,"ion-item",57),Is(64,"ion-range",58),js("ngModelChange",function(e){return En(n),qs().signatureScaling=e}),Ms(65,"ion-icon",59),Ms(66,"ion-icon",60),Ts(),Ts(),Ss(67,I1,2,6,"ion-note",61),Ts(),Is(68,"ion-col",62),Is(69,"ion-item",63),Is(70,"ion-label"),bl(71),$u(72,"translate"),Ts(),Is(73,"ion-toggle",64),js("ionChange",function(){En(n);var e=qs();return e.originalSize=!e.originalSize}),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Rs()}if(2&e){var i=qs();Yo(4),wl(ec(5,27,"lang.receiveNotif")),Yo(2),Os("checked",i.preferenceInfo.notifications),Yo(4),wl(ec(11,29,"lang.language")),Yo(2),Os("ngModel",i.preferenceInfo.lang),Yo(1),Os("ngForOf",i.profileInfo.availableLanguages),Yo(4),kl("",ec(18,31,"lang.annotationMode")," "),Yo(2),Os("ngModel",i.preferenceInfo.writingMode),Yo(2),wl(ec(22,33,"lang.free")),Yo(3),kl("",ec(25,35,"lang.appleStylus")," "),Yo(3),Os("ngIf","stylus"===i.preferenceInfo.writingMode),Yo(1),Os("ngIf","direct"===i.preferenceInfo.writingMode),Yo(4),wl(ec(33,37,"lang.stylusWidh")),Yo(2),Os("ngModel",i.preferenceInfo.writingSize),Yo(1),Os("ngForOf",i.counter(10)),Yo(6),wl(ec(42,39,"lang.defaultColor")),Yo(2),Os("ngModel",i.preferenceInfo.writingColor),Yo(2),wl(ec(46,41,"lang.black")),Yo(3),wl(ec(49,43,"lang.blue")),Yo(3),wl(ec(52,45,"lang.red")),Yo(3),ol("background-color",i.preferenceInfo.writingColor),Yo(5),wl(ec(60,47,"lang.signatureScaling")),Yo(5),Os("disabled",i.originalSize)("ngModel",i.signatureScaling),Yo(3),Os("ngIf",!i.originalSize),Yo(4),wl(ec(72,49,"lang.originalSize")),Yo(2),Os("checked",i.originalSize)}}function M1(e,t){if(1&e){var n=Fs();Is(0,"ion-list"),Is(1,"ion-item"),Ms(2,"ion-input",68),Is(3,"ion-button",69),js("click",function(){return En(n),qs(2).deleteSubstitute()}),Ms(4,"ion-icon",70),Ts(),Ts(),Ts()}if(2&e){var i=qs(2);Yo(2),Os("value",i.authService.user.substituteUser)}}function B1(e,t){if(1&e){var n=Fs();Is(0,"ion-list"),Is(1,"ion-item"),Is(2,"ion-searchbar",71),js("ionChange",function(e){return En(n),qs(2).test(e)}),$u(3,"translate"),Ts(),Ts(),Ts()}2&e&&(Yo(2),Os("placeholder",ec(3,1,"lang.chooseSubstitute")))}function R1(e,t){if(1&e&&(Is(0,"ion-note",2),bl(1),Ts()),2&e){var n=qs().$implicit;Yo(1),wl(n.email)}}function L1(e,t){1&e&&(Is(0,"ion-note",76),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.delegatedUser")))}function F1(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-checkbox",73),js("ionChange",function(e){return En(n),qs(3).selectSubstitute(e.detail.value)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Ss(4,R1,2,1,"ion-note",74),Ss(5,L1,3,3,"ion-note",75),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("disabled",i.substitute)("value",i),Yo(2),xl("",i.firstname," ",i.lastname,""),Yo(1),Os("ngIf",!i.substitute),Yo(1),Os("ngIf",i.substitute)}}function N1(e,t){if(1&e&&(Is(0,"ion-list"),Ss(1,F1,6,6,"ion-item",72),Ts()),2&e){var n=qs(2);Yo(1),Os("ngForOf",n.userList)}}function V1(e,t){if(1&e){var n=Fs();Is(0,"button",80),js("click",function(){En(n);var e=t.index;return qs(3).toggleSignature(e)}),Ms(1,"img",81),Ts()}if(2&e){var i=t.$implicit,r=qs(3);al("selected",i.substituted),Yo(1),Os("src",r.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+i.encodedSignature),Kr)}}function z1(e,t){if(1&e&&(Bs(0),Is(1,"ion-item",28),Is(2,"ion-label",77),bl(3),$u(4,"translate"),Ts(),Ts(),Is(5,"div",78),Ss(6,V1,2,3,"button",79),Ts(),Rs()),2&e){var n=qs(2);Yo(3),kl(" ",ec(4,2,"lang.signSubstituted")," : "),Yo(3),Os("ngForOf",n.signaturesService.signaturesList)}}function j1(e,t){if(1&e&&(Bs(0),Ss(1,M1,5,1,"ion-list",16),Ss(2,B1,4,3,"ion-list",16),Ss(3,N1,2,1,"ion-list",16),Ss(4,z1,7,4,"ng-container",16),Rs()),2&e){var n=qs();Yo(1),Os("ngIf",null!==n.authService.user.substitute),Yo(1),Os("ngIf",null===n.authService.user.substitute),Yo(1),Os("ngIf",null===n.authService.user.substitute),Yo(1),Os("ngIf",null!=n.authService.user.substitute&&n.signaturesService.signaturesList.length>0)}}function H1(e,t){1&e&&(Bs(0),Ms(1,"app-signatures",82),Rs()),2&e&&(Yo(1),Os("target","profile"))}function U1(e,t){if(1&e){var n=Fs();Is(0,"ion-footer",83),Is(1,"ion-toolbar"),Is(2,"ion-buttons",84),Is(3,"ion-button",85),js("click",function(){return En(n),qs().submitProfile()}),Is(4,"ion-label"),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs(),r=Es(32);Yo(3),Os("disabled",i.allowValidate()||!r.form.valid),Yo(2),wl(ec(6,2,"lang.save"))}}var W1,G1=function(){return["info","pref"]},q1=((W1=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){Z(this,e),this.http=t,this.sanitizer=n,this.notificationService=i,this.signaturesService=r,this.authService=o,this.filtersService=a,this.modalController=s,this.renderer=l,this.translate=u,this.alertController=c,this.cookieService=d,this.router=h,this.currentTool="info",this.profileInfo={substitute:null,preferences:[]},this.preferenceInfo={},this.avatarInfo={picture:"",pictureOrientation:""},this.hideCurrentPassword=!0,this.hideNewPassword=!0,this.hideNewPasswordConfirm=!0,this.passwordRules={minLength:{enabled:!1,value:0},complexityUpper:{enabled:!1,value:0},complexityNumber:{enabled:!1,value:0},complexitySpecial:{enabled:!1,value:0},renewal:{enabled:!1,value:0},historyLastUse:{enabled:!1,value:0}},this.password={currentPassword:"",newPassword:"",passwordConfirmation:""},this.handlePassword={error:!1,errorMsg:""},this.usersList=[],this.ruleText="",this.otherRuleText="",this.disableState=!1,this.msgButton="lang.validate",this.loading=!1,this.slideOpts={initialSlide:0,speed:400},this.showHideContent=!1,this.userList=[],this.signatureScaling=25,this.originalSize=!1}return Y(e,[{key:"ngOnInit",value:function(){this.initProfileInfo(),this.getPassRules()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"test",value:function(e){var t=this;""===e.detail.value?this.userList=[]:e.detail.value.length>=3&&this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Mw(function(e){t.userList=e.filter(function(e){return e.id!==t.profileInfo.id})}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"initProfileInfo",value:function(){this.profileInfo=JSON.parse(JSON.stringify(this.authService.user)),this.preferenceInfo=this.profileInfo.preferences,this.avatarInfo.picture=this.profileInfo.picture,void 0!==this.preferenceInfo.signatureScaling?!1===this.preferenceInfo.signatureScaling?this.originalSize=!0:this.signatureScaling=this.preferenceInfo.signatureScaling:this.originalSize=!0,delete this.profileInfo.picture,delete this.profileInfo.preferences}},{key:"initTab",value:function(e){var t=this;this.currentTool=e,"pref"===e&&setTimeout(function(){t.drawSample()},200)}},{key:"closeProfile",value:function(){var e=this;setTimeout(function(){e.initProfileInfo()},200),this.dismissModal()}},{key:"getPassRules",value:function(){var e=this;this.handlePassword.error=!1,this.handlePassword.errorMsg="",this.http.get("../rest/passwordRules").subscribe(function(t){var n=[],i=[];t.rules.forEach(function(t){"minLength"===t.label?(e.passwordRules.minLength.enabled=t.enabled,e.passwordRules.minLength.value=t.value,t.enabled&&e.translate.get("lang.minLengthChar",{charLength:t.value}).subscribe(function(e){n.push(e)})):"complexityUpper"===t.label?(e.passwordRules.complexityUpper.enabled=t.enabled,e.passwordRules.complexityUpper.value=t.value,t.enabled&&n.push("lang.upperRequired")):"complexityNumber"===t.label?(e.passwordRules.complexityNumber.enabled=t.enabled,e.passwordRules.complexityNumber.value=t.value,t.enabled&&n.push("lang.numberRequired")):"complexitySpecial"===t.label?(e.passwordRules.complexitySpecial.enabled=t.enabled,e.passwordRules.complexitySpecial.value=t.value,t.enabled&&n.push("lang.specialCharRequired")):"renewal"===t.label?(e.passwordRules.renewal.enabled=t.enabled,e.passwordRules.renewal.value=t.value,t.enabled&&e.translate.get("lang.renewalInfo",{time:t.value}).subscribe(function(e){i.push(e)})):"historyLastUse"===t.label&&(e.passwordRules.historyLastUse.enabled=t.enabled,e.passwordRules.historyLastUse.value=t.value,t.enabled&&e.translate.get("lang.historyUseInfo",{countPwd:t.value}).subscribe(function(e){i.push(e)}))}),e.ruleText=n.join(", "),e.otherRuleText=i.join("<br/>")},function(t){e.notificationService.handleErrors(t)})}},{key:"checkPasswordValidity",value:function(e){var t=this;this.handlePassword.error=!0,!e.match(/[A-Z]/g)&&this.passwordRules.complexityUpper.enabled?this.handlePassword.errorMsg="lang.upperRequired":!e.match(/[0-9]/g)&&this.passwordRules.complexityNumber.enabled?this.handlePassword.errorMsg="lang.numberRequired":!e.match(/[^A-Za-z0-9]/g)&&this.passwordRules.complexitySpecial.enabled?this.handlePassword.errorMsg="lang.specialCharRequired":e.length<this.passwordRules.minLength.value&&this.passwordRules.minLength.enabled?this.translate.get("lang.minLengthChar",{charLength:this.passwordRules.minLength.value}).subscribe(function(e){t.handlePassword.errorMsg=e}):(this.handlePassword.error=!1,this.handlePassword.errorMsg="")}},{key:"allowValidate",value:function(){return!!this.disableState||!(""===this.password.newPassword||!this.handlePassword.error&&this.password.newPassword===this.password.passwordConfirmation&&0!==this.password.currentPassword.length&&0!==this.password.newPassword.length&&0!==this.password.passwordConfirmation.length)}},{key:"submitProfile",value:function(){return b1(this,void 0,void 0,U().mark(function e(){var t=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.disableState=!0,this.msgButton="lang.sending",this.preferenceInfo=Object.assign(Object.assign({},this.preferenceInfo),{signatureScaling:!this.originalSize&&this.signatureScaling}),this.http.put("../rest/users/"+this.authService.user.id+"/preferences",this.preferenceInfo).pipe(Mw(function(){t.disableState=!1,t.msgButton="lang.validate",t.setLang(t.preferenceInfo.lang),t.cookieService.set("maarchParapheurLang",t.preferenceInfo.lang)}),ZH(function(){return"default"===t.authService.authMode?t.http.put("../rest/users/"+t.authService.user.id,t.profileInfo):new Promise(function(e){e(!0)})}),ZH(function(){if(t.authService.updateUserInfoWithTokenRefresh(),""===t.password.newPassword)return t.closeProfile(),t.notificationService.success("lang.profileUpdated"),nb(!1);if("default"===t.authService.authMode){var e=new ub({Authorization:"Bearer "+t.authService.getToken()});return t.http.put("../rest/users/"+t.authService.user.id+"/password",t.password,{observe:"response",headers:e})}return nb(!1)}),rb(function(e){return!!e}),Mw(function(e){t.authService.saveTokens(e.headers.get("Token"),e.headers.get("Refresh-Token")),t.password.newPassword="",t.password.passwordConfirmation="",t.password.currentPassword="",t.notificationService.success("lang.profileUpdated")}),yw(function(e){return 401===e.status?t.notificationService.error("lang.wrongPassword"):t.notificationService.handleErrors(e),nb(!1)})).subscribe();case 1:case"end":return e.stop()}},e,this)}))}},{key:"changePicture",value:function(){var e=this;this.msgButton="lang.sending",this.disableState=!0,this.http.put("../rest/users/"+this.authService.user.id+"/picture",this.avatarInfo).pipe(Mw(function(){e.authService.user.picture=e.avatarInfo.picture,e.notificationService.success("lang.profileUpdated")}),Lw(function(){e.msgButton="lang.validate",e.disableState=!1})).subscribe()}},{key:"selectSubstitute",value:function(e){var t=this;this.userList=[],this.http.put("../rest/users/"+this.authService.user.id+"/substitute",{substitute:e.id}).subscribe(function(){t.authService.updateUserInfoWithTokenRefresh(),t.filtersService.resfreshDocuments(),t.signaturesService.documentsList.length>0&&!1===t.signaturesService.documentsList[t.signaturesService.indexDocumentsList].owner&&t.router.navigate(["/documents"]),t.notificationService.success("lang.substituteEnabled")})}},{key:"deleteSubstitute",value:function(){return b1(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({header:this.translate.instant("lang.confirmMsg"),buttons:[{text:this.translate.instant("lang.no"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.yes"),handler:function(){var e=n.signaturesService.signaturesList.filter(function(e){return e.substituted});n.profileInfo.substitute=null,n.http.put("../rest/users/"+n.authService.user.id+"/substitute",{substitute:n.profileInfo.substitute}).pipe(Mw(function(t){n.authService.updateUserInfoWithTokenRefresh(),n.filtersService.resfreshDocuments(),e.length>0&&e.forEach(function(e){n.http.patch("../rest/users/"+n.authService.user.id+"/signatures/"+e.id+"/substituted",{substituted:!1}).pipe(Mw(function(){n.signaturesService.signaturesList.find(function(t){return t.id===e.id}).substituted=!1}),yw(function(e){return n.notificationService.handleErrors(e),nb(!1)})).subscribe()}),n.signaturesService.documentsList.length>0&&!1===n.signaturesService.documentsList[n.signaturesService.indexDocumentsList].owner&&n.router.navigate(["/documents"]),n.notificationService.success("lang.substitutionDeleted")}),yw(function(e){return n.notificationService.handleErrors(e),nb(!1)})).subscribe()}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"handleFileInput",value:function(e){var t=this;this.passwordContent&&this.passwordContent.close();var n=e.item(0);if(n.size<=5e6)if(-1!==["image/png","image/jpg","image/jpeg","image/gif"].indexOf(n.type)){var i=new FileReader;i.onloadend=function(e){var n=new Image;n.src=i.result.toString(),t.avatarInfo.picture=i.result,n.onload=function(){return t.fixImgOrientation(n)}},i.readAsDataURL(n)}else this.notificationService.error("lang.notAnImage");else this.notificationService.error("lang.imageTooBig")}},{key:"fixImgOrientation",value:function(e){var t=this;y1.getData(e,function(){var n=0;switch(y1.getTag(e,"Orientation")){case 3:n=180;break;case 6:n=90;break;case 8:n=-90}t.avatarInfo.pictureOrientation=n,t.changePicture()})}},{key:"drawSample",value:function(){var e=document.getElementById("sampleNote").getContext("2d");e.clearRect(0,0,100,100),e.beginPath(),e.lineWidth=this.preferenceInfo.writingSize,e.moveTo(0,0),e.lineTo(100,100),e.moveTo(100,0),e.lineTo(0,100),e.stroke()}},{key:"initProfileTab",value:function(e){1===e.index&&this.drawSample()}},{key:"counter",value:function(e){return new Array(e)}},{key:"setLang",value:function(e){this.translate.use(e)}},{key:"toggleSignature",value:function(e){var t=this;this.http.patch("../rest/users/"+this.authService.user.id+"/signatures/"+this.signaturesService.signaturesList[e].id+"/substituted",{substituted:!this.signaturesService.signaturesList[e].substituted}).subscribe(function(){t.signaturesService.signaturesList[e].substituted=!t.signaturesService.signaturesList[e].substituted,t.notificationService.success("lang.modificationSaved")})}}]),e}()).\u0275fac=function(e){return new(e||W1)(Ps(Tb),Ps(pp),Ps(WP),Ps($P),Ps(tO),Ps(eW),Ps(LE),Ps(Jl),Ps(zP),Ps(ME),Ps(oT),Ps(h_))},W1.\u0275cmp=Ft({type:W1,selectors:[["app-my-profile"]],viewQuery:function(e,t){var n;1&e&&bc(w1,1),2&e&&yc(n=kc())&&(t.passwordContent=n.first)},decls:39,vars:23,consts:[[3,"translucent"],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[3,"value","ionChange"],["value","info"],["name","information-circle"],["value","pref"],["name","brush-outline"],["value","deleg"],["name","hand-left-outline"],["value","signatures"],["name","pencil-outline"],[2,"display","contents",3,"ngSubmit"],["profileForm","ngForm"],[4,"ngIf"],["class","ion-no-border",4,"ngIf"],["lines","full",1,"ion-no-margin"],["slot","start",2,"cursor","pointer",3,"click"],[3,"src"],["color","secondary","position","floating"],["name","login","readonly","","required","",3,"maxlength","ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["uploadFile",""],["name","email","pattern","(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","firstname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["name","lastname","required","",3,"maxlength","ngModel","readonly","ngModelChange"],["lines","none"],["color","success",4,"ngIf"],["color","danger",4,"ngIf"],["color","secondary","position","stacked"],["name","currentPassword",3,"ngModel","placeholder","type","ngModelChange"],["slot","end","color","light",1,"showpassButton",3,"click"],["slot","icon-only","color","primary",3,"name"],["name","newPassword",3,"ngModel","placeholder","type","ngModelChange","keyup"],["name","passwordConfirmation",3,"ngModel","placeholder","type","ngModelChange"],["color","danger"],["color","success"],["slot","start",3,"checked","ionChange"],["position","floating","color","secondary"],["name","langUser",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","writingMode",3,"ngModel","ngModelChange"],["value","direct"],["value","stylus"],[1,"fab","fa-apple"],[3,"innerHTML",4,"ngIf"],["name","writingSize",3,"ngModel","ngModelChange","ionChange"],["id","sampleNote","width","100","height","100"],["name","writingColor",3,"ngModel","ngModelChange"],["value","#000000"],["value","#1a75ff"],["value","#FF0000"],[2,"height","25px","width","25px","border-radius","20px"],["color","secondary",2,"opacity","1","margin-left","15px"],["size","7"],["lines","none",2,"margin-left","-10px"],["min","10","max","50","pin","","color","primary","name","signatureScaling",3,"disabled","ngModel","ngModelChange"],["slot","start","size","small","name","scan-circle-outline"],["slot","end","name","scan-outline"],["style","margin-left: 20px; font-size: 14px;",3,"innerHTML",4,"ngIf"],["size","5"],["lines","none",2,"margin-top","22px","margin-left","10px"],["slot","start","name","originalSize","color","primary",2,"cursor","pointer",3,"checked","ionChange"],[3,"value"],[3,"innerHTML"],[2,"margin-left","20px","font-size","14px",3,"innerHTML"],["readonly","",3,"value"],["slot","end","color","danger",3,"click"],["name","close-outline"],[3,"placeholder","ionChange"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"disabled","value","ionChange"],["slot","end",4,"ngIf"],["slot","end","color","danger",4,"ngIf"],["slot","end","color","danger"],["color","secondary"],[2,"display","grid","grid-template-columns","repeat(2, 1fr)"],["type","button","class","signListButton","mat-stroked-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"signListButton",3,"click"],[2,"width","190px",3,"src"],[3,"target"],[1,"ion-no-border"],[1,"ion-justify-content-center"],["type","submit","color","primary",3,"disabled","click"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.dismissModal()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-header"),Is(9,"ion-toolbar"),Is(10,"ion-segment",5),js("ionChange",function(e){return t.initTab(e.detail.value)}),Is(11,"ion-segment-button",6),Is(12,"ion-label"),bl(13),$u(14,"translate"),Ts(),Ms(15,"ion-icon",7),Ts(),Is(16,"ion-segment-button",8),Is(17,"ion-label"),bl(18),$u(19,"translate"),Ts(),Ms(20,"ion-icon",9),Ts(),Is(21,"ion-segment-button",10),Is(22,"ion-label"),bl(23),$u(24,"translate"),Ts(),Ms(25,"ion-icon",11),Ts(),Is(26,"ion-segment-button",12),Is(27,"ion-label"),bl(28),$u(29,"translate"),Ts(),Ms(30,"ion-icon",13),Ts(),Ts(),Ts(),Ts(),Is(31,"form",14,15),js("ngSubmit",function(){return t.submitProfile()}),Is(33,"ion-content"),Ss(34,C1,30,27,"ng-container",16),Ss(35,T1,74,51,"ng-container",16),Ss(36,j1,5,4,"ng-container",16),Ss(37,H1,2,1,"ng-container",16),Ts(),Ts(),Ss(38,U1,7,4,"ion-footer",17)),2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,12,"lang.myProfil")),Yo(7),Os("value",t.currentTool),Yo(3),wl(ec(14,14,"lang.informations")),Yo(5),wl(ec(19,16,"lang.preferences")),Yo(5),wl(ec(24,18,"lang.substitute")),Yo(5),wl(ec(29,20,"lang.signatures")),Yo(6),Os("ngIf","info"===t.currentTool),Yo(1),Os("ngIf","pref"===t.currentTool),Yo(1),Os("ngIf","deleg"===t.currentTool),Yo(1),Os("ngIf","signatures"===t.currentTool),Yo(1),Os("ngIf",Yu(22,G1).indexOf(t.currentTool)>-1))},directives:[kS,tE,$S,aS,oS,xS,GS,CA,qS,IS,yy,Fm,py,pS,jh,TS,ES,nS,SS,SA,Yy,Ky,Lm,my,Xy,MS,FS,eE,xA,YS,Vh,ZS,US,fS,zS,WS,dS,wF,HU,bS],pipes:[jP],styles:['.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:auto}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-top:0}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.user[_ngcontent-%COMP%]{color:#fff;color:#f99830;position:absolute;top:15px;font-weight:700;font-size:20px}.input-row[_ngcontent-%COMP%]{width:100%;padding-top:10px;padding-bottom:10px}.profile-content[_ngcontent-%COMP%]{padding:10px;text-align:center}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px;margin:10px;color:#fff;font-size:20px}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:65px;width:65px;font-size:35px}.actions[_ngcontent-%COMP%]   .validate[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;font-size:20px}canvas[_ngcontent-%COMP%]{background-color:#f1f4f4}fieldset[_ngcontent-%COMP%]{border:1px solid #f1f4f4;align-items:center}legend[_ngcontent-%COMP%]{color:#f99830}.form-container[_ngcontent-%COMP%]{display:table;width:100%}.form-2-col[_ngcontent-%COMP%]{width:50%}.form-2-col[_ngcontent-%COMP%], .form-col[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.notification[_ngcontent-%COMP%]{text-align:left;padding:10px}.panel-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100%;overflow:hidden}.panel-header[_ngcontent-%COMP%]{box-shadow:0 0 10px 0 #656565;color:#fff;background:#135f7f;height:95px;display:flex;justify-content:center;position:relative;font-size:20px;align-items:center}.panel-content[_ngcontent-%COMP%]{flex:1;overflow:auto}.mat-icon[_ngcontent-%COMP%]{height:auto}.selected[_ngcontent-%COMP%]{border:solid #f99830}.selectedSubstitute[_ngcontent-%COMP%]{width:100%}.selectedSubstitute[_ngcontent-%COMP%]    .mat-input-element{cursor:default}.selectedSubstitute[_ngcontent-%COMP%]    .mat-form-field-suffix{top:0;display:flex}.showpassButton[_ngcontent-%COMP%]{--background:none;--box-shadow:none}']}),W1);function Y1(e,t){if(1&e){var n=Fs();Is(0,"ion-button",3),js("click",function(){return En(n),qs().menu.open("left-menu")}),bl(1),$u(2,"translate"),Ts()}2&e&&(Yo(1),kl(" ",ec(2,1,"lang.accessMenu")," "))}var Z1,K1=((Z1=function(){function e(t,n,i,r){Z(this,e),this.signaturesService=t,this.translate=n,this.menu=i,this.modalController=r,this.loading=!1}return Y(e,[{key:"ngOnInit",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!1,"right-menu"),this.menu.open("left-menu")}}]),e}()).\u0275fac=function(e){return new(e||Z1)(Ps($P),Ps(zP),Ps(RE),Ps(LE))},Z1.\u0275cmp=Ft({type:Z1,selectors:[["ng-component"]],decls:3,vars:1,consts:[["color","primary"],["svgIcon","maarchLogo",1,"maarchLogo"],["class","menu-button","color","light","fill","outline","size","large",3,"click",4,"ngIf"],["color","light","fill","outline","size","large",1,"menu-button",3,"click"]],template:function(e,t){1&e&&(Is(0,"ion-content",0),Ms(1,"mat-icon",1),Ss(2,Y1,3,3,"ion-button",2),Ts()),2&e&&(Yo(2),Os("ngIf",t.signaturesService.mobileMode))},directives:[pS,_N,jh,oS],pipes:[jP],styles:[".maarchLogo[_ngcontent-%COMP%]{top:50%;width:250px;height:auto}.maarchLogo[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%,-50%)}.menu-button[_ngcontent-%COMP%]{top:60%}"]}),Z1),Q1=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};function X1(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",25),js("click",function(){En(n);var e=qs().$implicit,t=qs().index;return qs().goToSignUserPage(t,e.page)}),$u(1,"translate"),Is(2,"ion-label"),bl(3),Ts(),Ts()}if(2&e){var i=qs().$implicit,r=qs().index,o=qs();Os("title",ec(1,3,"lang.accessToPage")+" "+i.page)("color",r===o.currentUser&&i.page===o.currentPage?"primary":"medium"),Yo(3),wl(i.page)}}function J1(e,t){if(1&e&&(Bs(0),Ss(1,X1,4,5,"ion-chip",24),Rs()),2&e){var n=t.$implicit,i=qs().index;Yo(1),Os("ngIf",n.sequence==i)}}function $1(e,t){if(1&e&&(Is(0,"ion-segment-button",21),Is(1,"ion-label"),Is(2,"h2"),bl(3),Ts(),Is(4,"p",22),Ss(5,J1,2,1,"ng-container",7),Ts(),Ts(),Ms(6,"ion-icon",23),Ts()),2&e){var n=t.$implicit,i=t.index,r=qs();Os("value",i),Yo(3),wl(n.userDisplay),Yo(2),Os("ngForOf",r.signList),Yo(1),Os("name","sign"===n.mode?"pencil-outline":"checkmark-done-outline")}}var e2=function(e,t){return{x:e,y:t}};function t2(e,t){if(1&e){var n=Fs();Is(0,"div",27),js("movingOffset",function(){return En(n),qs(2).dragging=!0})("endOffset",function(e){En(n);var t=qs(2);return t.moveSign(e,t.i)})("click",function(){En(n);var e=qs().$implicit,t=qs();return t.currentUser!=e.sequence&&t.goToSignUserPage(e.sequence,t.currentPage)}),Is(1,"ion-buttons",28),Is(2,"ion-button",29),js("click",function(){En(n);var e=qs().index;return qs().deleteSign(e)}),$u(3,"translate"),Ms(4,"ion-icon",30),Ts(),Ts(),Is(5,"span",31),bl(6),Ts(),bl(7),$u(8,"uppercase"),$u(9,"translate"),Ts()}if(2&e){var i=qs().$implicit,r=qs(),o=Es(11);ol("width",25,"%"),al("signDisabled",r.currentUser!==i.sequence)("hide",!r.pagesLoaded),Os("position",Ku(20,e2,i.position.positionX*r.workingAreaWidth/100,i.position.positionY*r.workingAreaHeight/100))("ngDraggable",r.currentUser===i.sequence)("preventDefaultEvent",!1)("bounds",o)("inBounds",!0),Yo(2),Os("title",ec(3,14,"lang.delete")),Yo(4),wl(r.getUserName(i.sequence)),Yo(1),kl(" ",ec(8,16,ec(9,18,"lang.signature"))," ")}}function n2(e,t){if(1&e&&(Bs(0),Ss(1,t2,10,23,"div",26),Rs()),2&e){var n=t.$implicit,i=qs();Yo(1),Os("ngIf",n.page===i.currentPage)}}function i2(e,t){if(1&e){var n=Fs();Is(0,"ion-button",32),js("click",function(){return En(n),qs().initSign()}),bl(1),$u(2,"translate"),Ts()}2&e&&(Yo(1),kl(" ",ec(2,1,"lang.createSignaturePosition"),""))}function r2(e,t){if(1&e&&(Is(0,"ion-select-option",33),bl(1),Ts()),2&e){var n=t.index;Os("value",t.$implicit),Yo(1),wl(n+1)}}function o2(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",36),js("click",function(){En(n);var e=qs(2);return e.changePage(e.currentPage-1)}),Ms(1,"ion-icon",37),Ts()}}function a2(e,t){if(1&e){var n=Fs();Is(0,"ion-fab-button",38),js("click",function(){En(n);var e=qs(2);return e.changePage(e.currentPage+1)}),Ms(1,"ion-icon",39),Ts()}}function s2(e,t){if(1&e&&(Bs(0),Ss(1,o2,2,0,"ion-fab-button",34),Ss(2,a2,2,0,"ion-fab-button",35),Rs()),2&e){var n=qs();Yo(1),Os("ngIf",n.currentPage>1),Yo(1),Os("ngIf",n.currentPage<n.pages.length)}}var l2,u2,c2=((u2=function(){function e(t,n,i,r,o,a){Z(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.pdfViewerService=r,this.modalController=o,this.loadingController=a,this.workflow=[],this.resource=[],this.pdfContent=null,this.docIndex=null,this.loading=!1,this.dragging=!1,this.pages=[],this.currentUser=0,this.currentPage=1,this.currentSignature={positionX:0,positionY:0},this.workingAreaWidth=0,this.workingAreaHeight=0,this.signList=[],this.imgContent=null,this.load=null,this.pagesLoaded=!1}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){e.load=t,e.load.present()}),this.resource.signPos&&this.initSignPos()}},{key:"initSignPos",value:function(){var e=this;this.workflow.forEach(function(t,n){var i;(null===(i=t.signaturePositions)||void 0===i?void 0:i.length)>0&&(e.signList=e.signList.concat(t.signaturePositions.filter(function(t){return t.mainDocument===e.resource.mainDocument&&t.docIndex===e.docIndex}).map(function(t){return Object.assign(Object.assign({},t),{sequence:n,docIndex:e.docIndex})})))})}},{key:"onSubmit",value:function(){this.modalController.dismiss(this.formatData())}},{key:"onPagesLoaded",value:function(e){return Q1(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.pages=Array.from({length:e.pagesCount}).map(function(e,t){return t+1}),this.changePage(1);case 1:case"end":return t.stop()}},t,this)}))}},{key:"exportAsImage",value:function(){return Q1(this,void 0,void 0,U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfViewerService.getPageAsImage(this.currentPage,{width:1e3});case 2:t=e.sent,this.getImageDimensions(t),this.imgContent=t,this.pagesLoaded=!0;case 4:case"end":return e.stop()}},e,this)}))}},{key:"getImageDimensions",value:function(e){var t=this,n=new Image;n.onload=function(e){t.workingAreaWidth=e.target.naturalWidth,t.workingAreaHeight=e.target.naturalHeight},n.src=e}},{key:"changePage",value:function(e){this.currentPage=e,this.exportAsImage()}},{key:"moveSign",value:function(e,t){var n=this,i=100*e.x/this.workingAreaWidth,r=100*e.y/this.workingAreaHeight;i=(i=i<0?0:i)>100?100:i,r=(r=r<0?0:r)>100?100:r,this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionX=i,this.signList.filter(function(e){return e.sequence===n.currentUser&&e.page===n.currentPage})[0].position.positionY=r,this.dragging=!1}},{key:"emptySign",value:function(){var e=this;return 0===this.signList.filter(function(t){return t.sequence===e.currentUser&&t.page===e.currentPage}).length}},{key:"initSign",value:function(){this.signList.push({sequence:this.currentUser,page:this.currentPage,docIndex:this.docIndex,position:{positionX:75,positionY:90}});var e=0;Array.from(document.getElementsByClassName("drag-scroll-content")).forEach(function(t,n){if(null!==t.offsetParent)return e=n,!0}),document.getElementsByClassName("drag-scroll-content")[e].scrollTop=this.workingAreaHeight}},{key:"getUserSignPosPage",value:function(e){return this.signList.filter(function(t){return t.sequence===e})}},{key:"selectUser",value:function(e){this.currentUser=+e}},{key:"getUserName",value:function(e){return this.workflow[e].userDisplay}},{key:"goToSignUserPage",value:function(e,t){this.currentUser=e,this.currentPage=t,this.exportAsImage()}},{key:"deleteSign",value:function(e){this.signList.splice(e,1)}},{key:"formatData",value:function(){var e=this,t=[];return this.workflow.forEach(function(n,i){e.signList.filter(function(e){return e.sequence===i}).length>0&&(t=t.concat(e.signList.filter(function(e){return e.sequence===i})))}),t}},{key:"imageLoaded",value:function(e){this.load.dismiss()}}]),e}()).\u0275fac=function(e){return new(e||u2)(Ps(zP),Ps(Tb),Ps($P),Ps(UD),Ps(LE),Ps(BE))},u2.\u0275cmp=Ft({type:u2,selectors:[["ng-component"]],inputs:{workflow:"workflow",resource:"resource",pdfContent:"pdfContent",docIndex:"docIndex"},decls:37,vars:35,consts:[[3,"translucent"],["color","primary"],["color","warning","scrollable","",2,"justify-content","center",3,"value","ionChange"],["layout","icon-start",3,"value",4,"ngFor","ngForOf"],[2,"overflow","auto","height","100%","width","100%","margin","auto",3,"drag-disabled","drag-scroll-disabled"],["id","myBounds",2,"margin","auto","position","relative","box-shadow","0px 0px 5px 0px #656565"],["myBounds",""],[4,"ngFor","ngForOf"],[1,"img-content",3,"src","ionImgDidLoad"],["color","primary","style","position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size:20px;",3,"click",4,"ngIf"],[2,"display","none",3,"src","useBrowserLocale","textLayer","pdfLoaded"],[1,"page-info"],[1,"page-info-doc"],[1,"page-info-page",3,"click"],["interface","action-sheet","hidden","true",2,"max-height","30%",3,"cancelText","ionChange"],["pagesList",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-no-border","footer-buttons"],["type","button","color","primary","fill","outline","shape","round","size","large",3,"click"],["type","button","color","medium","fill","outline","shape","round","size","large",3,"click"],["layout","icon-start",3,"value"],[1,"chip-item-content"],[3,"name"],["class","chip-item","outline","",3,"title","color","click",4,"ngIf"],["outline","",1,"chip-item",3,"title","color","click"],["class","signature",3,"signDisabled","position","width","ngDraggable","preventDefaultEvent","bounds","inBounds","hide","movingOffset","endOffset","click",4,"ngIf"],[1,"signature",3,"position","ngDraggable","preventDefaultEvent","bounds","inBounds","movingOffset","endOffset","click"],[2,"position","absolute","top","-50px","right","0px"],["fill","clear","slot","icon-only","shape","round","size","small","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],[1,"signUserName"],["color","primary",2,"position","fixed","top","50%","left","50%","transform","translate(-50%,-50%)","font-size","20px",3,"click"],[3,"value"],["class","paginate-left",3,"click",4,"ngIf"],["class","paginate-right",3,"click",4,"ngIf"],[1,"paginate-left",3,"click"],["name","chevron-back-outline"],[1,"paginate-right",3,"click"],["name","chevron-forward-outline"]],template:function(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Ts(),Is(5,"ion-toolbar",1),Is(6,"ion-segment",2),js("ionChange",function(e){return t.selectUser(e.detail.value)}),Ss(7,$1,7,4,"ion-segment-button",3),Ts(),Ts(),Ts(),Is(8,"ion-content"),Is(9,"drag-scroll",4),Is(10,"div",5,6),Ss(12,n2,2,1,"ng-container",7),Is(13,"ion-img",8),js("ionImgDidLoad",function(e){return t.imageLoaded(e)}),Ts(),Ss(14,i2,3,3,"ion-button",9),Ts(),Ts(),Is(15,"ngx-extended-pdf-viewer",10),js("pdfLoaded",function(e){return t.onPagesLoaded(e)}),Ts(),Is(16,"section",11),Is(17,"div",12),bl(18),Ts(),Is(19,"div",13),js("click",function(){En(n);var e=Es(23);return t.pages.length>1&&e.open()}),bl(20),$u(21,"translate"),Ts(),Is(22,"ion-select",14,15),js("ionChange",function(e){return t.changePage(e.target.value)}),$u(24,"translate"),Ss(25,r2,2,2,"ion-select-option",16),Ts(),Ts(),Ss(26,s2,3,2,"ng-container",17),Ts(),Is(27,"ion-footer",18),Is(28,"div"),Is(29,"ion-button",19),js("click",function(){return t.onSubmit()}),Is(30,"ion-label"),bl(31),$u(32,"translate"),Ts(),Ts(),Is(33,"ion-button",20),js("click",function(){return t.modalController.dismiss()}),Is(34,"ion-label"),bl(35),$u(36,"translate"),Ts(),Ts(),Ts(),Ts()}2&e&&(Os("translucent",!0),Yo(3),wl(ec(4,25,"lang.adminSignaturesPositions")),Yo(3),Os("value",t.currentUser),Yo(1),Os("ngForOf",t.workflow),Yo(2),Os("drag-disabled",t.dragging&&!t.signaturesService.mobileMode)("drag-scroll-disabled",t.dragging&&t.signaturesService.mobileMode),Yo(1),ol("width",t.workingAreaWidth,"px")("height",t.workingAreaHeight,"px"),Yo(2),Os("ngForOf",t.signList),Yo(1),Os("src",t.imgContent),Yo(1),Os("ngIf",t.emptySign()),Yo(1),Os("src",t.pdfContent)("useBrowserLocale",!0)("textLayer",!1),Yo(3),wl(t.resource.title),Yo(2),_l("",ec(21,27,"lang.page")," ",t.currentPage," / ",t.pages.length,""),Yo(2),Os("cancelText",ec(24,29,"lang.cancel")),Yo(3),Os("ngForOf",t.pages),Yo(1),Os("ngIf",t.pages.length>1),Yo(5),wl(ec(32,31,"lang.save")),Yo(4),wl(ec(36,33,"lang.cancel")))},directives:[kS,tE,$S,GS,CA,Vh,pS,ZI,_S,jh,HD,YS,bS,oS,IS,qS,xS,hS,JI,aS,ZS,mS],pipes:[jP,pf],styles:[".containerMobile[_ngcontent-%COMP%]{flex-direction:column}.containerMobile[_ngcontent-%COMP%]   .signPosForm[_ngcontent-%COMP%]{flex:none!important;height:auto}.containerMobile[_ngcontent-%COMP%]   .signatureContainer[_ngcontent-%COMP%], .signPosForm[_ngcontent-%COMP%]{flex:1}.signatureContainer[_ngcontent-%COMP%]{position:relative;overflow:auto;width:1050px;display:flex;justify-content:center}.posSignButton[_ngcontent-%COMP%]{position:sticky;top:0;left:50%;transform:translateX(-50%)}.signature[_ngcontent-%COMP%]{z-index:2;position:absolute;border:1px dashed var(--ion-color-danger);background:rgba(var(--ion-color-danger-rgb),.6) none repeat scroll 0 0;font-weight:700;font-size:20px;color:#fff;height:110px;display:flex;align-items:center;justify-content:center}.signDisabled[_ngcontent-%COMP%]{z-index:1;opacity:.2;cursor:pointer}.signUserName[_ngcontent-%COMP%]{position:absolute;font-size:12px;bottom:20px;font-weight:400;color:#fff;font-style:italic}.chip-item-content[_ngcontent-%COMP%]{z-index:9999;position:absolute;margin:0;bottom:0}.chip-item[_ngcontent-%COMP%]{font-size:7px;width:15px;height:15px;padding:0;margin:0 5px;color:#fff;border-color:#fff;justify-content:center}img[_ngcontent-%COMP%]{pointer-events:none}.paginate-left[_ngcontent-%COMP%]{left:20px}.paginate-left[_ngcontent-%COMP%], .paginate-right[_ngcontent-%COMP%]{position:absolute;top:40%;transform:translateY(-50%);--background:hsla(0,0%,77.6%,0.5019607843137255);--color:#666}.paginate-right[_ngcontent-%COMP%]{right:20px}.page-info[_ngcontent-%COMP%]{position:absolute;bottom:70px;height:30px;width:auto;max-width:70%;color:rgba(var(--ion-color-dark-rgb),.8);font-size:12px;font-weight:300;line-height:30px;display:flex;align-items:center;justify-content:center;opacity:.5;left:50%;transform:translateX(-50%);font-weight:500;transition:all .3s ease-in-out;z-index:9999}.page-info-doc[_ngcontent-%COMP%]{max-width:80%;background-color:#f1f4f4;border-radius:14px;padding:0 20px;z-index:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.page-info-page[_ngcontent-%COMP%]{cursor:pointer;text-align:center;border-radius:0 14px 14px 0;padding:0 20px;background:#fff;border:1px solid #ecf0f1;margin-left:-15px;height:28px;white-space:pre;display:flex;align-items:center}.page-info[_ngcontent-%COMP%]:hover{opacity:1}.hide[_ngcontent-%COMP%]{display:none}"]}),u2),d2=((l2=function(){function e(){Z(this,e),this.fileDropped=new ac,this.disabled=!1,this.background="none",this.opacity="1"}return Y(e,[{key:"onDragOver",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#9ecbec",this.opacity="0.8")}},{key:"onDragLeave",value:function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1")}},{key:"ondrop",value:function(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="rgba(255,255,255,0)",this.opacity="1";var t=e.dataTransfer.files;t.length>0&&this.fileDropped.emit(t)}}}]),e}()).\u0275fac=function(e){return new(e||l2)},l2.\u0275dir=Ut({type:l2,selectors:[["","appUploadFileDragDrop",""]],hostVars:4,hostBindings:function(e,t){1&e&&js("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)}),2&e&&ol("background-color",t.background)("opacity",t.opacity)},inputs:{disabled:"disabled"},outputs:{fileDropped:"fileDropped"}}),l2),h2=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},f2=["appVisaWorkflow"],p2=["rightContent"],g2=["docToUpload"];function v2(e,t){1&e&&Ms(0,"ion-icon",34)}function m2(e,t){1&e&&Ms(0,"ion-icon",35)}function y2(e,t){1&e&&Ms(0,"i",36)}function b2(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-buttons",2),Is(2,"ion-button",22),js("click",function(){var e=t.$implicit;return e.mainDocument=!e.mainDocument}),$u(3,"translate"),$u(4,"translate"),Ss(5,v2,1,0,"ion-icon",23),Ss(6,m2,1,0,"ion-icon",24),Ts(),Ts(),Is(7,"ion-item",25),Is(8,"ion-label",26),bl(9),$u(10,"translate"),Ts(),Is(11,"ion-input",27),js("ngModelChange",function(e){return t.$implicit.reference=e}),$u(12,"translate"),Ts(),Ts(),Is(13,"ion-item",25),Is(14,"ion-label",26),bl(15),$u(16,"translate"),Ts(),Is(17,"ion-input",28),js("ngModelChange",function(e){return t.$implicit.title=e}),$u(18,"translate"),Ts(),Ts(),Is(19,"ion-buttons",5),Is(20,"ion-button",29),js("click",function(){En(n);var e=t.index;return qs(2).signPos(e)}),$u(21,"translate"),Ss(22,y2,1,0,"i",30),Ms(23,"ion-icon",31),Ts(),Is(24,"ion-button",32),js("click",function(){En(n);var e=t.index;return qs(2).deleteFile(e)}),$u(25,"translate"),Ms(26,"ion-icon",33),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=t.index,o=qs(2);Yo(2),Os("title",i.mainDocument?ec(3,15,"lang.docToSign"):ec(4,17,"lang.attachDocToSign")),Yo(3),Os("ngIf",i.mainDocument),Yo(1),Os("ngIf",!i.mainDocument),Yo(3),wl(ec(10,19,"lang.reference")),Yo(2),Qs("placeholder",ec(12,21,"lang.fileReference")),Os("maxlength",53)("ngModel",i.reference)("disabled",!i.mainDocument),Yo(4),kl("",ec(16,23,"lang.subject")," *"),Yo(2),Qs("placeholder",ec(18,25,"lang.filename")),Os("ngModel",i.title),Yo(3),Os("disabled",!i.mainDocument)("title",ec(21,27,"lang.setSignaturesPosition")),Yo(2),Os("ngIf",void 0!==o.filesToUpload[r].signPos&&o.filesToUpload[r].signPos.length>0),Yo(2),Os("title",ec(25,29,"lang.delete"))}}function w2(e,t){if(1&e&&(Is(0,"ion-list"),Is(1,"ion-list-header"),Is(2,"ion-label",1),bl(3),$u(4,"translate"),Ts(),Ts(),Ss(5,b2,27,31,"ion-item",21),Ts()),2&e){var n=qs();Yo(3),wl(ec(4,2,"lang.documentsToUpload")),Yo(2),Os("ngForOf",n.filesToUpload)}}function k2(e,t){1&e&&Ms(0,"app-visa-workflow",37,38),2&e&&Os("editMode",!0)}var x2,_2=((x2=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h){Z(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.datePipe=d,this.modalController=h,this.loading=!1,this.filesToUpload=[],this.errors=[],this.fromDocument=null}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"ionViewWillEnter",value:function(){this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.filesToUpload=[],this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),void 0!==window.history.state.documentId&&(this.fromDocument=window.history.state.documentId,this.getDocumentData(this.fromDocument))}},{key:"getDocumentData",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/"+e).pipe(Mw(function(i){var r="",o=i.document.reference.split("/");(o=o.slice(3,o.length)).length>0&&(r=o.join("/")),t.filesToUpload.push({title:i.document.title,reference:r,mainDocument:!0,content:"",linkId:i.document.linkId,metadata:i.document.metadata}),t.getDocumentContent(e),t.appVisaWorkflow.loadWorkflow(i.document.workflow.map(function(e){return e.userSignatureModes.unshift("visa"),Object.assign(Object.assign({},e),{processDate:null,current:!1,role:"visa"===e.mode?"visa":e.signatureMode,modes:e.userSignatureModes})}));for(var a=0;a<i.document.attachments.length;a++)t.getAttachment(i.document.attachments[a].id);n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"getDocumentContent",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/documents/".concat(e,"/content?type=original")).pipe(Mw(function(e){t.filesToUpload[0].content=e.encodedDocument,n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"getAttachment",value:function(e){var t=this;return new Promise(function(n){t.http.get("../rest/attachments/"+e).pipe(Mw(function(e){t.filesToUpload.push({title:e.attachment.title,mainDocument:!1,content:e.attachment.encodedDocument}),n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()})}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"onSubmit",value:function(){this.isValid()&&this.promptSaveDoc()}},{key:"promptSaveDoc",value:function(){return h2(this,void 0,void 0,U().mark(function e(){var t,n=this;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.alertController.create({cssClass:"alert-info-no-msg",header:this.translate.instant("lang.areYouSure"),inputs:[{name:"note",id:"note",type:"textarea",placeholder:this.translate.instant("lang.addNote")}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(e){n.loadingController.create({message:n.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return h2(n,void 0,void 0,U().mark(function n(){var i,r;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.present(),i=this.formatData(e.note),r=0;case 3:if(!(r<i.length)){n.next=9;break}return n.next=6,this.saveDocument(i,r);case 6:r++,n.next=3;break;case 9:t.dismiss(),0===this.errors.length&&(this.notificationService.success("lang.documentsImported"),this.router.navigate(["/home"]));case 10:case"end":return n.stop()}},n,this)}))})}}]});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}))}},{key:"saveDocument",value:function(e,t){var n=this;return e.forEach(function(t){t.workflow.forEach(function(n){n.signaturePositions=n.signaturePositions.filter(function(n){return n.docIndex===e.indexOf(t)})})}),new Promise(function(i){n.http.post("../rest/documents",e[t]).pipe(Mw(function(){n.errors=[]}),Lw(function(){return i(!0)}),yw(function(i){return n.errors.push(e[t].title),n.notificationService.handleErrors(i),nb(!1)})).subscribe()})}},{key:"formatData",value:function(e){var t=this,n=new Date,i=null,r=null;""!==e&&(i={value:e,creator:"".concat(this.authService.user.firstname," ").concat(this.authService.user.lastname),creationDate:this.datePipe.transform(n,"dd-MM-y")});var o=[],a=this.filesToUpload.filter(function(e){return e.mainDocument}),s=this.filesToUpload.filter(function(e){return!e.mainDocument});return a.length>1&&(r=this.datePipe.transform(n,"ddMMYhmmss")+"_"+Math.random().toString(36).substr(2,9)),a.forEach(function(e){var a={};null!==t.fromDocument&&e.metadata.forEach(function(e){a[e.label]=e.value});var l="";""!==e.reference&&(l=t.datePipe.transform(n,"y/MM/dd")+"/"+e.reference),o.push({title:e.title,reference:l,encodedDocument:e.content,isZipped:!1,linkId:null!==t.fromDocument?e.linkId:r,sender:"".concat(t.authService.user.firstname," ").concat(t.authService.user.lastname),notes:i,attachments:s.map(function(e){return{title:e.title,encodedDocument:e.content}}),workflow:t.appVisaWorkflow.getCurrentWorkflow().map(function(n,i){return{userId:n.userId,mode:t.authService.getWorkflowMode(n.role),signatureMode:t.authService.getSignatureMode(n.role),signaturePositions:void 0!==n.signaturePositions?t.formatPositions(n.signaturePositions.filter(function(t){return t.mainDocument===e.mainDocument&&void 0!==e.signPos})).map(function(e){return{page:e.page,docIndex:e.docIndex,positionX:e.position.positionX,positionY:e.position.positionY}}):[]}}),metadata:a})}),o}},{key:"formatPositions",value:function(e){return delete e.mainDocument,e}},{key:"dndUploadFile",value:function(e){this.uploadTrigger({target:{files:[e[0]]}})}},{key:"uploadTrigger",value:function(e){var t=this;this.loadingController.create({message:this.translate.instant("lang.loadingDocument"),spinner:"dots"}).then(function(n){return h2(t,void 0,void 0,U().mark(function t(){var i,r,o=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.present(),e.target.files&&e.target.files[0]&&this.isExtensionAllowed(e.target.files)){for(i=function(t){var i=e.target.files[t].name,r={title:i.substr(0,i.lastIndexOf(".")),reference:i.substr(0,i.lastIndexOf(".")).substr(0,53),mainDocument:!0,content:""},a=new FileReader;a.readAsArrayBuffer(e.target.files[t]),a.onload=function(e){r.mainDocument=0===o.filesToUpload.length,r.reference=0===o.filesToUpload.length?r.reference:"",r.content=o.getBase64Document(e.target.result),o.filesToUpload.push(r),1===o.filesToUpload.length&&setTimeout(function(){o.menu.open("right-menu")},500)},t===e.target.files.length-1&&n.dismiss()},r=0;r<e.target.files.length;r++)i(r);this.fileImport.nativeElement.value=""}else this.loading=!1,n.dismiss();case 1:case"end":return t.stop()}},t,this)}))})}},{key:"isExtensionAllowed",value:function(e){for(var t=0;t<e.length;t++)if("pdf"!==e[t].name.toLowerCase().split(".").pop())return this.notificationService.error("lang.onlyPdfAuthorized"),!1;return!0}},{key:"getBase64Document",value:function(e){var t=new Uint8Array(e).reduce(function(e,t){return e+String.fromCharCode(t)},"");return btoa(t)}},{key:"deleteFile",value:function(e){this.filesToUpload.splice(e,1),0===this.filesToUpload.length&&this.appVisaWorkflow.getCurrentWorkflow().forEach(function(e){e.signaturePositions=[]})}},{key:"signPos",value:function(e){return h2(this,void 0,void 0,U().mark(function t(){var n,i,r,o=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.appVisaWorkflow.getCurrentWorkflow().length>0)){t.next=14;break}return this.appVisaWorkflow.getCurrentWorkflow().forEach(function(e,t){void 0===e.signaturePositions&&(o.appVisaWorkflow.visaWorkflow[t].signaturePositions=[])}),t.next=4,this.modalController.create({component:c2,cssClass:"custom-alert-fullscreen",componentProps:{workflow:this.appVisaWorkflow.getCurrentWorkflow(),resource:this.filesToUpload[e],pdfContent:"data:application/pdf;base64,"+this.filesToUpload[e].content,docIndex:this.filesToUpload.indexOf(this.filesToUpload[e])}});case 4:return n=t.sent,t.next=7,n.present();case 7:return t.next=9,n.onWillDismiss();case 9:i=t.sent,void 0!==(r=i.data)&&(this.filesToUpload[e].signPos=r,this.appVisaWorkflow.setPositionsWorkfow(this.filesToUpload,e,r)),t.next=15;break;case 14:this.notificationService.error("lang.mustSetWorkflowBeforeSignPositions");case 15:case"end":return t.stop()}},t,this)}))}},{key:"isValid",value:function(){return this.filesToUpload.filter(function(e){return""===e.title}).length>0?(this.notificationService.error("lang.subjectMandatory"),!1):0===this.filesToUpload.filter(function(e){return e.mainDocument}).length?(this.notificationService.error("lang.mainDocumentMandatory"),!1):0!==this.appVisaWorkflow.getCurrentWorkflow().length||(this.notificationService.error("lang.workflowUserstMandatory"),this.menu.open("right-menu"),!1)}}]),e}()).\u0275fac=function(e){return new(e||x2)(Ps(Tb),Ps(zP),Ps(h_),Ps(RE),Ps($P),Ps(Mu),Ps(WP),Ps(tO),Ps(BE),Ps(ME),Ps(gf),Ps(LE))},x2.\u0275cmp=Ft({type:x2,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(bc(f2,1),bc(p2,3),bc(g2,1)),2&e&&(yc(n=kc())&&(t.appVisaWorkflow=n.first),yc(n=kc())&&(t.rightContent=n.first),yc(n=kc())&&(t.fileImport=n.first))},features:[Hl([gf])],decls:31,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],[1,"ion-text-center"],["slot","end"],["menu","right-menu"],["name","list-outline"],[2,"display","flex","flex-direction","column","height","100%"],[4,"ngIf"],["type","file","name","files[]","multiple","","accept","application/pdf",2,"display","none",3,"change"],["docToUpload",""],["appUploadFileDragDrop","",1,"dnd-area",3,"fileDropped"],["fill","outline","color","medium","size","large",3,"click"],["lines","none",1,"ion-text-center","no-background"],["color","medium"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["rightContent",""],[4,"ngFor","ngForOf"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"title","click"],["slot","icon-only","name","pencil-outline",4,"ngIf"],["slot","icon-only","name","document-attach-outline",4,"ngIf"],[2,"width","100%"],["position","floating","color","secondary"],["matInput","","type","text",3,"placeholder","maxlength","ngModel","disabled","ngModelChange"],["matInput","","type","text",3,"placeholder","ngModel","ngModelChange"],["fill","clear","slot","icon-only","shape","round","color","primary",3,"disabled","title","click"],["class","badge-sign-pos",4,"ngIf"],["slot","icon-only","name","contract-outline"],["fill","clear","slot","icon-only","shape","round","color","danger",3,"title","click"],["slot","icon-only","name","trash-outline"],["slot","icon-only","name","pencil-outline"],["slot","icon-only","name","document-attach-outline"],[1,"badge-sign-pos"],[2,"display","contents",3,"editMode"],["appVisaWorkflow",""]],template:function(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ts(),Is(4,"ion-title",4),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-buttons",5),Is(8,"ion-menu-button",6),Ms(9,"ion-icon",7),Ts(),Ts(),Ts(),Ts(),Is(10,"ion-content"),Is(11,"div",8),Ss(12,w2,6,4,"ion-list",9),Is(13,"input",10,11),js("change",function(e){return t.uploadTrigger(e)}),Ts(),Is(15,"div",12),js("fileDropped",function(e){return t.dndUploadFile(e)}),Is(16,"ion-button",13),js("click",function(){return En(n),Es(14).click()}),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-item",14),Is(20,"ion-label",15),bl(21),$u(22,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Is(23,"ion-footer",16),Is(24,"div",17),Is(25,"ion-button",18),js("click",function(){return t.onSubmit()}),Is(26,"ion-label",19),bl(27),$u(28,"translate"),Ts(),Ts(),Ts(),Ts(),Ss(29,k2,2,1,"ng-template",null,20,Cc)}2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,6,"lang.newDocumentToVisa")),Yo(7),Os("ngIf",t.filesToUpload.length>0),Yo(5),kl(" ",ec(18,8,"lang.chooseDocuments")," "),Yo(4),kl(" ",ec(22,10,"lang.dndDocuments")," "),Yo(6),wl(ec(28,12,"lang.validate")))},directives:[kS,tE,aS,RS,$S,xS,pS,jh,d2,oS,ES,IS,bS,TS,MS,Vh,SS,SA,Ky,Lm,my,K$],pipes:[jP],styles:[".dnd-area[_ngcontent-%COMP%]{border:5px dashed;margin:20px;text-align:center;color:grey;padding:50px 10px;flex:1;align-items:center;display:flex;flex-direction:column;justify-content:center}.no-background[_ngcontent-%COMP%]{--background:none} .alert-info-no-msg .alert-message{display:none} .alert-info-no-msg .alert-title{color:var(--ion-color-primary)}.badge-sign-pos[_ngcontent-%COMP%]{width:10px;height:10px;background:var(--ion-color-danger);position:absolute;top:0;right:0;border-radius:5px}"]}),x2),A2=["searchInput"];function C2(e,t){if(1&e){var n=Fs();Is(0,"ion-searchbar",6,7),js("ngModelChange",function(e){return En(n),qs().searchValue=e})("ionChange",function(e){return En(n),qs().getDatas(e)}),$u(2,"translate"),Ts()}2&e&&Os("ngModel",qs().searchValue)("placeholder",ec(2,2,"lang.search"))}function S2(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-checkbox",10),js("ionChange",function(e){return En(n),qs(2).selectItem(e.detail.value)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Is(4,"ion-note",11),bl(5),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(1),Os("value",i),Yo(2),xl("",i.firstname," ",i.lastname,""),Yo(2),wl(i.email)}}function E2(e,t){if(1&e&&(Is(0,"ion-list",8),Ss(1,S2,6,4,"ion-item",9),Ts()),2&e){var n=qs();Yo(1),Os("ngForOf",n.itemList)}}function P2(e,t){1&e&&(Is(0,"ion-label",12),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),wl(ec(2,1,"lang.noItem")))}function O2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",13),js("click",function(){En(n);var e=t.index;return qs().removeItem(e)}),Is(1,"ion-label",14),bl(2),Ts(),Ms(3,"ion-icon",15),Ts()}if(2&e){var i=t.$implicit;Yo(2),xl("",i.firstname," ",i.lastname,"")}}function D2(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",11),Is(1,"ion-button",16),js("click",function(){return En(n),qs().toggleEdit()}),Is(2,"ion-label",17),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()}2&e&&(Yo(3),wl(ec(4,1,"lang.edit")))}var I2,T2=((I2=function(){function e(t,n){Z(this,e),this.http=t,this.notificationService=n,this.currentItems=[],this.selectedOpt=new ac,this.myControl=new uy,this.loading=!1,this.searchValue="",this.editMode=!1,this.itemList=[]}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"getDatas",value:function(e){var t=this;""===e.detail.value?this.itemList=[]:this.http.get("../rest/autocomplete/users?search="+e.detail.value).pipe(Mw(function(e){t.itemList=e}),yw(function(e){return t.notificationService.handleErrors(e),nb(!1)})).subscribe()}},{key:"selectItem",value:function(e){this.currentItems.push(e),this.searchValue="",this.itemList=[],this.editMode=!1,this.selectedOpt.emit(e)}},{key:"removeItem",value:function(e){this.currentItems.splice(e,1)}},{key:"toggleEdit",value:function(){var e=this;this.editMode=!this.editMode,this.editMode&&setTimeout(function(){e.searchInput.setFocus()},0)}}]),e}()).\u0275fac=function(e){return new(e||I2)(Ps(Tb),Ps(WP))},I2.\u0275cmp=Ft({type:I2,selectors:[["plugin-autocomplete"]],viewQuery:function(e,t){var n;1&e&&bc(A2,1),2&e&&yc(n=kc())&&(t.searchInput=n.first)},inputs:{currentItems:"currentItems",singleMode:"singleMode",required:"required",options:["datas","options"],routeDatas:"routeDatas",placeholder:["labelPlaceholder","placeholder"],key:["targetSearchKey","key"],subInfoKey:"subInfoKey"},outputs:{selectedOpt:"triggerEvent"},decls:8,vars:5,consts:[[3,"ngModel","placeholder","ngModelChange","ionChange",4,"ngIf"],["class","item-list",4,"ngIf"],["lines","none"],["color","medium","style","font-style: italic;",4,"ngIf"],["style","height: auto;",3,"click",4,"ngFor","ngForOf"],["slot","end",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange","ionChange"],["searchInput",""],[1,"item-list"],[4,"ngFor","ngForOf"],["color","primary","slot","start",3,"value","ionChange"],["slot","end"],["color","medium",2,"font-style","italic"],[2,"height","auto",3,"click"],[1,"ion-text-wrap"],["name","close-circle"],["size","small",3,"click"],["color","medium"]],template:function(e,t){1&e&&(Ss(0,C2,3,4,"ion-searchbar",0),Ss(1,E2,2,1,"ion-list",1),Is(2,"ion-list"),Is(3,"ion-item",2),Ss(4,P2,3,3,"ion-label",3),Is(5,"p"),Ss(6,O2,4,2,"ion-chip",4),Ts(),Ss(7,D2,5,3,"ion-buttons",5),Ts(),Ts()),2&e&&(Os("ngIf",t.editMode),Yo(1),Os("ngIf",t.itemList.length>0),Yo(3),Os("ngIf",0===t.currentItems.length),Yo(2),Os("ngForOf",t.currentItems),Yo(1),Os("ngIf",!t.editMode))},directives:[jh,TS,ES,Vh,WS,SA,Lm,my,dS,xA,IS,FS,hS,xS,aS,oS],pipes:[jP],styles:[""]}),I2),M2=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})},B2=["appVisaWorkflow"],R2=["rightContent"];function L2(e,t){1&e&&Ms(0,"ion-icon",26)}function F2(e,t){1&e&&Ms(0,"ion-icon",27)}function N2(e,t){1&e&&Ms(0,"ion-icon",28)}function V2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",21),js("click",function(){En(n);var e=qs().$implicit;return qs(2).removeFilter(e)}),$u(1,"translate"),Ss(2,L2,1,0,"ion-icon",22),Ss(3,F2,1,0,"ion-icon",23),Ss(4,N2,1,0,"ion-icon",24),Is(5,"ion-label"),bl(6),Ts(),Ms(7,"ion-icon",25),Ts()}if(2&e){var i=qs().$implicit;Os("title",ec(1,5,"lang."+i.id+"Search")),Yo(2),Os("ngIf","title"===i.id),Yo(1),Os("ngIf","reference"===i.id),Yo(1),Os("ngIf","documentId"===i.id),Yo(2),wl(i.val)}}function z2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",21),js("click",function(){En(n);var e=t.$implicit,i=qs(2).$implicit;return qs(2).removeFilter(i,e.id)}),$u(1,"translate"),Ms(2,"ion-icon",30),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Ms(6,"ion-icon",25),Ts()}if(2&e){var i=t.$implicit;Os("title",ec(1,2,"lang.workflowStatesSearch")),Yo(4),wl(ec(5,4,i.label))}}function j2(e,t){if(1&e&&(Is(0,"div"),Ss(1,z2,7,6,"ion-chip",29),Ts()),2&e){var n=qs().$implicit;Yo(1),Os("ngForOf",n.val)}}function H2(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",21),js("click",function(){En(n);var e=t.$implicit,i=qs(2).$implicit;return qs(2).removeFilter(i,e)}),$u(1,"translate"),Ms(2,"ion-icon",31),Is(3,"ion-label"),bl(4),Ts(),Ms(5,"ion-icon",25),Ts()}if(2&e){var i=t.$implicit;Os("title",ec(1,3,"lang.workflowUsersSearch")),Yo(4),xl("",i.firstname," ",i.lastname,"")}}function U2(e,t){if(1&e&&(Is(0,"div"),Ss(1,H2,6,5,"ion-chip",29),Ts()),2&e){var n=qs().$implicit;Yo(1),Os("ngForOf",n.val)}}function W2(e,t){if(1&e&&(Is(0,"div"),Ss(1,V2,8,7,"ion-chip",20),Ss(2,j2,2,1,"div",10),Ss(3,U2,2,1,"div",10),Ts()),2&e){var n=t.$implicit;Yo(1),Os("ngIf",("title"===n.id||"reference"===n.id||"documentId"===n.id)&&""!==n.val),Yo(1),Os("ngIf","workflowStates"===n.id&&n.val.length>0),Yo(1),Os("ngIf","workflowUsers"===n.id&&n.val.length>0)}}function G2(e,t){if(1&e){var n=Fs();Is(0,"ion-toolbar",14),Is(1,"div",15),Is(2,"ion-button",16),js("click",function(){return En(n),qs().clearFilters()}),$u(3,"translate"),Ms(4,"ion-icon",17),Ts(),Is(5,"div",18),Ss(6,W2,4,3,"div",19),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(2),Os("title",ec(3,2,"lang.clearFilters")),Yo(4),Os("ngForOf",i.currentFilters)}}function q2(e,t){1&e&&(Is(0,"ion-list",32),Is(1,"ion-item",33),Is(2,"ion-label",34),bl(3),$u(4,"translate"),Ts(),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,1,"lang.noResult")))}function Y2(e,t){1&e&&Ms(0,"ion-icon",57)}function Z2(e,t){1&e&&Ms(0,"ion-icon",58)}function K2(e,t){1&e&&Ms(0,"ion-icon",59)}function Q2(e,t){if(1&e&&(Is(0,"ion-badge",60),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs().$implicit;Yo(1),wl(ec(2,1,"lang."+n.mode+"User"))}}var X2=function(){return["END","STOP"]};function J2(e,t){if(1&e&&(Bs(0),Ss(1,Y2,1,0,"ion-icon",52),Is(2,"span",53),bl(3),$u(4,"translate"),Ss(5,Z2,1,0,"ion-icon",54),Ss(6,K2,1,0,"ion-icon",55),Ss(7,Q2,3,3,"ion-badge",56),Ts(),Rs()),2&e){var n=t.$implicit,i=t.index,r=qs(3);Yo(1),Os("ngIf",i>0),Yo(1),al("success",null!==n.processDate&&"STOP"!==n.status)("typist-interrupt","REF"===n.status)("interrupt",null===n.processDate&&"END"===n.status||"STOP"===n.status)("current",n.current)("no-visa",null===n.processDate&&null===n.status&&!n.current),Yo(1),kl("",r.functionsService.empty(n.userDisplay)?ec(4,15,"lang.userDeleted"):n.userDisplay,"\xa0 "),Yo(2),Os("ngIf",null!==n.processDate&&"REF"!==n.status&&"STOP"!==n.status),Yo(1),Os("ngIf",null!==n.processDate&&"REF"===n.status),Yo(1),Os("ngIf",null===n.processDate&&(null===n.status||Yu(17,X2).indexOf(n.status)>-1))}}function $2(e,t){1&e&&Ms(0,"ion-icon",61)}function e3(e,t){1&e&&Ms(0,"ion-icon",62)}function t3(e,t){1&e&&Ms(0,"ion-icon",63)}function n3(e,t){1&e&&Ms(0,"ion-icon",64)}function i3(e,t){if(1&e&&(Bs(0),Ms(1,"ion-icon",66),bl(2),Rs()),2&e){var n=t.$implicit;Yo(2),kl(" ",n," ")}}function r3(e,t){if(1&e&&(Is(0,"p",65),Ss(1,i3,3,1,"ng-container",19),Ts()),2&e){var n=qs().$implicit;Yo(1),Os("ngForOf",n.reason)}}function o3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",67),js("click",function(e){En(n);var t=qs().$implicit,i=Es(7),r=qs(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),Ms(1,"ion-icon",68),Ts()}}function a3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",67),js("click",function(e){En(n);var t=qs().$implicit,i=Es(7),r=qs(2);return e.stopPropagation(),r.toggleSlide(i,t.id)}),Ms(1,"ion-icon",69),Ts()}}function s3(e,t){if(1&e){var n=Fs();Is(0,"ion-item-option",50),js("click",function(){En(n);var e=qs().$implicit;return qs(2).openPromptProof(e)}),Ms(1,"ion-icon",70),bl(2),$u(3,"translate"),Ts()}2&e&&(Yo(2),kl(" ",ec(3,1,"lang.download")," "))}function l3(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label"),Is(2,"ion-toolbar",37),Is(3,"ion-title",38),Is(4,"p",39),Ss(5,J2,8,18,"ng-container",19),Ts(),Ts(),Ts(),Is(6,"ion-item-sliding",40,41),js("ionDrag",function(e){En(n);var i=t.$implicit;return qs(2).onSliding(e,i.id)}),Is(8,"ion-item",33),Ss(9,$2,1,0,"ion-icon",42),Ss(10,e3,1,0,"ion-icon",43),Ss(11,t3,1,0,"ion-icon",44),Ss(12,n3,1,0,"ion-icon",45),Is(13,"ion-label",46),js("click",function(){En(n);var e=t.$implicit;return qs(2).goTo(e.id)}),$u(14,"translate"),Is(15,"p"),bl(16),Ts(),Is(17,"h2"),bl(18),Ts(),Ss(19,r3,2,1,"p",47),Ts(),Is(20,"ion-buttons",5),Ss(21,o3,2,0,"ion-button",48),Ss(22,a3,2,0,"ion-button",48),Ts(),Ts(),Is(23,"ion-item-options"),Ss(24,s3,4,3,"ion-item-option",49),Is(25,"ion-item-option",50),js("click",function(){En(n);var e=t.$implicit;return qs(2).openActions(e)}),Ms(26,"ion-icon",51),bl(27),$u(28,"translate"),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs(2);Yo(5),Os("ngForOf",i.workflow),Yo(4),Os("ngIf","PROG"==i.state),Yo(1),Os("ngIf","STOP"==i.state),Yo(1),Os("ngIf","VAL"==i.state),Yo(1),Os("ngIf","REF"==i.state),Yo(1),Os("title",ec(14,13,"lang.accessDocument")),Yo(3),wl(i.reference),Yo(2),wl(i.title),Yo(1),Os("ngIf",i.reason.length>0),Yo(2),Os("ngIf",r.openedLine===i.id),Yo(1),Os("ngIf",r.openedLine!==i.id),Yo(2),Os("ngIf","PROG"!==i.state),Yo(3),kl(" ",ec(28,15,"lang.actions")," ")}}function u3(e,t){if(1&e&&(Is(0,"ion-list"),Is(1,"ion-virtual-scroll",35),Ss(2,l3,29,17,"ion-item",36),Ts(),Ts()),2&e){var n=qs();Yo(1),Os("items",n.ressources)}}function c3(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-item"),Is(2,"ion-label",76),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-input",77),js("ngModelChange",function(e){return En(n),qs().$implicit.val=e})("keyup.enter",function(){return En(n),qs(3).launchSearch()})("ionChange",function(){return En(n),qs(3).checkInput()}),Ts(),Ts(),Rs()}if(2&e){var i=qs().$implicit;Yo(3),kl("",ec(4,3,"lang."+i.id+"Search")," "),Yo(2),Os("ngModel",i.val)("value",i.val)}}function d3(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label"),bl(2),$u(3,"translate"),Ts(),Is(4,"ion-checkbox",79),js("ngModelChange",function(){En(n);var e=t.$implicit,i=qs(2).$implicit;return qs(2).toggleItem(i,e,!e.selected)})("ngModelChange",function(e){return t.$implicit.selected=e}),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),wl(ec(3,4,i.label)),Yo(2),Os("ngModel",i.selected)("checked",i.selected)("value",i.id)}}function h3(e,t){if(1&e&&(Bs(0),Is(1,"ion-list-header"),Is(2,"ion-label",78),bl(3),$u(4,"translate"),Ts(),Ts(),Ss(5,d3,5,6,"ion-item",19),Rs()),2&e){var n=qs().$implicit;Yo(3),wl(ec(4,2,"lang."+n.id+"Search")),Yo(2),Os("ngForOf",n.values)}}function f3(e,t){if(1&e&&(Bs(0),Is(1,"ion-list-header"),Is(2,"ion-label",78),bl(3),$u(4,"translate"),Ts(),Ts(),Ms(5,"plugin-autocomplete",80),Rs()),2&e){var n=qs().$implicit;Yo(3),wl(ec(4,2,"lang."+n.id+"Search")),Yo(2),Os("currentItems",n.val)}}function p3(e,t){if(1&e&&(Is(0,"ion-list"),Ss(1,c3,6,5,"ng-container",10),Ss(2,h3,6,4,"ng-container",10),Ss(3,f3,6,4,"ng-container",10),Ts()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","text"===n.type),Yo(1),Os("ngIf","checkbox"===n.type),Yo(1),Os("ngIf","autocompleteUsers"===n.type)}}function g3(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title",71),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content"),Ss(8,p3,4,3,"ion-list",19),Ts(),Is(9,"ion-footer",72),Is(10,"div",73),Is(11,"ion-button",74),js("click",function(){return En(n),qs().onSubmit()}),Is(12,"ion-label",75),bl(13),$u(14,"translate"),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(5),wl(ec(6,4,"lang.filters")),Yo(3),Os("ngForOf",i.filters),Yo(5),wl(ec(14,6,"lang.search"))}}var v3,m3,y3=((m3=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f,p){Z(this,e),this.http=t,this.translate=n,this.router=i,this.menu=r,this.signaturesService=o,this.viewContainerRef=a,this.notificationService=s,this.authService=l,this.loadingController=u,this.alertController=c,this.actionSheetController=d,this.datePipe=h,this.functionsService=f,this._activatedRoute=p,this.loading=!1,this.filesToUpload=[],this.errors=[],this.filters=[{id:"title",type:"text",val:"",values:[]},{id:"reference",type:"text",val:"",values:[]},{id:"documentId",type:"text",val:"",values:[]},{id:"workflowStates",type:"checkbox",val:[],values:[{id:"PROG",label:"lang.inprogress",selected:!1},{id:"STOP",label:"lang.interrupt",selected:!1},{id:"VAL",label:"lang.end",selected:!1},{id:"REF",label:"lang.refused",selected:!1}]},{id:"workflowUsers",type:"autocompleteUsers",val:[],values:[]}],this.actions=[{icon:"hand-left-outline",id:"interruptWorkflow"},{icon:"document-outline",id:"newWorkflow"}],this.ressources=[],this.currentFilters=[],this.offset=0,this.limit=10,this.count=0,this.openedLine=""}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this._activatedRoute.queryParamMap.subscribe(function(t){e.functionsService.empty(t.get("documentId"))||(e.documentId=t.get("documentId"),e.filters.filter(function(e){return"documentId"===e.id})[0].val=e.documentId,e.search())})}},{key:"ionViewWillEnter",value:function(){var e=this;this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),setTimeout(function(){e.menu.open("right-menu")},500)}},{key:"ionViewWillLeave",value:function(){this.signaturesService.detachTemplate("rightContent")}},{key:"toggleSlide",value:function(e,t){var n=this;e.getOpenAmount().then(function(i){0===i?(n.openedLine=t,e.open("end")):(n.openedLine="",e.close("end"))})}},{key:"onSliding",value:function(e,t){this.openedLine=1===e.detail.ratio?t:""}},{key:"onSubmit",value:function(){this.search(),this.menu.close("right-menu")}},{key:"toggleItem",value:function(e,t,n){if(n)e.val.push(t.id);else{var i=e.val.indexOf(t.id);e.val.splice(i,1)}}},{key:"formatDatas",value:function(){var e={};return JSON.parse(JSON.stringify(this.filters.filter(function(e){return"text"===e.type&&""!==e.val||"text"!==e.type&&e.val.length>0}))).forEach(function(t){e[t.id]="workflowUsers"===t.id?t.val.map(function(e){return e.id}):"workflowStates"===t.id?t.values.filter(function(e){return e.selected}).map(function(e){return e.id}):t.val}),e}},{key:"formatListDatas",value:function(e){var t=this;return e.map(function(e){return Object.assign(Object.assign({},e),{reason:t.getReason(e),currentUser:t.getCurrentUser(e)})})}},{key:"getNbFilters",value:function(){for(var e=0,t=0;t<this.currentFilters.length;t++)Array.isArray(this.currentFilters[t].val)||""===this.currentFilters[t].val||e++,Array.isArray(this.currentFilters[t].val)&&this.currentFilters[t].val.length>0&&(e+=this.currentFilters[t].val.length);return e}},{key:"openActions",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){var n,i,r=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],this.actions.forEach(function(t){r.canShowButton(t.id,e)&&n.push({text:r.translate.instant("PROG"===e.state&&"newWorkflow"===t.id?"lang."+t.id+"Prog":"lang."+t.id),icon:t.icon,handler:function(){r[t.id](e)}})}),t.next=4,this.actionSheetController.create({header:this.translate.instant("lang.actions")+(null!==e.reference?" - "+e.reference:""),buttons:n});case 4:return i=t.sent,t.next=7,i.present();case 7:case"end":return t.stop()}},t,this)}))}},{key:"canShowButton",value:function(e,t){return!("interruptWorkflow"!==e||!t.canInterrupt)||!("newWorkflow"!==e||!t.canReaffect)}},{key:"search",value:function(){var e=this;this.loadingController.create({message:this.translate.instant("lang.processing"),spinner:"dots"}).then(function(t){return M2(e,void 0,void 0,U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.present(),e.next=3,this.launchSearch();case 3:t.dismiss();case 4:case"end":return e.stop()}},e,this)}))})}},{key:"launchSearch",value:function(){var e=this;return this.ressources=[],this.offset=0,this.refreshCurrentFilter(),new Promise(function(t){e.http.post("../rest/search/documents?limit=10&offset=0",e.formatDatas()).pipe(Mw(function(n){e.ressources=e.formatListDatas(n.documents),e.count=n.count,e.infiniteScroll.disabled=!1,t(!0)}),yw(function(n){return e.notificationService.handleErrors(n),t(!1),nb(!1)})).subscribe()})}},{key:"refreshCurrentFilter",value:function(){var e=this;this.currentFilters=JSON.parse(JSON.stringify(this.filters.filter(function(t){return!e.functionsService.empty(t.val)}))),this.currentFilters.filter(function(e){return"workflowStates"===e.id}).length>0&&(this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val=this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].values.filter(function(e){return e.selected}),0===this.currentFilters.filter(function(e){return"workflowStates"===e.id})[0].val.length&&(this.currentFilters=this.currentFilters.filter(function(e){return"workflowStates"!==e.id})))}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/search/documents?limit="+this.limit+"&offset="+this.offset,this.formatDatas()).pipe(Mw(function(n){t.ressources=t.ressources.concat(t.formatListDatas(n.documents)),e.target.complete(),t.count===t.ressources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"interruptWorkflow",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){var n=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){return M2(n,void 0,void 0,U().mark(function n(){var i,r=this;return U().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.alertController.create({header:this.translate.instant("lang.warning"),message:this.translate.instant("lang.warnInterrupt"),buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(){r.loadingController.create({message:r.translate.instant("lang.processing"),spinner:"dots"}).then(function(n){return M2(r,void 0,void 0,U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n.present(),i.next=3,this.launchInterrupt(e);case 3:this.launchSearch(),t(!0),n.dismiss();case 6:case"end":return i.stop()}},i,this)}))})}}]});case 2:return i=n.sent,n.next=5,i.present();case 5:case"end":return n.stop()}},n,this)}))}));case 1:case"end":return t.stop()}},t)}))}},{key:"launchInterrupt",value:function(e){var t=this;return new Promise(function(n){t.http.put("../rest/documents/".concat(e.id,"/workflows/interrupt"),{}).pipe(Mw(function(){t.notificationService.success("lang.documentInterrupted"),n(!0)}),yw(function(e){return t.notificationService.handleErrors(e),n(!1),nb(!1)})).subscribe()})}},{key:"newWorkflow",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0="PROG"===e.state,!t.t0){t.next=4;break}return t.next=4,this.interruptWorkflow(e);case 4:this.router.navigate(["/indexation"],{state:{documentId:e.id}});case 5:case"end":return t.stop()}},t,this)}))}},{key:"openPromptProof",value:function(e){return M2(this,void 0,void 0,U().mark(function t(){var n,i=this;return U().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({cssClass:"promptProof",header:this.translate.instant("lang.download"),inputs:[{name:"option1",type:"radio",label:this.translate.instant("lang.proof"),value:"onlyProof",checked:!0},{name:"option1",type:"radio",label:this.translate.instant("lang.completeFolder"),value:"all"}],buttons:[{text:this.translate.instant("lang.cancel"),role:"cancel",cssClass:"secondary",handler:function(){}},{text:this.translate.instant("lang.validate"),handler:function(t){return M2(i,void 0,void 0,U().mark(function i(){return U().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.downloadProof(e,t);case 2:n.dismiss();case 3:case"end":return i.stop()}},i,this)}))}}]});case 2:return n=t.sent,t.next=5,n.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"downloadProof",value:function(e,t){var n=this,i="onlyProof"===t?"&onlyProof=true":"";return new Promise(function(t){n.http.get("../rest/documents/".concat(e.id,"/proof?mode=stream").concat(i),{responseType:"blob"}).pipe(Mw(function(i){var r=new Date,o="proof_"+e.id+"_"+n.datePipe.transform(r,"dd-MM-y")+"."+i.type.replace("application/",""),a=document.createElement("a");a.href=window.URL.createObjectURL(i),a.setAttribute("download",o),document.body.appendChild(a),a.click(),t(!0)}),yw(function(e){return n.notificationService.handleErrors(e),t(!1),nb(!1)})).subscribe()})}},{key:"getReason",value:function(e){return e.workflow.map(function(e){return e.reason}).filter(function(e){return null!==e})}},{key:"getCurrentUser",value:function(e){var t=e.workflow.filter(function(e){return!0===e.current});return t.length>0?t[0].userId:null}},{key:"goTo",value:function(e){this.router.navigate(["/documents/"+e])}},{key:"clearFilters",value:function(){for(var e=0;e<this.filters.length;e++)Array.isArray(this.filters[e].val)||""===this.filters[e].val||(this.filters[e].val=""),Array.isArray(this.filters[e].val)&&(this.filters[e].val=[],this.filters[e].values=this.filters[e].values.map(function(e){return Object.assign(Object.assign({},e),{selected:!1})}));this.ressources.length>0&&this.launchSearch()}},{key:"removeFilter",value:function(e,t){if(Array.isArray(e.val))if("workflowStates"===e.id)this.filters.find(function(t){return t.id===e.id}).values.filter(function(e){return e.id===t})[0].selected=!1;else{var n=e.val.indexOf(t);this.filters.filter(function(t){return t.id===e.id})[0].val.splice(n,1)}else this.filters.find(function(t){return t.id===e.id}).val="";this.launchSearch()}},{key:"getLabel",value:function(e){return this.filters.filter(function(e){return"workflowStates"===e.id})[0].values.find(function(t){return t.id===e}).label}},{key:"checkInput",value:function(){""===this.filters.find(function(e){return"title"===e.id}).val&&""===this.filters.find(function(e){return"reference"===e.id}).val&&""===this.filters.find(function(e){return"documentId"===e.id}).val&&0===this.filters.find(function(e){return"workflowStates"===e.id}).val.length&&0===this.filters.find(function(e){return"workflowUsers"===e.id}).val.length&&(this.clearFilters(),this.currentFilters=[])}}]),e}()).\u0275fac=function(e){return new(e||m3)(Ps(Tb),Ps(zP),Ps(h_),Ps(RE),Ps($P),Ps(Mu),Ps(WP),Ps(tO),Ps(BE),Ps(ME),Ps(TE),Ps(gf),Ps(hW),Ps(Uk))},m3.\u0275cmp=Ft({type:m3,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(bc(B2,1),bc(R2,3),bc(AS,1)),2&e&&(yc(n=kc())&&(t.appVisaWorkflow=n.first),yc(n=kc())&&(t.rightContent=n.first),yc(n=kc())&&(t.infiniteScroll=n.first))},features:[Hl([gf])],decls:22,vars:14,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["class","no-result",4,"ngIf"],[4,"ngIf"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["rightContent",""],["color","primary",2,"padding-left","1px","padding-right","1px"],[2,"display","flex"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],[4,"ngFor","ngForOf"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngIf"],["outline","","color","primary",2,"background","white",3,"title","click"],["name","document-text-outline",4,"ngIf"],["name","compass-outline",4,"ngIf"],["name","bookmark-outline",4,"ngIf"],["name","close-circle"],["name","document-text-outline"],["name","compass-outline"],["name","bookmark-outline"],["outline","","color","primary","style","background: white;",3,"title","click",4,"ngFor","ngForOf"],["name","swap-horizontal-outline"],["name","person-outline"],[1,"no-result"],["lines","none"],["color","medium",1,"no-result-label"],["approxItemHeight","165px",3,"items"],[4,"virtualItem"],["color","light"],["size","small"],[2,"display","flex","align-items","center","white-space","pre","overflow-x","auto","overflow-y","hidden"],[3,"ionDrag"],["slidingItem",""],["color","primary","slot","start","name","hourglass-outline",4,"ngIf"],["color","danger","slot","start","name","hand-left-outline",4,"ngIf"],["color","success","slot","start","name","thumbs-up-outline",4,"ngIf"],["color","danger","slot","start","name","thumbs-down-outline",4,"ngIf"],[2,"cursor","pointer",3,"title","click"],["class","primary",4,"ngIf"],["slot","icon-only","fill","clear","shape","round",3,"click",4,"ngIf"],["color","primary",3,"click",4,"ngIf"],["color","primary",3,"click"],["slot","bottom","name","settings-sharp"],["name","chevron-forward-outline",4,"ngIf"],[1,"workflow-item","success"],["name","thumbs-up-outline",4,"ngIf"],["name","thumbs-down-outline",4,"ngIf"],["color","medium",4,"ngIf"],["name","chevron-forward-outline"],["name","thumbs-up-outline"],["name","thumbs-down-outline"],["color","medium"],["color","primary","slot","start","name","hourglass-outline"],["color","danger","slot","start","name","hand-left-outline"],["color","success","slot","start","name","thumbs-up-outline"],["color","danger","slot","start","name","thumbs-down-outline"],[1,"primary"],["name","chatbox-outline"],["slot","icon-only","fill","clear","shape","round",3,"click"],["color","medium","slot","icon-only","name","arrow-forward-outline"],["color","medium","slot","icon-only","name","arrow-back-outline"],["slot","bottom","name","ribbon-sharp"],[1,"ion-text-center"],[1,"ion-no-border"],[1,"ion-text-center",2,"background","white"],["color","primary","shape","round","size","large","fill","outline",3,"click"],[2,"font-size","13px"],["color","secondary","position","floating"],[3,"ngModel","value","ngModelChange","keyup.enter","ionChange"],["color","secondary"],["slot","end",1,"workflowStates",3,"ngModel","checked","value","ngModelChange"],[3,"currentItems"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ts(),Is(4,"ion-title"),bl(5),$u(6,"translate"),Ts(),Is(7,"ion-title",4),bl(8),$u(9,"translate"),Ts(),Is(10,"ion-buttons",5),Is(11,"ion-menu-button",6),Ms(12,"ion-icon",7),Ts(),Ts(),Ts(),Ss(13,G2,7,4,"ion-toolbar",8),Ts(),Is(14,"ion-content"),Ss(15,q2,5,3,"ion-list",9),Ss(16,u3,3,1,"ion-list",10),Is(17,"ion-infinite-scroll",11),js("ionInfinite",function(e){return t.loadData(e)}),Ms(18,"ion-infinite-scroll-content",12),$u(19,"translate"),Ts(),Ts(),Ss(20,g3,15,8,"ng-template",null,13,Cc)),2&e&&(Os("translucent",!0),Yo(5),wl(ec(6,8,"lang.search")),Yo(3),xl("",t.count," ",ec(9,10,"lang.results"),""),Yo(5),Os("ngIf",t.currentFilters.length>0),Yo(2),Os("ngIf",0===t.ressources.length),Yo(1),Os("ngIf",t.ressources.length>0),Yo(2),Os("loadingText",ec(19,12,"lang.loadingMoreData")))},directives:[kS,tE,aS,RS,$S,xS,jh,pS,AS,CS,oS,Vh,hS,IS,TS,ES,OE,PE,DS,OS,PS,rS,iS,AE,bS,SS,SA,Lm,my,MS,dS,xA,T2],pipes:[jP],styles:[".line-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:10px;width:100%}.line-workflow[_ngcontent-%COMP%]{font-size:12px}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.secondary[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.success[_ngcontent-%COMP%]{color:var(--ion-color-success)}.workflow-item[_ngcontent-%COMP%]{display:flex;align-items:center}.no-visa[_ngcontent-%COMP%]{opacity:.3}.current[_ngcontent-%COMP%]{font-weight:700;color:var(--ion-color-primary)}.interrupt[_ngcontent-%COMP%], .typist-interrupt[_ngcontent-%COMP%]{color:var(--ion-color-danger)}.interrupt[_ngcontent-%COMP%]{text-decoration:line-through}.no-result[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;text-align:center}.no-result-label[_ngcontent-%COMP%]{font-size:50px}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap}.scrollfilters[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;display:inline-block}"]}),m3),b3=((v3=function(){function e(t){Z(this,e),this.latinisePipe=t}return Y(e,[{key:"transform",value:function(e,t){var n=this;return null!==e?(e.sort(function(e,i){var r=n.latinisePipe.transform(e[t]).toLocaleLowerCase(),o=n.latinisePipe.transform(i[t]).toLocaleLowerCase();return r<o?-1:r>o?1:0}),e):[]}}]),e}()).\u0275fac=function(e){return new(e||v3)(Ps(kT))},v3.\u0275pipe=Wt({name:"sortBy",type:v3,pure:!0}),v3),w3=["rightContent"];function k3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=t.$implicit;return qs(2).removeFilter(e)}),$u(1,"translate"),Ms(2,"ion-icon",19),Is(3,"ion-label"),bl(4),$u(5,"translate"),Ts(),Ms(6,"ion-icon",20),Ts()}if(2&e){var i=t.$implicit;Os("title",ec(1,2,"lang.actions")),Yo(4),wl(ec(5,4,"lang."+i))}}function x3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=qs(2);return e.removeFilter(e.filters.user)}),$u(1,"translate"),Ms(2,"ion-icon",21),Is(3,"ion-label"),bl(4),Ts(),Ms(5,"ion-icon",20),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,2,"lang.userName")),Yo(4),wl(i.filters.user)}}function _3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=qs(2);return e.removeFilter(e.filters.date.start)}),$u(1,"translate"),Ms(2,"ion-icon",22),Is(3,"ion-label"),bl(4),$u(5,"date"),Ts(),Ms(6,"ion-icon",20),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,2,"lang.since")),Yo(4),wl(tc(5,4,i.filters.date.start,"dd/MM/yyyy"))}}function A3(e,t){if(1&e){var n=Fs();Is(0,"ion-chip",18),js("click",function(){En(n);var e=qs(2);return e.removeFilter(e.filters.date.end)}),$u(1,"translate"),Ms(2,"ion-icon",23),Is(3,"ion-label"),bl(4),$u(5,"date"),Ts(),Ms(6,"ion-icon",20),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,2,"lang.until")),Yo(4),wl(tc(5,4,i.filters.date.end,"dd/MM/yyyy"))}}function C3(e,t){if(1&e){var n=Fs();Is(0,"ion-toolbar",12),Is(1,"ion-button",13),js("click",function(){return En(n),qs().clearFilters()}),$u(2,"translate"),Ms(3,"ion-icon",14),Ts(),Is(4,"div",15),Ss(5,k3,7,6,"ion-chip",16),Ss(6,x3,6,4,"ion-chip",17),Ss(7,_3,7,7,"ion-chip",17),Ss(8,A3,7,7,"ion-chip",17),Ts(),Ts()}if(2&e){var i=qs();Yo(1),Os("title",ec(2,5,"lang.clearFilters")),Yo(4),Os("ngForOf",i.filters.messageTypes),Yo(1),Os("ngIf",""!==i.filters.user),Yo(1),Os("ngIf",null!==i.filters.date.start),Yo(1),Os("ngIf",null!==i.filters.date.end)}}function S3(e,t){if(1&e&&(Is(0,"ion-item",28),Ms(1,"ion-icon",29),Is(2,"ion-label"),Is(3,"p"),bl(4),$u(5,"titlecase"),$u(6,"translate"),Is(7,"span",30),bl(8),$u(9,"date"),Ts(),bl(10),$u(11,"translate"),Is(12,"span",30),bl(13),Ts(),Ts(),Is(14,"h2"),bl(15),Ts(),Ts(),Is(16,"ion-note",5),Is(17,"p",31),$u(18,"translate"),bl(19),$u(20,"translate"),$u(21,"shorten"),$u(22,"translate"),Ts(),Is(23,"p",32),bl(24),Ts(),Ts(),Ts()),2&e){var n=t.$implicit,i=qs(2);Yo(1),Os("name",i.aventTypesIcon[n.type]),Yo(3),kl("",ec(5,10,ec(6,12,"lang.the"))," "),Yo(4),wl(tc(9,14,n.date,"dd/MM/yyyy HH:mm")),Yo(2),kl(" ",ec(11,17,"lang.by")," "),Yo(3),wl(n.user),Yo(2),wl(n.message),Yo(2),Os("title",ec(18,19,"lang.resource")+" : "+n.objectId),Yo(2),xl("",ec(20,21,"lang."+n.objectType)," : ",null!==n.objectLabel?nc(21,23,n.objectLabel,50,"..."):ec(22,27,"lang.undefined"),""),Yo(5),kl("IP : ",n.ip,"")}}function E3(e,t){if(1&e){var n=Fs();Is(0,"ion-list"),Is(1,"ion-virtual-scroll",24),Ss(2,S3,25,29,"ion-item",25),Ts(),Is(3,"ion-infinite-scroll",26),js("ionInfinite",function(e){return En(n),qs().loadData(e)}),Ms(4,"ion-infinite-scroll-content",27),$u(5,"translate"),Ts(),Ts()}if(2&e){var i=qs();Yo(1),Os("items",i.resources),Yo(3),Os("loadingText",ec(5,2,"lang.loadingMoreData"))}}function P3(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",5),Is(1,"ion-button",42),js("click",function(){En(n);var e=qs(2);return e.filters.date.start=null,e.getDatas()}),Ms(2,"ion-icon",43),Ts(),Ts()}}function O3(e,t){if(1&e){var n=Fs();Is(0,"ion-buttons",5),Is(1,"ion-button",42),js("click",function(){En(n);var e=qs(2);return e.filters.date.end=null,e.getDatas()}),Ms(2,"ion-icon",43),Ts(),Ts()}}function D3(e,t){if(1&e){var n=Fs();Is(0,"ion-item",31),Is(1,"ion-checkbox",44),js("ionChange",function(e){return En(n),qs(2).toggleAction(e.detail)}),Ts(),Is(2,"ion-label"),bl(3),Ts(),Ts()}if(2&e){var i=t.$implicit;Os("title",i.label),Yo(1),Os("value",i.id),Yo(2),wl(i.label)}}function I3(e,t){if(1&e){var n=Fs();Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-back-button"),Ts(),Is(4,"ion-title",33),bl(5),$u(6,"translate"),Ts(),Ts(),Ts(),Is(7,"ion-content"),Is(8,"ion-list"),Is(9,"ion-item",34),Is(10,"ion-searchbar",35),js("ionChange",function(e){return En(n),qs().applyFilter(e.detail.value)}),$u(11,"translate"),Ts(),Ts(),Is(12,"ion-item"),Is(13,"ion-label",36),bl(14),$u(15,"translate"),Ts(),Is(16,"ion-datetime",37),js("ngModelChange",function(e){return En(n),qs().filters.date.start=e})("ionChange",function(){return En(n),qs().getDatas()}),$u(17,"translate"),$u(18,"translate"),Ts(),Ss(19,P3,3,0,"ion-buttons",38),Ts(),Is(20,"ion-item"),Is(21,"ion-label",36),bl(22),$u(23,"translate"),Ts(),Is(24,"ion-datetime",39),js("ngModelChange",function(e){return En(n),qs().filters.date.end=e})("ionChange",function(){return En(n),qs().getDatas()}),$u(25,"translate"),$u(26,"translate"),Ts(),Ss(27,O3,3,0,"ion-buttons",38),Ts(),Is(28,"ion-item",40),Is(29,"ion-label",36),bl(30),$u(31,"translate"),Ts(),Ts(),Ss(32,D3,4,3,"ion-item",41),Ts(),Ts()}if(2&e){var i=qs();Os("translucent",!0),Yo(5),wl(ec(6,17,"lang.filters")),Yo(5),Os("placeholder",ec(11,19,"lang.enterUserName")),Yo(4),kl("",ec(15,21,"lang.since"),": "),Yo(2),Os("doneText",ec(17,23,"lang.validate"))("cancelText",ec(18,25,"lang.cancel"))("ngModel",i.filters.date.start)("max",null!==i.filters.date.end?i.filters.date.end:void 0),Yo(3),Os("ngIf",null!==i.filters.date.start),Yo(3),kl("",ec(23,27,"lang.until"),": "),Yo(2),Os("doneText",ec(25,29,"lang.validate"))("cancelText",ec(26,31,"lang.cancel"))("ngModel",i.filters.date.end)("min",null!==i.filters.date.start?i.filters.date.start:void 0),Yo(3),Os("ngIf",null!==i.filters.date.end),Yo(3),kl("",ec(31,33,"lang.actions"),": "),Yo(2),Os("ngForOf",i.actions)}}var T3,M3=((T3=function(){function e(t,n,i,r,o,a,s,l,u,c,d){Z(this,e),this.http=t,this.translate=n,this.menu=i,this.latinisePipe=r,this.viewContainerRef=o,this.dialog=a,this.signaturesService=s,this.notificationService=l,this.authService=u,this.alertController=c,this.sortPipe=d,this.displayedColumns=["creation_date","user","info","ip"],this.loading=!0,this.resources=[],this.offset=0,this.limit=10,this.count=0,this.filters={user:"",messageTypes:[],date:{start:null,end:null}},this.aventTypesIcon={VIEW:"eye-outline",CREATION:"add-circle-outline",ACTION:"settings-outline",THUMBNAIL:"image-outline",EMAIL:"mail-outline",SUPPRESSION:"trash-bin-outline",MODIFICATION:"create-outline",LOGIN:"log-in-outline",LOGOUT:"log-out-outline"},this.actions=[]}return Y(e,[{key:"applyFilter",value:function(e){e=this.latinisePipe.transform(e.toLowerCase()),this.filters.user=e,this.getDatas()}},{key:"openFilters",value:function(){this.menu.open("right-menu")}},{key:"ionViewWillEnter",value:function(){return e=this,n=U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.filters.messageTypes=[],this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.menu.enable(!0,"left-menu"),this.menu.enable(!0,"right-menu"),this.signaturesService.initTemplate(this.rightContent,this.viewContainerRef,"rightContent"),this.getActions(),this.getDatas();case 1:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getActions",value:function(){var e=this;this.http.get("../rest/history/messageTypes",this.filters).pipe(Mw(function(t){e.actions=t.messageTypes.map(function(t){return{id:t,label:e.translate.instant("lang."+t)}}),e.actions=e.sortPipe.transform(e.actions,"label")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"getDatas",value:function(){var e=this;return this.resources=[],this.offset=0,new Promise(function(t){e.http.post("../rest/history?limit=10&offset=0",e.filters).pipe(Mw(function(n){e.resources=n.history,e.count=n.total,t(!0)}),yw(function(n){return e.notificationService.handleErrors(n),t(!1),nb(!1)})).subscribe()})}},{key:"sortData",value:function(e){console.log(e)}},{key:"loadData",value:function(e){var t=this;this.count<=this.limit?(e.target.complete(),e.target.disabled=!0):(this.offset=this.offset+this.limit,this.http.post("../rest/history?limit="+this.limit+"&offset="+this.offset,this.filters).pipe(Mw(function(n){t.resources=t.resources.concat(n.history),e.target.complete(),t.count===t.resources.length&&(e.target.disabled=!0)})).subscribe())}},{key:"getNbFilters",value:function(){var e=0;return""!==this.filters.user&&e++,null!==this.filters.date.start&&e++,null!==this.filters.date.end&&e++,this.filters.messageTypes.length>0&&(e+=this.filters.messageTypes.length),e}},{key:"toggleAction",value:function(e){e.checked?this.filters.messageTypes.push(e.value):this.filters.messageTypes=this.filters.messageTypes.filter(function(t){return t!==e.value}),this.getDatas()}},{key:"clearFilters",value:function(){$(".checkedAction").each(function(){$(this).prop("checked",!1)}),document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user="",this.filters.date.start=this.filters.date.end=null,this.getDatas()}},{key:"removeFilter",value:function(e){this.filters.messageTypes.includes(e)&&$(".checkedAction").each(function(){if($(this).val()===e)return $(this).prop("checked",!1),!1}),this.filters.user===e&&(document.querySelector("ion-searchbar").getInputElement().then(function(e){e.value=""}),this.filters.user=""),this.filters.date.start===e&&(this.filters.date.start=null),this.filters.date.end===e&&(this.filters.date.end=null),this.getDatas()}}]),e}()).\u0275fac=function(e){return new(e||T3)(Ps(Tb),Ps(zP),Ps(RE),Ps(kT),Ps(Mu),Ps(KF),Ps($P),Ps(WP),Ps(tO),Ps(ME),Ps(b3))},T3.\u0275cmp=Ft({type:T3,selectors:[["app-administration-history-list"]],viewQuery:function(e,t){var n;1&e&&bc(w3,3),2&e&&yc(n=kc())&&(t.rightContent=n.first)},features:[Hl([b3])],decls:20,vars:10,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["slot","end","color","secondary"],["slot","end"],["menu","right-menu"],["name","funnel-outline"],["color","primary","color","primary","style","padding-left: 1px;padding-right: 1px;",4,"ngIf"],["mainContent",""],[4,"ngIf"],["rightContent",""],["color","primary","color","primary",2,"padding-left","1px","padding-right","1px"],["shape","round","size","small","fill","clear","slot","start","color","primary",1,"clearFilter",3,"title","click"],["slot","icon-only","name","trash-bin-outline","color","light"],["slot","start",1,"scrollfilters"],["outline","","color","primary",3,"title","click",4,"ngFor","ngForOf"],["outline","","color","primary",3,"title","click",4,"ngIf"],["outline","","color","primary",3,"title","click"],["name","swap-horizontal-outline"],["name","close-circle"],["name","person-outline"],["name","today-outline"],["name","calendar-outline"],["approxItemHeight","90px",3,"items"],["lines","full","class","canSelect",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"],["lines","full",1,"canSelect"],["color","primary","slot","start",3,"name"],[1,"primary"],[3,"title"],[2,"float","right","margin-top","0px"],[1,"ion-text-center"],["lines","none"],[3,"placeholder","ionChange"],["color","secondary"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","max","ngModelChange","ionChange"],["slot","end",4,"ngIf"],["displayFormat","DD/MM/YYYY",3,"doneText","cancelText","ngModel","min","ngModelChange","ionChange"],["lines","none",2,"position","sticky","top","0","z-index","2"],[3,"title",4,"ngFor","ngForOf"],["color","danger","shape","round","fill","clear",3,"click"],["slot","icon-only","name","close-outline"],["slot","start",1,"checkedAction",3,"value","ionChange"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Is(8,"ion-title",4),bl(9),$u(10,"translate"),Ts(),Is(11,"ion-buttons",5),Is(12,"ion-menu-button",6),Ms(13,"ion-icon",7),Ts(),Ts(),Ts(),Ss(14,C3,9,7,"ion-toolbar",8),Ts(),Is(15,"ion-content",null,9),Ss(17,E3,6,4,"ion-list",10),Ts(),Ss(18,I3,33,35,"ng-template",null,11,Cc)),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,6,"lang.history")),Yo(3),xl("",t.count," ",ec(10,8,"lang.entries"),""),Yo(5),Os("ngIf",t.getNbFilters()>0),Yo(3),Os("ngIf",t.resources.length>0))},directives:[kS,tE,aS,RS,iS,AE,$S,xS,jh,pS,oS,Vh,hS,IS,TS,OE,PE,AS,CS,ES,FS,WS,SA,gS,CA,Lm,my,dS,xA],pipes:[jP,gf,ff,bT],styles:[".flex1[_ngcontent-%COMP%]{flex:1}.flex2[_ngcontent-%COMP%]{flex:2}.primary[_ngcontent-%COMP%]{color:var(--ion-color-primary)}  .test .alert-wrapper{min-width:350px}.canSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{user-select:text!important;-webkit-user-select:text!important;-khtml-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important}.scrollfilters[_ngcontent-%COMP%]{overflow:auto;white-space:nowrap;height:50%}.scrollfilters[_ngcontent-%COMP%]   ion-chip[_ngcontent-%COMP%]{height:auto;margin:4px;display:inline-block}ion-button.clearFilter[_ngcontent-%COMP%]{position:sticky;left:0;z-index:1}ion-chip[_ngcontent-%COMP%]{background-color:#fff}"]}),T3),B3=["customizationForm"];function R3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",14),js("click",function(){return En(n),qs(2).watermark.enabled=!1}),bl(1),$u(2,"translate"),Ts()}2&e&&(Yo(1),kl(" ",ec(2,1,"lang.disableWatermark"),""))}function L3(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-button",15),js("click",function(){return En(n),qs(2).watermark.enabled=!0}),bl(2),$u(3,"translate"),Ts(),Ts()}2&e&&(Yo(2),kl("",ec(3,1,"lang.enableWatermark")," "))}function F3(e,t){if(1&e){var n=Fs();Bs(0),Is(1,"ion-card"),Is(2,"ion-item",1),Ms(3,"ion-icon",16),Ms(4,"ion-label",17),$u(5,"translate"),Ts(),Ts(),Is(6,"ion-item"),Is(7,"ion-label",18),bl(8),$u(9,"translate"),Ts(),Is(10,"ion-input",19),js("ngModelChange",function(e){return En(n),qs(2).watermark.text=e}),Ts(),Ms(11,"ion-note",20),$u(12,"translate"),Ts(),Is(13,"ion-radio-group",21),js("ionChange",function(e){return En(n),qs(2).watermark.align=e.detail.value}),Is(14,"ion-list-header"),Is(15,"ion-label",7),bl(16),$u(17,"translate"),Ts(),Ts(),Is(18,"ion-item"),Is(19,"ion-label"),bl(20),$u(21,"translate"),Ts(),Ms(22,"ion-radio",22),Ts(),Is(23,"ion-item"),Is(24,"ion-label"),bl(25),$u(26,"translate"),Ts(),Ms(27,"ion-radio",23),Ts(),Is(28,"ion-item"),Is(29,"ion-label"),bl(30),$u(31,"translate"),Ts(),Ms(32,"ion-radio",24),Ts(),Ts(),Is(33,"ion-item"),Is(34,"ion-label",18),bl(35),$u(36,"translate"),Ts(),Is(37,"ion-input",25),js("ngModelChange",function(e){return En(n),qs(2).watermark.posY=e})("keypress",function(e){return En(n),qs(2).isNumber(e)}),Ts(),Is(38,"ion-note",26),bl(39,"px"),Ts(),Ts(),Rs()}if(2&e){var i=qs(2);Yo(4),Os("innerHTML",ec(5,12,"lang.watermarkDesc"),Zr),Yo(4),wl(ec(9,14,"lang.content")),Yo(2),Os("ngModel",i.watermark.text),Yo(1),Os("innerHTML",ec(12,16,"lang.watermarkContentDesc"),Zr),Yo(2),Os("value",i.watermark.align),Yo(3),wl(ec(17,18,"lang.alignment")),Yo(4),wl(ec(21,20,"lang.left")),Yo(5),wl(ec(26,22,"lang.center")),Yo(5),wl(ec(31,24,"lang.right")),Yo(5),kl("",ec(36,26,"lang.positionY")," "),Yo(2),Os("ngModel",i.watermark.posY)("min",0)}}function N3(e,t){if(1&e){var n=Fs();Is(0,"form",5,6),js("ngSubmit",function(){return En(n),qs().onSubmit()}),Is(2,"ion-content"),Is(3,"ion-list"),Is(4,"ion-list-header"),Is(5,"ion-label",7),bl(6),$u(7,"translate"),Ts(),Ss(8,R3,3,3,"ion-button",8),Ts(),Ss(9,L3,4,3,"ion-item",9),Ss(10,F3,40,28,"ng-container",9),Ts(),Is(11,"ion-item",10),Is(12,"div",11),Is(13,"ion-button",12),Is(14,"ion-label",13),bl(15),$u(16,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(6),kl(" ",ec(7,5,"lang.watermark")," "),Yo(2),Os("ngIf",i.watermark.enabled),Yo(1),Os("ngIf",!i.watermark.enabled),Yo(1),Os("ngIf",i.watermark.enabled),Yo(5),wl(ec(16,7,"lang.validate"))}}var V3,z3,j3,H3=((V3=function(){function e(t,n,i,r,o){Z(this,e),this.http=t,this.translate=n,this.notificationService=i,this.authService=r,this.functions=o,this.loading=!0,this.loginMessage="",this.applicationUrl="",this.watermark={enabled:!1,text:"Document n\xb0[id]",align:"R",posY:10}}return Y(e,[{key:"ngOnInit",value:function(){return e=this,n=U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWatermark();case 2:this.loading=!1;case 3:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getWatermark",value:function(){var e=this;return new Promise(function(t){e.http.get("../rest/customization/watermark").pipe(Mw(function(n){e.functions.empty(n.configuration)||(e.watermark=n.configuration),t(!0)}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()})}},{key:"onSubmit",value:function(){var e=this;this.http.put("../rest/customization",{id:this.authService.user.id,watermark:this.watermark}).pipe(Mw(function(){e.notificationService.success(e.translate.instant("lang.modificationSaved"))}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"isNumber",value:function(e){var t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}]),e}()).\u0275fac=function(e){return new(e||V3)(Ps(Tb),Ps(zP),Ps(WP),Ps(tO),Ps(hW))},V3.\u0275cmp=Ft({type:V3,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&bc(B3,1),2&e&&yc(n=kc())&&(t.customizationForm=n.first)},decls:9,vars:5,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["style","display: contents;","id","customizationForm",3,"ngSubmit",4,"ngIf"],["id","customizationForm",2,"display","contents",3,"ngSubmit"],["customizationForm","ngForm"],["color","secondary"],["size","small","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary"],[2,"font-size","13px"],["size","small","color","danger",3,"click"],["size","small","color","primary",3,"click"],["name","information-circle","slot","start"],[2,"white-space","initial",3,"innerHTML"],["color","secondary","position","floating"],["name","watermarkContent",3,"ngModel","ngModelChange"],[3,"innerHTML"],[3,"value","ionChange"],["slot","start","value","L"],["slot","start","value","C"],["slot","start","value","R"],["type","number","name","watermarkPosY",3,"ngModel","min","ngModelChange","keypress"],["slot","end"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),$u(7,"translate"),Ts(),Ts(),Ts(),Ss(8,N3,17,9,"form",4)),2&e&&(Os("translucent",!0),Yo(6),wl(ec(7,3,"lang.customization")),Yo(2),Os("ngIf",!t.loading))},directives:[kS,tE,aS,RS,iS,AE,$S,jh,yy,Fm,py,pS,TS,MS,IS,ES,oS,sS,xS,SS,SA,Lm,my,FS,VS,CA,NS,AA,_A],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),V3),U3=function(){return{standalone:!0}},W3=((j3=function(){function e(t,n,i,r,o,a,s,l,u,c){Z(this,e),this.http=t,this.translate=n,this.route=i,this.router=r,this.signaturesService=o,this.notificationService=a,this.dialog=s,this.authService=l,this.modalController=u,this.functions=c,this.creationMode=!0,this.loading=!0,this.loadingTest=!1,this.casTest={login:"",password:"",result:""},this.cas={id:null,label:"",identifier:"casServer",value:{version:"CAS_VERSION_2_0",url:"",port:null,context:"",separator:null,certificate:""}},this.title=""}return Y(e,[{key:"ngOnInit",value:function(){var e=this;this.casTest.login=this.authService.user.login,this.route.params.subscribe(function(t){e.creationMode=!1,e.http.get("../rest/configurations?identifier=casServer").pipe(ye(function(e){return e.configurations[0]}),Mw(function(t){var n,i,r,o,a,s;e.functions.empty(t)||(e.cas={id:t.id,label:t.label,identifier:t.identifier,value:{version:null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.version,url:null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.url,port:null===(r=null==t?void 0:t.value)||void 0===r?void 0:r.port,context:null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.context,separator:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.separator,certificate:null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.certificate}},e.casClone=JSON.parse(JSON.stringify(e.cas)),e.title=e.cas.label)}),Lw(function(){return e.loading=!1}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()})}},{key:"canValidate",value:function(){return JSON.stringify(this.cas)!==JSON.stringify(this.casClone)}},{key:"onSubmit",value:function(){this.modifyCas()}},{key:"modifyCas",value:function(){var e=this;null!==this.cas.id?this.http.patch("../rest/configurations/"+this.cas.id,this.cas).pipe(Lw(function(){e.loading=!1,e.router.navigate(["/administration/connections"]),e.notificationService.success("lang.casUpdated")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe():this.createCas()}},{key:"createCas",value:function(){var e=this;this.loading=!0,this.http.post("../rest/configurations",this.cas).pipe(Lw(function(){e.loading=!1,e.router.navigate(["/administration/connections"]),e.notificationService.success("lang.casAdded")}),yw(function(t){return e.notificationService.handleErrors(t),nb(!1)})).subscribe()}},{key:"cancel",value:function(){this.router.navigate(["/administration/connections"])}},{key:"isNumber",value:function(e){var t=(e=e||window.event).which?e.which:e.keyCode;return!(t>31&&(t<48||t>57))}}]),e}()).\u0275fac=function(e){return new(e||j3)(Ps(Tb),Ps(zP),Ps(Uk),Ps(h_),Ps($P),Ps(WP),Ps(KF),Ps(tO),Ps(LE),Ps(hW))},j3.\u0275cmp=Ft({type:j3,selectors:[["app-administration-cas"]],decls:66,vars:52,consts:[[3,"translucent"],["color","primary"],["slot","start"],["menu","left-menu"],["id","adminForm",2,"display","contents",3,"ngSubmit"],["adminForm","ngForm"],["color","secondary","position","floating"],["name","label","required","",3,"ngModel","ngModelChange"],["interface","popover",3,"ngModelOptions","value","ngModel","placeholder","ngModelChange"],["value","CAS_VERSION_2_0"],["value","CAS_VERSION_3_0"],["name","url","required","",3,"ngModel","ngModelChange"],["name","port","type","number","required","",3,"ngModel","keypress","ngModelChange"],["name","context","required","",3,"ngModel","ngModelChange"],["name","separator",3,"ngModel","ngModelChange"],["name","certificate",3,"ngModel","ngModelChange"],["text-center","","lines","none",2,"position","sticky","bottom","0px","z-index","1"],[2,"display","flex","align-items","center","justify-content","center","width","100%","background","white"],["type","submit","shape","round","size","large","fill","outline","color","primary",3,"disabled"],[2,"font-size","13px"]],template:function(e,t){if(1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-buttons",2),Ms(3,"ion-menu-button",3),Ms(4,"ion-back-button"),Ts(),Is(5,"ion-title"),bl(6),Ts(),Ts(),Ts(),Is(7,"form",4,5),js("ngSubmit",function(){return t.onSubmit()}),Is(9,"ion-content"),Is(10,"ion-item"),Is(11,"ion-label",6),bl(12),$u(13,"translate"),Ts(),Is(14,"ion-input",7),js("ngModelChange",function(e){return t.cas.label=e}),Ts(),Ts(),Is(15,"ion-item"),Is(16,"ion-label",6),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-select",8),js("ngModelChange",function(e){return t.cas.value.version=e}),$u(20,"translate"),Is(21,"ion-select-option",9),bl(22),$u(23,"translate"),Ts(),Is(24,"ion-select-option",10),bl(25),$u(26,"translate"),Ts(),Ts(),Ts(),Is(27,"ion-item"),Is(28,"ion-label",6),bl(29),$u(30,"translate"),Ts(),Is(31,"ion-input",11),js("ngModelChange",function(e){return t.cas.value.url=e}),Ts(),Ts(),Is(32,"ion-item"),Is(33,"ion-label",6),bl(34),$u(35,"translate"),Ts(),Is(36,"ion-input",12),js("keypress",function(e){return t.isNumber(e)})("ngModelChange",function(e){return t.cas.value.port=e}),Ts(),Ms(37,"ion-note"),Ts(),Is(38,"ion-item"),Is(39,"ion-label",6),bl(40),$u(41,"translate"),Ts(),Is(42,"ion-input",13),js("ngModelChange",function(e){return t.cas.value.context=e}),Ts(),Ms(43,"ion-note"),Ts(),Is(44,"ion-item"),Is(45,"ion-label",6),bl(46),$u(47,"translate"),Ts(),Is(48,"ion-input",14),js("ngModelChange",function(e){return t.cas.value.separator=e}),Ts(),Is(49,"ion-note"),bl(50),$u(51,"translate"),Ts(),Ts(),Is(52,"ion-item"),Is(53,"ion-label",6),bl(54),$u(55,"translate"),Ts(),Is(56,"ion-input",15),js("ngModelChange",function(e){return t.cas.value.certificate=e}),Ts(),Is(57,"ion-note"),bl(58),$u(59,"translate"),Ts(),Ts(),Is(60,"ion-item",16),Is(61,"div",17),Is(62,"ion-button",18),Is(63,"ion-label",19),bl(64),$u(65,"translate"),Ts(),Ts(),Ts(),Ts(),Ts(),Ts()),2&e){var n=Es(8);Os("translucent",!0),Yo(6),wl(t.title),Yo(6),kl("",ec(13,25,"lang.label")," *"),Yo(2),Os("ngModel",t.cas.label),Yo(3),kl("",ec(18,27,"lang.versionCas")," *"),Yo(2),Qs("placeholder",ec(20,29,"lang.casVersion")),Os("ngModelOptions",Yu(51,U3))("value",t.cas.value.version)("ngModel",t.cas.value.version),Yo(3),kl("",ec(23,31,"lang.casV2")," "),Yo(3),kl("",ec(26,33,"lang.casV3")," "),Yo(4),kl("",ec(30,35,"lang.urlCas")," *"),Yo(2),Os("ngModel",t.cas.value.url),Yo(3),kl("",ec(35,37,"lang.port")," *"),Yo(2),Os("ngModel",t.cas.value.port),Yo(4),kl("",ec(41,39,"lang.contextCas")," *"),Yo(2),Os("ngModel",t.cas.value.context),Yo(4),wl(ec(47,41,"lang.separatorCas")),Yo(2),Os("ngModel",t.cas.value.separator),Yo(2),wl(ec(51,43,"lang.casIdReturn")),Yo(4),wl(ec(55,45,"lang.certificateCas")),Yo(2),Os("ngModel",t.cas.value.certificate),Yo(2),wl(ec(59,47,"lang.casCertificatPath")),Yo(4),Os("disabled",!n.form.valid||!t.canValidate()),Yo(2),wl(ec(65,49,"lang.validate"))}},directives:[kS,tE,aS,RS,iS,AE,$S,yy,Fm,py,pS,ES,IS,SS,SA,Yy,Lm,my,YS,CA,ZS,_A,FS,oS],pipes:[jP],styles:[".header[_ngcontent-%COMP%]{background:#135f7f;height:95px;color:#fff;padding-left:10px;font-size:25px}.header[_ngcontent-%COMP%], .header-title[_ngcontent-%COMP%]{display:flex;align-items:center}.header-title[_ngcontent-%COMP%]{flex:1;white-space:pre;overflow:hidden;text-overflow:ellipsis}.header[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#f99830}.header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.mainView[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%]{flex:1;overflow:auto}.loader[_ngcontent-%COMP%]{position:absolute;z-index:2;display:flex;background:hsla(0,0%,100%,.8);width:100%;height:100%;justify-content:center;align-items:center;top:0;margin:0;padding:0}.admin-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:20px}.actions-form[_ngcontent-%COMP%]{display:flex;justify-content:center}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]{flex-direction:column}}.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;width:150px}@media (max-width:360px){.actions-form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.noResult[_ngcontent-%COMP%]{padding:10px;text-align:center;opacity:.5}.emptyTable[_ngcontent-%COMP%]{height:auto}.addButton[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:flex-end}",""]}),j3),G3=((z3=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||z3)},z3.\u0275mod=jt({type:z3}),z3.\u0275inj=at({imports:[[D_.forRoot([{path:"home",canActivate:[Bj],component:K1},{path:"indexation",canActivate:[Bj],component:_2},{path:"profile",canActivate:[Bj],component:q1},{path:"search",canActivate:[Bj],component:y3},{path:"administration",canActivate:[Bj],component:Nj},{path:"administration/users",canActivate:[Bj],component:Gj},{path:"administration/users/new",canActivate:[Bj],component:lH},{path:"administration/users/:id",canActivate:[Bj],component:lH},{path:"administration/groups",canActivate:[Bj],component:gH},{path:"administration/groups/new",canActivate:[Bj],component:RH},{path:"administration/groups/:id",canActivate:[Bj],component:RH},{path:"administration/connections",canActivate:[Bj],component:zH},{path:"administration/connections/ldaps",canActivate:[Bj],component:YH},{path:"administration/connections/cas",canActivate:[Bj],component:W3},{path:"administration/connections/ldaps/new",canActivate:[Bj],component:oU},{path:"administration/connections/ldaps/:id",canActivate:[Bj],component:oU},{path:"administration/emailConfiguration",canActivate:[Bj],component:pU},{path:"administration/passwordRules",canActivate:[Bj],component:d1},{path:"administration/history",canActivate:[Bj],component:M3},{path:"administration/customization",canActivate:[Bj],component:H3},{path:"documents/:id",canActivate:[Bj],component:Y0},{path:"login",canActivate:[Bj],component:i1},{path:"forgot-password",component:r1},{path:"update-password",component:c1},{path:"password-modification",component:m1},{path:"**",redirectTo:"login",pathMatch:"full"}],{relativeLinkResolution:"legacy",useHash:!0})],D_]}),z3);function q3(e,t){if(1&e){var n=Fs();Is(0,"ion-item",3),js("click",function(){return En(n),qs().menu.close("left-menu")}),Ms(1,"ion-icon",4),Is(2,"ion-label"),bl(3),$u(4,"translate"),Ts(),Ts()}if(2&e){var i=t.$implicit;al("item-active",qs().isActiveRoute(i.route)),Os("routerLink",i.route),Yo(1),Os("name",i.icon),Yo(2),wl(ec(4,5,"lang."+i.id))}}var Y3,Z3=((Y3=function(){function e(t,n,i,r){Z(this,e),this.route=t,this.router=n,this.authService=i,this.menu=r,this.loading=!0,this.privileges=[]}return Y(e,[{key:"ngOnInit",value:function(){}},{key:"openHome",value:function(){this.router.navigate(["/documents/"])}},{key:"isActiveRoute",value:function(e){return this.router.url.split("/").indexOf(e.replace("/administration/",""))>-1}}]),e}()).\u0275fac=function(e){return new(e||Y3)(Ps(Uk),Ps(h_),Ps(tO),Ps(RE))},Y3.\u0275cmp=Ft({type:Y3,selectors:[["app-admin-sidebar"]],decls:8,vars:4,consts:[["color","light"],[2,"text-align","center","font-size","14px"],["routerDirection","root",3,"routerLink","item-active","click",4,"ngFor","ngForOf"],["routerDirection","root",3,"routerLink","click"],["slot","start","color","primary",3,"name"]],template:function(e,t){1&e&&(Is(0,"ion-header"),Is(1,"ion-toolbar",0),Is(2,"ion-title",1),bl(3),$u(4,"translate"),Ts(),Ts(),Ts(),Is(5,"ion-content"),Is(6,"ion-list"),Ss(7,q3,5,7,"ion-item",2),Ts(),Ts()),2&e&&(Yo(3),kl(" ",ec(4,2,"lang.administration")," "),Yo(4),Os("ngForOf",t.authService.user.administrativePrivileges))},directives:[kS,tE,$S,pS,TS,Vh,ES,CE,f_,xS,IS],pipes:[jP],styles:[".item-active[_ngcontent-%COMP%]{border-left:5px solid var(--ion-color-primary);--background:rgba(var(--ion-color-primary-rgb),0.14);color:var(--ion-color-primary);font-weight:700}"]}),Y3),K3=["listContent"],Q3=["searchInput"];function X3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().authService.logout()}),$u(1,"translate"),Ms(2,"ion-icon",15),Ts()}2&e&&Os("title",ec(1,1,"lang.logout"))}function J3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().openAdmin()}),$u(1,"translate"),Ms(2,"ion-icon",16),Ts()}2&e&&Os("title",ec(1,1,"lang.administration"))}function $3(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().openHome()}),$u(1,"translate"),Ms(2,"ion-icon",17),Ts()}2&e&&Os("title",ec(1,1,"lang.homePage"))}function e4(e,t){if(1&e){var n=Fs();Is(0,"ion-button",8),js("click",function(){return En(n),qs().openIndexation()}),$u(1,"translate"),Ms(2,"ion-icon",18),Ms(3,"ion-icon",19),Ts()}2&e&&Os("title",ec(1,1,"lang.indexationAdmin"))}function t4(e,t){if(1&e&&(Is(0,"span",26),bl(1),$u(2,"translate"),Ts()),2&e){var n=qs(3);Yo(1),wl(ec(2,1,"lang."+n.signaturesService.mode+"Label"))}}function n4(e,t){if(1&e){var n=Fs();Is(0,"ion-title",23),js("click",function(e){return En(n),qs(2).search(e)}),$u(1,"translate"),Is(2,"span"),bl(3),Ts(),bl(4),$u(5,"translate"),Ss(6,t4,3,3,"span",24),bl(7," \xa0 "),Ms(8,"ion-icon",25),Ts()}if(2&e){var i=qs(2);Os("title",ec(1,6,"lang.filterInfo")),Yo(2),al("primary",""!=i.signaturesService.mode),Yo(1),wl(i.signaturesService.documentsListCount.current),Yo(1),kl(" ",ec(5,8,"lang.documents")," "),Yo(2),Os("ngIf",""!=i.signaturesService.mode)}}function i4(e,t){if(1&e){var n=Fs();Is(0,"ion-searchbar",27,28),js("ionCancel",function(e){En(n);var t=qs(2);return t.search(e),t.searchMode=!t.searchMode}),$u(2,"translate"),Ts()}if(2&e){var i=qs(2);Os("placeholder",ec(2,2,"lang.filterInfo"))("formControl",i.searchTerm)}}function r4(e,t){if(1&e&&(Is(0,"ion-header"),Is(1,"ion-toolbar",20),Ss(2,n4,9,10,"ion-title",21),Ss(3,i4,3,4,"ion-searchbar",22),Ts(),Ts()),2&e){var n=qs();Yo(2),Os("ngIf",!n.searchMode),Yo(1),Os("ngIf",n.searchMode)}}function o4(e,t){if(1&e){var n=Fs();Is(0,"ion-header",29),Is(1,"ion-toolbar",30),Is(2,"ion-segment",31),Is(3,"ion-segment-button",32),js("click",function(){return En(n),qs().filter("sign")}),Is(4,"ion-label"),bl(5),$u(6,"titlecase"),$u(7,"translate"),Ts(),Ms(8,"ion-icon",33),Is(9,"ion-badge",34),bl(10),Ts(),Ts(),Is(11,"ion-segment-button",35),js("click",function(){return En(n),qs().filter("visa")}),Is(12,"ion-label"),bl(13),$u(14,"titlecase"),$u(15,"translate"),Ts(),Ms(16,"ion-icon",36),Is(17,"ion-badge",34),bl(18),Ts(),Ts(),Is(19,"ion-segment-button",37),js("click",function(){return En(n),qs().filter("note")}),Is(20,"ion-label"),bl(21),$u(22,"titlecase"),$u(23,"translate"),Ts(),Ms(24,"ion-icon",38),Is(25,"ion-badge",34),bl(26),Ts(),Ts(),Ts(),Ts(),Ts()}if(2&e){var i=qs();Yo(2),Os("value",i.signaturesService.mode),Yo(1),al("segment-button-notFocused","sign"!==i.signaturesService.mode),Yo(2),wl(ec(6,13,ec(7,15,"lang.signLabel"))),Yo(5),wl(i.signaturesService.documentsListCount.sign),Yo(1),al("segment-button-notFocused","visa"!==i.signaturesService.mode),Yo(2),wl(ec(14,17,ec(15,19,"lang.visaLabel"))),Yo(5),wl(i.signaturesService.documentsListCount.visa),Yo(1),al("segment-button-notFocused","note"!==i.signaturesService.mode),Yo(2),wl(ec(22,21,ec(23,23,"lang.noteLabel"))),Yo(5),wl(i.signaturesService.documentsListCount.note)}}function a4(e,t){1&e&&Ms(0,"app-admin-sidebar",39)}function s4(e,t){1&e&&(Is(0,"ion-item",44),Is(1,"ion-label",45),bl(2),$u(3,"titlecase"),$u(4,"translate"),Ts(),Ts()),2&e&&(Yo(2),kl(" ",ec(3,1,ec(4,3,"lang.noResult"))," "))}function l4(e,t){1&e&&Ms(0,"ion-icon",56)}function u4(e,t){1&e&&Ms(0,"ion-icon",57)}function c4(e,t){1&e&&Ms(0,"ion-icon",58)}function d4(e,t){1&e&&Ms(0,"ion-icon",59)}function h4(e,t){1&e&&(Is(0,"ion-label",60),bl(1),$u(2,"translate"),Ts()),2&e&&(Yo(1),kl(" ",ec(2,1,"lang.substitutedDoc"),""))}var f4=function(e){return[e]};function p4(e,t){if(1&e){var n=Fs();Is(0,"ion-menu-toggle",46),Is(1,"ion-item",47),js("click",function(){En(n);var e=t.index;return qs(2).filterService.currentIndex=e}),Ss(2,l4,1,0,"ion-icon",48),Ss(3,u4,1,0,"ion-icon",49),Ss(4,c4,1,0,"ion-icon",50),Ss(5,d4,1,0,"ion-icon",51),Is(6,"div"),Is(7,"ion-label",52),bl(8),Ts(),Is(9,"ion-label",53),bl(10),$u(11,"shorten"),Ts(),Ss(12,h4,3,3,"ion-label",54),Ts(),Ms(13,"ion-icon",55),Ts(),Ts()}if(2&e){var i=t.$implicit,r=qs(2);Yo(1),al("selected",r.router.url==="/documents/"+i.id),Os("routerLink",Zu(14,f4,"/documents/"+i.id)),Yo(1),Os("ngIf","sign"==i.mode),Yo(1),Os("ngIf","visa"==i.mode),Yo(1),Os("ngIf","note"==i.mode),Yo(1),Os("ngIf",!r.functionsService.empty(i.mailingId)),Yo(3),wl(i.reference),Yo(2),wl(nc(11,10,i.title,50,"...")),Yo(2),Os("ngIf",!i.owner)}}function g4(e,t){if(1&e){var n=Fs();Is(0,"ion-infinite-scroll",61),js("ionInfinite",function(e){return En(n),qs(2).loadData(e)}),Ms(1,"ion-infinite-scroll-content",62),$u(2,"translate"),Ts()}2&e&&(Yo(1),Os("loadingText",ec(2,1,"lang.loadingMoreData")))}function v4(e,t){if(1&e&&(Is(0,"ion-content"),Is(1,"ion-list",40),Ss(2,s4,5,5,"ion-item",41),Ss(3,p4,14,16,"ion-menu-toggle",42),Ts(),Ss(4,g4,3,3,"ion-infinite-scroll",43),Ts()),2&e){var n=qs();Yo(2),Os("ngIf",0==n.signaturesService.documentsList.length),Yo(1),Os("ngForOf",n.signaturesService.documentsList),Yo(1),Os("ngIf",n.signaturesService.documentsList.length>0)}}var m4,y4=((m4=function(){function e(t,n,i,r,o,a,s,l,u,c){var d=this;Z(this,e),this.http=t,this.signaturesService=n,this.route=i,this.router=r,this.menu=o,this.notificationService=a,this.authService=s,this.modalController=l,this.functionsService=u,this.filterService=c,this.loadingList=!1,this.searchMode=!1,this.searchTerm=new uy,this.searchTerm.valueChanges.pipe(OT(500),J_(),Mw(function(e){return d.loadingList=!0}),sw(function(e){return d.http.get("../rest/documents?limit="+d.filterService.limit+"&search="+e)})).subscribe(function(e){d.signaturesService.documentsList=e.documents,d.signaturesService.documentsListCount=e.count,d.loadingList=!1})}return Y(e,[{key:"ngOnInit",value:function(){var e=this;$(".avatar").css({background:"url(data:image/png;base64,"+this.authService.user.picture+") no-repeat #135F7F"}).css({"background-size":"cover"}).css({"background-position":"center"}),this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).subscribe(function(t){e.signaturesService.documentsList=t.documents,e.signaturesService.documentsListCount=t.count})}},{key:"ngAfterViewInit",value:function(){this.filter("")}},{key:"openProfile",value:function(){return e=this,n=U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:q1,cssClass:"profileCss"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"openAdmin",value:function(){this.menu.close("left-menu"),this.router.navigate(["/administration/"])}},{key:"openHome",value:function(){this.router.navigate(["/home"])}},{key:"openIndexation",value:function(){this.menu.close("left-menu"),this.router.navigate(["/indexation"])}},{key:"openSearch",value:function(){this.menu.close("left-menu"),this.router.navigate(["/search"])}},{key:"search",value:function(e){var t=this;this.searchMode=!0,this.signaturesService.mode="",this.filter(""),setTimeout(function(){"ionCancel"!==e.type&&(t.searchInput.value="",t.searchInput.setFocus())},0)}},{key:"filter",value:function(e){var t=this;this.signaturesService.documentsList=[],""!==e&&(this.searchMode=!1),this.loadingList=!0,this.signaturesService.mode=this.signaturesService.mode===e?"":e,this.filterService.offset=0,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Lw(function(){t.loadingList=!1})).subscribe(function(e){t.signaturesService.documentsList=e.documents,t.signaturesService.documentsListCount=e.count,t.loadingList=!1})}},{key:"checkClose",value:function(){return!(!(-1!==this.route.routeConfig.path.indexOf("administration")||this.signaturesService.mainDocumentId>0)||!this.signaturesService.mobileMode)}},{key:"loadData",value:function(e){var t=this;this.filterService.offset=this.filterService.offset+this.filterService.limit,this.http.get("../rest/documents?limit="+this.filterService.limit+"&offset="+this.filterService.offset+"&mode="+this.signaturesService.mode).pipe(Mw(function(n){t.signaturesService.documentsList=t.signaturesService.documentsList.concat(n.documents),e.target.complete(),t.signaturesService.documentsList.length===t.signaturesService.documentsListCount.current&&(e.target.disabled=!0)})).subscribe()}},{key:"isAdminRoute",value:function(){return this.router.url.split("/").indexOf("administration")>-1}},{key:"canIndex",value:function(){return this.authService.user.appPrivileges.map(function(e){return e.id}).indexOf("indexation")>-1}}]),e}()).\u0275fac=function(e){return new(e||m4)(Ps(Tb),Ps($P),Ps(Uk),Ps(h_),Ps(RE),Ps(WP),Ps(tO),Ps(LE),Ps(hW),Ps(eW))},m4.\u0275cmp=Ft({type:m4,selectors:[["app-sidebar"]],viewQuery:function(e,t){var n;1&e&&(bc(K3,1),bc(Q3,1)),2&e&&(yc(n=kc())&&(t.listContent=n.first),yc(n=kc())&&(t.searchInput=n.first))},decls:23,vars:16,consts:[[3,"translucent"],["color","primary"],["color","primary","lines","none"],["color","secondary",1,"ion-text-center"],[2,"font-weight","bold","font-size","24px"],["slot","start"],[3,"title","click",4,"ngIf"],["slot","end"],[3,"title","click"],["slot","icon-only","name","search-outline"],[1,"avatar-user",3,"click"],[3,"src"],[4,"ngIf"],["style","background: white;",4,"ngIf"],["style","display: contents;",4,"ngIf"],["slot","icon-only","name","power"],["slot","icon-only","name","settings-outline"],["slot","icon-only","name","home"],["slot","icon-only","name","document-outline"],["slot","icon-only","name","add-circle",2,"position","absolute","top","0px","font-size","15px","right","-5px"],["color","light"],["style","text-align: center;font-size: 14px;",3,"title","click",4,"ngIf"],["showCancelButton","always",3,"placeholder","formControl","ionCancel",4,"ngIf"],[2,"text-align","center","font-size","14px",3,"title","click"],["class","primary",4,"ngIf"],["color","primary","name","search-outline"],[1,"primary"],["showCancelButton","always",3,"placeholder","formControl","ionCancel"],["searchInput",""],[2,"background","white"],[1,"filters"],["value","heart",3,"value"],["value","sign",3,"click"],["color","primary","name","pencil-outline"],["color","secondary"],["value","visa",3,"click"],["color","primary","name","checkmark-done-outline"],["value","note",3,"click"],["color","primary","name","chatbubble-ellipses-outline"],[2,"display","contents"],["id","labels-list"],["lines","none",4,"ngIf"],["auto-hide","false",4,"ngFor","ngForOf"],["threshold","100px",3,"ionInfinite",4,"ngIf"],["lines","none"],["color","medium",1,"ion-text-center"],["auto-hide","false"],["routerDirection","root","detail","false",1,"doc-item",3,"routerLink","click"],["color","primary","slot","start","name","pencil-outline",4,"ngIf"],["color","primary","slot","start","name","checkmark-done-outline",4,"ngIf"],["color","primary","slot","start","name","chatbubble-ellipses-outline",4,"ngIf"],["slot","start","color","danger","name","layers","class","groupMailIcon",4,"ngIf"],[1,"sub-label"],["color","primary",1,"ion-text-wrap"],["color","secondary","class","sub-label",4,"ngIf"],["slot","end","color","medium","name","arrow-forward-outline"],["color","primary","slot","start","name","pencil-outline"],["color","primary","slot","start","name","checkmark-done-outline"],["color","primary","slot","start","name","chatbubble-ellipses-outline"],["slot","start","color","danger","name","layers",1,"groupMailIcon"],["color","secondary",1,"sub-label"],["threshold","100px",3,"ionInfinite"],["loadingSpinner","bubbles",3,"loadingText"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-item",2),Is(3,"ion-label",3),Is(4,"h2",4),bl(5),Ts(),Ts(),Ts(),Ts(),Ts(),Is(6,"ion-header",0),Is(7,"ion-toolbar",1),Is(8,"ion-buttons",5),Ss(9,X3,3,3,"ion-button",6),Ss(10,J3,3,3,"ion-button",6),Ss(11,$3,3,3,"ion-button",6),Ts(),Is(12,"ion-buttons",7),Is(13,"ion-button",8),js("click",function(){return t.openSearch()}),$u(14,"translate"),Ms(15,"ion-icon",9),Ts(),Ss(16,e4,4,3,"ion-button",6),Ts(),Ts(),Ts(),Is(17,"ion-avatar",10),js("click",function(){return t.openProfile()}),Ms(18,"img",11),Ts(),Ss(19,r4,4,2,"ion-header",12),Ss(20,o4,27,25,"ion-header",13),Ss(21,a4,1,0,"app-admin-sidebar",14),Ss(22,v4,5,3,"ion-content",12)),2&e&&(Os("translucent",!0),Yo(5),xl("",t.authService.user.firstname," ",t.authService.user.lastname,""),Yo(1),Os("translucent",!0),Yo(3),Os("ngIf","x509"!==t.authService.authMode&&"kerberos"!==t.authService.authMode&&"azure_saml"!==t.authService.authMode),Yo(1),Os("ngIf",!t.isAdminRoute()&&t.authService.user.administrativePrivileges.length>0),Yo(1),Os("ngIf",t.isAdminRoute()),Yo(2),Os("title",ec(14,14,"lang.search")),Yo(3),Os("ngIf",t.canIndex()),Yo(2),Os("src",t.authService.user.picture,Kr),Yo(1),Os("ngIf",!t.isAdminRoute()),Yo(1),Os("ngIf",!t.isAdminRoute()),Yo(1),Os("ngIf",t.isAdminRoute()),Yo(1),Os("ngIf",!t.isAdminRoute()))},directives:[kS,tE,ES,IS,aS,jh,oS,xS,nS,$S,WS,SA,Lm,xy,GS,CA,qS,rS,Z3,pS,TS,Vh,LS,CE,f_,AS,CS],pipes:[jP,ff,bT],styles:['.main-header[_ngcontent-%COMP%]{height:205px;overflow:auto}.sidebar[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;display:flex;flex-direction:column}.sidebar-header[_ngcontent-%COMP%]{background:#f1f4f4;height:50px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;padding-top:10px}.sidebar-header-icon[_ngcontent-%COMP%]{margin-right:15px;position:relative}.sidebar-header-icon.notification[_ngcontent-%COMP%]:after{position:absolute;right:-5px;top:-5px;width:10px;height:10px;border-radius:50%;background:#e74c3c;content:""}.sidebar-header-subtitle[_ngcontent-%COMP%]{color:#9b9b9b}.sidebar-btn[_ngcontent-%COMP%]{height:50px;display:flex;align-items:center;justify-content:space-around}.sidebar[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{flex:1;overflow-y:scroll;margin-top:0;overflow-x:hidden;margin-bottom:0;padding:0;position:relative}.sidebar[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{height:70px;display:flex;align-items:center;border-bottom:1px solid #e6e6e6;margin:0;padding:5px 5px 5px 30px;cursor:pointer}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]{border-left:5px solid #135f7f;background:rgba(19,95,127,.14)}.sidebar[_ngcontent-%COMP%]   .nav-item.active[_ngcontent-%COMP%]:after{position:absolute;right:10px;content:"";height:60px;background:#f1f4f4}.sidebar[_ngcontent-%COMP%]   .nav-item-right[_ngcontent-%COMP%]{text-align:center}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]{width:50px}.sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%]   .nav-item-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{background:#f1f4f4;border-radius:50%;color:#135f7f;font-size:22px;height:25px;width:25px;padding:10px;margin-right:10px}.sidebar[_ngcontent-%COMP%]   .nav-item-middle[_ngcontent-%COMP%]{width:180px;height:50px;font-size:12px;color:#4f4f4f}.sidebar[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{font-weight:600;color:#135f7f;font-size:14px}.profile-header[_ngcontent-%COMP%]{background:#135f7f;height:95px;display:flex;justify-content:center;position:relative}.avatar[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:65px;height:65px;border-radius:40px;bottom:-20px;border:3px solid #f99830;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .2s}.avatar[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px 0 #656565}.user[_ngcontent-%COMP%]{color:#fff;padding-top:10px;font-weight:700;font-size:20px;max-width:90%;right:0;white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:10px}.filter[_ngcontent-%COMP%]{font-size:10px;width:95px;padding-left:0;padding-right:0}.filter.active[_ngcontent-%COMP%]{background:#135f7f}.mat-badge-content[_ngcontent-%COMP%]{right:0!important;top:-8px!important;background:#f99830}.noResult[_ngcontent-%COMP%]{position:absolute;top:50%;text-align:center;width:100%;opacity:.5}.noDoc[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background:#ddd}.sub-label[_ngcontent-%COMP%]{font-size:11px;--color:var(--ion-color-medium)}ion-item.selected[_ngcontent-%COMP%]{--background:rgba(var(--ion-color-primary-rgb),0.2)}.doc-item[_ngcontent-%COMP%]{--inner-padding-bottom:10px;--inner-padding-top:10px}.filters[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;color:#fff}.avatar-user[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:99;left:50%;transform:translateX(-50%);top:60px;border:solid var(--ion-color-secondary);width:71px;height:71px}.groupMailIcon[_ngcontent-%COMP%]{position:absolute;left:40px;font-size:14px;bottom:10px}.segment-button-notFocused[_ngcontent-%COMP%]{--indicator-color:none}']}),m4);function b4(e,t){if(1&e){var n=Fs();Is(0,"ion-segment-button",10),js("ionChange",function(e){return En(n),qs(2).setActiveLang(e)}),Is(1,"ion-label"),bl(2),Is(3,"ion-badge",11),bl(4),Ts(),Ts(),Ts()}if(2&e){var i=qs().$implicit,r=qs();Os("value",r.currentLang),Yo(2),kl("",i.key," "),Yo(2),wl(r.missingLang[i.key].length)}}function w4(e,t){if(1&e&&(Is(0,"span"),Ss(1,b4,5,3,"ion-segment-button",9),Ts()),2&e){var n=t.$implicit;Yo(1),Os("ngIf","fr"!==n.key)}}function k4(e,t){if(1&e){var n=Fs();Is(0,"ion-item"),Is(1,"ion-label",13),bl(2),Ts(),Is(3,"ion-input",14),js("ngModelChange",function(e){return t.$implicit.value=e}),Ts(),Is(4,"ion-button",15),js("click",function(){En(n);var e=t.$implicit;return qs(2).openTranslation(e.value)}),Ms(5,"ion-icon",16),Ts(),Ts()}if(2&e){var i=t.$implicit;Yo(2),wl(i.id),Yo(1),Os("ngModel",i.value)}}function x4(e,t){if(1&e&&(Is(0,"ion-list",12),Ss(1,k4,6,2,"ion-item",5),Ts()),2&e){var n=qs();Yo(1),Os("ngForOf",n.missingLang[n.currentLang])}}var _4,A4,C4=((A4=function(){function e(t,n,i,r){Z(this,e),this.http=t,this.notify=n,this.translate=i,this.modalController=r,this.missingLang={},this.currentLang="en",this.data={}}return Y(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"dismissModal",value:function(){this.modalController.dismiss("cancel")}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(Mw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.missingLang[t]=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).map(function(t){return{id:t,value:e.allLang.fr.lang[t]+"__TO_TRANSLATE"}})})}),yw(function(t){return e.notify.handleErrors(t),nb(!1)})).subscribe()}},{key:"openTranslation",value:function(e){window.open("https://translate.google.fr/?hl=fr#view=home&op=translate&sl=fr&tl="+this.currentLang+"&text="+e.replace("__TO_TRANSLATE",""),"_blank")}},{key:"setActiveLang",value:function(e){this.currentLang=e.detail.value}},{key:"generateMissingLang",value:function(e){var t=this,n={},i=this.allLang[this.currentLang],r=/__TO_TRANSLATE$/g;this.missingLang[this.currentLang].forEach(function(t){null===t.value.match(r)&&e?n[t.id]=t.value:e||(n[t.id]=t.value)}),i.lang=Object.assign(Object.assign({},i.lang),n),this.http.put("../rest/languages",{langId:this.currentLang,jsonContent:i}).pipe(Mw(function(e){Object.keys(n).forEach(function(e){delete t.allLang[t.currentLang][e],t.missingLang[t.currentLang]=t.missingLang[t.currentLang].filter(function(t){return t.id!==e}),t.data.countMissingLang--}),t.modalController.dismiss("cancel")}),yw(function(e){return t.notify.handleErrors(e),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||A4)(Ps(Tb),Ps(WP),Ps(zP),Ps(LE))},A4.\u0275cmp=Ft({type:A4,selectors:[["ng-component"]],decls:22,vars:14,consts:[["translucent",""],["color","primary"],["slot","end"],[3,"click"],["slot","icon-only","name","close-outline"],[4,"ngFor","ngForOf"],["lines","full",4,"ngIf"],[3,"translucent"],["size","small","color","primary",3,"click"],[3,"value","ionChange",4,"ngIf"],[3,"value","ionChange"],["color","secondary"],["lines","full"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["slot","end","color","primary",3,"click"],["name","language-outline"]],template:function(e,t){1&e&&(Is(0,"ion-header",0),Is(1,"ion-toolbar",1),Is(2,"ion-title"),bl(3),$u(4,"translate"),Ts(),Is(5,"ion-buttons",2),Is(6,"ion-button",3),js("click",function(){return t.dismissModal()}),Ms(7,"ion-icon",4),Ts(),Ts(),Ts(),Ts(),Is(8,"ion-header"),Is(9,"ion-segment"),Ss(10,w4,2,1,"span",5),$u(11,"keyvalue"),Ts(),Ts(),Is(12,"ion-content"),Bs(13),Ss(14,x4,2,1,"ion-list",6),Rs(),Ts(),Is(15,"ion-footer",7),Is(16,"ion-button",8),js("click",function(){return t.generateMissingLang(!1)}),bl(17),$u(18,"translate"),Ts(),Is(19,"ion-button",8),js("click",function(){return t.generateMissingLang(!0)}),bl(20),$u(21,"translate"),Ts(),Ts()),2&e&&(Yo(3),wl(ec(4,6,"lang.langChecking")),Yo(7),Os("ngForOf",ec(11,8,t.allLang)),Yo(4),Os("ngIf","en"===t.currentLang),Yo(1),Os("translucent",!0),Yo(2),wl(ec(18,10,"lang.generateLangVar")),Yo(3),wl(ec(21,12,"lang.generateLangVarIgnoreTranslate")))},directives:[kS,tE,$S,aS,oS,xS,GS,CA,Vh,pS,jh,bS,qS,IS,rS,TS,ES,SS,SA,Lm,my],pipes:[jP,vf],styles:[".mat-dialog-content[_ngcontent-%COMP%]{padding-top:0}.lang-container[_ngcontent-%COMP%]    .mat-tab-header{position:sticky;top:0;z-index:2}.lang-container[_ngcontent-%COMP%]    .mat-tab-label-container{background:#fff}"]}),A4),S4=((_4=function(){function e(t,n,i,r){Z(this,e),this.notify=t,this.http=n,this.functionsService=i,this.modalController=r,this.countMissingLang=0}return Y(e,[{key:"ngOnInit",value:function(){this.getLangs()}},{key:"openLangTool",value:function(){return e=this,n=U().mark(function e(){var t;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:C4,cssClass:"my-custom-class"});case 2:return t=e.sent,e.next=5,t.present();case 5:case"end":return e.stop()}},e,this)}),new((t=void 0)||(t=Promise))(function(i,r){function o(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n.throw(e))}catch(t){r(t)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,a)}s((n=n.apply(e,[])).next())});var e,t,n}},{key:"getLangs",value:function(){var e=this;this.http.get("../rest/languages").pipe(Mw(function(t){e.allLang=t.languages,Object.keys(e.allLang).forEach(function(t){e.countMissingLang+=Object.keys(e.allLang.fr.lang).filter(function(n){return-1===Object.keys(e.allLang[t].lang).indexOf(n)}).length})}),yw(function(t){return e.notify.handleErrors(t),nb(!1)})).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||_4)(Ps(WP),Ps(Tb),Ps(hW),Ps(LE))},_4.\u0275cmp=Ft({type:_4,selectors:[["app-dev-tool"]],decls:11,vars:7,consts:[["cdkDrag","","horizontal","end","vertical","top",3,"title"],["color","light"],["name","language-outline"],["side","start"],["color","light",3,"click"],["color","secondary"]],template:function(e,t){1&e&&(Is(0,"ion-fab",0),$u(1,"translate"),Is(2,"ion-fab-button",1),Ms(3,"ion-icon",2),Ts(),Is(4,"ion-fab-list",3),Is(5,"ion-button",4),js("click",function(){return t.openLangTool()}),Is(6,"ion-label"),bl(7),$u(8,"translate"),Is(9,"ion-badge",5),bl(10),Ts(),Ts(),Ts(),Ts(),Ts()),2&e&&(Os("title",ec(1,3,"lang.missingLang")),Yo(7),kl("",ec(8,5,"lang.missingLang")," "),Yo(3),kl(" ",t.countMissingLang,""))},directives:[vS,_j,mS,xS,yS,oS,IS,rS],pipes:[jP],styles:[".devToolListMenu{min-height:auto!important;width:250px}"]}),_4);function E4(e,t){1&e&&Ms(0,"app-sidebar",10)}function P4(e,t){1&e&&Ms(0,"app-dev-tool")}var O4,D4,I4,T4,M4=function(e){return[e]},B4=((O4=function(){function e(t,n,i,r,o,a,s,l,u,c,d,h,f){if(Z(this,e),this.translate=t,this.http=n,this.signaturesService=i,this.sanitizer=r,this.cookieService=o,this.notificationService=a,this.dialog=s,this.authService=u,this.menu=c,this.router=d,this.route=h,this.platform=f,this.showLeftContent=!1,this.showRightContent=!1,this.authService.getCasToken(),l.addSvgIcon("maarchLogo",r.bypassSecurityTrustResourceUrl("../src/frontend/assets/logo_white.svg")),this.cookieService.check("maarchParapheurLang")){var p=this.cookieService.get("maarchParapheurLang");t.setDefaultLang(p)}else this.cookieService.set("maarchParapheurLang","fr"),t.setDefaultLang("fr");Cd.production||(this.debugMode=!0)}return Y(e,[{key:"test",value:function(){return!0}},{key:"allowedRoute",value:function(){var e=this.router.url.split("?")[0];return-1===["/","/login","/forgot-password","/update-password","/password-modification"].indexOf(e)}}]),e}()).\u0275fac=function(e){return new(e||O4)(Ps(zP),Ps(Tb),Ps($P),Ps(pp),Ps(oT),Ps(WP),Ps(KF),Ps(uN),Ps(tO),Ps(RE),Ps(h_),Ps(Uk),Ps(EA))},O4.\u0275cmp=Ft({type:O4,selectors:[["app-root"]],decls:11,vars:5,consts:[["contentId","main-content"],["menuId","left-menu","contentId","main-content","type","overlay","disabled","",1,"left-menu",3,"ionDidOpen","ionDidClose"],["leftMenu",""],["style","display: contents;",4,"ngIf"],["id","leftContent",2,"display","contents"],["id","main-content"],["menuId","right-menu","contentId","main-content","side","end","type","overlay","disabled","",3,"ngClass","ionDidOpen","ionDidClose"],["rightMenu",""],["id","rightContent",2,"display","contents"],[4,"ngIf"],[2,"display","contents"]],template:function(e,t){1&e&&(Is(0,"ion-app"),Is(1,"ion-split-pane",0),Is(2,"ion-menu",1,2),js("ionDidOpen",function(){return t.showLeftContent=!0})("ionDidClose",function(){return t.showLeftContent=!1}),Ss(4,E4,1,0,"app-sidebar",3),Ms(5,"div",4),Ts(),Ms(6,"ion-router-outlet",5),Is(7,"ion-menu",6,7),js("ionDidOpen",function(){return t.showRightContent=!0})("ionDidClose",function(){return t.showRightContent=!1}),Ms(9,"div",8),Ts(),Ts(),Ts(),Ss(10,P4,1,0,"app-dev-tool",9)),2&e&&(Yo(4),Os("ngIf",t.allowedRoute()),Yo(3),Os("ngClass",Zu(3,M4,t.signaturesService.mobileMode?"right-menu-responsive":"right-menu")),Yo(3),Os("ngIf",t.debugMode&&t.authService.isAuth()))},directives:[tS,JS,BS,jh,xE,Fh,y4,S4],styles:[".left-menu{--width:350px;--min-width:350px;--max-width:350px}.right-menu{--width:450px;--min-width:450px;--max-width:450px}.right-menu-responsive{--width:89%;--min-width:89%;--max-width:89%}.split-pane-visible>.left-menu{width:350px!important;--max-width:350px!important;--min-width:350px!important}.split-pane-visible>.right-menu{width:450px!important;--max-width:450px!important;--min-width:450px!important}"],encapsulation:2}),O4);D4=WE.a,T4=void 0,"string"!=typeof(I4="fr-FR")&&(T4=I4,I4=D4[Ml.LocaleId]),I4=I4.toLowerCase().replace(/_/g,"-"),Dl[I4]=D4,T4&&(Dl[I4][Ml.ExtraData]=T4);var R4,L4=((R4=Y(function e(){Z(this,e)})).\u0275fac=function(e){return new(e||R4)},R4.\u0275mod=jt({type:R4,bootstrap:[B4]}),R4.\u0275inj=at({providers:[{provide:Bb,useClass:nO,multi:!0},$P,eW,WP,{provide:$x,useClass:VE},oT,kT],imports:[[$y,eb,yp,Yv,Yb,HE.forRoot({mode:"md"}),HP.forRoot({loader:{provide:lP,useFactory:N4,deps:[Tb]}}),xU,WI,KI,ST,nT,Tj,G3,lp]]}),R4),F4=function(){function e(t){Z(this,e),this.http=t}return Y(e,[{key:"getTranslation",value:function(e){return this.http.get("../rest/languages/"+e)}}]),e}();function N4(e){return new F4(e)}Cd.production&&function(){if(ad)throw new Error("Cannot enable prod mode after platform setup.");od=!1}(),vp().bootstrapModule(L4).catch(function(e){return console.log(e)})},mNvP:function(e,t){var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=r(e);function r(e,t){return function(n,i){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}void 0===n.Reflect?n.Reflect=e:i=r(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,a={__proto__:[]}instanceof Array,s=!o&&!a,l={create:o?function(){return B(Object.create(null))}:a?function(){return B({__proto__:null})}:function(){return B({})},has:s?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:s?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),c="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[r]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,r=n+1;r<i;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,i)},t.prototype.values=function(){return new n(this._keys,this._values,o)},t.prototype.entries=function(){return new n(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[r]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function i(e,t){return e}function o(e,t){return t}function a(e,t){return[e,t]}}():Map,h=c||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[r]=function(){return this.keys()},e}():Set,f=new(c||"function"!=typeof WeakMap?function(){var e=l.create(),n=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=r(e,!1);return void 0!==t&&l.has(t,this._key)},e.prototype.get=function(e){var t=r(e,!1);return void 0!==t?l.get(t,this._key):void 0},e.prototype.set=function(e,t){return r(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=r(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var t;do{t="@@WeakMap@@"+a()}while(l.has(e,t));return e[t]=!0,t}function r(e,i){if(!t.call(e,n)){if(!i)return;Object.defineProperty(e,n,{value:l.create()})}return e[n]}function o(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function a(){var e="function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(16)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(16)):o(new Uint8Array(16),16):o(new Array(16),16);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var i=e[n];4!==n&&6!==n&&8!==n||(t+="-"),i<16&&(t+="0"),t+=i.toString(16).toLowerCase()}return t}}():WeakMap);function p(e,t,n){var i=f.get(e);if(_(i)){if(!n)return;i=new d,f.set(e,i)}var r=i.get(t);if(_(r)){if(!n)return;r=new d,i.set(t,r)}return r}function g(e,t,n){if(v(e,t,n))return!0;var i=M(t);return!A(i)&&g(e,i,n)}function v(e,t,n){var i=p(t,n,!1);return!_(i)&&!!i.has(e)}function m(e,t,n){if(v(e,t,n))return y(e,t,n);var i=M(t);return A(i)?void 0:m(e,i,n)}function y(e,t,n){var i=p(t,n,!1);if(!_(i))return i.get(e)}function b(e,t,n,i){p(n,i,!0).set(e,t)}function w(e,t){var n=k(e,t),i=M(e);if(null===i)return n;var r=w(i,t);if(r.length<=0)return n;if(n.length<=0)return r;for(var o=new h,a=[],s=0,l=n;s<l.length;s++)o.has(d=l[s])||(o.add(d),a.push(d));for(var u=0,c=r;u<c.length;u++){var d;o.has(d=c[u])||(o.add(d),a.push(d))}return a}function k(e,t){var n=[],i=p(e,t,!1);if(_(i))return n;for(var o=function(e){var t=D(e,r);if(!P(t))throw new TypeError;var n=t.call(e);if(!C(n))throw new TypeError;return n}(i.keys()),a=0;;){var s=I(o);if(!s)return n.length=a,n;var l=s.value;try{n[a]=l}catch(u){try{T(o)}finally{throw u}}a++}}function x(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function _(e){return void 0===e}function A(e){return null===e}function C(e){return"object"==typeof e?null!==e:"function"==typeof e}function S(e){var t=function(e,t){switch(x(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n="string",r=D(e,i);if(void 0!==r){var o=r.call(e,n);if(C(o))throw new TypeError;return o}return function(e,t){var n,i,r=e.toString;if(P(r)&&!C(i=r.call(e)))return i;if(P(n=e.valueOf)&&!C(i=n.call(e)))return i;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function E(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"function"==typeof e}function O(e){return"function"==typeof e}function D(e,t){var n=e[t];if(null!=n){if(!P(n))throw new TypeError;return n}}function I(e){var t=e.next();return!t.done&&t}function T(e){var t=e.return;t&&t.call(e)}function M(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var n=e.prototype,i=n&&Object.getPrototypeOf(n);if(null==i||i===Object.prototype)return t;var r=i.constructor;return"function"!=typeof r||r===e?t:r}function B(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,i){if(_(n)){if(!E(e))throw new TypeError;if(!O(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var i=(0,e[n])(t);if(!_(i)&&!A(i)){if(!O(i))throw new TypeError;t=i}}return t}(e,t)}if(!E(e))throw new TypeError;if(!C(t))throw new TypeError;if(!C(i)&&!_(i)&&!A(i))throw new TypeError;return A(i)&&(i=void 0),function(e,t,n,i){for(var r=e.length-1;r>=0;--r){var o=(0,e[r])(t,n,i);if(!_(o)&&!A(o)){if(!C(o))throw new TypeError;i=o}}return i}(e,t,n=S(n),i)}),e("metadata",function(e,t){return function(n,i){if(!C(n))throw new TypeError;if(!_(i)&&!function(e){switch(x(e)){case 3:case 4:return!0;default:return!1}}(i))throw new TypeError;b(e,t,n,i)}}),e("defineMetadata",function(e,t,n,i){if(!C(n))throw new TypeError;return _(i)||(i=S(i)),b(e,t,n,i)}),e("hasMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),g(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),v(e,t,n)}),e("getMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),m(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!C(t))throw new TypeError;return _(n)||(n=S(n)),y(e,t,n)}),e("getMetadataKeys",function(e,t){if(!C(e))throw new TypeError;return _(t)||(t=S(t)),w(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!C(e))throw new TypeError;return _(t)||(t=S(t)),k(e,t)}),e("deleteMetadata",function(e,t,n){if(!C(t))throw new TypeError;_(n)||(n=S(n));var i=p(t,n,!1);if(_(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var r=f.get(t);return r.delete(n),r.size>0||f.delete(t),!0})}(i)}()}(n||(n={}))},meiF:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,r=n("1vRN"),o=function(e){if(void 0===i){var t=void 0!==e.style.webkitAnimationName;i=void 0===e.style.animationName&&t?"-webkit-":""}return i},a=function(e,t,n){var i=t.startsWith("animation")?o(e):"";e.style.setProperty(i+t,n)},s=function(e,t){var n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(V(e),V(n))}return e},c=function(e){var t,n,i,c,d,h,f,p,g,v,m,y,b,w=[],k=[],x=[],_=!1,A={},C=[],S=[],E={},P=0,O=!1,D=!1,I=!0,T=!1,M=!0,L=e,F=[],N=[],z=[],j=[],H=[],U=[],W=[],G=[],q=[],Y=[],Z="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,K="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Z,Q=function(e,t){return(t&&t.oneTimeCallback?N:F).push({c:e,o:t}),b},X=function(){if(K)Y.forEach(function(e){e.cancel()}),Y.length=0;else{var e=z.slice();Object(r.q)(function(){e.forEach(function(e){s(e,"animation-name"),s(e,"animation-duration"),s(e,"animation-timing-function"),s(e,"animation-iteration-count"),s(e,"animation-delay"),s(e,"animation-play-state"),s(e,"animation-fill-mode"),s(e,"animation-direction")})})}},J=function(){H.forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),H.length=0},$=function(){return void 0!==d?d:f?f.getFill():"both"},ee=function(){return void 0!==g?g:void 0!==h?h:f?f.getDirection():"normal"},te=function(){return O?"linear":void 0!==i?i:f?f.getEasing():"linear"},ne=function(){return D?0:void 0!==v?v:void 0!==n?n:f?f.getDuration():0},ie=function(){return void 0!==c?c:f?f.getIterations():1},re=function(){return void 0!==m?m:void 0!==t?t:f?f.getDelay():0},oe=function(){0!==P&&(0===--P&&(function(){fe(),G.forEach(function(e){return e()}),q.forEach(function(e){return e()});var e=I?1:0,t=C,n=S,i=E;z.forEach(function(e){var r=e.classList;for(var o in t.forEach(function(e){return r.add(e)}),n.forEach(function(e){return r.remove(e)}),i)i.hasOwnProperty(o)&&a(e,o,i[o])}),F.forEach(function(t){return t.c(e,b)}),N.forEach(function(t){return t.c(e,b)}),N.length=0,M=!0,I&&(T=!0),I=!0}(),f&&f.animationFinish()))},ae=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(function(){U.forEach(function(e){return e()}),W.forEach(function(e){return e()});var e=k,t=x,n=A;z.forEach(function(i){var r=i.classList;for(var o in e.forEach(function(e){return r.add(e)}),t.forEach(function(e){return r.remove(e)}),n)n.hasOwnProperty(o)&&a(i,o,n[o])})})(),w.length>0&&(K?(z.forEach(function(e){var t=e.animate(w,{id:L,delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()});t.pause(),Y.push(t)}),Y.length>0&&(Y[0].onfinish=function(){oe()})):function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J();var n,i=((n=w).forEach(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{var i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();i!==t&&(e[i]=n,delete e[t])}}}),n);z.forEach(function(n){if(i.length>0){var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.offset,n=[];for(var i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push("".concat(i,": ").concat(e[i],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")}).join(" ")}(i),u=function(e,t,n){var i=function(e){var t=e.getRootNode();return t.head||t}(n),r=o(n),a=i.querySelector("#"+e);if(a)return a;var s=(n.ownerDocument||document).createElement("style");return s.id=e,s.textContent="@".concat(r,"keyframes ").concat(e," { ").concat(t," } @").concat(r,"keyframes ").concat(e,"-alt { ").concat(t," }"),i.appendChild(s),s}(y=void 0!==e?e:function(e){var t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t}(s),s,n);H.push(u),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",re()+"ms"),a(n,"animation-fill-mode",$()),a(n,"animation-direction",ee());var c=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",c),a(n,"animation-play-state","paused"),t&&a(n,"animation-name",u.id+"-alt"),Object(r.q)(function(){a(n,"animation-name",u.id||null)})}})}(t)),_=!0},se=function(e){if(e=Math.min(Math.max(e,0),.9999),K)Y.forEach(function(t){t.currentTime=t.effect.getComputedTiming().delay+ne()*e,t.pause()});else{var t="-".concat(ne()*e,"ms");z.forEach(function(e){w.length>0&&(a(e,"animation-delay",t),a(e,"animation-play-state","paused"))})}},le=function(e){Y.forEach(function(e){e.effect.updateTiming({delay:re(),duration:ne(),easing:te(),iterations:ie(),fill:$(),direction:ee()})}),void 0!==e&&se(e)},ue=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;Object(r.q)(function(){z.forEach(function(n){a(n,"animation-name",y||null),a(n,"animation-duration",ne()+"ms"),a(n,"animation-timing-function",te()),a(n,"animation-delay",void 0!==t?"-".concat(t*ne(),"ms"):re()+"ms"),a(n,"animation-fill-mode",$()||null),a(n,"animation-direction",ee()||null);var i=ie()===1/0?"infinite":ie().toString();a(n,"animation-iteration-count",i),e&&a(n,"animation-name",y+"-alt"),Object(r.q)(function(){a(n,"animation-name",y||null)})})})},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e&&j.forEach(function(i){i.update(e,t,n)}),K?le(n):ue(t,n),b},de=function(){_&&(K?Y.forEach(function(e){e.pause()}):z.forEach(function(e){a(e,"animation-play-state","paused")}))},he=function(){p=void 0,oe()},fe=function(){p&&clearTimeout(p)},pe=function(e){return new Promise(function(t){e&&e.sync&&(D=!0,Q(function(){return D=!1},{oneTimeCallback:!0})),_||ae(),T&&(K?(se(0),le()):ue(),T=!1),M&&(P=j.length+1,M=!1),Q(function(){return t()},{oneTimeCallback:!0}),j.forEach(function(e){e.play()}),K?(Y.forEach(function(e){e.play()}),0!==w.length&&0!==z.length||oe()):function(){if(fe(),Object(r.q)(function(){z.forEach(function(e){w.length>0&&a(e,"animation-play-state","running")})}),0===w.length||0===z.length)oe();else{var e=re()||0,t=ne()||0,n=ie()||1;isFinite(n)&&(p=setTimeout(he,e+t*n+100)),function(e,t){var n,i={passive:!0},o=function(t){e===t.target&&(n&&n(),fe(),Object(r.q)(function(){z.forEach(function(e){s(e,"animation-duration"),s(e,"animation-delay"),s(e,"animation-play-state")}),Object(r.q)(oe)}))};e&&(e.addEventListener("webkitAnimationEnd",o,i),e.addEventListener("animationend",o,i),n=function(){e.removeEventListener("webkitAnimationEnd",o,i),e.removeEventListener("animationend",o,i)})}(z[0])}}()})},ge=function(e,t){var n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[B({offset:0},e,t)].concat(V(w)):n[e]=t,b};return b={parentAnimation:f,elements:z,childAnimations:j,id:L,animationFinish:oe,from:ge,to:function(e,t){var n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[].concat(V(w),[B({offset:1},e,t)]):n[e]=t,b},fromTo:function(e,t,n){return ge(e,t).to(e,n)},parent:function(e){return f=e,b},play:pe,pause:function(){return j.forEach(function(e){e.pause()}),de(),b},stop:function(){j.forEach(function(e){e.stop()}),_&&(X(),_=!1),O=!1,D=!1,M=!0,g=void 0,v=void 0,m=void 0,P=0,T=!1,I=!0},destroy:function(e){return j.forEach(function(t){t.destroy(e)}),function(e){X(),e&&J()}(e),z.length=0,j.length=0,w.length=0,F.length=0,N.length=0,_=!1,M=!0,b},keyframes:function(e){return w=e,b},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=R(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.parent(b),j.push(i)}}catch(r){n.e(r)}finally{n.f()}}else e.parent(b),j.push(e);return b},addElement:function(e){if(null!=e)if(1===e.nodeType)z.push(e);else if(e.length>=0)for(var t=0;t<e.length;t++)z.push(e[t]);else console.error("Invalid addElement value");return b},update:ce,fill:function(e){return d=e,ce(!0),b},direction:function(e){return h=e,ce(!0),b},iterations:function(e){return c=e,ce(!0),b},duration:function(e){return K||0!==e||(e=1),n=e,ce(!0),b},easing:function(e){return i=e,ce(!0),b},delay:function(e){return t=e,ce(!0),b},getWebAnimations:function(){return Y},getKeyframes:function(){return w},getFill:$,getDirection:ee,getDelay:re,getIterations:ie,getEasing:te,getDuration:ne,afterAddRead:function(e){return G.push(e),b},afterAddWrite:function(e){return q.push(e),b},afterClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=R(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;E[i]=""}}catch(r){n.e(r)}finally{n.f()}return b},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E=e,b},afterRemoveClass:function(e){return S=u(S,e),b},afterAddClass:function(e){return C=u(C,e),b},beforeAddRead:function(e){return U.push(e),b},beforeAddWrite:function(e){return W.push(e),b},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=R(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;A[i]=""}}catch(r){n.e(r)}finally{n.f()}return b},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A=e,b},beforeRemoveClass:function(e){return x=u(x,e),b},beforeAddClass:function(e){return k=u(k,e),b},onFinish:Q,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return j.forEach(function(n){n.progressStart(e,t)}),de(),O=e,_?ce(!1,!0,t):ae(),b},progressStep:function(e){return j.forEach(function(t){t.progressStep(e)}),se(e),b},progressEnd:function(e,t,n){return O=!1,j.forEach(function(i){i.progressEnd(e,t,n)}),void 0!==n&&(v=n),T=!1,I=!0,0===e?("reverse"===(g="reverse"===ee()?"normal":"reverse")&&(I=!1),K?(ce(),se(1-t)):(m=(1-t)*ne()*-1,ce(!1,!1))):1===e&&(K?(ce(),se(t)):(m=t*ne()*-1,ce(!1,!1))),void 0!==e&&(Q(function(){v=void 0,g=void 0,m=void 0},{oneTimeCallback:!0}),f||pe()),b}}}},r7QR:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var i,r,o,a,s,l,u,c,d,h,f,p,g,v,m,y,b,w,k,x,_=n("B4Jq"),A=n("1vRN"),C=n("E/Mt"),S=n("meiF"),E=function(e){return Object(S.a)().duration(e?400:300)},P=function(e){var t,n,i=e.width+8,r=Object(S.a)(),o=Object(S.a)();e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),r.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")"));var a="ios"===Object(C.b)(e),s=a?.2:.25;return o.addElement(e.backdropEl).fromTo("opacity",.01,s),E(a).addAnimation([r,o])},O=function(e){var t,n,i=Object(C.b)(e),r=e.width;e.isEndSide?(t=-r+"px",n=r+"px"):(t=r+"px",n=-r+"px");var o=Object(S.a)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),a=Object(S.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=Object(S.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return E("ios"===i).addAnimation([o,a,s])},D=function(e){var t=Object(C.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",i=Object(S.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(n,")"));return E("ios"===t).addAnimation(i)},I=(f=new Map,p=[],g=function(){var e=G(U().mark(function e(t){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return","start"===t||"end"===t?k(function(e){return e.side===t&&!e.disabled})||k(function(e){return e.side===t}):null!=t?k(function(e){return e.menuId===t}):k(function(e){return!e.disabled})||(p.length>0?p[0].el:void 0));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return",b());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),y=function(e){var t=e.side;p.filter(function(n){return n.side===t&&n!==e}).forEach(function(e){return e.disabled=!0})},b=function(){return k(function(e){return e._isOpen})},w=function(){return p.some(function(e){return e.isAnimating})},k=function(e){var t=p.find(e);if(void 0!==t)return t.el},x=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(e){return new Promise(function(t){return Object(A.c)(e,t)})}))},(m=function(e,t){f.set(e,t)})("reveal",D),m("push",O),m("overlay",P),"undefined"!=typeof document&&document.addEventListener("ionBackButton",function(e){var t=b();t&&e.detail.register(_.MENU_BACK_BUTTON_PRIORITY,function(){return t.close()})}),{registerAnimation:m,get:g,getMenus:(h=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return",p.map(function(e){return e.el}));case 3:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)}),getOpen:v,isEnabled:(d=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&!n.disabled);case 4:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)}),swipeGesture:(c=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.swipeGesture=t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return c.apply(this,arguments)}),isAnimating:(u=G(U().mark(function e(){return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:return e.abrupt("return",w());case 3:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)}),isOpen:(l=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=5;break}return e.next=3,g(t);case 3:return n=e.sent,e.abrupt("return",void 0!==n&&n.isOpen());case 5:return e.t0=void 0,e.next=8,v();case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)}),enable:(s=G(U().mark(function e(t,n){var i;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n);case 2:return i=e.sent,e.abrupt("return",(i&&(i.disabled=!t),i));case 4:case"end":return e.stop()}},e)})),function(e,t){return s.apply(this,arguments)}),toggle:(a=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.toggle());case 4:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),close:(o=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?g(t):v();case 2:return n=e.sent,e.abrupt("return",void 0!==n&&n.close());case 4:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),open:(r=G(U().mark(function e(t){var n;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.open());case 4:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),_getOpenSync:b,_createAnimation:function(e,t){var n=f.get(e);if(!n)throw new Error("animation not registered");return n(t)},_register:function(e){p.indexOf(e)<0&&(e.disabled||y(e),p.push(e))},_unregister:function(e){var t=p.indexOf(e);t>-1&&p.splice(t,1)},_setOpen:(i=G(U().mark(function e(t,n,i){var r;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!w()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=10;break}return e.next=5,v();case 5:if(r=e.sent,e.t0=r&&t.el!==r,!e.t0){e.next=10;break}return e.next=10,r.setOpen(!1,!1);case 10:return e.abrupt("return",t._setOpen(n,i));case 11:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)}),_setActiveMenu:y})},wEJo:function(e,t,n){"use strict";n.d(t,"a",function(){return Qe}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return N}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return De}),n.d(t,"f",function(){return Ke}),n.d(t,"g",function(){return de}),n.d(t,"h",function(){return Ze}),n.d(t,"i",function(){return T}),n.d(t,"j",function(){return R}),n.d(t,"k",function(){return ce}),n.d(t,"l",function(){return be}),n.d(t,"m",function(){return Ie}),n.d(t,"n",function(){return p}),n.d(t,"o",function(){return Be}),n.d(t,"p",function(){return D}),n.d(t,"q",function(){return d});var i,r,o,a=!1,s=!1,l=!1,u=!1,c=!1,d="undefined"!=typeof window?window:{},h=d.CSS,f=d.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,i){return e.addEventListener(t,n,i)},rel:function(e,t,n,i){return e.removeEventListener(t,n,i)},ce:function(e,t){return new CustomEvent(e,t)}},g=(f.head.attachShadow+"").indexOf("[native")>-1,v=function(e){return Promise.resolve(e)},m=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),y=function(e,t,n,i){n&&n.map(function(n){var i=L(n,3),r=i[0],o=i[1],a=i[2],s=w(e,r),l=b(t,a),u=k(r);p.ael(s,o,l,u),(t.$rmListeners$=t.$rmListeners$||[]).push(function(){return p.rel(s,o,l,u)})})},b=function(e,t){return function(n){try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(i){Fe(i)}}},w=function(e,t){return 4&t?f:8&t?d:16&t?f.body:e},k=function(e){return 0!=(2&e)},x="http://www.w3.org/1999/xlink",A=new WeakMap,C=function(e,t,n){var i=ze.get(e);m&&n?(i=i||new CSSStyleSheet).replace(t):i=t,ze.set(e,i)},S=function(e,t,n,i){var r=P(t,n),o=ze.get(r);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){var a,s=A.get(e=e.head||e);if(s||A.set(e,s=new Set),!s.has(r)){if(e.host&&(a=e.querySelector('[sty-id="'.concat(r,'"]'))))a.innerHTML=o;else{if(p.$cssShim$){var l=(a=p.$cssShim$.createHostStyle(i,r,o,!!(10&t.$flags$)))["s-sc"];l&&(r=l,s=null)}else(a=f.createElement("style")).innerHTML=o;e.insertBefore(a,e.querySelector("link"))}s&&s.add(r)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[].concat(V(e.adoptedStyleSheets),[o]));return r},P=function(e,t){return"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},D=function(e){return je.push(e)},T=function(e){return Me(e).$modeName$},M={},B=function(e){return"object"==(e=typeof e)||"function"===e},R=function(e,t){for(var n=null,i=null,r=null,o=!1,a=!1,s=[],l=function t(i){for(var r=0;r<i.length;r++)n=i[r],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((o="function"!=typeof e&&!B(n))&&(n=String(n)),o&&a?s[s.length-1].$text$+=n:s.push(o?F(null,n):n),a=o)},u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];if(l(c),t){t.key&&(i=t.key),t.name&&(r=t.name);var h=t.className||t.class;h&&(t.class="object"!=typeof h?h:Object.keys(h).filter(function(e){return h[e]}).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,z);var f=F(e,null);return f.$attrs$=t,s.length>0&&(f.$children$=s),f.$key$=i,f.$name$=r,f},F=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},N={},z={forEach:function(e,t){return e.map(j).forEach(t)},map:function(e,t){return e.map(j).map(t).map(H)}},j=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},H=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R.apply(void 0,[e.vtag,t].concat(V(e.vchildren||[])))}var n=F(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},W=function(e,t,n,i,r,o){if(n!==i){var a=Le(e,t),s=t.toLowerCase();if("class"===t){var l=e.classList,u=K(n),c=K(i);l.remove.apply(l,V(u.filter(function(e){return e&&!c.includes(e)}))),l.add.apply(l,V(c.filter(function(e){return e&&!u.includes(e)})))}else if("style"===t){for(var h in n)i&&null!=i[h]||(h.includes("-")?e.style.removeProperty(h):e.style[h]="");for(var f in i)n&&i[f]===n[f]||(f.includes("-")?e.style.setProperty(f,i[f]):e.style[f]=i[f])}else if("key"===t);else if("ref"===t)i&&i(e);else if(a||"o"!==t[0]||"n"!==t[1]){var g=B(i);if((a||g&&null!==i)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{var v=null==i?"":i;"list"===t?a=!1:null!=n&&e[t]==v||(e[t]=v)}}catch(y){}var m=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,m=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(m?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!a||4&o||r)&&!g&&(i=!0===i?"":i,m?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}else t="-"===t[2]?t.slice(3):Le(d,s)?s.slice(2):s[2]+t.slice(3),n&&p.rel(e,t,n,!1),i&&p.ael(e,t,i,!1)}},q=/\s/,K=function(e){return e?e.split(q):[]},Q=function(e,t,n,i){var r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||M,a=t.$attrs$||M;for(i in o)i in a||W(r,i,o[i],void 0,n,t.$flags$);for(i in a)W(r,i,o[i],a[i],n,t.$flags$)},X=function e(t,n,s,c){var d,h,p,g=n.$children$[s],v=0;if(a||(l=!0,"slot"===g.$tag$&&(i&&c.classList.add(i+"-s"),g.$flags$|=g.$children$?2:1)),null!==g.$text$)d=g.$elm$=f.createTextNode(g.$text$);else if(1&g.$flags$)d=g.$elm$=f.createTextNode("");else{if(u||(u="svg"===g.$tag$),d=g.$elm$=f.createElementNS(u?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&g.$flags$?"slot-fb":g.$tag$),u&&"foreignObject"===g.$tag$&&(u=!1),Q(null,g,u),null!=i&&d["s-si"]!==i&&d.classList.add(d["s-si"]=i),g.$children$)for(v=0;v<g.$children$.length;++v)(h=e(t,g,v,d))&&d.appendChild(h);"svg"===g.$tag$?u=!1:"foreignObject"===d.tagName&&(u=!0)}return d["s-hn"]=o,3&g.$flags$&&(d["s-sr"]=!0,d["s-cr"]=r,d["s-sn"]=g.$name$||"",(p=t&&t.$children$&&t.$children$[s])&&p.$tag$===g.$tag$&&t.$elm$&&J(t.$elm$,!1)),d},J=function e(t,n){p.$flags$|=1;for(var i=t.childNodes,r=i.length-1;r>=0;r--){var a=i[r];a["s-hn"]!==o&&a["s-ol"]&&(ie(a).insertBefore(a,ne(a)),a["s-ol"].remove(),a["s-ol"]=void 0,l=!0),n&&e(a,n)}p.$flags$&=-2},$=function(e,t,n,i,r,a){var s,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);r<=a;++r)i[r]&&((s=X(null,n,r,e))&&(i[r].$elm$=s,l.insertBefore(s,ne(t))))},ee=function(e,t,n,i,r){for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,ue(i),s=!0,r["s-ol"]?r["s-ol"].remove():J(r,!0),r.remove())},te=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},ne=function(e){return e&&e["s-ol"]||e},ie=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},re=function e(t,n){var i,r=n.$elm$=t.$elm$,o=t.$children$,a=n.$children$,s=n.$tag$,l=n.$text$;null===l?(u="svg"===s||"foreignObject"!==s&&u,"slot"===s||Q(t,n,u),null!==o&&null!==a?function(t,n,i,r){for(var o,a,s=0,l=0,u=0,c=0,d=n.length-1,h=n[0],f=n[d],p=r.length-1,g=r[0],v=r[p];s<=d&&l<=p;)if(null==h)h=n[++s];else if(null==f)f=n[--d];else if(null==g)g=r[++l];else if(null==v)v=r[--p];else if(te(h,g))e(h,g),h=n[++s],g=r[++l];else if(te(f,v))e(f,v),f=n[--d],v=r[--p];else if(te(h,v))"slot"!==h.$tag$&&"slot"!==v.$tag$||J(h.$elm$.parentNode,!1),e(h,v),t.insertBefore(h.$elm$,f.$elm$.nextSibling),h=n[++s],v=r[--p];else if(te(f,g))"slot"!==h.$tag$&&"slot"!==v.$tag$||J(f.$elm$.parentNode,!1),e(f,g),t.insertBefore(f.$elm$,h.$elm$),f=n[--d],g=r[++l];else{for(u=-1,c=s;c<=d;++c)if(n[c]&&null!==n[c].$key$&&n[c].$key$===g.$key$){u=c;break}u>=0?((a=n[u]).$tag$!==g.$tag$?o=X(n&&n[l],i,u,t):(e(a,g),n[u]=void 0,o=a.$elm$),g=r[++l]):(o=X(n&&n[l],i,l,t),g=r[++l]),o&&ie(h.$elm$).insertBefore(o,ne(h.$elm$))}s>d?$(t,null==r[p+1]?null:r[p+1].$elm$,i,r,l,p):l>p&&ee(n,s,d)}(r,o,n,a):null!==a?(null!==t.$text$&&(r.textContent=""),$(r,null,n,a,0,a.length-1)):null!==o&&ee(o,0,o.length-1),u&&"svg"===s&&(u=!1)):(i=r["s-cr"])?i.parentNode.textContent=l:t.$text$!==l&&(r.data=l)},oe=function e(t){var n,i,r,o,a,s,l=t.childNodes;for(i=0,r=l.length;i<r;i++)if(1===(n=l[i]).nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<r;o++)if(s=l[o].nodeType,l[o]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===l[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==l[o].textContent.trim()){n.hidden=!0;break}e(n)}},ae=[],se=function e(t){for(var n,i,r,o,a,l,u=0,c=t.childNodes,d=c.length;u<d;u++){if((n=c[u])["s-sr"]&&(i=n["s-cr"])&&i.parentNode)for(r=i.parentNode.childNodes,o=n["s-sn"],l=r.length-1;l>=0;l--)(i=r[l])["s-cn"]||i["s-nr"]||i["s-hn"]===n["s-hn"]||(le(i,o)?(a=ae.find(function(e){return e.$nodeToRelocate$===i}),s=!0,i["s-sn"]=i["s-sn"]||o,a?a.$slotRefNode$=n:ae.push({$slotRefNode$:n,$nodeToRelocate$:i}),i["s-sr"]&&ae.map(function(e){le(e.$nodeToRelocate$,i["s-sn"])&&((a=ae.find(function(e){return e.$nodeToRelocate$===i}))&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$slotRefNode$))})):ae.some(function(e){return e.$nodeToRelocate$===i})||ae.push({$nodeToRelocate$:i}));1===n.nodeType&&e(n)}},le=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},ue=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},ce=function(e){return Me(e).$hostElement$},de=function(e,t,n){var i=ce(e);return{emit:function(e){return he(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},he=function(e,t,n){var i=p.ce(t,n);return e.dispatchEvent(i),i},fe=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(function(t){return e.$onRenderResolve$=t}))},pe=function(e,t){if(e.$flags$|=16,!(4&e.$flags$))return fe(e,e.$ancestorComponent$),Ke(function(){return ge(e,t)});e.$flags$|=512},ge=function(e,t){var n,i=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(function(e){var t=L(e,2),n=t[0],r=t[1];return ke(i,n,r)}),e.$queuedListeners$=null),n=ke(i,"componentWillLoad")),n=xe(n,function(){return ke(i,"componentWillRender")}),xe(n,function(){return ve(e,i,t)})},ve=function(){var e=G(U().mark(function e(t,n,i){var r,o,a,s;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.$hostElement$,o=r["s-rc"],i&&function(e){var t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=S(g&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&i&&(n["s-sc"]=r,n.classList.add(r+"-h"),2&i&&n.classList.add(r+"-s"))}(t),me(t,n),p.$cssShim$&&p.$cssShim$.updateHost(r),o&&(o.map(function(e){return e()}),r["s-rc"]=void 0),a=r["s-p"],s=function(){return ye(t)},0===a.length?s():(Promise.all(a).then(s),t.$flags$|=4,a.length=0);case 4:case"end":return e.stop()}},e)}));return function(t,n,i){return e.apply(this,arguments)}}(),me=function(e,t,n){try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,function(e,t){var n,u=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||F(null,null),h=(n=t)&&n.$tag$===N?t:R(null,null,t);if(o=u.tagName,c.$attrsToReflect$&&(h.$attrs$=h.$attrs$||{},c.$attrsToReflect$.map(function(e){var t=L(e,2),n=t[0],i=t[1];return h.$attrs$[i]=u[n]})),h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=d.$elm$=u.shadowRoot||u,i=u["s-sc"],r=u["s-cr"],a=g&&0!=(1&c.$flags$),s=!1,re(d,h),p.$flags$|=1,l){var v,m,y,b,w,k;se(h.$elm$);for(var x=0;x<ae.length;x++)(m=(v=ae[x]).$nodeToRelocate$)["s-ol"]||((y=f.createTextNode(""))["s-nr"]=m,m.parentNode.insertBefore(m["s-ol"]=y,m));for(x=0;x<ae.length;x++)if(m=(v=ae[x]).$nodeToRelocate$,v.$slotRefNode$){for(b=v.$slotRefNode$.parentNode,w=v.$slotRefNode$.nextSibling,y=m["s-ol"];y=y.previousSibling;)if((k=y["s-nr"])&&k["s-sn"]===m["s-sn"]&&b===k.parentNode&&(!(k=k.nextSibling)||!k["s-nr"])){w=k;break}(!w&&b!==m.parentNode||m.nextSibling!==w)&&m!==w&&(!m["s-hn"]&&m["s-ol"]&&(m["s-hn"]=m["s-ol"].parentNode.nodeName),b.insertBefore(m,w))}else 1===m.nodeType&&(m.hidden=!0)}s&&oe(h.$elm$),p.$flags$&=-2,ae.length=0}(e,t)}catch(u){Fe(u,e.$hostElement$)}return null},ye=function(e){var t=e.$hostElement$,n=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?ke(n,"componentDidUpdate"):(e.$flags$|=64,_e(t),ke(n,"componentDidLoad"),e.$onReadyResolve$(t),i||we()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ye(function(){return pe(e,!1)}),e.$flags$&=-517},be=function(e){var t=Me(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&pe(t,!1),n},we=function(e){_e(f.documentElement),Ye(function(){return he(d,"appload",{detail:{namespace:"ionic"}})})},ke=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(i){Fe(i)}},xe=function(e,t){return e&&e.then?e.then(t):t()},_e=function(e){return e.classList.add("hydrated")},Ae=function e(t,n,i,r,o,a,s){var l,u,c,d;if(1===a.nodeType){for((l=a.getAttribute("c-id"))&&((u=l.split("."))[0]!==s&&"0"!==u[0]||(c={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},n.push(c),a.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,t=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),d=a.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.childNodes[d],s);if(a.shadowRoot)for(d=a.shadowRoot.childNodes.length-1;d>=0;d--)e(t,n,i,r,o,a.shadowRoot.childNodes[d],s)}else if(8===a.nodeType)(u=a.nodeValue.split("."))[1]!==s&&"0"!==u[1]||(l=u[0],c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(c.$elm$=a.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,n.push(c),a.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===l?(c.$tag$="slot",a["s-sn"]=u[5]?c.$name$=u[5]:"",a["s-sr"]=!0,r&&(c.$elm$=f.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),a.parentNode.insertBefore(c.$elm$,a),a.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),i.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===l&&(r?a.remove():(o["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var h=F(null,a.textContent);h.$elm$=a,h.$index$="0",t.$children$=[h]}},Ce=function e(t,n){if(1===t.nodeType){for(var i=0;i<t.childNodes.length;i++)e(t.childNodes[i],n);if(t.shadowRoot)for(i=0;i<t.shadowRoot.childNodes.length;i++)e(t.shadowRoot.childNodes[i],n)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(n.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Se=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var i=Object.entries(t.$members$),r=e.prototype;if(i.map(function(e){var i=L(e,2),o=i[0],a=L(i[1],1)[0];31&a||2&n&&32&a?Object.defineProperty(r,o,{get:function(){return e=o,Me(this).$instanceValues$.get(e);var e},set:function(e){var n=this;!function(e,t,i,r){var o,a,s=Me(n),l=s.$hostElement$,u=s.$instanceValues$.get(t),c=s.$flags$,d=s.$lazyInstance$;if(a=r.$members$[t][0],i=null==(o=i)||B(o)?o:4&a?"false"!==o&&(""===o||!!o):2&a?parseFloat(o):1&a?String(o):o,!(8&c&&void 0!==u||i===u)&&(s.$instanceValues$.set(t,i),d)){if(r.$watchers$&&128&c){var h=r.$watchers$[t];h&&h.map(function(e){try{d[e](i,u,t)}catch(n){Fe(n,l)}})}2==(18&c)&&pe(s,!1)}}(0,o,e,t)},configurable:!0,enumerable:!0}):1&n&&64&a&&Object.defineProperty(r,o,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Me(this);return i.$onInstancePromise$.then(function(){var e;return(e=i.$lazyInstance$)[o].apply(e,t)})}})}),1&n){var o=new Map;r.attributeChangedCallback=function(e,t,n){var i=this;p.jmp(function(){var t=o.get(e);i[t]=(null!==n||"boolean"!=typeof i[t])&&n})},e.observedAttributes=i.filter(function(e){var t=L(e,2);t[0];return 15&t[1][0]}).map(function(e){var n=L(e,2),i=n[0],r=n[1],a=r[1]||i;return o.set(a,i),512&r[0]&&t.$attrsToReflect$.push([i,a]),a})}}return e},Ee=function(e){ke(e,"connectedCallback")},Pe=function(e){if(0==(1&p.$flags$)){var t=Me(e),i=t.$cmpMeta$;if(1&t.$flags$)y(e,t,i.$listeners$),Ee(t.$lazyInstance$);else{var r;if(t.$flags$|=1,r=e.getAttribute("s-id")){if(g&&1&i.$flags$){var o=S(e.shadowRoot,i,e.getAttribute("s-mode"));e.classList.remove(o+"-h",o+"-s")}!function(e,t,n,i){var r=e.shadowRoot,o=[],a=r?[]:null,s=i.$vnode$=F(t,null);p.$orgLocNodes$||Ce(f.body,p.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),Ae(s,o,[],a,e,e,n),o.map(function(e){var n=e.$hostId$+"."+e.$nodeId$,i=p.$orgLocNodes$.get(n),o=e.$elm$;i&&g&&""===i["s-en"]&&i.parentNode.insertBefore(o,i.nextSibling),r||(o["s-hn"]=t,i&&(o["s-ol"]=i,o["s-ol"]["s-nr"]=o)),p.$orgLocNodes$.delete(n)}),r&&a.map(function(e){e&&r.appendChild(e)})}(e,i.$tagName$,r,t)}r||12&i.$flags$&&Oe(e);for(var a=e;a=a.parentNode||a.host;)if(1===a.nodeType&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){fe(t,t.$ancestorComponent$=a);break}i.$members$&&Object.entries(i.$members$).map(function(t){var n=L(t,2),i=n[0];if(31&L(n[1],1)[0]&&e.hasOwnProperty(i)){var r=e[i];delete e[i],e[i]=r}}),Ye(function(){return(r=G(U().mark(function e(t,i,r,o,a){var s,l,u,c,d,h;return U().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(32&i.$flags$)){e.next=25;break}if(i.$flags$|=32,!(a=Ve(r)).then){e.next=7;break}return s=function(){},e.next=5,a;case 5:a=e.sent,s();case 7:a.isProxied||(r.$watchers$=a.watchers,Se(a,r,2),a.isProxied=!0),i.$flags$|=8;try{new a(i)}catch(o){Fe(o)}if(i.$flags$&=-9,i.$flags$|=128,Ee(i.$lazyInstance$),!a.style){e.next=25;break}if("string"!=typeof(l=a.style)&&(l=l[i.$modeName$=function(e){return je.map(function(t){return t(e)}).find(function(e){return!!e})}(t)]),u=P(r,i.$modeName$),ze.has(u)){e.next=25;break}if(c=function(){},e.t0=8&r.$flags$,!e.t0){e.next=23;break}return e.next=22,n.e(57).then(n.bind(null,"JmUR")).then(function(e){return e.scopeCss(l,u,!1)});case 22:l=e.sent;case 23:C(u,l,!!(1&r.$flags$)),c();case 25:d=i.$ancestorComponent$,h=function(){return pe(i,!0)},d&&d["s-rc"]?d["s-rc"].push(h):h();case 27:case"end":return e.stop()}},e)})),function(e,t,n,i,o){return r.apply(this,arguments)})(e,t,i);var r})}}},Oe=function(e){var t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},De=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],r=n.exclude||[],o=d.customElements,a=f.head,s=a.querySelector("meta[charset]"),l=f.createElement("style"),u=[],c=f.querySelectorAll("[sty-id]"),h=!0,v=0;for(Object.assign(p,n),p.$resourcesUrl$=new URL(n.resourcesUrl||"./",f.baseURI).href,p.$flags$|=2;v<c.length;v++)C(c[v].getAttribute("sty-id"),c[v].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(function(e){return e[1].map(function(n){var a={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};a.$members$=n[2],a.$listeners$=n[3],a.$attrsToReflect$=[],a.$watchers$={},!g&&1&a.$flags$&&(a.$flags$|=8);var s=a.$tagName$,l=function(e){E(i,e);var n=O(i);function i(e){var t;return Z(this,i),t=n.call(this,e),Re(e=I(t),a),1&a.$flags$&&(g?e.attachShadow({mode:"open",delegatesFocus:!!(16&a.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),t}return Y(i,[{key:"connectedCallback",value:function(){var e=this;t&&(clearTimeout(t),t=null),h?u.push(this):p.jmp(function(){return Pe(e)})}},{key:"disconnectedCallback",value:function(){var e=this;p.jmp(function(){return function(e){if(0==(1&p.$flags$)){var t=Me(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(function(e){return e()}),t.$rmListeners$=void 0),p.$cssShim$&&p.$cssShim$.removeHost(e),ke(n,"disconnectedCallback")}}(e)})}},{key:"componentOnReady",value:function(){return Me(this).$onReadyPromise$}}]),i}(_(HTMLElement));a.$lazyBundleId$=e[0],r.includes(s)||o.get(s)||(i.push(s),o.define(s,Se(l,a,1)))})}),l.innerHTML=i+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),a.insertBefore(l,s?s.nextSibling:a.firstChild),h=!1,u.length?u.map(function(e){return e.connectedCallback()}):p.jmp(function(){return t=setTimeout(we,30)})},Ie=function(e){var t=new URL(e,p.$resourcesUrl$);return t.origin!==d.location.origin?t.href:t.pathname},Te=new WeakMap,Me=function(e){return Te.get(e)},Be=function(e,t){return Te.set(t.$lazyInstance$=e,t)},Re=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(function(e){return n.$onInstanceResolve$=e}),n.$onReadyPromise$=new Promise(function(e){return n.$onReadyResolve$=e}),e["s-p"]=[],e["s-rc"]=[],y(e,n,t.$listeners$),Te.set(e,n)},Le=function(e,t){return t in e},Fe=function(e,t){return(0,console.error)(e,t)},Ne=new Map,Ve=function(e,t,i){var r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=Ne.get(o);return a?a[r]:n("kLfG")("./".concat(o,".entry.js")).then(function(e){return Ne.set(o,e),e[r]},Fe)},ze=new Map,je=[],He=[],Ue=[],We=function(e,t){return function(n){e.push(n),c||(c=!0,t&&4&p.$flags$?Ye(qe):p.raf(qe))}},Ge=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){Fe(n)}e.length=0},qe=function e(){Ge(He),Ge(Ue),(c=He.length>0)&&p.raf(e)},Ye=function(e){return v().then(e)},Ze=We(He,!1),Ke=We(Ue,!0),Qe={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},y08P:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=function(){function e(t,n,i,r,o){Z(this,e),this.id=n,this.name=i,this.disableScroll=o,this.priority=1e6*r+n,this.ctrl=t}return Y(e,[{key:"canStart",value:function(){return!!this.ctrl&&this.ctrl.canStart(this.name)}},{key:"start",value:function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}},{key:"capture",value:function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}},{key:"release",value:function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}},{key:"destroy",value:function(){this.release(),this.ctrl=void 0}}]),e}(),r=function(){function e(t,n,i,r){Z(this,e),this.id=n,this.disable=i,this.disableScroll=r,this.ctrl=t}return Y(e,[{key:"block",value:function(){if(this.ctrl){if(this.disable){var e,t=R(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.disableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.disableScroll(this.id)}}},{key:"unblock",value:function(){if(this.ctrl){if(this.disable){var e,t=R(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.enableGesture(n,this.id)}}catch(i){t.e(i)}finally{t.f()}}this.disableScroll&&this.ctrl.enableScroll(this.id)}}},{key:"destroy",value:function(){this.unblock(),this.ctrl=void 0}}]),e}(),o=new(function(){function e(){Z(this,e),this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return Y(e,[{key:"createGesture",value:function(e){return new i(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}},{key:"createBlocker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(this,this.newID(),e.disable,!!e.disableScroll)}},{key:"start",value:function(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}},{key:"capture",value:function(e,t,n){if(!this.start(e,t,n))return!1;var i=this.requestedStart,r=-1e4;if(i.forEach(function(e){r=Math.max(r,e)}),r===n){this.capturedId=t,i.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(o),!0}return i.delete(t),!1}},{key:"release",value:function(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}},{key:"disableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}},{key:"enableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}},{key:"disableScroll",value:function(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}},{key:"enableScroll",value:function(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}},{key:"canStart",value:function(e){return void 0===this.capturedId&&!this.isDisabled(e)}},{key:"isCaptured",value:function(){return void 0!==this.capturedId}},{key:"isScrollDisabled",value:function(){return this.disabledScroll.size>0}},{key:"isDisabled",value:function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)}},{key:"newID",value:function(){return this.gestureId++,this.gestureId}}]),e}())}},[[0,1]]])}();
\ No newline at end of file
-- 
GitLab